cancel
Showing results for 
Search instead for 
Did you mean: 

How to send VDM Discovery Identity request command?

Jack.Li
Associate

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:

  1. VDM_DiscoverIdentity
  2. VDM_DiscoverSVIDs

  3. VDM_DiscoverModes

  4. VDM_ModeEnter

  5. 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.

 

 

1 REPLY 1
Jack.Li
Associate

Here is the trace, it seems PE_SVDM_REQ_GET_IDENTITY did not work.

Any idea?

2.jpg