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