2023-06-24 03:12 AM
Hi All,
I connected STM32G081B-EVAL to my Laptop Type C port, it works.
I can see the Laptop send below CMDs to STM32G081B-EVAL:
VDM_DiscoverSVIDs
VDM_DiscoverModes
VDM_ModeEnter
VDM_ReceiveSpecific
Same as https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Introduction_to_USB_Power_Delivery_with_STM32
9.11 How DP does it work on EVAL-G081 demonstration?
I have a Type-C HUB(Dock), the HUB include USB 3.0 port, HDMI, etc..., the HUB can work when I connect to the Laptop.
Now I try to connect the HUB to EVAL-G081, the power role work fine, and EVAL-G081 data role has changed to DFP from UFP.
then I sent VDM Discovery Identity request by following CMD in my application:
USBPD_StatusTypeDef _status = USBPD_DPM_RequestVDM_DiscoveryIdentify(USBPD_PORT_1, USBPD_SOPTYPE_SOP);
the _status return value is 0, USBPD_OK. But I cannot get any response from the HUB.
if I sent again this CMD, it will return 3, USBPD_BUSY.
May I know how to send VDM Discovery Identity request command?
It seems the PE don't send the VDM Discovery to HUB.
Thank you.
2023-07-01 08:10 PM
Here is the trace, it seems PE_SVDM_REQ_GET_IDENTITY did not work.
Any idea?