From 914001344f1e30a3698e8ee06a4f3c8f39890706 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 28 Sep 2025 23:32:04 +1300 Subject: [PATCH 1/5] add missing build flags for failed builds --- variants/heltec_e213/platformio.ini | 2 ++ variants/heltec_e290/platformio.ini | 2 ++ variants/heltec_t190/platformio.ini | 2 ++ variants/heltec_wireless_paper/platformio.ini | 2 ++ 4 files changed, 8 insertions(+) diff --git a/variants/heltec_e213/platformio.ini b/variants/heltec_e213/platformio.ini index 857307e1..c703539f 100644 --- a/variants/heltec_e213/platformio.ini +++ b/variants/heltec_e213/platformio.ini @@ -86,6 +86,8 @@ build_flags = -D ADVERT_NAME='"Heltec E213 Repeater"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 + -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 build_src_filter = ${Heltec_E213_base.build_src_filter} + +<../examples/simple_repeater> diff --git a/variants/heltec_e290/platformio.ini b/variants/heltec_e290/platformio.ini index 1f31e558..c912998b 100644 --- a/variants/heltec_e290/platformio.ini +++ b/variants/heltec_e290/platformio.ini @@ -82,6 +82,8 @@ build_flags = -D ADVERT_NAME='"Heltec E290 Repeater"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 + -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 build_src_filter = ${Heltec_E290_base.build_src_filter} + +<../examples/simple_repeater> diff --git a/variants/heltec_t190/platformio.ini b/variants/heltec_t190/platformio.ini index 3c83bff0..bda689f4 100644 --- a/variants/heltec_t190/platformio.ini +++ b/variants/heltec_t190/platformio.ini @@ -88,6 +88,8 @@ build_flags = -D ADVERT_NAME='"Heltec T190 Repeater"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 + -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 build_src_filter = ${Heltec_T190_base.build_src_filter} +<../examples/simple_repeater> lib_deps = diff --git a/variants/heltec_wireless_paper/platformio.ini b/variants/heltec_wireless_paper/platformio.ini index 585fbbc9..8aa075f0 100644 --- a/variants/heltec_wireless_paper/platformio.ini +++ b/variants/heltec_wireless_paper/platformio.ini @@ -61,6 +61,8 @@ build_flags = -D ADVERT_NAME='"Heltec WP Repeater"' -D ADVERT_LAT=0.0 -D ADVERT_LON=0.0 + -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 build_src_filter = ${Heltec_Wireless_Paper_base.build_src_filter} + +<../examples/simple_repeater> From fc0cf5f3708f1283017fe9aa430f85e00647e0e8 Mon Sep 17 00:00:00 2001 From: csrutil Date: Mon, 29 Sep 2025 07:48:26 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=94=A7=20chore:=20update=20tiny=5Frel?= =?UTF-8?q?ay=20platformio.ini=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add ADVERT_LAT and ADVERT_LON definitions for both repeater and sensor variants - Set MAX_NEIGHBOURS to 50 for improved network capacity - Fix repeater build source filter path to include entire directory --- variants/tiny_relay/platformio.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/variants/tiny_relay/platformio.ini b/variants/tiny_relay/platformio.ini index 787d99e4..ed178727 100644 --- a/variants/tiny_relay/platformio.ini +++ b/variants/tiny_relay/platformio.ini @@ -19,15 +19,21 @@ build_src_filter = ${stm32_base.build_src_filter} extends = Tiny_Relay build_flags = ${Tiny_Relay.build_flags} -D ADVERT_NAME='"tiny_relay Repeater"' + -D ADVERT_LAT=0.0 + -D ADVERT_LON=0.0 -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 build_src_filter = ${Tiny_Relay.build_src_filter} - +<../examples/simple_repeater/main.cpp> + +<../examples/simple_repeater> [env:Tiny_Relay_sensor] extends = Tiny_Relay build_flags = ${Tiny_Relay.build_flags} -D ADVERT_NAME='"tiny_relay Sensor"' + -D ADVERT_LAT=0.0 + -D ADVERT_LON=0.0 -D ADMIN_PASSWORD='"password"' + -D MAX_NEIGHBOURS=50 build_src_filter = ${Tiny_Relay.build_src_filter} +<../examples/simple_sensor> From ec48e6acfcb2167482cf959321cdf8675aef0ccb Mon Sep 17 00:00:00 2001 From: liamcottle Date: Mon, 29 Sep 2025 15:24:25 +1300 Subject: [PATCH 3/5] added 'board' cli command to get board name --- src/helpers/CommonCLI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/CommonCLI.cpp b/src/helpers/CommonCLI.cpp index 7125e5b0..68acdf2b 100644 --- a/src/helpers/CommonCLI.cpp +++ b/src/helpers/CommonCLI.cpp @@ -399,6 +399,8 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch sprintf(reply, "File system erase: %s", s ? "OK" : "Err"); } else if (memcmp(command, "ver", 3) == 0) { sprintf(reply, "%s (Build: %s)", _callbacks->getFirmwareVer(), _callbacks->getBuildDate()); + } else if (memcmp(command, "board", 5) == 0) { + sprintf(reply, "%s", _board->getManufacturerName()); } else if (memcmp(command, "log start", 9) == 0) { _callbacks->setLoggingOn(true); strcpy(reply, " logging on"); From 6a1f8d65c992012d42141d354c03124e0efcabf6 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 30 Sep 2025 00:31:10 +1300 Subject: [PATCH 4/5] add missing null terminator for login payload --- examples/simple_repeater/MyMesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/simple_repeater/MyMesh.cpp b/examples/simple_repeater/MyMesh.cpp index 8dbb4565..df945d45 100644 --- a/examples/simple_repeater/MyMesh.cpp +++ b/examples/simple_repeater/MyMesh.cpp @@ -405,6 +405,7 @@ void MyMesh::onAnonDataRecv(mesh::Packet *packet, const uint8_t *secret, const m uint32_t timestamp; memcpy(×tamp, data, 4); + data[len] = 0; // ensure null terminator uint8_t reply_len = handleLoginReq(sender, secret, timestamp, &data[4]); if (reply_len == 0) return; // invalid request From 8d8b9a614107cb4372c3d9c255c88943779008e4 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Thu, 2 Oct 2025 12:52:19 +1000 Subject: [PATCH 5/5] * ver 1.9.1 --- examples/companion_radio/MyMesh.h | 4 ++-- examples/simple_repeater/MyMesh.h | 4 ++-- examples/simple_room_server/MyMesh.h | 4 ++-- examples/simple_sensor/SensorMesh.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/companion_radio/MyMesh.h b/examples/companion_radio/MyMesh.h index d2a66499..e6400871 100644 --- a/examples/companion_radio/MyMesh.h +++ b/examples/companion_radio/MyMesh.h @@ -8,11 +8,11 @@ #define FIRMWARE_VER_CODE 7 #ifndef FIRMWARE_BUILD_DATE -#define FIRMWARE_BUILD_DATE "28 Sep 2025" +#define FIRMWARE_BUILD_DATE "2 Oct 2025" #endif #ifndef FIRMWARE_VERSION -#define FIRMWARE_VERSION "v1.9.0" +#define FIRMWARE_VERSION "v1.9.1" #endif #if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM) diff --git a/examples/simple_repeater/MyMesh.h b/examples/simple_repeater/MyMesh.h index d5e6840b..05a8d13b 100644 --- a/examples/simple_repeater/MyMesh.h +++ b/examples/simple_repeater/MyMesh.h @@ -65,11 +65,11 @@ struct NeighbourInfo { }; #ifndef FIRMWARE_BUILD_DATE - #define FIRMWARE_BUILD_DATE "28 Sep 2025" + #define FIRMWARE_BUILD_DATE "2 Oct 2025" #endif #ifndef FIRMWARE_VERSION - #define FIRMWARE_VERSION "v1.9.0" + #define FIRMWARE_VERSION "v1.9.1" #endif #define FIRMWARE_ROLE "repeater" diff --git a/examples/simple_room_server/MyMesh.h b/examples/simple_room_server/MyMesh.h index 468692b5..b2df60c3 100644 --- a/examples/simple_room_server/MyMesh.h +++ b/examples/simple_room_server/MyMesh.h @@ -25,11 +25,11 @@ /* ------------------------------ Config -------------------------------- */ #ifndef FIRMWARE_BUILD_DATE - #define FIRMWARE_BUILD_DATE "28 Sep 2025" + #define FIRMWARE_BUILD_DATE "2 Oct 2025" #endif #ifndef FIRMWARE_VERSION - #define FIRMWARE_VERSION "v1.9.0" + #define FIRMWARE_VERSION "v1.9.1" #endif #ifndef LORA_FREQ diff --git a/examples/simple_sensor/SensorMesh.h b/examples/simple_sensor/SensorMesh.h index 0b7365f4..d26bcb14 100644 --- a/examples/simple_sensor/SensorMesh.h +++ b/examples/simple_sensor/SensorMesh.h @@ -32,11 +32,11 @@ #define PERM_RECV_ALERTS_HI (1 << 7) // high priority alerts #ifndef FIRMWARE_BUILD_DATE - #define FIRMWARE_BUILD_DATE "28 Sep 2025" + #define FIRMWARE_BUILD_DATE "2 Oct 2025" #endif #ifndef FIRMWARE_VERSION - #define FIRMWARE_VERSION "v1.9.0" + #define FIRMWARE_VERSION "v1.9.1" #endif #define FIRMWARE_ROLE "sensor"