datapartyjs / rfparty-monitor

its like a tricorder, for your wireless world.
https://rfparty.xyz
Apache License 2.0
102 stars 4 forks source link

ble scan stops after resume from suspend #1

Closed sevenbitbyte closed 9 months ago

sevenbitbyte commented 2 years ago

When the hw goes into power save modes such as suspend (ie: systemctl suspend) the hardware may need to be reset for scanning to be allowed.

Specifically. Calling noble.stopScanningAsync never returns, deadlocking somewhere if called after returning from suspend state. Meanwhile, no no scan data will be returned. Also the noble.state does not indicate failure or scanning stopped.

Calling noble.startScanning... or noble.reset appears to place the hardware back into a known state.