Commit Graph
970 Commits
Author SHA1 Message Date
Ian McEwen 865bb6a497 Remove python 3.8 warning. protobufs: v2.3.15 (brought in by merge) 2024-07-07 21:00:26 -07:00
Ian McEwen c04943308a Merge pull request #607 from geeksville/pr-powermon
PowerMon/StructuredLogging support
2024-07-07 20:56:28 -07:00
Ian McEwen ec4e521001 Add a warning about this being the last version supporting python 3.8 2024-07-07 20:49:38 -07:00
Ian McEwen 19d7e914bc Merge pull request #629 from ppicazo/trace_route_hop_fix
Fix for hopLimit param on sendTraceRoute not being respected
2024-07-07 20:43:22 -07:00
Paul Picazo 64bb668251 Fix line too long 2024-07-07 20:30:19 -07:00
Ian McEwen 15b03b704c Correctly detect LocalConfig vs. LocalModuleConfig, again. fixes #630 2024-07-03 20:35:58 -07:00
Kevin Hester 63327986b4 fix incorrect Vid - thanks @ianmcorvidae for notixing.
0x04b4 is cypress semi but commonly used in Chinese oscopes (like mine).
So it was supposed to be a blacklist not a whitelist!
2024-07-03 20:11:59 -07:00
Kevin Hester 5695ec7102 change --slog to use nargs 2024-07-03 11:00:42 -07:00
Kevin Hester ae2ef78560 fix linter warnings
(note: the linter test for min/max is buggy so disabled)
2024-07-03 09:57:24 -07:00
Kevin Hester 2f5a736e1f Merge remote-tracking branch 'root/master' into pr-powermon
# Conflicts:
#	meshtastic/ble_interface.py
#	meshtastic/protobuf/mesh_pb2.py
#	meshtastic/protobuf/powermon_pb2.py
#	meshtastic/protobuf/powermon_pb2.pyi
2024-07-03 09:22:45 -07:00
Paul Picazo 775108b47b Hop limit param on sendTraceRoute fix 2024-07-02 10:09:58 -07:00
Ian McEwen a14cc4f573 Update heartbeat interval to a fixed 300 seconds 2024-07-02 09:58:45 -07:00
Ian McEwen dc5f59260f protobufs: v2.3.14 2024-07-02 09:52:47 -07:00
Ian McEwen 32b4575262 Reorganize imports for pylint 2024-07-02 09:43:49 -07:00
Ben Meadors 5eafc2c866 Remove newline handling 2024-07-02 07:30:27 -05:00
Ben Meadors 19363967f3 Shut up linter 2024-07-01 21:11:35 -05:00
Ben Meadors ce6c096c3e Fix 2024-07-01 21:05:27 -05:00
Ben Meadors bef9b480f0 Log Recod logging with new characterstic 2024-07-01 18:05:15 -05:00
Ben Meadors d5a4d86c21 Merge remote-tracking branch 'origin/master' into protobuf-ble-logging 2024-07-01 06:18:32 -05:00
Ben Meadors 188f9d593c Add handler for new log-record BLE characteristic 2024-07-01 06:16:49 -05:00
Ian McEwen 3b4690e932 appease the linter 2024-07-01 00:00:59 -07:00
Ian McEwen 49bd9cb515 Support --ble on older firmwares that don't have the log-radio characteristic yet. 2024-06-30 23:40:11 -07:00
Ian McEwen 33c5be5219 Update doc string for --pos-fields to use valid values 2024-06-30 23:25:57 -07:00
Ian McEwen 9ffdc30c1f Make remote hardware args live in their own little box 2024-06-30 23:25:07 -07:00
Ian McEwen abdfbc673e Allow connection args without an argument, add argument aliases 2024-06-30 16:52:31 -07:00
Kevin Hester 6da04f7a15 Merge branch 'pr-bletweak' into pr-powermon
# Conflicts:
#	.vscode/launch.json
2024-06-30 13:03:33 -07:00
Kevin Hester 111d61ea0a bleak reads can hang if a device walks out of range, cope with that. 2024-06-30 13:00:12 -07:00
Ian McEwen 93fbc78492 Properly handle missing nodes in traceroute response (fixes #612) 2024-06-30 10:04:54 -07:00
Ian McEwen e331bea4ea make typing a little more 3.8-approved 2024-06-30 09:58:32 -07:00
Ian McEwen 4f1ea5b7da Merge pull request #616 from meshtastic/ble-logging
Adds support for ble logging characteristic
2024-06-30 09:33:05 -07:00
Kevin Hester 8f98878cac Merge branch 'ble-logging' into pr-powermon
# Conflicts:
#	.vscode/launch.json
#	meshtastic/protobuf/config_pb2.py
#	meshtastic/protobuf/mesh_pb2.py
#	meshtastic/protobuf/mesh_pb2.pyi
2024-06-30 07:06:32 -07:00
Kevin Hester a04b3498b3 make specifying an argument to --seriallog optional
thanks @ianmcorvidae for telling me about the cool nargs='?' option!
2024-06-30 06:54:29 -07:00
Kevin Hester 5c2851db85 nargs='?' is awesome! get rid of ble_dest. 2024-06-30 06:46:39 -07:00
Kevin Hester 7e440693a3 Merge remote-tracking branch 'root/master' into ble-logging
# Conflicts:
#	poetry.lock
2024-06-30 06:36:11 -07:00
Ian McEwen 18c2d08bf0 protobufs: v2.3.13 2024-06-29 17:36:22 -07:00
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