cancel
Showing results for 
Search instead for 
Did you mean: 

USB FS Data Traffic Suspend And Resume

FuzzySimo
Associate

Hi,

I configured USB FS on my STM32WB55 NUCLEO Board and it works as I expected (configured as CDC). I can send and receive data to/from Host (my PC) but now I have the need to suspend temporarly Data Flow and then reprise it.
My goal is to collect some data, elaborate them and then get some other data from host. To do so, I need to "suspend" USB communication end then "Resume" it. 
I tried to use USBD_LL_Suspend() and USBD_LL_Resume() but it seems like to get communication stuck.
In particular, when I call USBD_LL_Suspend(), Host does not send data any longer and calling USBD_LL_Resume() seems like to have no effect.
Any idea/suggestion?

Thanks a lot in advance!

Simo.

1 ACCEPTED SOLUTION

Accepted Solutions
ABOUA
ST Employee

Hello FuzzySimo,

Device could not suspend itself suspend/resume requests should come from host side

to stop communication from device side you could just delay preparing the next transfer and while you are still processing the received data the device NAK the host data requests

Regards

 

View solution in original post

1 REPLY 1
ABOUA
ST Employee

Hello FuzzySimo,

Device could not suspend itself suspend/resume requests should come from host side

to stop communication from device side you could just delay preparing the next transfer and while you are still processing the received data the device NAK the host data requests

Regards