feat: add Bluetooth-controlled LoRa OTA
Add the framed BLE mOTA transport and companion control path, complete the full-profile build and runtime fixes, and document and test the OTA workflow.
This commit is contained in:
1 parent
91870e4bb0
commit
e5fd77e53f
79 files changed
+3178
-304
No files matched your search
@@ -79,6 +79,12 @@ lib_deps =
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
bakercp/CRC32 @ ^2.0.0
|
||||
|
||||
[env:Heltec_E290_companion_usb_ble]
|
||||
extends = env:Heltec_E290_companion_usb
|
||||
build_flags =
|
||||
${env:Heltec_E290_companion_usb.build_flags}
|
||||
-D BLE_PIN_CODE=123456
|
||||
|
||||
[env:Heltec_E290_repeater]
|
||||
extends = Heltec_E290_base
|
||||
build_flags =
|
||||
|
||||
@@ -63,6 +63,7 @@ upload_protocol = nrfutil
|
||||
[env:Heltec_t096_repeater]
|
||||
extends = Heltec_t096
|
||||
build_src_filter = ${Heltec_t096.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
build_flags =
|
||||
@@ -74,6 +75,11 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
; -D POWERSAVING_DEBUG=1
|
||||
@@ -82,6 +88,7 @@ build_flags =
|
||||
[env:Heltec_t096_repeater_lora_ota_no_external_sensors]
|
||||
extends = Heltec_t096
|
||||
build_src_filter = ${Heltec_t096.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
build_flags =
|
||||
${Heltec_t096.build_flags}
|
||||
@@ -92,6 +99,11 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
lib_deps =
|
||||
${nrf52_lora_ota.lib_deps}
|
||||
${nrf52_no_external_sensors_keep_gps.lib_deps}
|
||||
@@ -109,6 +121,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
; -D BRIDGE_DEBUG=1
|
||||
@@ -131,6 +144,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
build_src_filter = ${Heltec_t096.build_src_filter}
|
||||
|
||||
@@ -50,6 +50,7 @@ upload_protocol = nrfutil
|
||||
[env:Heltec_t114_without_display_repeater]
|
||||
extends = Heltec_t114
|
||||
build_src_filter = ${Heltec_t114.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
build_flags =
|
||||
${Heltec_t114.build_flags}
|
||||
@@ -58,6 +59,11 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
|
||||
@@ -71,6 +77,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
; -D BRIDGE_DEBUG=1
|
||||
@@ -163,6 +170,7 @@ upload_protocol = nrfutil
|
||||
[env:Heltec_t114_repeater]
|
||||
extends = Heltec_t114_with_display
|
||||
build_src_filter = ${Heltec_t114_with_display.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
build_flags =
|
||||
@@ -174,6 +182,11 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
; -D POWERSAVING_DEBUG=1
|
||||
@@ -182,6 +195,7 @@ build_flags =
|
||||
[env:Heltec_t114_repeater_lora_ota_no_external_sensors]
|
||||
extends = Heltec_t114_with_display
|
||||
build_src_filter = ${Heltec_t114_with_display.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
build_flags =
|
||||
${Heltec_t114_with_display.build_flags}
|
||||
@@ -192,6 +206,11 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
lib_deps =
|
||||
${nrf52_lora_ota.lib_deps}
|
||||
${nrf52_no_external_sensors_keep_gps.lib_deps}
|
||||
@@ -207,6 +226,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=10
|
||||
; -D BRIDGE_DEBUG=1
|
||||
|
||||
@@ -83,6 +83,12 @@ lib_deps =
|
||||
${Heltec_T190_base.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
[env:Heltec_T190_companion_radio_usb_ble_]
|
||||
extends = env:Heltec_T190_companion_radio_usb_
|
||||
build_flags =
|
||||
${env:Heltec_T190_companion_radio_usb_.build_flags}
|
||||
-D BLE_PIN_CODE=123456
|
||||
|
||||
[env:Heltec_T190_repeater_]
|
||||
extends = Heltec_T190_base
|
||||
build_flags =
|
||||
|
||||
@@ -48,6 +48,11 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=5
|
||||
-D WITH_RS232_BRIDGE_TX=6
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
extra_scripts =
|
||||
@@ -57,6 +62,7 @@ build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<helpers/ota/*.cpp>
|
||||
+<helpers/ota/detools/detools.c>
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
-<helpers/bridges/MQTTBridge.cpp>
|
||||
-<helpers/MQTTMessageBuilder.cpp>
|
||||
@@ -77,6 +83,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=5
|
||||
-D WITH_RS232_BRIDGE_TX=6
|
||||
; -D BRIDGE_DEBUG=1
|
||||
@@ -391,9 +398,15 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=5
|
||||
-D WITH_RS232_BRIDGE_TX=6
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${Heltec_lora32_v3.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
-<helpers/bridges/MQTTBridge.cpp>
|
||||
-<helpers/MQTTMessageBuilder.cpp>
|
||||
@@ -413,6 +426,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=5
|
||||
-D WITH_RS232_BRIDGE_TX=6
|
||||
; -D BRIDGE_DEBUG=1
|
||||
|
||||
@@ -56,6 +56,7 @@ extends = LilyGo_TLora_V2_1_1_6
|
||||
; upload handler instead of ElegantOTA on this ultra-tight 4 MB target.
|
||||
board_build.partitions = variants/lilygo_tlora_v2_1/dual_ota_1984k.csv
|
||||
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
build_flags =
|
||||
${LilyGo_TLora_V2_1_1_6.build_flags}
|
||||
@@ -67,6 +68,11 @@ build_flags =
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D FLOOD_CHANNEL_SCOPE_SLOTS=4 ; ultra-tight classic ESP32: three wildcards plus one exact channel
|
||||
-D LIGHTWEIGHT_WIFI_OTA=1
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=34
|
||||
-D WITH_RS232_BRIDGE_TX=25
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
; -D CORE_DEBUG_LEVEL=3
|
||||
@@ -296,6 +302,7 @@ build_flags =
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D FLOOD_CHANNEL_SCOPE_SLOTS=31 ; classic ESP32 DRAM cannot fit the default 255 with bridge logging
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=34
|
||||
-D WITH_RS232_BRIDGE_TX=25
|
||||
-D DISABLE_LORA_OTA=1 ; RS232 bridge plus LoRa OTA overflows classic ESP32 DRAM
|
||||
|
||||
@@ -42,6 +42,7 @@ build_src_filter = ${Promicro.build_src_filter}
|
||||
+<../examples/simple_repeater>
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<helpers/ui/MomentaryButton.cpp>
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
build_flags =
|
||||
${Promicro.build_flags}
|
||||
-D ADVERT_NAME='"ProMicro Repeater"'
|
||||
@@ -50,6 +51,12 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D DISPLAY_CLASS=SSD1306Display
|
||||
-D WITH_RS232_BRIDGE=Serial1
|
||||
-D WITH_RS232_BRIDGE_UART=1
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
-D WITH_RS232_BRIDGE_GPS_CONFLICT_UART=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
lib_deps = ${Promicro.lib_deps}
|
||||
@@ -71,6 +78,7 @@ build_flags =
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D DISPLAY_CLASS=SSD1306Display
|
||||
-D WITH_RS232_BRIDGE=Serial1
|
||||
-D WITH_RS232_BRIDGE_UART=1
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
|
||||
-UENV_INCLUDE_GPS
|
||||
|
||||
@@ -44,9 +44,15 @@ build_flags = ${rak11310.build_flags}
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=8
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${rak11310.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
[env:RAK_11310_repeater_bridge_rs232]
|
||||
@@ -58,6 +64,7 @@ build_flags = ${rak11310.build_flags}
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=8
|
||||
; -D BRIDGE_DEBUG=1
|
||||
|
||||
@@ -47,9 +47,15 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=5
|
||||
-D WITH_RS232_BRIDGE_TX=6
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${rak3112.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
lib_deps =
|
||||
${rak3112.lib_deps}
|
||||
@@ -66,6 +72,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=5
|
||||
-D WITH_RS232_BRIDGE_TX=6
|
||||
; -D BRIDGE_DEBUG=1
|
||||
|
||||
@@ -55,12 +55,23 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL2_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL2_TX
|
||||
-D WITH_RS232_BRIDGE_ALT=Serial1
|
||||
-D WITH_RS232_BRIDGE_ALT_UART=1
|
||||
-D WITH_RS232_BRIDGE_ALT_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_ALT_TX=PIN_SERIAL1_TX
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
-D WITH_RS232_BRIDGE_GPS_CONFLICT_UART=1
|
||||
; -D OTA_DEBUG=1 ; bring-up: trace OTA fetch (REQ / block / page-flush) over Serial
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
; -D POWERSAVING_DEBUG=1
|
||||
build_src_filter = ${rak4631.build_src_filter}
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
; Shared sources remain inherited, but ENABLE_OTA is explicitly undefined for this oversized role.
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
@@ -104,11 +115,22 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL2_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL2_TX
|
||||
-D WITH_RS232_BRIDGE_ALT=Serial1
|
||||
-D WITH_RS232_BRIDGE_ALT_UART=1
|
||||
-D WITH_RS232_BRIDGE_ALT_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_ALT_TX=PIN_SERIAL1_TX
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
-D WITH_RS232_BRIDGE_GPS_CONFLICT_UART=1
|
||||
build_src_filter = ${nrf52_lora_ota.build_src_filter}
|
||||
+<../variants/rak4631>
|
||||
+<helpers/sensors/EnvironmentSensorManager.cpp>
|
||||
+<helpers/ui/SSD1306Display.cpp>
|
||||
+<helpers/ui/MomentaryButton.cpp>
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
lib_deps =
|
||||
${nrf52_lora_ota.lib_deps}
|
||||
@@ -150,6 +172,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial1
|
||||
-D WITH_RS232_BRIDGE_UART=1
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
|
||||
-UENV_INCLUDE_GPS
|
||||
@@ -176,6 +199,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial1
|
||||
-D WITH_RS232_BRIDGE_UART=1
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
|
||||
build_src_filter = ${rak4631.build_src_filter}
|
||||
@@ -200,6 +224,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL2_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL2_TX
|
||||
-UENV_INCLUDE_GPS
|
||||
@@ -226,6 +251,7 @@ build_flags =
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL2_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL2_TX
|
||||
build_src_filter = ${rak4631.build_src_filter}
|
||||
@@ -332,6 +358,20 @@ lib_deps =
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
https://github.com/RAKWireless/RAK13800-W5100S/archive/1.0.2.zip
|
||||
|
||||
[env:RAK_4631_companion_radio_full]
|
||||
extends = env:RAK_4631_companion_radio_usb
|
||||
build_flags =
|
||||
${env:RAK_4631_companion_radio_usb.build_flags}
|
||||
-D ETHERNET_ENABLED=1
|
||||
-D ETHERNET_USE_RAK13800
|
||||
-D ETHERNET_CLASS=RAK13800EthernetInterface
|
||||
build_src_filter = ${env:RAK_4631_companion_radio_usb.build_src_filter}
|
||||
+<helpers/ethernet/*.cpp>
|
||||
+<helpers/ethernet/RAK13800/>
|
||||
lib_deps =
|
||||
${env:RAK_4631_companion_radio_usb.lib_deps}
|
||||
https://github.com/RAKWireless/RAK13800-W5100S/archive/1.0.2.zip
|
||||
|
||||
|
||||
[env:RAK_4631_companion_radio_ble]
|
||||
extends = rak4631
|
||||
|
||||
@@ -217,6 +217,13 @@ lib_deps =
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
end2endzone/NonBlockingRTTTL@^1.3.0
|
||||
|
||||
[env:ThinkNode_M2_companion_radio_full]
|
||||
extends = env:ThinkNode_M2_companion_radio_wifi
|
||||
build_flags =
|
||||
${env:ThinkNode_M2_companion_radio_wifi.build_flags}
|
||||
-D SERIAL_TX=43
|
||||
-D SERIAL_RX=44
|
||||
|
||||
[env:ThinkNode_M2_kiss_modem]
|
||||
extends = ThinkNode_M2
|
||||
build_flags = ${ThinkNode_M2.build_flags}
|
||||
|
||||
@@ -233,6 +233,13 @@ lib_deps =
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
end2endzone/NonBlockingRTTTL@^1.3.0
|
||||
|
||||
[env:ThinkNode_M5_companion_radio_full]
|
||||
extends = env:ThinkNode_M5_companion_radio_wifi
|
||||
build_flags =
|
||||
${env:ThinkNode_M5_companion_radio_wifi.build_flags}
|
||||
-D SERIAL_TX=43
|
||||
-D SERIAL_RX=44
|
||||
|
||||
[env:ThinkNode_M5_kiss_modem]
|
||||
extends = ThinkNode_M5
|
||||
build_src_filter = ${ThinkNode_M5.build_src_filter}
|
||||
|
||||
@@ -175,6 +175,17 @@ lib_deps = ${ThinkNode_M7.lib_deps}
|
||||
${ThinkNode_M7_ethernet.lib_deps}
|
||||
densaugeo/base64 @ ~1.4.0
|
||||
|
||||
[env:ThinkNode_M7_companion_radio_full]
|
||||
extends = env:ThinkNode_M7_companion_radio_wifi
|
||||
build_flags =
|
||||
${env:ThinkNode_M7_companion_radio_wifi.build_flags}
|
||||
${ThinkNode_M7_ethernet.build_flags}
|
||||
build_src_filter = ${env:ThinkNode_M7_companion_radio_wifi.build_src_filter}
|
||||
${ThinkNode_M7_ethernet.build_src_filter}
|
||||
lib_deps =
|
||||
${env:ThinkNode_M7_companion_radio_wifi.lib_deps}
|
||||
${ThinkNode_M7_ethernet.lib_deps}
|
||||
|
||||
[env:ThinkNode_M7_kiss_modem]
|
||||
extends = ThinkNode_M7
|
||||
build_src_filter = ${ThinkNode_M7.build_src_filter}
|
||||
|
||||
@@ -43,9 +43,15 @@ build_flags = ${waveshare_rp2040_lora.build_flags}
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=8
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
; -D MESH_PACKET_LOGGING=1
|
||||
; -D MESH_DEBUG=1
|
||||
build_src_filter = ${waveshare_rp2040_lora.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater>
|
||||
|
||||
[env:waveshare_rp2040_lora_repeater_bridge_rs232]
|
||||
@@ -57,6 +63,7 @@ build_flags = ${waveshare_rp2040_lora.build_flags}
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=9
|
||||
-D WITH_RS232_BRIDGE_TX=8
|
||||
; -D BRIDGE_DEBUG=1
|
||||
|
||||
@@ -78,6 +78,7 @@ build_flags = ${lora_e5.build_flags}
|
||||
-D FLOOD_CHANNEL_SCOPE_SLOTS=7
|
||||
-D ENABLE_HWSERIAL2
|
||||
-D WITH_RS232_BRIDGE=Serial2
|
||||
-D WITH_RS232_BRIDGE_UART=2
|
||||
-D WITH_RS232_BRIDGE_RX=PA3
|
||||
-D WITH_RS232_BRIDGE_TX=PA2
|
||||
build_src_filter = ${lora_e5.build_src_filter}
|
||||
|
||||
@@ -213,7 +213,14 @@ build_flags =
|
||||
-D ADVERT_LON=0.0
|
||||
-D ADMIN_PASSWORD='"password"'
|
||||
-D MAX_NEIGHBOURS=50
|
||||
-D WITH_RS232_BRIDGE=Serial1
|
||||
-D WITH_RS232_BRIDGE_UART=1
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
|
||||
-D BRIDGE_MAX_BAUD=500000
|
||||
-D RS232_BRIDGE_MERGED=1
|
||||
build_src_filter = ${solarxiao.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
+<../examples/simple_repeater/*.cpp>
|
||||
|
||||
[env:solarxiao_33S_repeater]
|
||||
@@ -236,9 +243,11 @@ build_flags =
|
||||
${env:solarxiao_30S_repeater.build_flags}
|
||||
-D ADVERT_NAME='"SolarXiao 30S RS232"'
|
||||
-D WITH_RS232_BRIDGE=Serial1
|
||||
-D WITH_RS232_BRIDGE_UART=1
|
||||
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
|
||||
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
|
||||
-D BRIDGE_MAX_BAUD=500000
|
||||
-D RS232_BRIDGE_DEFAULT_ON=1
|
||||
build_src_filter = ${env:solarxiao_30S_repeater.build_src_filter}
|
||||
+<helpers/bridges/RS232Bridge.cpp>
|
||||
|
||||
|
||||
@@ -313,6 +313,8 @@ build_unflags = ${esp32_s3_dual_cdc_full.build_unflags}
|
||||
build_flags =
|
||||
${env:Xiao_S3_WIO_companion_radio_wifi.build_flags}
|
||||
${esp32_s3_dual_cdc_full.build_flags}
|
||||
-D SERIAL_TX=D6
|
||||
-D SERIAL_RX=D7
|
||||
|
||||
[env:Xiao_S3_WIO_sensor]
|
||||
extends = Xiao_S3_WIO
|
||||
|
||||
Reference in new issue
Block a user