-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/ch51186/usb-cloud-connection-status #577
feature/ch51186/usb-cloud-connection-status #577
Conversation
d852cac
to
678c38b
Compare
678c38b
to
f2139fe
Compare
@sergeuz i don't think it's related to my changes as this isn't new behavior (though perhaps my updates make it worse) but i get |
i can reproduce this 100% of the time by connecting my device, letting my computer go to sleep, waking it, and running any |
@sergeuz can you think of a way to trigger "disconnecting" and / or "disconnected" states in these |
It can be due to a transition from "disconnecting" to "disconnected" happening almost immediately, or do you mean you don't ever get "disconnected" as well? |
correct - i never see "disconnecting" or "disconnected" just "unknown", "connecting", and "connected" |
No idea, unfortunately. There seems to be some issue in the USB HAL implementation and, possibly, particle-usb as well. @technobly Is this something your team is currently looking into? |
@busticated Even if the device is indeed disconnected? |
yes? i tried putting the device into listening mode and then querying but in that case it returns |
That's weird. I'm not sure why "unknown" is reported, it looks like a parsing error somewhere in |
f2139fe
to
5ac886e
Compare
5ac886e
to
10d2dd0
Compare
self-review |
Description
Adds
particle usb cloud-status <deviceID>
command to query the device via USB and return its cloud connection status:unknown
,connecting
,connected
,disconnecting
,disconnected
(ch)How to Test
run
particle usb cloud-status --help
and try out the command and options.Related Issues / Discussions
particle-iot/particle-usb#24
Completeness