Open thegreatco opened 11 months ago
@Peter-Moody sounds like we either have to send a disconnect signal, a re-connect signal, or both? @alexischr I added new message type sent to CLI before entering low-power. But, sending a re-connect signal would do no good unless CLI is connected and this is the problem we're trying to solved.
I added a new message type HCOM_HOST_REQUEST_TEXT_NEXT_LOW_PWR = 0x14 | HCOM_PROTOCOL_HEADER_SIMPLE_TEXT_TYPE
which HCOM now sends to CLI before entering low-power mode.
Also added Dominique as an assignee
Slack message from @ctacke
sleep/wake for interrupt is only sort-of working. I can go to sleep. When I get the wake interrupt I know something is happening because Windows makes noise about USB getting connected, but the code immediately following the ioctl is failing to execute (I'm trying to turn on an LED) (edited)
If I use the same app to wake after a period of time (5s) then it works.
Not sure if it matters, but when it wakes from a timer, the USB re-enumerates as a serial port. When it re-enumerates from interrupt, it comes up as an unknown device
@Peter-Moody do you think this is still an issue?
I am going to investigate this one a little, since a lot of work has been done improving sleep/wake
Alexis, good idea to verify. From the original problem description, it sounds like a CLI problem, if Windows is showing the COM Port again after sleeping. Also, we don't know if this is from CLIv1 or CLIv2.
Device.PlatformOS.Sleep
, when the device wakes, Windows reportsTo Reproduce Steps to reproduce the behavior:
Device.PlatformOS.Sleep()
Expected behavior The Meadow reconnects and presents a COM port
Screenshots If applicable, add screenshots to help explain your problem.
Developer tools (please complete the following information as best as you can):
Meadow (please complete the following information as best as you can): Most of these vaues can be found by running
meadow device info
using the Meadow CLI.