Commit Graph
3746 Commits
Author SHA1 Message Date
Olexandr Tyshchenko ef6ef2e9d2 GPS: GPS_BAUD_PROBE_LIST as a build flag for any NmeaGpsDriver; enable on Station G2/G3
The probe list was wired only in variants/promicro/target.cpp. It is now the
default list of NmeaGpsDriver when GPS_BAUD_PROBE_LIST is set, so a variant
enables baud autodetection with a build flag alone.

Station G2 and G3 enable it: their Grove UART connector is used with M5Stack
Unit GPS modules, which default to 115200.
2026-11-10 23:51:29 +02:00
fdlamotte f678f6ac15 Merge pull request #3784 from Maxwell456/feature/repeater-history
Add min/max/avg history queries to repeaters
2026-11-10 12:42:53 -04:00
fdlamotte b8ae75d258 Merge pull request #3770 from lihardyextreme/feature-mdns
feat: mDNS ESP32 - enable local network discovery over mDNS
2026-11-10 12:07:18 -04:00
fdlamotte 44702f93a9 Merge pull request #3793 from fdlamotte/eink_hibernate_when_off
eink: some updates (busy loop + hibernate when screen off)
2026-11-10 12:00:43 -04:00
Florent 8d5bd2e2c7 eink: some updates (busy loop + hibernate when screen off) 2026-11-10 11:52:38 -04:00
fdlamotte be5efc242f Merge pull request #3778 from dahuib/rak16000-v1.18.0-clean
Support RAK16000 (INA219 at 0x41)
2026-11-10 11:45:43 -04:00
dahuib a655d1f785 Support RAK16000 (INA219 at 0x41) on dev 2026-11-10 15:57:32 +01:00
fdlamotte d495d2edf5 Merge pull request #3623 from BeGiBue/feature/wio-l1-eink-repeater
Add repeater environment for Wio Tracker L1 E-Ink
2026-11-10 09:06:45 -04:00
fdlamotte d1df7d2722 Merge pull request #3664 from Martin-hub1/dev
Add DFRobot LoRaWAN ESP32-S3 Companion BLE firmware
2026-11-10 09:06:07 -04:00
fdlamotte 4b71ed4498 Merge pull request #3613 from agessaman/feat/rak13302-auto-onboard-sleep
feat(rak3401): automatically sleep the RAK4631’s onboard SX1262 when paired with a RAK13302
2026-11-10 09:01:51 -04:00
fdlamotte 2367886a4c Merge pull request #3724 from akalinin-softvelum/feature/eink-busy-hook-v2
companion: keep mesh/BLE running during e-ink refresh
2026-11-10 08:40:43 -04:00
fdlamotte b7ab9fbc6f Merge pull request #3725 from Blake-Latchford/fix/espnow-no-lora-build
Fix Generic_ESPNOW_* builds on boards without a LoRa radio
2026-11-10 08:25:37 -04:00
fdlamotte 6f4cd39a6e Merge pull request #3648 from olimexsmart/feature/lilygo-t3-stm32
Add LilyGO T3 STM32 support
2026-11-10 08:23:03 -04:00
fdlamotte ad97616894 Merge branch 'dev' into feature/lilygo-t3-stm32 2026-11-10 08:22:52 -04:00
fdlamotte d6d51333c2 Merge pull request #3762 from wmacgreg/feature/nucleo-wl55jc
Add variant for ST Nucleo-WL55JC1 (STM32WL55JC) 🤖🤖
2026-11-10 08:14:51 -04:00
fdlamotte e6d141d6f7 Merge pull request #3785 from AlexandrTyshchenko/feature/companion-adc-multiplier
Companion: set/get adc.multiplier CLI command
2026-11-10 08:11:33 -04:00
fdlamotte 62ae611afd Merge pull request #3753 from fdlamotte/gps_refactor
Big GPS refactor
2026-11-10 07:44:00 -04:00
fdlamotte 544514f5b4 Merge pull request #4 from AlexandrTyshchenko/feature/gps-guard-refactor
GPS: optional anti-spoofing guard for position and time (GPS_GUARD)
2026-11-09 18:02:06 -04:00
Olexandr Tyshchenko 8c7e1a8f5d GPS guard: gps guard on/off, saved in the GPS prefs 2026-11-09 23:50:48 +02:00
fdlamotte 519cf4c029 Merge pull request #3 from AlexandrTyshchenko/feature/gps-baud-autodetect-refactor
NmeaGpsDriver: optional UART baud rate detection from a per-board list
2026-11-09 17:38:29 -04:00
Olexandr Tyshchenko d72f67d37b GPS guard: save gps fence in the GPS prefs 2026-11-09 23:16:29 +02:00
Olexandr Tyshchenko cbfa66df9d NmeaGpsDriver: baud rates to probe come from the board, not a build flag 2026-11-09 22:59:47 +02:00
Olexandr Tyshchenko fbd20ac64b GpsGuard: let GPS correct a clock outside the plausible window 2026-11-09 22:54:18 +02:00
Olexandr Tyshchenko eea64ffb74 GPS guard: drop time force, it goes to a separate PR 2026-11-09 22:30:24 +02:00
Olexandr Tyshchenko 181041ac64 GpsGuard: do not show a stale time ok without a current trusted fix 2026-11-09 22:15:45 +02:00
Olexandr Tyshchenko d644f0a516 GPS: optional anti-spoofing guard for position and time (GPS_GUARD)
A spoofed GPS signal can move a fixed node anywhere and set its clock to
any time; the clock only moves forward, so a time pushed into the future
breaks timestamps and replay protection until fixed by hand.

