cancel
Showing results for 
Search instead for 
Did you mean: 

USB OTG HNP and SRP Problem in STM32xxx

Shail Shah
Associate II
Posted on August 02, 2017 at 16:27

Hello all,

In USB OTG Driver SRP request after that

USB_OTG_HandleSessionRequest_ISR

invoking.

What Need to be added to inform upper layer USB_OTG_HandleSessionRequest_ISR as per HAL Library?.

  if (IsDeviceMode(&otgfs_dev1) && (otg_ctl.b.bsesvld))  

  {  

      /* inform upper layer here */  

      /***************************/  

      / ??????????????????/

  }  

  else if (otg_ctl.b.asesvld)  

  {  

      /* inform upper layer here */  

      /***************************/  

      / ??????????????????/

  }  

  

Simliar way in HNP request after that

USB_OTG_HandleConnectorIDStatusChange_ISR invoking

What Need to be added to inform upper layer?

Thanks and Regards,

Shail Shah

1 REPLY 1
Shail Shah
Associate II
Posted on August 07, 2017 at 07:53

Hello all,

we need to know detail about HNP and SRP Protocol.

Where we need to call this function USB_OTG_InitiateSRP and USB_OTG_InitiateHNP in USB OTG Stack ?

Should we need to in USB_OTG_HandleSessionRequest_ISR?

Thanks and Regards,

Shail Shah