João Brázio
133ef6ff54
Validate set af input to prevent out-of-range airtime factors
2026-09-10 09:17:37 +01:00
João Brázio
9c592b7ace
Add isGPSDetected() capability probe to SensorManager
...
Lets applications know whether a GPS was actually detected
(EnvironmentSensorManager reports its gps_detected state), e.g. to
hide GPS-dependent UI when no receiver is attached.
2026-09-04 21:04:20 +01:00
João Brázio
a4d1854a77
Improve null checks and index validation in StaticPoolPacketManager
2026-09-04 21:03:06 +01:00
João Brázio
dbb2aeee00
Ensure command buffers stay NUL-terminated to prevent overflow
...
The serial command buffers must stay NUL-terminated within their
bounds: if they ever aren't, strlen() can return >= sizeof(command)
and the read loop would index past the buffer. Additionally, a full
buffer now becomes a completed line (end-of-line marker placed
inside the buffer, NUL terminator kept) instead of overwriting the
terminator and silently corrupting the buffer for the next pass.
Applies to the serial CLI readers of the repeater, room server,
sensor and secure chat examples, and to the CLI rescue reader of
the companion example.
2026-09-04 20:01:39 +01:00
João Brázio
6927c439c2
fix: update devcontainer features to use node instead of bun
2026-03-21 11:47:22 +00:00
João Brázio
21ea7b5321
Merge pull request #2 from weebl2000/2026/remote-lna
...
Make sure LR1110 builds
2026-03-16 09:55:00 +00:00
João Brázio
569bdeb083
Merge branch 'dev' into 2026/remote-lna
2026-03-16 09:40:10 +00:00
João Brázio
4bd027c79b
Merge remote-tracking branch 'upstream/dev' into 2026/remote-lna
2026-03-16 09:37:55 +00:00
João Brázio
861b5cfcb9
Add USE_SX1262 flag to multiple platformio.ini configurations
2026-03-16 09:34:12 +00:00
João Brázio
f74dc308e8
devcontainer: add bun feature and update postCreateCommand
2026-03-07 12:49:25 +00:00
João Brázio
ed78c50eee
Add setRxBoostedGain method declaration and implementation for SX1262/SX1268
2026-03-05 18:48:40 +00:00
João Brázio
2e52efb209
Remove unused RX boosted gain mode functions and related preprocessor directives across multiple variants
2026-03-05 18:38:57 +00:00
João Brázio
e8b758532c
Rename sx126x_rx_boosted_gain to rx_boosted_gain
2026-03-05 18:14:47 +00:00
João Brázio
a5dc732fb0
Merge remote-tracking branch 'upstream/dev' into 2026/remote-lna
2026-03-05 17:21:38 +00:00
João Brázio
75508ac10b
Merge branch 'dev' into 2026/remote-lna
2026-02-27 10:32:14 +00:00
João Brázio
39b94e3544
Merge pull request #1 from weebl2000/2026/remote-lna
...
Fix remote LNA toggle bugs: correct register comparison, add missing implementation & wire up companion radio
2026-02-27 10:11:46 +00:00
João Brázio
dba7c27e77
Fix typo with USE_SX1262/SX1268
2026-02-10 15:05:10 +00:00
João Brázio
072d73b0f2
Implement remote lna toggle cli cmd
2026-02-10 15:02:23 +00:00
João Brázio
3c7f9f2bee
Refactor environment names and build flags for RAK variants
2026-02-07 21:26:28 +00:00
João Brázio
b8ce314278
Merge remote-tracking branch 'upstream/dev' into 2026/t114-sensors
2026-02-05 13:36:22 +00:00
João Brázio
0b822284be
Refactor Heltec T114 sensor management
2026-02-05 13:35:04 +00:00
João Brázio
499ee0ef23
Merge remote-tracking branch 'pikolin/T114_sensors' into 2026/t114-sensors
2026-02-05 12:57:27 +00:00
João Brázio
c2a0441201
Revert "Merge pull request #1428 from etienn01/update-t114-i2c"
...
This reverts commit 8bafdae3bd , reversing
changes made to b777ffc865 .
This patch needs to be reverted because it boot freezes t114 433Mhz variant.
2026-01-31 13:45:58 +00:00
João Brázio
f5ad70559a
Fix: Correct validation logic in isValidName function
2026-01-27 19:36:12 +00:00
João Brázio
69fb943365
Update runArgs in devcontainer.json
2026-01-27 16:57:54 +00:00
João Brázio
e2582f9a4e
Add RS232 bridge environment configuration for ProMicro
2025-12-28 20:04:57 +00:00
João Brázio
7a9c8bc7fe
Refactor devcontainer runArgs
2025-12-12 17:24:28 +00:00
João Brázio
5382f72fec
Bridge: Add t114 rs232 targets
2025-12-02 10:31:24 +00:00
João Brázio
e83301bcde
Bridge: Fix RAK4631 serial2 GPS conflict
2025-12-02 10:30:45 +00:00
João Brázio
d974d6b37d
Rename RS232 bridge environments and update build flags for Serial1 and Serial2
2025-11-25 16:19:28 +00:00
João Brázio
642e06361b
Add RAK4631 support for rs232 bridge
2025-11-25 11:53:21 +00:00
João Brázio
b9e5fd2844
Add devcontainer configuration for vscode
2025-11-23 14:25:38 +00:00
João Brázio
67794e95b2
Add BRIDGE_DEBUG flag
2025-10-06 12:57:32 +01:00
João Brázio
1de66be8a3
Refactor debug logging across bridge implementations
2025-10-06 12:57:04 +01:00
João Brázio
707b00d10b
Add bridge type command to CLI for reporting bridge configuration
2025-10-05 11:48:05 +01:00
João Brázio
c011dc7a97
Remove WITH_ESPNOW_BRIDGE_SECRET definition from platformio.ini files and update documentation to use _prefs->bridge_secret
2025-10-03 00:23:09 +01:00
João Brázio
6c793a02f1
Bridge: enhance CLI configuration options
2025-10-03 00:20:09 +01:00
João Brázio
6ff308584e
WITH_BRIDGE was not implementing setBridgeState()
2025-10-02 09:47:00 +01:00
João Brázio
599c132326
Minor fixes
2025-09-24 16:46:03 +01:00
João Brázio
0a7cbf5e41
Add bridge management CLI
2025-09-24 16:30:00 +01:00
João Brázio
5ec27c879c
Normalize repeater target names
2025-09-10 23:56:07 +01:00
João Brázio
c3f944418a
Add BRIDGE_DELAY as a buffer to prevent immediate processing conflicts in the mesh network
2025-09-08 20:21:33 +01:00
João Brázio
23592e3c4c
Add ESPNow bridge configurations for all ESP32 targets
2025-09-08 18:49:33 +01:00
João Brázio
690981b14e
Refactor bridge packet handling to use common magic number and size constants
2025-09-08 18:16:50 +01:00
João Brázio
af31eed48f
Merge remote-tracking branch 'upstream/dev' into jbrazio/2025_3f11ad35
2025-09-08 02:04:14 +01:00
João Brázio
91e659a17d
Refactor bridge implementations to inherit from BridgeBase
2025-09-08 02:03:08 +01:00
João Brázio
e078961714
Refactor ESPNowBridge packet handling to use 2-byte magic header and improve packet size validation
2025-09-08 01:20:54 +01:00
João Brázio
e362c807bc
Rename RS232 bridge environments
2025-09-07 21:46:51 +01:00
João Brázio
527f4bcc1a
Support ESPNow and improve documentation
2025-09-07 21:39:54 +01:00
João Brázio
e2302f9942
Delete the variant-specific NullDisplayDriver.h and update target.h to use the shared implementation from #735
2025-09-05 17:59:59 +01:00
João Brázio
357ecfca5b
Merge remote-tracking branch 'upstream/dev' into jbrazio/2025_b5813561
2025-09-05 17:54:45 +01:00
João Brázio
760b5b07a6
Remove retransmit check for RS232 bridge in logTx
...
Since the flag is preserved and respected by the mesh processing on the receiving end, there's no risk of these packets being retransmitted endlessly.
2025-09-05 14:49:06 +01:00
João Brázio
ffde4ee439
Rename SerialBridge to RS232Bridge
2025-09-05 11:28:40 +01:00
João Brázio
59957e2da5
Add nRF52 support and refactor packet handling
...
This commit introduces several improvements to the SerialBridge helper:
- Adds support for the nRF52 platform by implementing the `setPins` configuration.
- Corrects the type cast for the RP2040 platform from `HardwareSerial` to `SerialUART`.
- Refactors packet deserialization to use a new `Packet::readFrom()` method instead of a direct `memcpy`, improving encapsulation.
- Updates the packet length validation to use the more appropriate `MAX_TRANS_UNIT` constant.
2025-09-05 09:22:06 +01:00
João Brázio
e25282b9ee
Add serial logging for TX/RX packets
2025-09-05 02:07:26 +01:00
João Brázio
c8b75dfc3b
Rework packet serialization and parsing
2025-09-05 01:50:50 +01:00
João Brázio
b329ff6131
Prevent packet loops and duplicates
...
Implement a "seen packets" table to track packets that have already been processed by the serial bridge.
This prevents packets from being re-transmitted over the serial link if they have already been seen, and it stops inbound packets from serial from being re-injected into the mesh if they are duplicates.
Duplicate inbound packets are now freed to prevent memory leaks.
2025-09-04 23:50:13 +01:00
João Brázio
4aefe43209
Extract serial bridge into dedicated classes
...
This commit refactors the serial bridge functionality out of the `simple_repeater` example and into a more reusable, object-oriented structure.
An `AbstractBridge` interface has been introduced, along with a concrete `SerialBridge` implementation. This encapsulates all the logic for packet framing, checksum calculation, and serial communication, cleaning up the main example file significantly.
The `simple_repeater` example now instantiates and uses the `SerialBridge` class, resulting in better separation of concerns and improved code organization.
2025-09-04 23:43:05 +01:00
João Brázio
76b468f568
Refactor display driver inclusion for Heltec T114 to support configurations without a display
2025-09-04 13:26:48 +01:00
João Brázio
37c8d6d359
Add bridge support for WSL3 board
2025-09-01 10:53:51 +01:00
João Brázio
13b67f0e04
Merge remote-tracking branch 'upstream/dev' into jbrazio/2025_3f11ad35
2025-09-01 10:47:19 +01:00
João Brázio
e4d1dec2f6
Increase power limit for Heltec v3 433 MHz
2025-08-25 17:44:14 +01:00
João Brázio
61212757bd
Merge remote-tracking branch 'origin/dev' into jbrazio/2025_3f11ad35
2025-08-22 23:00:35 +01:00
João Brázio
885a04b4db
Merge remote-tracking branch 'origin/dev' into jbrazio/2025_3f11ad35
2025-07-29 00:31:52 +01:00
João Brázio
9e342de490
Refactor serial bridge handling
2025-07-09 11:03:35 +01:00
João Brázio
6d6396c589
More robust handling of pkt len
2025-07-08 21:45:49 +01:00
João Brázio
f36fb64f65
Add null check for packet allocation and clean up Dispatcher
2025-07-08 16:02:10 +01:00
João Brázio
30de4db0a4
Remove serial bridge implementation and implement simplified version directly in the repeater source code.
2025-07-08 14:04:21 +01:00
João Brázio
abcb1797b7
Merge remote-tracking branch 'upstream/dev' into jbrazio/2025_3f11ad35
2025-07-04 11:57:09 +01:00
João Brázio
f0754674b1
Add config flags to variants
2025-06-29 16:28:11 +01:00
João Brázio
20827ca901
Serial bridge implementation
2025-06-27 20:16:14 +01:00
João Brázio
e5c2857d52
Update VBAT schematic
2025-06-16 21:28:59 +01:00
João Brázio
7465afb0b9
VBAT schematic
2025-06-16 19:51:53 +01:00
João Brázio
aab690a3a3
Update SX126X_CURRENT_LIMIT
2025-06-16 16:57:43 +01:00
João Brázio
5ff75e303d
Rename LED pin
2025-06-16 02:01:16 +01:00
João Brázio
5806b39ef6
Set default upload protocol
2025-06-16 02:01:04 +01:00
João Brázio
253fcba9c7
Waveshare RP2040-LoRa board support
2025-06-15 23:48:49 +01:00