With GPS_GUARD, MicroNMEALocationProvider asks a GpsGuard before a fix is
stored as the last fix (satellites, HDOP, optional region box, fence
around the configured position, jump speed, N stable fixes) and before
GPS time is written to the clock (trusted fix current, not before the
build date, small steps once the clock is valid, drift-sized after the
first sync). Without a trusted fix no live position is reported.

CLI in CommonGpsPrefs: 'gps guard', 'gps guard accept', 'gps fence',
'gps ref'; CommonCLI keeps the reference on set lat/lon and gps setloc,
resets the time anchor on manual clock sets and adds 'time force'.

Ported from #3736 onto the GpsDriver/LocationProvider refactor.
2026-11-09 20:43:09 +02:00
Olexandr Tyshchenko 4069f4809c NmeaGpsDriver: optional UART baud rate autodetection (GPS_BAUD_AUTODETECT)
Bytes arriving on the UART does not mean the baud rate is right: at the
wrong rate the parser only sees garbage and never gets a fix. Modules
such as the M5Stack GROVE GPS now default to 115200, while boards
configure 9600.

With GPS_BAUD_AUTODETECT, detect() probes common GNSS rates, starting
with the configured one, and keeps the first one that yields an NMEA
sentence with a valid checksum. The rate is stored in the driver, so
later power cycles reopen the UART with it. Without the flag nothing
changes.

Ported from #3729 onto the GpsDriver refactor.
2026-11-08 23:24:29 +02:00
Olexandr Tyshchenko da1828fd9d Companion: set/get adc.multiplier CLI command, persisted in prefs
Repeaters, room servers and sensors already let the battery ADC multiplier be tuned with 'set adc.multiplier' (CommonCLI). The companion firmware had no equivalent, so a board whose divider differs from the build default (common on DIY ProMicro / Faketec boards) always reported a wrong battery voltage.

Adds the same command to the companion CLI. The value is stored in the companion prefs (comp.adc_mult, 0 = board default) and applied at startup via MainBoard::setAdcMultiplier().
2026-11-08 18:07:58 +02:00
Maxwell 25c1867bbd Add min/max/avg history queries to repeaters
Move TimeSeriesData from simple_sensor into src/helpers and drive it with
monotonic uptime, so RTC changes cannot stall recording or break queries.
Keep the old RTCClock* overloads as deprecated for custom sensor sketches.

Record 24h of battery, noise floor, TX/RX airtime % and MCU temperature on
repeaters and answer the existing 0x04 min/max/avg request using the same
format as sensor nodes. No packets are sent by this feature.
REPEATER_HISTORY_SLOTS=0 removes it; default off on STM32/RP2040.

Add native tests for TimeSeriesData and document the request and channels.
2026-11-08 16:34:54 +02:00
Martin Boissonneault 666949fae4 rak4631: let the serial GPS switch the WB_IO2 rail (opt-in)
On a RAK19007 the RAK12501's supply is 3V3_S, switched by WB_IO2, so
gps off, periodic mode and shutdown left it powered. Pass WB_IO2 to the
NMEA driver as peripheralPower under GPS_RAIL_POWER_CONTROL, set by the
new RAK_4631_repeater_gps_power env. It is opt-in because the rail feeds
every slot module, and refused with ETHERNET_ENABLED (RAK13800).

