We are developing a USB device that is bus powered.
We have two strange PC suspend/resume behaviors.
1: The host wakes us up just before going to sleep.
Sniffing the bus we get the following:
<suspend> (~250ms long)
(~900ms)
<host disconnected>
(~0.8ms)
<host connected>
(~4ms)
<reset>
PC goes to sleep.
We still get a <reset> when resuming the PC so we are able to handle the wakeup,
but this behavior means that our device isn't in suspend
2: (not the same PC):
<suspend> We suspend
PC goes to sleep
<resume> We wake up
<suspend> We suspend, again
<resume> We wake up, again
We can probably live these behaviors but I would like to know if this can be considered
normal host behavior and also if there are other 'strange' suspend/resume behaviors.
There seems to be different ways to handle the S3 ACPI state (standby/sleep), some PCs keep Vbus on while others sets Vbus off.
Is this a gray area or are both behaiors correct?
/Mats