Kevin Hester
1da687cf2d
move @thebentern spiffy logging so it is shared with !ble log sources
2024-06-29 16:15:32 -07:00
Kevin Hester
42236f2de8
Merge branch 'ble-logging' into pr-powermon
...
# Conflicts:
# poetry.lock
# pyproject.toml
2024-06-29 15:59:03 -07:00
Kevin Hester
9004f1ed57
fixes for type checker
2024-06-29 15:18:22 -07:00
Kevin Hester
bd767af485
A better way to ensure BLE disconnects:
...
It turns out that Bleak is kinda racey. If we call disconnect()
and then immediately close() the disconnect may or may not actually happen
(probably because it was merely queued for dbus).
So instead: When we want to close the BLEInterface we call disconnect()
and then in a preregistered 'on disconnect' handler we actually close
down our interface/datastructures.
2024-06-29 15:08:50 -07:00
Kevin Hester
6194e41baf
fix linter warnings
2024-06-29 14:37:50 -07:00
Kevin Hester
532ca54ba4
fix bug: we were never calling BLE.disconnect() which...
...
on linux breaks all but the first connection attempts.
Also remove unneeded event stuff and arbitrary timeouts, better just to
use thread.join()
2024-06-29 14:25:01 -07:00
Kevin Hester
898018ebf3
yay Bleak works again on Linux!
2024-06-29 13:52:46 -07:00
Kevin Hester
9f015f499a
wow Bleak now seems pretty buggy to me (compared to 2 yrs ago)
2024-06-29 10:18:37 -07:00
Kevin Hester
a24384cbe2
Merge remote-tracking branch 'root/ble-logging' into pr-fixbluetooth
2024-06-29 09:31:28 -07:00
Kevin Hester
adbfb328b2
threads should aways be named (for debugability)
2024-06-29 09:29:29 -07:00
Kevin Hester
6df89f54a7
fix BLE scan with latest Bleak
2024-06-29 09:10:20 -07:00
Kevin Hester
821d3e95f1
remvoe unneeded paren
2024-06-29 08:40:16 -07:00
Ben Meadors
897adfb8c2
Adds support for ble logging characteristic
2024-06-29 09:41:06 -05:00
Kevin Hester
542f99b28f
handle the new LogRecord protobufs
...
(backwards/forwards compatible) with old firmware
2024-06-28 09:41:17 -07:00
Kevin Hester
dabb4ea44c
PowerStress client approximately works
2024-06-28 09:40:33 -07:00
Kevin Hester
119be81000
PowerStress WIP
2024-06-27 16:37:58 -07:00
Kevin Hester
c9351236e6
blacklist hantek oscilliscope
2024-06-26 17:28:55 -07:00
Kevin Hester
2294546560
fix bogus high current reading on first ppk2 read
2024-06-26 16:43:14 -07:00
Kevin Hester
67bb6665f2
the stock PPK2 API is super inefficient, remove lots of buffering
2024-06-26 15:29:18 -07:00
Kevin Hester
047a56d554
speed up file writing
2024-06-26 12:59:28 -07:00
Kevin Hester
320bb30d29
Use .feather files as our long-term representation
2024-06-26 11:12:02 -07:00
Kevin Hester
f2c427430c
Update protobufs to master (required for powermon stuff)
2024-06-26 10:21:47 -07:00
Kevin Hester
ef4b534396
Merge branch 'pr-moveproto' into pr-powermon
2024-06-26 10:19:04 -07:00
Kevin Hester
6d846c3a63
manually rebuild the protobuf glue files for now... (see PR for info)
2024-06-26 10:12:24 -07:00
Kevin Hester
88b73611f0
Move protobufs to meshtastic.protobuf python namespace
2024-06-26 10:05:59 -07:00
Kevin Hester
0b9af0dcba
remove old protobufs (moving to meshtastic.protobuf)
2024-06-25 19:05:46 -07:00
Kevin Hester
8761b3270a
Merge remote-tracking branch 'root/master' into pr-powermon
...
# Conflicts:
# meshtastic/mesh_interface.py
# poetry.lock
# pyproject.toml
2024-06-25 18:54:38 -07:00
Kevin Hester
4ca9aa29c2
beginnings of meshtastic.analysis
2024-06-25 18:49:48 -07:00
Ian McEwen
b15e27c7b6
Merge pull request #587 from FedericoCeratto/drop-timeago
2024-06-25 18:14:27 -07:00
Ian McEwen
267923fdc5
Add hypothesis fuzzing test for _timeago
2024-06-25 18:14:07 -07:00
Ian McEwen
9ab1b32bdb
make pylint happy with a docstring
2024-06-25 18:09:20 -07:00
Kevin Hester
231bc25255
PPK2 based power measurements seem to approximately work
2024-06-25 15:19:21 -07:00
Kevin Hester
ff20ad5d05
group power options in --help. add --power-wait to support some boards
2024-06-25 13:48:14 -07:00
Kevin Hester
f8ad4fef7c
deferred execution thread should be named and marked as daemon
2024-06-25 12:23:38 -07:00
Kevin Hester
d1aadf0c8e
close power meter gracefully
2024-06-25 12:22:47 -07:00
Kevin Hester
d448ea5767
keep a symbolic link "latest" that points to the latest slog dir
2024-06-25 12:03:35 -07:00
Kevin Hester
402622f427
fix type warnings
2024-06-25 11:25:07 -07:00
Kevin Hester
220241448f
more fighting with trunk
2024-06-25 11:08:47 -07:00
Kevin Hester
9b61f11c88
temporarily suppress warning about main.py being too long
2024-06-25 11:08:35 -07:00
Kevin Hester
1b045bec88
fix linter warnings
2024-06-25 11:02:24 -07:00
Kevin Hester
07fc991f4e
clean up slog closing
2024-06-25 10:39:44 -07:00
Kevin Hester
c6561713db
don't let daemon keep process alive
2024-06-25 10:27:36 -07:00
Kevin Hester
9cdfde47ec
store slogs in correct default directory (OS dependent)
2024-06-25 10:27:35 -07:00
Kevin Hester
91066f6aed
add powermon_sim support
2024-06-25 10:26:45 -07:00
Kevin Hester
7ce7d73e89
Switch from pandas to apache arrow for live data logging (better streaming)
2024-06-25 10:26:45 -07:00
Kevin Hester
ea18057c1f
Add support for NRF PPK2 power testing board.
2024-06-25 10:26:44 -07:00
Kevin Hester
5ff4025ed6
add NordicSemi Power Profiler Kit 2 device to the USB blacklist
2024-06-25 10:25:58 -07:00
geeksville
1add293414
Add a whitelist of known meshtastic USB VIDs to use a default serial ports.
...
Initially only RAK4631 and heltec tracker are listed
2024-06-25 10:25:58 -07:00
Kevin Hester
7b18fd599c
remove observable - switch because we are already using pubsub elsewhere
2024-06-25 10:25:58 -07:00
Kevin Hester
79c65c1706
make slog nicely add new rows
2024-06-25 10:21:11 -07:00