The RAK12500 (I2C) driver keeps switching its own power pin, so this
only applies on the NMEA path.

RefCountedDigitalPin now sets OUTPUT on claim and release: WB_IO2 left
as an input (as probeRak12500() leaves it after a failed probe) keeps
3V3_S in its last state, so writing the latch alone did not cut it.

Measured with a KM003C, battery and panel out: gps off 40.5 -> 12.4 mA,
shutdown 29.7 -> 1.30 mA.
2026-11-08 08:47:35 -04:00
Florent 6eea5e7185 ui_task: let user choose if enter in gps screen toggles or triggers gps 2026-11-08 08:47:35 -04:00
Florent 6c9600e1e7 gps: Rework the CLI
- more consistency with other cli commands
- new format for gps fix
- gps format accepts postfix (s/m/d/h)
- documentation
2026-11-08 08:47:35 -04:00
Florent c06def2f41 gps: once command 2026-11-08 08:47:35 -04:00
Florent 38fa18efb7 gps: move detection into LocationProvider, remove the legacy constructor 2026-11-08 08:47:34 -04:00
Florent 839bb165fc gps: guard the clock sync against stalled and too old fixes 2026-11-08 08:47:34 -04:00
Florent d71a418748 gps: serial pin and configuration fixes (nrf52, meshadventurer, tracker_v1, heltec_tracker) 2026-11-08 08:47:34 -04:00
Níckolas Goline 22ce208e68 muzi_base: fix GPS UART pins and re-enable ATGM336H NMEA output
The refactor no longer calls Serial1.setPins() on nRF52, so Serial1 uses
PIN_SERIAL1_RX/TX directly. Those were swapped (the GPS transmits on
P0.20), so no data was received. Fix them and define PIN_GPS_TX/RX by the
gps module's side, as other variants do.

The ATGM336H keeps its NMEA output config across power cycles, and other
firmware may leave every sentence disabled. Re-enable GGA + RMC after each
power-up.
2026-11-08 08:47:34 -04:00
Florent d49621c805 gps: fix_stats command 2026-11-08 08:47:34 -04:00
Florent 3fd36e7ac6 gps: adapt ui-new and the sensor managers 2026-11-08 08:47:34 -04:00
Florent fa7ca3f418 rak_gps: simplify the rak driver, which now only handles i2c, for nmea use nmea driver directly 2026-11-08 08:47:34 -04:00
Florent 4ac1ed1d9e gps: periodic acquisition rules (timeout, sats and settle time), isEnabled renamed isActive 2026-11-08 08:47:34 -04:00
Florent 36b53d8de9 gps: cache the last fix in LocationProvider (isValid vs hasValidFix), fix and status commands 2026-11-08 08:47:34 -04:00
Florent fe6a47d0c9 gps: move the gps CLI to GpsPrefs and convert all targets 2026-11-08 08:47:34 -04:00
Florent df5a768c5d gps: add GpsDriver, handle the hardware and software switches in the drivers 2026-11-08 08:47:34 -04:00
Liam Cottle 4deb88dfe8 Merge pull request #3782 from anders-dc/fix/null-serial-on-boot-overwrite
Fix null _serial dereference when contacts are overwritten during boot
2026-11-09 01:02:31 +13:00
anders-dc 9fd02ff3bc fix(companion): guard null _serial in contact overwrite and full callbacks 2026-11-08 11:01:05 +01:00
Liam Cottle 056d264c63 Merge pull request #3780 from Blake-Latchford/docs/contributing-merge-factors
Incorporate PR Backtesting into CONTRIBUTING.md
2026-11-08 19:06:54 +13:00
Liam Cottle f9b1945bd3 Merge pull request #3637 from marcelverdult/upstream-candidate/meshtracker-x1-micronmea-dep
Fix MeshTracker X1 kiss_modem build: inherit MicroNMEA in every environment
2026-11-08 18:38:24 +13:00
fdlamotte 90a1aac123 Merge pull request #3774 from recrof/rpi2350-support
added rp2350 support, harmonized companions with other variants
2026-11-07 15:57:37 -04:00
Blake Latchford c2e9cba000 Incorporate PR Backtesting into CONTRIBUTING.md
I used an LLM to review what changes the likelihood of a PR getting merged. I then asked it to select potential changes based on its findings. I selected from those options and carefully guided the LLM to produce several pull requests. I fed the subset of PRs that failed back into the skill and discovered additional missing factors.
2026-11-07 10:31:14 -05:00