d-ronin / dRonin

The dRonin flight controller software.
http://dronin.org
Other
289 stars 167 forks source link

GCS: Session management sometimes gets stuck in handshake #1384

Closed tracernz closed 7 years ago

tracernz commented 8 years ago

I have seen this quite a few times lately. Disconnect/reconnect doesn't help, restarting GCS doesn't help, rebooting the board does help. On the GCS side: fuuu

Weird that the flight side is showing 0 data rate too... Objects are being received just fine and the CPU load is 32% so not pegged.

After rebooting the board to fix it... still 0 data rate on the flight side: fail

mluessi commented 8 years ago

I think this is a duplicate of https://github.com/TauLabs/TauLabs/issues/1418

jpbarraca commented 8 years ago

I think I'm having a related problem when using a Sparky2 in MacOS with Quixote. The FC reports data, sensors are received and scopes update, but:

UPDATE:

mlyle commented 7 years ago

I think I plan to close this in favor of #1571, as it's the core obvious repro case.

tracernz commented 7 years ago

It's a different issue (USB peripheral on flight side vs. session management handshake on ? side for this one)?

mlyle commented 7 years ago

I think/thought session management is correct, and this glitch happens when USB falls apart (e.g. it's OS/version dependent, seems to relate to hotplug, etc). That is, this seems to be a more general description of #1571 --- am I wrong?

tracernz commented 7 years ago

No this is when we're talking and sending objects back and forth but the session handshake gets "stuck".

mlyle commented 7 years ago

OK, I've not seen that. Can it be repro'd?

tracernz commented 7 years ago

I've not found a reliable repro (I have tried a little bit), just seen it happen very occasionally.