Skip to main content
Shail Shah
Associate III
August 2, 2017
Question

USB OTG HNP and SRP Problem in STM32xxx

  • August 2, 2017
  • 1 reply
  • 662 views
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

    This topic has been closed for replies.

    1 reply

    Shail Shah
    Associate III
    August 7, 2017
    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