Skip to content

Add telemetry functions to BLEClient and Explore classes.#379

Closed
Kieran-Conroy wants to merge 1037 commits into
Mentalab-hub:masterfrom
AyazLab:telemetry
Closed

Add telemetry functions to BLEClient and Explore classes.#379
Kieran-Conroy wants to merge 1037 commits into
Mentalab-hub:masterfrom
AyazLab:telemetry

Conversation

@Kieran-Conroy
Copy link
Copy Markdown

Firmware version and battery have been tested only using the mock server. RTT and RSSI have not been tested (no pro device).

  • Changed bt_mock_client.py slightly to fix some problems I was getting with the mock server.
  • Implemented asynchronous methods get_rssi and measure_rtt in BLEClient for retrieving RSSI values and measuring round-trip time.
  • Updated Explore class to include methods for fetching the latest battery level, firmware version, RSSI, and RTT
  • Added ENV packet subscription to capture battery level updates.
  • Added a short telemetry_test.py script to test the functions.

* change unstable bt threshold to .5s

* add hint for disabled BT
* change unstable bt threshold to .5s

* add hint for disabled BT
works for bin2csv at the moment but this might change in future for bt streaming
* change unstable bt threshold to .5s

* add hint for disabled BT

* save last exg timestamp

* count samples lost in seconds

* update missing sample count for sudden disconnection

* clear bt_duration after interval
SonjaSt and others added 27 commits March 25, 2025 16:21
Put False into result queue on connection error
…version

pass channel count to bin converter
… square plot), added cmap cycling with c key, documentation
…time-spectrogram

Apis 1286 real time spectrogram
Firmware version and battery have been tested only using the mock server.
RTT and RSSI have not been tested (no pro device).

- Changed bt_mock_client.py slightly to fix some problems I was getting with the mock server.
- Implemented asynchronous methods `get_rssi` and `measure_rtt` in BLEClient for retrieving RSSI values and measuring round-trip time.
- Updated Explore class to include methods for fetching the latest battery level, firmware version, RSSI, and RTT
- Added ENV packet subscription to capture battery level updates.
- Added a short telemetry_test.py script to test the functions.
@salman2135
Copy link
Copy Markdown
Member

Hi Kieran,

thank you for the PR. I had a quick test with a Pro device and it seems like some modification is needed for that case. I am gettting the following error:

RuntimeError("No BLE client available to fetch RSSI.")

Happy to merge this when you receive the pro device.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants