Commit Graph
100 Commits
Author SHA1 Message Date
Ben Meadors 5ff1078c8c Move NeighborInfo interval default to 6 hours (double NodeInfo) (#4483)
* Move NeighborInfo in line with NodeInfo

* Set default to 6 hours and cap minimum at 2 hours
2024-08-17 11:51:53 -05:00
Ben Meadors fdaaf71366 Merge branch 'master' into 2.5-changes 2024-08-17 08:01:15 -05:00
Ben Meadors 9dad62e3c4 Set time-only admin command (#4479) 2024-08-17 05:52:36 -05:00
Ben Meadors e61bd84116 Send local stats telemetry to phone every 15 minutes (#4475)
* Send local stats telemetry to phone every 10 minutes

* Add debug log and bump to 15 minutes

* Tronk

* Explicit has_ optional
2024-08-16 17:15:51 -05:00
Ben MeadorsandChristopher Hoover eefe9efa9f Adds ASCII log option needed by portudino (#4443) (#4474)
* Adds ASCII logs useful to portudino

Activates ASCII log option when stdout is not a terminal.  This is
generally the right thing to do; if not, the behavior can be
overridden in config.yaml using AsciiLogs under Logging.  The result
is reasonable system logs for portudino when running under systemd or
the like.

Signed-off-by: Christopher Hoover <ch@murgatroid.com>
Co-authored-by: Christopher Hoover <ch@murgatroid.com>
2024-08-16 07:42:19 -05:00
Ben Meadors 390de724ba Update 2.5 protos 2024-08-16 06:09:02 -05:00
Ben Meadors 6f1dae1b1b Re-compute correct timeslot on applyModemConfig (#4469)
* Re-compute correct timeslot on applyModemConfig

* Cap contention window max at 7
2024-08-15 15:05:38 -05:00
Ben Meadors d398419aef Router and sensor are impolite (#4468) 2024-08-15 08:47:49 -05:00
Ben Meadors 96cf78aadd Short turbo preset (#4465) 2024-08-14 21:16:21 -05:00
Ben Meadors efc27f2051 Initial telemetry with time and variant tags (#4463) 2024-08-14 16:24:28 -05:00
Ben Meadors 207b9b49a5 Always attempt to set NTP or GPS time on a fresh position packet (#4460) 2024-08-14 07:42:30 -05:00
Ben Meadors 0e7253d309 Protos 2024-08-13 18:45:38 -05:00
Ben Meadors 884bc529f0 protos 2024-08-13 18:44:25 -05:00
Ben Meadors 8f3614d66c User to UserLite in NodeDB (#4438)
* User to UserLite in the nodedb

* Tronkdor the burninator
2024-08-13 18:43:37 -05:00
Ben Meadors c451db3a3f Get in the trunk! 2024-08-13 18:43:19 -05:00
Ben Meadors 95682c9095 Add ClientNotification hello world 2024-08-13 18:43:19 -05:00
Ben Meadors da53b8152d Protos 2024-08-13 18:43:17 -05:00
Ben Meadors 8d1a34a4bf Protobufs 2024-08-13 18:42:40 -05:00
Ben Meadors 464f270b12 More explicit guards for attempting to set RTC (#4452)
* Guard against timesources from the mesh if we have good time

* Trunk

* Consider phone time in the past 24 hours authoritative as well

* Rename

* GPS can be null

* Declaration

* Remove RemoteHardware

* Explicitly remove GPS

* Exclude GPS earlier for RAK2560
2024-08-13 06:56:20 -05:00
Ben Meadors 7740b4bccd Sweep up some missed trunk formatting 2024-08-13 06:52:03 -05:00
Ben Meadors e85a2e827b Update protos 2024-08-13 06:49:32 -05:00
Ben Meadors 48eee747da protos 2024-08-11 18:25:32 -05:00
Ben Meadors a28f10e0c2 User to UserLite in NodeDB (#4438)
* User to UserLite in the nodedb

* Tronkdor the burninator
2024-08-11 17:22:11 -05:00
Ben Meadors 864b793ce0 Merge branch 'master' into 2.5-changes 2024-08-10 13:45:52 -05:00
Ben Meadors a767997cea Get in the trunk! 2024-08-10 08:57:37 -05:00
Ben Meadors 861f0b6769 Add ClientNotification hello world 2024-08-10 08:33:42 -05:00
Ben Meadors 2012a0ae1c Protos 2024-08-10 07:51:59 -05:00
Ben Meadors 3513d88794 Protobufs 2024-08-10 07:25:05 -05:00
Ben Meadors 3878e025e4 Split factory reset into config and device variants (#4427)
* Split factory reset into config and device variants

* Trunk

* Default only in header
2024-08-09 08:38:29 -05:00
Ben Meadors 5b4530325f Short circuit while the probe code does not auto-detect 2024-08-08 20:53:26 -05:00
Ben Meadors bcdda4de8a Missed some includes of userPrefs that would allow behavior we don't want 2024-07-31 08:53:59 -05:00
Ben Meadors 24ecfa1a45 Trunk fmt 2024-07-31 07:42:23 -05:00
Ben Meadors 29fe6e7448 Event mode: Block problematic portnums of traffic (#4362) 2024-07-31 05:52:17 -05:00
Ben Meadors 5dde738a31 Trunk 2024-07-30 15:08:38 -05:00
Ben Meadors 93ba19d1e1 Make LogRecord protobuf serial logging over Phone API opt-in instead (#4358)
* Make LogRecord protobuf serial logging over Phone API opt-in instead of enabled by default

* debug_log_enabled
2024-07-30 15:05:33 -05:00
Ben MeadorsandJonathan Bennett 59cc57fc29 Event mode: Enforce reliable hop limit and disallow default public MQTT (#4343)
* Event mode: Enforce reliable hop limit

* Event mode: Short circuit wantsLink on MQTT for default broker address

* Just enforce at channels level since everything uses this

* For events never forward packets with excessive hop_limit

* In EVENT_MODE, don't respond with hop_limit set more then the configured max.

* Correct hop_start when correcting hop_limit in event mode.

* Make EVENT_MODE work from userPrefs.h

* Event mode: Disallow Router or Repeater roles

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
2024-07-29 20:16:47 -05:00
Ben Meadors 6813b8e4e9 Just literally trying stuff at this point 2024-07-29 06:52:14 -05:00
Ben Meadors 4aa6f60e95 Maybe remove pip cache 2024-07-29 06:41:26 -05:00
Ben Meadors 2ffc93324d After 2024-07-29 06:38:34 -05:00
Ben Meadors c501cc501d Pip pip cheerios plz 2024-07-29 06:37:19 -05:00
Ben Meadors 8c0ff89972 Trunk 2024-07-29 06:14:32 -05:00
Ben Meadors cf22b7ff04 Latest pip version of setuptools is broken. Install specific version 2024-07-29 06:11:08 -05:00
Ben MeadorsandJonathan Bennett 811a9ae261 Macro to trace log all MeshPackets as JSON (#4336)
* Macro to trace log all MeshPackets as JSON

* Comment

* Add trace logging to file for native target

* bytes to hex

* Add time_ms

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
2024-07-28 19:49:10 -05:00
Ben Meadors 32bc2f1137 Add RAK3172 to the STM32WL canon 2024-07-27 09:38:28 -05:00
Ben Meadors 1b249c32bf Copy the actual bin 2024-07-27 07:28:11 -05:00
Ben Meadors bca9fbe7e4 Missed a needs 2024-07-27 06:49:50 -05:00
Ben Meadors e70435ebd7 All builds need to only pkg update for their target environment 2024-07-27 06:49:11 -05:00
Ben Meadors f583837b4e Enable STM32 build (#4339)
* Enable stm32 builds and wio-e5 board

* Chmod
2024-07-27 06:39:16 -05:00
Ben Meadors 4ee15d8128 Trunk 2024-07-26 06:38:54 -05:00
Ben Meadors 394e0e1b3e T1000_E hw model 2024-07-26 06:30:28 -05:00
Ben Meadors f645ae943d JSON serialization refactor (#4331) 2024-07-25 20:50:42 -05:00
Ben Meadors 7ac64bd762 Trunk 2024-07-25 13:09:28 -05:00
Ben Meadors c5f2d2736d Whitespace trunk grousing 2024-07-24 21:14:58 -05:00
Ben Meadors 01e089fd07 Ignore invalid service envelopes (#4326) 2024-07-24 08:23:04 -05:00
Ben Meadors 1d3ac57943 Fix type (#4323) 2024-07-23 08:35:01 -05:00
Ben Meadors 0d2a9b6282 Fix de/compression buffer overflows in TAK packets (#4317)
* Fix de/compression buffer overflows in TAK packets

* Log message
2024-07-23 06:16:53 -05:00
Ben Meadors dadf9234e5 Remove status topic (#4305) 2024-07-21 07:09:10 -05:00
Ben Meadors 46d7b82ac1 Migrate to new defaults (#4294)
* Upgrade module config state version but don't blow everything away

* ModuleConfig version intervals roll forward

* Be specific about version migration criteria

* initModuleConfigIntervals fix

* Don't forget power!
2024-07-16 09:37:50 -05:00
Ben Meadors a04de8c6b3 Add PaxCounter to the mix 2024-07-14 06:27:16 -05:00
Ben Meadors 4286f2c2dd Minor version bump 2024-07-13 06:07:20 -05:00
Ben Meadors c5d747cd3e Scale default intervals based for *online* mesh size past 40 nodes (#4277)
* Add congestion scaling coefficient

* Added active mesh sized based interval scaling

* Moved back to bottom

* Format

* Add observers and use correct number of online nodes
2024-07-13 05:59:19 -05:00
Ben Meadors 0fa9974518 Don't send node info interrogation when ch. util is >25% (#4273) 2024-07-12 11:48:35 -05:00
Ben Meadors 699d37b04c Move up telemetry defaults to every 30 minutes (#4274) 2024-07-12 09:24:42 -05:00
Ben Meadors df194ca0f0 WM1110 SDK kit enter serial DFU and add deployment packages (#4266)
* Switch default upload protocol to nrfutil so that pio generates zip deploy packages

* Enter serial DFU on SDK board

* Remove guard for DFU zip from SDK build

* NRF_USE_SERIAL_DFU macro instead
2024-07-11 14:08:31 -05:00
Ben Meadors c887675bb4 Fix missing 2024-07-10 09:35:18 -05:00
Ben Meadors 5c71187db1 Tell trunk to ignore bin folder 2024-07-10 07:34:41 -05:00
Ben Meadors 8048fab084 Move e290 to board level extra while CI is broken 2024-07-10 07:28:29 -05:00
Ben Meadors e74d77dc44 Fix macros 2024-07-09 15:11:11 -05:00
Ben Meadors ba8d17b9c1 Trunk fmt 2024-07-09 12:16:56 -05:00
Ben Meadors a3777e8f29 Helps if you remove the original clause 2024-07-09 09:23:59 -05:00
Ben Meadors 8b388d1e27 Skip dfu file for sdk (for now) 2024-07-09 09:12:23 -05:00
Ben Meadors 9f089746da Collect hex files and specifically wm1110 sdk 2024-07-09 08:31:16 -05:00
Ben Meadors 2b9848bf1b Remove tracker variant specific soft device headers (#4255) 2024-07-08 08:16:38 -05:00
Ben Meadors c1df621711 Sudo 2024-07-04 08:32:59 -05:00
Ben Meadors 2ba88d305f Only sdk 2024-07-04 08:29:49 -05:00
Ben Meadors fc63d956e7 Merge hex for wm1110 target(s) 2024-07-04 08:10:40 -05:00
Ben Meadors 4b82634d1a Cleanup buffer 2024-07-03 22:19:01 -05:00
Ben Meadors 9c46bdad1a New new BLE logging characteristic with LogRecord protos (#4220)
* New UUID

* New log radio characteristic with LogRecord protobuf

* LogRecord

* Merge derp

* How did you get there

* Trunk

* Fix length

* Remove assert
2024-07-03 16:29:07 -05:00
Ben Meadors 469ae0ff84 Fix flakey phone api transition from file manifest to complete (#4209)
* Try fix flakey phone api transition from file manifest to complete

* Skip
2024-06-30 08:22:24 -05:00
Ben Meadors 20c1d71214 Deprecate Router Client role (and make it Client) (#4201) 2024-06-29 19:03:00 -05:00
Ben Meadors 0016e747e9 Clear vector after complete config state (#4194)
* Clear after complete config

* Don't collect . entries

* Log file name and size
2024-06-28 09:50:22 -05:00
Ben Meadors a966d84e3d Send file system manifest up on want_config (#4176)
* Send file system manifest up on want_config

* Platform specific methods

* Helps to actually make the change

* Clear
2024-06-27 07:07:27 -05:00
Ben Meadors f5098dc6d8 Explicitly set characteristic 2024-06-23 14:47:25 -05:00
Ben Meadors 2e0d96cece Esptool is better 2024-06-23 07:54:13 -05:00
Ben Meadors eb6bd3a06f Update NimBLE to 1.4.2 (#4163) 2024-06-22 08:49:55 -05:00
Ben Meadors d32cdecc06 Pause BLE logging during want_config flow (#4162) 2024-06-22 07:00:48 -05:00
Ben Meadors 02d8715ca0 Standardize lat/lon position logs (#4156)
* Standardize lat/lon position logs

* Missed sone and condensed logs
2024-06-21 17:25:54 -05:00
Ben Meadors 0bcc60d535 BLE based logging (#4146)
* WIP log characteristic

* Bluetooth logging plumbing

* Characteristic

* Callback

* Check for nullptr

* Esp32 bluetooth impl

* Formatting

* Add thread name and log level

* Add settings guard

* Remove comments

* Field name

* Fixes esp32

* Open it up

* Whoops

* Move va_end past our logic
2024-06-20 16:14:55 -05:00
Ben Meadors 12b8dc1918 Revert "[create-pull-request] automated change (#4121)" (#4124)
This reverts commit 7afa8107ae.
2024-06-17 06:09:50 -05:00
Ben Meadors c2097d38fd Merge branch 'master' into pr-nrf52-dap 2024-06-16 19:17:30 -05:00
Ben Meadors 0c45c99b15 Merge branch 'master' into master 2024-06-16 07:39:46 -05:00
Ben Meadors b1cf5778b4 Update nrf52 platform to 10.5.0 (#4113) 2024-06-15 09:46:31 -05:00
Ben Meadors 32702e2750 Fix compiler warnings (#4112) 2024-06-15 09:46:15 -05:00
Ben Meadors 3e4e1b2202 Trunk 2024-06-14 19:53:47 -05:00
Ben Meadors 8b8e056b7b Added (excluded) Dropzone Module for more comprehensive module example (#4098)
* DropzoneModule hello world

* Buttoning things up

* Exclude by default

* Upstream refs

* Cleanup

* Add modules folder to path

* Case and path matters

* Exclude from header

* Guard
2024-06-14 16:27:49 -05:00
Ben Meadors 16b41b51af Update OLED ref 2024-06-13 12:05:14 -05:00
Ben Meadors 85bca8a32a Update lark to ref to clear C++ warning 2024-06-13 11:13:18 -05:00
Ben Meadors b09cee118c Trunk 2024-06-12 06:57:11 -05:00
Ben Meadors 01a214aa59 Add continues on failing docker steps 2024-06-09 08:32:31 -05:00
Ben Meadors 4da3f202e5 Roll-back to v2 2024-06-09 07:55:45 -05:00