Compare commits
42 Commits
v1.13.0-ev
...
v1.12.0_0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
965a7aac20 | ||
|
|
6d952051a1 | ||
|
|
3a5d2cae44 | ||
|
|
3bbd6207ec | ||
|
|
cbca90a05b | ||
|
|
86e3346c03 | ||
|
|
547beae458 | ||
|
|
ce2c321a07 | ||
|
|
482bfdfc8c | ||
|
|
c571323813 | ||
|
|
4a9137bf00 | ||
|
|
4bcbd54964 | ||
|
|
cb11809dff | ||
|
|
58decb74b8 | ||
|
|
e6cab77670 | ||
|
|
7682f1085c | ||
|
|
4fd7aa6ce8 | ||
|
|
94d44eb47c | ||
|
|
f8f9cddb47 | ||
|
|
6b52fb3230 | ||
|
|
a93527a474 | ||
|
|
9b08a9bd93 | ||
|
|
27c92d2fe9 | ||
|
|
2228214ded | ||
|
|
2bcc9c10d2 | ||
|
|
922e378be5 | ||
|
|
1f5659dd26 | ||
|
|
cae37d8892 | ||
|
|
6d3219329f | ||
|
|
9405e8bee3 | ||
|
|
8b68b5a689 | ||
|
|
b2dcb06197 | ||
|
|
da5dbcd274 | ||
|
|
3e3fa5b443 | ||
|
|
f5f5886327 | ||
|
|
6ee0b85195 | ||
|
|
86225cd24a | ||
|
|
f594f2c7e6 | ||
|
|
3dc04deabf | ||
|
|
c8a6bcf57f | ||
|
|
4e886bfa90 | ||
|
|
816d4e2fa3 |
15
README.md
15
README.md
@@ -99,10 +99,10 @@ Here are some general principals you should try to adhere to:
|
|||||||
|
|
||||||
There are a number of fairly major features in the pipeline, with no particular time-frames attached yet. In very rough chronological order:
|
There are a number of fairly major features in the pipeline, with no particular time-frames attached yet. In very rough chronological order:
|
||||||
- [X] Companion radio: UI redesign
|
- [X] Companion radio: UI redesign
|
||||||
- [ ] Repeater + Room Server: add ACL's (like Sensor Node has)
|
- [X] Repeater + Room Server: add ACL's (like Sensor Node has)
|
||||||
- [ ] Standardise Bridge mode for repeaters
|
- [X] Standardise Bridge mode for repeaters
|
||||||
- [ ] Repeater/Bridge: Standardise the Transport Codes for zoning/filtering
|
- [ ] Repeater/Bridge: Standardise the Transport Codes for zoning/filtering
|
||||||
- [ ] Core + Repeater: enhanced zero-hop neighbour discovery
|
- [X] Core + Repeater: enhanced zero-hop neighbour discovery
|
||||||
- [ ] Core: round-trip manual path support
|
- [ ] Core: round-trip manual path support
|
||||||
- [ ] Companion + Apps: support for multiple sub-meshes (and 'off-grid' client repeat mode)
|
- [ ] Companion + Apps: support for multiple sub-meshes (and 'off-grid' client repeat mode)
|
||||||
- [ ] Core + Apps: support for LZW message compression
|
- [ ] Core + Apps: support for LZW message compression
|
||||||
@@ -115,12 +115,3 @@ There are a number of fairly major features in the pipeline, with no particular
|
|||||||
- Report bugs and request features on the [GitHub Issues](https://github.com/ripplebiz/MeshCore/issues) page.
|
- Report bugs and request features on the [GitHub Issues](https://github.com/ripplebiz/MeshCore/issues) page.
|
||||||
- Find additional guides and components on [my site](https://buymeacoffee.com/ripplebiz).
|
- Find additional guides and components on [my site](https://buymeacoffee.com/ripplebiz).
|
||||||
- Join [MeshCore Discord](https://discord.gg/BMwCtwHj5V) to chat with the developers and get help from the community.
|
- Join [MeshCore Discord](https://discord.gg/BMwCtwHj5V) to chat with the developers and get help from the community.
|
||||||
|
|
||||||
## RAK Wireless Board Support in PlatformIO
|
|
||||||
|
|
||||||
Before building/flashing the RAK4631 targets in this project, there is, unfortunately, some patching you have to do to your platformIO packages to make it work. There is a guide here on the process:
|
|
||||||
[RAK Wireless: How to Perform Installation of Board Support Package in PlatformIO](https://learn.rakwireless.com/hc/en-us/articles/26687276346775-How-To-Perform-Installation-of-Board-Support-Package-in-PlatformIO)
|
|
||||||
|
|
||||||
After building, you will need to convert the output firmware.hex file into a .uf2 file you can copy over to your RAK4631 device (after doing a full erase) by using the command `uf2conv.py -f 0xADA52840 -c firmware.hex` with the python script available from:
|
|
||||||
[GitHub: Microsoft - uf2](https://github.com/Microsoft/uf2/blob/master/utils/uf2conv.py)
|
|
||||||
|
|
||||||
|
|||||||
55
build.sh
55
build.sh
@@ -64,8 +64,6 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# cache project config json for use in get_platform_for_env()
|
|
||||||
PIO_CONFIG_JSON=$(pio project config --json-output)
|
|
||||||
|
|
||||||
# $1 should be the string to find (case insensitive)
|
# $1 should be the string to find (case insensitive)
|
||||||
get_pio_envs_containing_string() {
|
get_pio_envs_containing_string() {
|
||||||
@@ -89,25 +87,6 @@ get_pio_envs_ending_with_string() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# get platform flag for a given environment
|
|
||||||
# $1 should be the environment name
|
|
||||||
get_platform_for_env() {
|
|
||||||
local env_name=$1
|
|
||||||
echo "$PIO_CONFIG_JSON" | python3 -c "
|
|
||||||
import sys, json, re
|
|
||||||
data = json.load(sys.stdin)
|
|
||||||
for section, options in data:
|
|
||||||
if section == 'env:$env_name':
|
|
||||||
for key, value in options:
|
|
||||||
if key == 'build_flags':
|
|
||||||
for flag in value:
|
|
||||||
match = re.search(r'(ESP32_PLATFORM|NRF52_PLATFORM|STM32_PLATFORM|RP2040_PLATFORM)', flag)
|
|
||||||
if match:
|
|
||||||
print(match.group(1))
|
|
||||||
sys.exit(0)
|
|
||||||
"
|
|
||||||
}
|
|
||||||
|
|
||||||
# disable all debug logging flags if DISABLE_DEBUG=1 is set
|
# disable all debug logging flags if DISABLE_DEBUG=1 is set
|
||||||
disable_debug_flags() {
|
disable_debug_flags() {
|
||||||
if [ "$DISABLE_DEBUG" == "1" ]; then
|
if [ "$DISABLE_DEBUG" == "1" ]; then
|
||||||
@@ -117,8 +96,6 @@ disable_debug_flags() {
|
|||||||
|
|
||||||
# build firmware for the provided pio env in $1
|
# build firmware for the provided pio env in $1
|
||||||
build_firmware() {
|
build_firmware() {
|
||||||
# get env platform for post build actions
|
|
||||||
ENV_PLATFORM=($(get_platform_for_env $1))
|
|
||||||
|
|
||||||
# get git commit sha
|
# get git commit sha
|
||||||
COMMIT_HASH=$(git rev-parse --short HEAD)
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||||
@@ -149,31 +126,27 @@ build_firmware() {
|
|||||||
# build firmware target
|
# build firmware target
|
||||||
pio run -e $1
|
pio run -e $1
|
||||||
|
|
||||||
# build merge-bin for esp32 fresh install, copy .bins to out folder (e.g: Heltec_v3_room_server-v1.0.0-SHA.bin)
|
# build merge-bin for esp32 fresh install
|
||||||
if [ "$ENV_PLATFORM" == "ESP32_PLATFORM" ]; then
|
if [ -f .pio/build/$1/firmware.bin ]; then
|
||||||
pio run -t mergebin -e $1
|
pio run -t mergebin -e $1
|
||||||
cp .pio/build/$1/firmware.bin out/${FIRMWARE_FILENAME}.bin 2>/dev/null || true
|
|
||||||
cp .pio/build/$1/firmware-merged.bin out/${FIRMWARE_FILENAME}-merged.bin 2>/dev/null || true
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build .uf2 for nrf52 boards, copy .uf2 and .zip to out folder (e.g: RAK_4631_Repeater-v1.0.0-SHA.uf2)
|
# build .uf2 for nrf52 boards
|
||||||
if [ "$ENV_PLATFORM" == "NRF52_PLATFORM" ]; then
|
if [[ -f .pio/build/$1/firmware.zip && -f .pio/build/$1/firmware.hex ]]; then
|
||||||
python3 bin/uf2conv/uf2conv.py .pio/build/$1/firmware.hex -c -o .pio/build/$1/firmware.uf2 -f 0xADA52840
|
python3 bin/uf2conv/uf2conv.py .pio/build/$1/firmware.hex -c -o .pio/build/$1/firmware.uf2 -f 0xADA52840
|
||||||
cp .pio/build/$1/firmware.uf2 out/${FIRMWARE_FILENAME}.uf2 2>/dev/null || true
|
|
||||||
cp .pio/build/$1/firmware.zip out/${FIRMWARE_FILENAME}.zip 2>/dev/null || true
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# for stm32, copy .bin and .hex to out folder
|
# copy .bin, .uf2, and .zip to out folder
|
||||||
if [ "$ENV_PLATFORM" == "STM32_PLATFORM" ]; then
|
# e.g: Heltec_v3_room_server-v1.0.0-SHA.bin
|
||||||
cp .pio/build/$1/firmware.bin out/${FIRMWARE_FILENAME}.bin 2>/dev/null || true
|
# e.g: RAK_4631_Repeater-v1.0.0-SHA.uf2
|
||||||
cp .pio/build/$1/firmware.hex out/${FIRMWARE_FILENAME}.hex 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
# for rp2040, copy .bin and .uf2 to out folder
|
# copy .bin for esp32 boards
|
||||||
if [ "$ENV_PLATFORM" == "RP2040_PLATFORM" ]; then
|
cp .pio/build/$1/firmware.bin out/${FIRMWARE_FILENAME}.bin 2>/dev/null || true
|
||||||
cp .pio/build/$1/firmware.bin out/${FIRMWARE_FILENAME}.bin 2>/dev/null || true
|
cp .pio/build/$1/firmware-merged.bin out/${FIRMWARE_FILENAME}-merged.bin 2>/dev/null || true
|
||||||
cp .pio/build/$1/firmware.uf2 out/${FIRMWARE_FILENAME}.uf2 2>/dev/null || true
|
|
||||||
fi
|
# copy .zip and .uf2 of nrf52 boards
|
||||||
|
cp .pio/build/$1/firmware.uf2 out/${FIRMWARE_FILENAME}.uf2 2>/dev/null || true
|
||||||
|
cp .pio/build/$1/firmware.zip out/${FIRMWARE_FILENAME}.zip 2>/dev/null || true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -642,7 +642,7 @@
|
|||||||
**Usage:**
|
**Usage:**
|
||||||
- `region`
|
- `region`
|
||||||
|
|
||||||
**Serial Only:** For firmware older than 1.12.0
|
**Serial Only:** Yes
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
163
docs/faq.md
163
docs/faq.md
@@ -26,6 +26,10 @@ author: https://github.com/LitBomb<!-- omit from toc -->
|
|||||||
- [3.2. Q: Do I need to set the location for a repeater?](#32-q-do-i-need-to-set-the-location-for-a-repeater)
|
- [3.2. Q: Do I need to set the location for a repeater?](#32-q-do-i-need-to-set-the-location-for-a-repeater)
|
||||||
- [3.3. Q: What is the password to administer a repeater or a room server?](#33-q-what-is-the-password-to-administer-a-repeater-or-a-room-server)
|
- [3.3. Q: What is the password to administer a repeater or a room server?](#33-q-what-is-the-password-to-administer-a-repeater-or-a-room-server)
|
||||||
- [3.4. Q: What is the password to join a room server?](#34-q-what-is-the-password-to-join-a-room-server)
|
- [3.4. Q: What is the password to join a room server?](#34-q-what-is-the-password-to-join-a-room-server)
|
||||||
|
- [3.5. Q: Can I retrieve a repeater's private key or set a repeater's private key?](#35-q-can-i-retrieve-a-repeaters-private-key-or-set-a-repeaters-private-key)
|
||||||
|
- [3.6. Q: The first byte of my repeater's public key collides with an exisitng repeater on the mesh. How do I get a new private key with a matching public key that has its first byte of my choosing?](#36-q-the-first-byte-of-my-repeaters-public-key-collides-with-an-exisitng-repeater-on-the-mesh--how-do-i-get-a-new-private-key-with-a-matching-public-key-that-has-its-first-byte-of-my-choosing)
|
||||||
|
- [3.7. Q: My repeater maybe suffering from deafness due to high power interference near my mesh's frequency, it is not hearing other in-range MeshCore radios. what can I do?](#37-q-my-repeater-maybe-suffering-from-deafness-due-to-high-power-interference-near-my-meshs-frequency-it-is-not-hearing-other-in-range-meshcore-radios--what-can-i-do)
|
||||||
|
- [3.8 Q: How do I make my repeater an observer on the mesh](#38-q-how-do-i-make-my-repeater-an-observer-on-the-mesh)
|
||||||
- [4. T-Deck Related](#4-t-deck-related)
|
- [4. T-Deck Related](#4-t-deck-related)
|
||||||
- [4.1. Q: Is there a user guide for T-Deck, T-Pager, T-Watch, or T-Display Pro?](#41-q-is-there-a-user-guide-for-t-deck-t-pager-t-watch-or-t-display-pro)
|
- [4.1. Q: Is there a user guide for T-Deck, T-Pager, T-Watch, or T-Display Pro?](#41-q-is-there-a-user-guide-for-t-deck-t-pager-t-watch-or-t-display-pro)
|
||||||
- [4.2. Q: What are the steps to get a T-Deck into DFU (Device Firmware Update) mode?](#42-q-what-are-the-steps-to-get-a-t-deck-into-dfu-device-firmware-update-mode)
|
- [4.2. Q: What are the steps to get a T-Deck into DFU (Device Firmware Update) mode?](#42-q-what-are-the-steps-to-get-a-t-deck-into-dfu-device-firmware-update-mode)
|
||||||
@@ -61,22 +65,31 @@ author: https://github.com/LitBomb<!-- omit from toc -->
|
|||||||
- [5.14.3. Python MeshCore](#5143-python-meshcore)
|
- [5.14.3. Python MeshCore](#5143-python-meshcore)
|
||||||
- [5.14.4. meshcore-cli](#5144-meshcore-cli)
|
- [5.14.4. meshcore-cli](#5144-meshcore-cli)
|
||||||
- [5.14.5. meshcore.js](#5145-meshcorejs)
|
- [5.14.5. meshcore.js](#5145-meshcorejs)
|
||||||
|
- [5.14.6. pyMC\_core](#5146-pymc_core)
|
||||||
|
- [5.14.7. MeshCore Packet Decoder](#5147-meshcore-packet-decoder)
|
||||||
|
- [5.14.8. meshcore-pi](#5148-meshcore-pi)
|
||||||
|
- [5.14.9. pyMC\_Repeater](#5149-pymc_repeater)
|
||||||
|
- [5.15. Q: Are there client applications for Windows or Mac?](#515-q-are-there-client-applications-for-windows-or-mac)
|
||||||
|
- [5.16. Q: Are there any resources that compare MeshCore to other LoRa systems?](#516-q-are-there-any-resources-that-compare-meshcore-to-other-lora-systems)
|
||||||
- [6. Troubleshooting](#6-troubleshooting)
|
- [6. Troubleshooting](#6-troubleshooting)
|
||||||
- [6.1. Q: My client says another client or a repeater or a room server was last seen many, many days ago.](#61-q-my-client-says-another-client-or-a-repeater-or-a-room-server-was-last-seen-many-many-days-ago)
|
- [6.1. Q: My client says another client or a repeater or a room server was last seen many, many days ago.](#61-q-my-client-says-another-client-or-a-repeater-or-a-room-server-was-last-seen-many-many-days-ago)
|
||||||
- [6.2. Q: A repeater or a client or a room server I expect to see on my discover list (on T-Deck) or contact list (on a smart device client) are not listed.](#62-q-a-repeater-or-a-client-or-a-room-server-i-expect-to-see-on-my-discover-list-on-t-deck-or-contact-list-on-a-smart-device-client-are-not-listed)
|
- [6.2. Q: A repeater or a client or a room server I expect to see on my discover list (on T-Deck) or contact list (on a smart device client) are not listed.](#62-q-a-repeater-or-a-client-or-a-room-server-i-expect-to-see-on-my-discover-list-on-t-deck-or-contact-list-on-a-smart-device-client-are-not-listed)
|
||||||
- [6.3. Q: How to connect to a repeater via BLE (Bluetooth)?](#63-q-how-to-connect-to-a-repeater-via-ble-bluetooth)
|
- [6.3. Q: How to connect to a repeater via BLE (Bluetooth)?](#63-q-how-to-connect-to-a-repeater-via-ble-bluetooth)
|
||||||
- [6.4. Q: My companion isn't showing up over Bluetooth?](#64-q-my-companion-isnt-showing-up-over-bluetooth)
|
- [6.4. Q: My companion isn't showing up over Bluetooth?](#64-q-my-companion-isnt-showing-up-over-bluetooth)
|
||||||
- [6.5. Q: I can't connect via Bluetooth, what is the Bluetooth pairing code?](#64-q-i-cant-connect-via-bluetooth-what-is-the-bluetooth-pairing-code)
|
- [6.5. Q: I can't connect via Bluetooth, what is the Bluetooth pairing code?](#65-q-i-cant-connect-via-bluetooth-what-is-the-bluetooth-pairing-code)
|
||||||
- [6.6. Q: My Heltec V3 keeps disconnecting from my smartphone. It can't hold a solid Bluetooth connection.](#65-q-my-heltec-v3-keeps-disconnecting-from-my-smartphone--it-cant-hold-a-solid-bluetooth-connection)
|
- [6.6. Q: My Heltec V3 keeps disconnecting from my smartphone. It can't hold a solid Bluetooth connection.](#66-q-my-heltec-v3-keeps-disconnecting-from-my-smartphone--it-cant-hold-a-solid-bluetooth-connection)
|
||||||
- [6.7. Q: My RAK/T1000-E/xiao\_nRF52 device seems to be corrupted, how do I wipe it clean to start fresh?](#66-q-my-rakt1000-exiao_nrf52-device-seems-to-be-corrupted-how-do-i-wipe-it-clean-to-start-fresh)
|
- [6.7. Q: My RAK/T1000-E/xiao\_nRF52 device seems to be corrupted, how do I wipe it clean to start fresh?](#67-q-my-rakt1000-exiao_nrf52-device-seems-to-be-corrupted-how-do-i-wipe-it-clean-to-start-fresh)
|
||||||
- [6.8. Q: WebFlasher fails on Linux with failed to open](#67-q-webflasher-fails-on-linux-with-failed-to-open)
|
- [6.8. Q: WebFlasher fails on Linux with failed to open](#68-q-webflasher-fails-on-linux-with-failed-to-open)
|
||||||
- [7. Other Questions:](#7-other-questions)
|
- [7. Other Questions:](#7-other-questions)
|
||||||
- [7.1. Q: How to update nRF (RAK, T114, Seed XIAO) repeater and room server firmware over the air using the new simpler DFU app?](#71-q-how-to-update-nrf-rak-t114-seed-xiao-repeater-and-room-server-firmware-over-the-air-using-the-new-simpler-dfu-app)
|
- [7.1. Q: How to update nRF (RAK, T114, Seed XIAO) repeater and room server firmware over the air using the new simpler DFU app?](#71-q-how-to-update-nrf-rak-t114-seed-xiao-repeater-and-room-server-firmware-over-the-air-using-the-new-simpler-dfu-app)
|
||||||
|
- [7.1.1 Q: Can I update Seeed Studio Wio Tracker L1 Pro using OTA?](#711-q-can-i-update-seeed-studio-wio-tracker-l1-pro-using-ota)
|
||||||
- [7.2. Q: How to update ESP32-based devices over the air?](#72-q-how-to-update-esp32-based-devices-over-the-air)
|
- [7.2. Q: How to update ESP32-based devices over the air?](#72-q-how-to-update-esp32-based-devices-over-the-air)
|
||||||
- [7.3. Q: Is there a way to lower the chance of a failed OTA device firmware update (DFU)?](#73-q-is-there-a-way-to-lower-the-chance-of-a-failed-ota-device-firmware-update-dfu)
|
- [7.3. Q: Is there a way to lower the chance of a failed OTA device firmware update (DFU)?](#73-q-is-there-a-way-to-lower-the-chance-of-a-failed-ota-device-firmware-update-dfu)
|
||||||
- [7.4. Q: are the MeshCore logo and font available?](#74-q-are-the-meshcore-logo-and-font-available)
|
- [7.4. Q: are the MeshCore logo and font available?](#74-q-are-the-meshcore-logo-and-font-available)
|
||||||
- [7.5. Q: What is the format of a contact or channel QR code?](#75-q-what-is-the-format-of-a-contact-or-channel-qr-code)
|
- [7.5. Q: What is the format of a contact or channel QR code?](#75-q-what-is-the-format-of-a-contact-or-channel-qr-code)
|
||||||
- [7.6. Q: How do I connect to the companion via WIFI, e.g. using a heltec v3?](#76-q-how-do-i-connect-to-the-comnpanion-via-wifi-eg-using-a-heltec-v3)
|
- [7.6. Q: How do I connect to the companion via WIFI, e.g. using a heltec v3?](#76-q-how-do-i-connect-to-the-companion-via-wifi-eg-using-a-heltec-v3)
|
||||||
|
- [7.7. Q: I have a Station G2, or a Heltec V4, or an Ikoka Stick, or a radio with a EByte E22-900M30S or a E22-900M33S module, what should their transmit power be set to?](#77-q-i-have-a-station-g2-or-a-heltec-v4-or-an-ikoka-stick-or-a-radio-with-a-ebyte-e22-900m30s-or-a-e22-900m33s-module-what-should-their-transmit-power-be-set-to)
|
||||||
|
- [| | High Output | 22 dBm | 28 dBm | |](#--high-output--22-dbm--28-dbm--)
|
||||||
|
|
||||||
## 1. Introduction
|
## 1. Introduction
|
||||||
|
|
||||||
@@ -180,22 +193,17 @@ The T-Deck firmware is free to download and most features are available without
|
|||||||
|
|
||||||
|
|
||||||
### 2.3. Q: What frequencies are supported by MeshCore?
|
### 2.3. Q: What frequencies are supported by MeshCore?
|
||||||
**A:** It supports the 868MHz range in the UK/EU and the 915MHz range in New Zealand, Australia, and the USA. Countries and regions in these two frequency ranges are also supported. The firmware and client allow users to set their preferred frequency.
|
**A:** It supports the 868MHz range in the UK/EU and the 915MHz range in New Zealand, Australia, and the USA. Countries and regions in these two frequency ranges are also supported.
|
||||||
- Australia and New Zealand are on **915.8MHz**
|
|
||||||
- UK and EU are on **869.525MHz**
|
|
||||||
- Canada and USA are on **910.525MHz**
|
|
||||||
- For other regions and countries, please check your local LoRa frequency
|
|
||||||
|
|
||||||
In UK and EU, 867.5MHz is not allowed to use 250kHz bandwidth and it only allows 2.5% duty cycle for clients. 869.525Mhz allows an airtime of 10%, 250KHz bandwidth, and a higher EIRP, therefore MeshCore nodes can send more often and with more power. That is why this frequency is chosen for UK and EU. This is also why Meshtastic also uses this frequency.
|
Use the smartphone client or the repeater setup feature on there web flasher to set your radios' RF settings by choosing the preset for your regions.
|
||||||
|
|
||||||
[Source](https://discord.com/channels/826570251612323860/1330643963501351004/1356540643853209641)
|
Recently, as of October 2025, many regions have moved to the "narrow" setting, aka using BW62.5 and a lower SF number (instead of the original SF11). For example, USA/Canada (Recommended) preset is 910.525MHz, SF7, BW62.5, CR5.
|
||||||
|
|
||||||
|
After extensive testing, many regions have switched or about to switch over to BW62.5 and SF7, 8, or 9. Narrower bandwidth setting and lower SF setting allow MeshCore's radio signals to fit between interference in the ISM band, provide for a lower noise floor, better SNR, and faster transmissions.
|
||||||
|
|
||||||
|
If you have consensus from your community in your region to update your region's preset recommendation, please post your update request on the [#meshcore-app](https://discord.com/channels/1343693475589263471/1391681655911088241) channel on the [MeshCore Discord server ](https://discord.gg/cYtQNYCCRK) to let Liam Cottle know.
|
||||||
|
|
||||||
the rest of the radio settings are the same for all frequencies:
|
|
||||||
- Spread Factor (SF): 11
|
|
||||||
- Coding Rate (CR): 5
|
|
||||||
- Bandwidth (BW): 250.00
|
|
||||||
|
|
||||||
(Originally MeshCore started with SF 10. recently (as of late April 2025) the community has advocated SF 11 also a viable option for longer range but a little slower transmission. Currently there are MeshCore meshes with SF 10 and SF 11. Liam Cottle's smartphone app's presets now recommend SF 10 for Australia and SF 11 for all other regions and countries. EU and UK has SF 10 and SF 11 presets. Work with your local meshers on deciding with SF number is best for your use cases. In the future, there may be bridge nodes that can bridge SF 10 and SF 11 (or even different frequencies) traffic.)
|
|
||||||
|
|
||||||
### 2.4. Q: What is an "advert" in MeshCore?
|
### 2.4. Q: What is an "advert" in MeshCore?
|
||||||
**A:**
|
**A:**
|
||||||
@@ -243,7 +251,7 @@ Repeater or room server can be administered with one of the options below:
|
|||||||
|
|
||||||
|
|
||||||
### 3.2. Q: Do I need to set the location for a repeater?
|
### 3.2. Q: Do I need to set the location for a repeater?
|
||||||
**A:** With location set for a repeater, it can show up on a MeshCore map in the future. Set location with the following commands:
|
**A:** While not required, with location set for a repeater it will show up on the MeshCore map in the future. Set location with the following command:
|
||||||
|
|
||||||
`set lat <GPS Lat> set long <GPS Lon>`
|
`set lat <GPS Lat> set long <GPS Lon>`
|
||||||
|
|
||||||
@@ -260,6 +268,34 @@ You can get the latitude and longitude from Google Maps by right-clicking the lo
|
|||||||
|
|
||||||
`set guest.password {guest-password}`
|
`set guest.password {guest-password}`
|
||||||
|
|
||||||
|
### 3.5. Q: Can I retrieve a repeater's private key or set a repeater's private key?
|
||||||
|
|
||||||
|
**A:** You can issue these commands to get or set a repeater's private key using a USB serial connection.
|
||||||
|
|
||||||
|
`get prv.key` to print a repeater's private key on the serial console
|
||||||
|
`set prv.key <hex>` to set a repeater's private key on the serial console
|
||||||
|
|
||||||
|
Reboot the repeater after `set prv.key <hex>` command for the new private key to take effect.
|
||||||
|
|
||||||
|
### 3.6. Q: The first byte of my repeater's public key collides with an exisitng repeater on the mesh. How do I get a new private key with a matching public key that has its first byte of my choosing?
|
||||||
|
|
||||||
|
**A:** You can generate a new private key and specific the first byte of its public key here: https://gessaman.com/mc-keygen/
|
||||||
|
|
||||||
|
|
||||||
|
### 3.7. Q: My repeater maybe suffering from deafness due to high power interference near my mesh's frequency, it is not hearing other in-range MeshCore radios. what can I do?
|
||||||
|
|
||||||
|
**A:** This may be due to the SX1262 radio's auto gain control feature. You can use this command to preiodically reset its AGC.
|
||||||
|
|
||||||
|
`set agc.reset.interval <number>`
|
||||||
|
|
||||||
|
The `<number>` unit is in seconds and is incremented by 4. `set agc.reset.interval 4` works well to cure deafness.
|
||||||
|
|
||||||
|
This is a very low cost operation. AGC reset is done by simply setting `state = STATE_IDLE;` in function `RadioLibWrapper::resetAGC()` in `RadioLibWrappers.cpp`
|
||||||
|
|
||||||
|
|
||||||
|
### 3.8 Q: How do I make my repeater an observer on the mesh
|
||||||
|
|
||||||
|
**A:** The observer instruction is available here: https://analyzer.letsme.sh/observer/onboard
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -297,7 +333,9 @@ GPS on T-Deck is always enabled. You can skip the "GPS clock sync" and the T-De
|
|||||||
**A:**
|
**A:**
|
||||||
T-Deck uses the same key the smartphone apps use but in base64
|
T-Deck uses the same key the smartphone apps use but in base64
|
||||||
`izOH6cXN6mrJ5e26oRXNcg==`
|
`izOH6cXN6mrJ5e26oRXNcg==`
|
||||||
The third character is the capital letter 'O', not zero `0`
|
|
||||||
|
There is no `=` key on the T-Deck's hardware keyboard. You can use the on-screen software keyboard to enter `=`. Tap the text box to enable the on-screen software keyboard.
|
||||||
|
The third character is the capital letter `O` (Oh), not zero `0`
|
||||||
|
|
||||||
The smartphone app key is in hex:
|
The smartphone app key is in hex:
|
||||||
` 8b3387e9c5cdea6ac9e5edbaa115cd72`
|
` 8b3387e9c5cdea6ac9e5edbaa115cd72`
|
||||||
@@ -376,7 +414,23 @@ https://github.com/meshcore-dev/MeshCore/blob/main/src/Packet.h#L19
|
|||||||
|
|
||||||
**SF is spreading factor** - how much should the communication spread in time
|
**SF is spreading factor** - how much should the communication spread in time
|
||||||
|
|
||||||
**CR is coding rate** - https://www.thethingsnetwork.org/docs/lorawan/fec-and-code-rate/
|
**CR is coding rate** - from: https://www.thethingsnetwork.org/docs/lorawan/fec-and-code-rate/
|
||||||
|
|
||||||
|
TL;DR: default CR to 5 for good stable links. If it is not a solid link and is intermittent, change to CR to 7 or 8.
|
||||||
|
|
||||||
|
Forward Error Correction is a process of adding redundant bits to the data to be transmitted. During the transmission, data may get corrupted by interference (changes from 0 to 1 / 1 to 0). These error correction bits are used at the receivers for restoring corrupted bits.
|
||||||
|
|
||||||
|
The Code Rate of a forward error correction expresses the proportion of bits in a data stream that actually carry useful information.
|
||||||
|
|
||||||
|
There are 4 code rates used in LoRaWAN:
|
||||||
|
|
||||||
|
4/5
|
||||||
|
4/6
|
||||||
|
5/7
|
||||||
|
4/8
|
||||||
|
|
||||||
|
For example, if the code rate is 5/7, for every 5 bits of useful information, the coder generates a total of 7 bits of data, of which 2 bits are redundant.
|
||||||
|
|
||||||
Making the bandwidth 2x wider (from BW125 to BW250) allows you to send 2x more bytes in the same time. Making the spreading factor 1 step lower (from SF10 to SF9) allows you to send 2x more bytes in the same time.
|
Making the bandwidth 2x wider (from BW125 to BW250) allows you to send 2x more bytes in the same time. Making the spreading factor 1 step lower (from SF10 to SF9) allows you to send 2x more bytes in the same time.
|
||||||
|
|
||||||
Lowering the spreading factor makes it more difficult for the gateway to receive a transmission, as it will be more sensitive to noise. You could compare this to two people taking in a noisy place (a bar for example). If you’re far from each other, you have to talk slow (SF10), but if you’re close, you can talk faster (SF7)
|
Lowering the spreading factor makes it more difficult for the gateway to receive a transmission, as it will be more sensitive to noise. You could compare this to two people taking in a noisy place (a bar for example). If you’re far from each other, you have to talk slow (SF10), but if you’re close, you can talk faster (SF7)
|
||||||
@@ -558,7 +612,8 @@ From here, reference repeater and room server command line commands on MeshCore
|
|||||||
**A:** Yes. See the following:
|
**A:** Yes. See the following:
|
||||||
|
|
||||||
#### 5.14.1. meshcoremqtt
|
#### 5.14.1. meshcoremqtt
|
||||||
A Python script to send meshore debug and packet capture data to MQTT for analysis
|
A Python script to send meshcore debug and packet capture data to MQTT for analysis. Cisien's version is a fork of Andrew-a-g's and is being used to to collect data for https://map.w0z.is/messages and https://analyzer.letsme.sh/
|
||||||
|
https://github.com/Cisien/meshcoretomqtt
|
||||||
https://github.com/Andrew-a-g/meshcoretomqtt
|
https://github.com/Andrew-a-g/meshcoretomqtt
|
||||||
|
|
||||||
#### 5.14.2. MeshCore for Home Assistant
|
#### 5.14.2. MeshCore for Home Assistant
|
||||||
@@ -577,6 +632,40 @@ CLI interface to MeshCore companion radio over BLE, TCP, or serial. Uses Python
|
|||||||
A JavaScript library for interacting with a MeshCore device running the companion radio firmware
|
A JavaScript library for interacting with a MeshCore device running the companion radio firmware
|
||||||
https://github.com/liamcottle/meshcore.js
|
https://github.com/liamcottle/meshcore.js
|
||||||
|
|
||||||
|
#### 5.14.6. pyMC_core
|
||||||
|
pyMC_Core is a Python port of MeshCore, designed for Raspberry Pi and similar hardware, it talks to LoRa modules over SPI.
|
||||||
|
https://github.com/rightup/pyMC_core
|
||||||
|
|
||||||
|
#### 5.14.7. MeshCore Packet Decoder
|
||||||
|
A TypeScript library for decoding MeshCore mesh networking packets with full cryptographic support. Uses WebAssembly (WASM) for Ed25519 key derivation through the orlp/ed25519 library. It powers the [MeshCore Packet Analyzer](https://analyzer.letsme.sh/packets).
|
||||||
|
https://github.com/michaelhart/meshcore-decoder
|
||||||
|
|
||||||
|
#### 5.14.8. meshcore-pi
|
||||||
|
meshcore-pi is another Python port of MeshCore, designed for Raspberry Pi and similar hardware, it talks to LoRa modules over SPI or GPIO.
|
||||||
|
https://github.com/brianwiddas/meshcore-pi
|
||||||
|
|
||||||
|
#### 5.14.9. pyMC_Repeater
|
||||||
|
pyMC_Repeater is a repeater daemon in Python built on top of the [`pymc_core`](#5146-pymc_core) library.
|
||||||
|
https://github.com/rightup/pyMC_Repeater
|
||||||
|
|
||||||
|
|
||||||
|
### 5.15. Q: Are there client applications for Windows or Mac?
|
||||||
|
**A:** Yes, the same iOS and Android client is also available for Windows and Intel Mac (sorry, not available for ARM-based Mac yet). You can find them together with the Android APK here:
|
||||||
|
https://files.liamcottle.net/MeshCore
|
||||||
|
|
||||||
|
Both the Windows and Intel Mac versions of the client app are fully unlocked and are free to use.
|
||||||
|
|
||||||
|
### 5.16. Q: Are there any resources that compare MeshCore to other LoRa systems?
|
||||||
|
|
||||||
|
**A:** Here is a list of MeshCore comparison resources:
|
||||||
|
The Comms Channel on YouTube:
|
||||||
|
https://www.youtube.com/watch?v=guDoKGs02Us
|
||||||
|
MeshCore Advantages by MCarper:
|
||||||
|
https://github.com/mikecarper/meshfirmware/blob/main/MeshCoreAdvantages.md
|
||||||
|
Meshcore vs Meshtastic by austinmesh.org
|
||||||
|
https://www.austinmesh.org/learn/meshcore-vs-meshtastic/
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 6. Troubleshooting
|
## 6. Troubleshooting
|
||||||
@@ -653,6 +742,12 @@ Allow the browser user on it:
|
|||||||
13. If it fails, try turning off and on Bluetooth on your phone. If that doesn't work, try rebooting your phone.
|
13. If it fails, try turning off and on Bluetooth on your phone. If that doesn't work, try rebooting your phone.
|
||||||
14. Wait for the update to complete. It can take a few minutes.
|
14. Wait for the update to complete. It can take a few minutes.
|
||||||
|
|
||||||
|
#### 7.1.1 Q: Can I update Seeed Studio Wio Tracker L1 Pro using OTA?
|
||||||
|
**A:** You can flash this safer bootloader to the Wio Tracker L1 Pro
|
||||||
|
https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX
|
||||||
|
|
||||||
|
After this bootloader is flashed onto the device, you can trigger over the air update using bluetooth by holding the button next to the D-Pad and then click the reset button. The follow the same OTA update instructions above. You can skip pass the `start ota` instruction and start the update using the DFU app.
|
||||||
|
|
||||||
|
|
||||||
### 7.2. Q: How to update ESP32-based devices over the air?
|
### 7.2. Q: How to update ESP32-based devices over the air?
|
||||||
|
|
||||||
@@ -673,10 +768,14 @@ Allow the browser user on it:
|
|||||||
Refer to https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX for the latest information.
|
Refer to https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX for the latest information.
|
||||||
|
|
||||||
Currently, the following boards are supported:
|
Currently, the following boards are supported:
|
||||||
- Nologo ProMicro
|
- Heltec Automation Mesh Node T114 / HT-nRF5262
|
||||||
|
- Nologo ProMicro NRF52840 (aka SuperMini NRF52840)
|
||||||
|
- Seeed Studio SenseCAP Card Tracker T1000-E
|
||||||
|
- Seeed Studio Wio Tracker L1
|
||||||
- Seeed Studio XIAO nRF52840 BLE
|
- Seeed Studio XIAO nRF52840 BLE
|
||||||
- Seeed Studio XIAO nRF52840 BLE SENSE
|
- Seeed Studio XIAO nRF52840 BLE SENSE
|
||||||
- RAK 4631
|
- RAK 4631 (See note)
|
||||||
|
- RAK WisMesh Tag (new 28/11/2025)
|
||||||
|
|
||||||
### 7.4. Q: are the MeshCore logo and font available?
|
### 7.4. Q: are the MeshCore logo and font available?
|
||||||
|
|
||||||
@@ -703,4 +802,22 @@ where `&type` is:
|
|||||||
WiFi firmware requires you to compile it yourself, as you need to set the wifi ssid and password.
|
WiFi firmware requires you to compile it yourself, as you need to set the wifi ssid and password.
|
||||||
Edit WIFI_SSID and WIFI_PWD in `./variants/heltec_v3/platformio.ini` and then flash it to your device.
|
Edit WIFI_SSID and WIFI_PWD in `./variants/heltec_v3/platformio.ini` and then flash it to your device.
|
||||||
|
|
||||||
|
### 7.7. Q: I have a Station G2, or a Heltec V4, or an Ikoka Stick, or a radio with a EByte E22-900M30S or a E22-900M33S module, what should their transmit power be set to?
|
||||||
|
**A:**
|
||||||
|
For companion radios, you can set these radios' transmit power in the smartphone app. For repeater and room server radios, you can set their transmit power using the command line command `set tx`. You can get their current value using command line comand `get tx`
|
||||||
|
|
||||||
|
|
||||||
|
> ### ⚠️ **WARNING: Set these values at your own risk. Incorrect power settings can permanently damage your radio hardware.**
|
||||||
|
|
||||||
|
| Device / Model | Region / Description | In-App Setting (dBm) | Target Radio Output | Notes |
|
||||||
|
| :--- | :--- | :--- | :--- | :--- |
|
||||||
|
| **Station G2** <br> [Reference](https://wiki.uniteng.com/en/meshtastic/station-g2) | US915 Max Output | 19 dBm | 36.5 dBm (4.46W) | |
|
||||||
|
| | US915 Recommended Max | 16 dBm | 35 dBm (3.16W) | 1dB compression point |
|
||||||
|
| | EU868 Recommended Max | 15 dBm | 34.5 dBm (2.82W) | 1dB compression point |
|
||||||
|
| | US915 1W Output | 10 dBm | 1W | |
|
||||||
|
| | EU868 1W Output | 9 dBm | 1W | |
|
||||||
|
| **Ikoka Stick E22-900M30S** | 1W Model | 19 dBm | 1W | **DO NOT EXCEED** (Risk of burn out) |
|
||||||
|
| **Ikoka Stick E22-900M33S** | 2W Model | 9 dBm | 2W | **DO NOT EXCEED** (Risk of burn out) |
|
||||||
|
| **Heltec V4** | Standard Output | 10 dBm | 22 dBm | |
|
||||||
|
| | High Output | 22 dBm | 28 dBm | |
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ void DataStore::loadPrefsInt(const char *filename, NodePrefs& _prefs, double& no
|
|||||||
file.read((uint8_t *)&_prefs.freq, sizeof(_prefs.freq)); // 56
|
file.read((uint8_t *)&_prefs.freq, sizeof(_prefs.freq)); // 56
|
||||||
file.read((uint8_t *)&_prefs.sf, sizeof(_prefs.sf)); // 60
|
file.read((uint8_t *)&_prefs.sf, sizeof(_prefs.sf)); // 60
|
||||||
file.read((uint8_t *)&_prefs.cr, sizeof(_prefs.cr)); // 61
|
file.read((uint8_t *)&_prefs.cr, sizeof(_prefs.cr)); // 61
|
||||||
file.read((uint8_t *)&_prefs.client_repeat, sizeof(_prefs.client_repeat)); // 62
|
file.read(pad, 1); // 62
|
||||||
file.read((uint8_t *)&_prefs.manual_add_contacts, sizeof(_prefs.manual_add_contacts)); // 63
|
file.read((uint8_t *)&_prefs.manual_add_contacts, sizeof(_prefs.manual_add_contacts)); // 63
|
||||||
file.read((uint8_t *)&_prefs.bw, sizeof(_prefs.bw)); // 64
|
file.read((uint8_t *)&_prefs.bw, sizeof(_prefs.bw)); // 64
|
||||||
file.read((uint8_t *)&_prefs.tx_power_dbm, sizeof(_prefs.tx_power_dbm)); // 68
|
file.read((uint8_t *)&_prefs.tx_power_dbm, sizeof(_prefs.tx_power_dbm)); // 68
|
||||||
@@ -247,7 +247,7 @@ void DataStore::savePrefs(const NodePrefs& _prefs, double node_lat, double node_
|
|||||||
file.write((uint8_t *)&_prefs.freq, sizeof(_prefs.freq)); // 56
|
file.write((uint8_t *)&_prefs.freq, sizeof(_prefs.freq)); // 56
|
||||||
file.write((uint8_t *)&_prefs.sf, sizeof(_prefs.sf)); // 60
|
file.write((uint8_t *)&_prefs.sf, sizeof(_prefs.sf)); // 60
|
||||||
file.write((uint8_t *)&_prefs.cr, sizeof(_prefs.cr)); // 61
|
file.write((uint8_t *)&_prefs.cr, sizeof(_prefs.cr)); // 61
|
||||||
file.write((uint8_t *)&_prefs.client_repeat, sizeof(_prefs.client_repeat)); // 62
|
file.write(pad, 1); // 62
|
||||||
file.write((uint8_t *)&_prefs.manual_add_contacts, sizeof(_prefs.manual_add_contacts)); // 63
|
file.write((uint8_t *)&_prefs.manual_add_contacts, sizeof(_prefs.manual_add_contacts)); // 63
|
||||||
file.write((uint8_t *)&_prefs.bw, sizeof(_prefs.bw)); // 64
|
file.write((uint8_t *)&_prefs.bw, sizeof(_prefs.bw)); // 64
|
||||||
file.write((uint8_t *)&_prefs.tx_power_dbm, sizeof(_prefs.tx_power_dbm)); // 68
|
file.write((uint8_t *)&_prefs.tx_power_dbm, sizeof(_prefs.tx_power_dbm)); // 68
|
||||||
|
|||||||
@@ -56,7 +56,6 @@
|
|||||||
#define CMD_SEND_ANON_REQ 57
|
#define CMD_SEND_ANON_REQ 57
|
||||||
#define CMD_SET_AUTOADD_CONFIG 58
|
#define CMD_SET_AUTOADD_CONFIG 58
|
||||||
#define CMD_GET_AUTOADD_CONFIG 59
|
#define CMD_GET_AUTOADD_CONFIG 59
|
||||||
#define CMD_GET_ALLOWED_REPEAT_FREQ 60
|
|
||||||
|
|
||||||
// Stats sub-types for CMD_GET_STATS
|
// Stats sub-types for CMD_GET_STATS
|
||||||
#define STATS_TYPE_CORE 0
|
#define STATS_TYPE_CORE 0
|
||||||
@@ -89,7 +88,6 @@
|
|||||||
#define RESP_CODE_TUNING_PARAMS 23
|
#define RESP_CODE_TUNING_PARAMS 23
|
||||||
#define RESP_CODE_STATS 24 // v8+, second byte is stats type
|
#define RESP_CODE_STATS 24 // v8+, second byte is stats type
|
||||||
#define RESP_CODE_AUTOADD_CONFIG 25
|
#define RESP_CODE_AUTOADD_CONFIG 25
|
||||||
#define RESP_ALLOWED_REPEAT_FREQ 26
|
|
||||||
|
|
||||||
#define SEND_TIMEOUT_BASE_MILLIS 500
|
#define SEND_TIMEOUT_BASE_MILLIS 500
|
||||||
#define FLOOD_SEND_TIMEOUT_FACTOR 16.0f
|
#define FLOOD_SEND_TIMEOUT_FACTOR 16.0f
|
||||||
@@ -257,15 +255,6 @@ int MyMesh::calcRxDelay(float score, uint32_t air_time) const {
|
|||||||
return (int)((pow(_prefs.rx_delay_base, 0.85f - score) - 1.0) * air_time);
|
return (int)((pow(_prefs.rx_delay_base, 0.85f - score) - 1.0) * air_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t MyMesh::getRetransmitDelay(const mesh::Packet *packet) {
|
|
||||||
uint32_t t = (_radio->getEstAirtimeFor(packet->path_len + packet->payload_len + 2) * 0.5f);
|
|
||||||
return getRNG()->nextInt(0, 5*t + 1);
|
|
||||||
}
|
|
||||||
uint32_t MyMesh::getDirectRetransmitDelay(const mesh::Packet *packet) {
|
|
||||||
uint32_t t = (_radio->getEstAirtimeFor(packet->path_len + packet->payload_len + 2) * 0.2f);
|
|
||||||
return getRNG()->nextInt(0, 5*t + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t MyMesh::getExtraAckTransmitCount() const {
|
uint8_t MyMesh::getExtraAckTransmitCount() const {
|
||||||
return _prefs.multi_acks;
|
return _prefs.multi_acks;
|
||||||
}
|
}
|
||||||
@@ -466,10 +455,6 @@ bool MyMesh::filterRecvFloodPacket(mesh::Packet* packet) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MyMesh::allowPacketForward(const mesh::Packet* packet) {
|
|
||||||
return _prefs.client_repeat != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyMesh::sendFloodScoped(const ContactInfo& recipient, mesh::Packet* pkt, uint32_t delay_millis) {
|
void MyMesh::sendFloodScoped(const ContactInfo& recipient, mesh::Packet* pkt, uint32_t delay_millis) {
|
||||||
// TODO: dynamic send_scope, depending on recipient and current 'home' Region
|
// TODO: dynamic send_scope, depending on recipient and current 'home' Region
|
||||||
if (send_scope.isNull()) {
|
if (send_scope.isNull()) {
|
||||||
@@ -896,24 +881,6 @@ uint32_t MyMesh::getBLEPin() {
|
|||||||
return _active_ble_pin;
|
return _active_ble_pin;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct FreqRange {
|
|
||||||
uint32_t lower_freq, upper_freq;
|
|
||||||
};
|
|
||||||
|
|
||||||
static FreqRange repeat_freq_ranges[] = {
|
|
||||||
{ 433000, 433000 },
|
|
||||||
{ 869000, 869000 },
|
|
||||||
{ 918000, 918000 }
|
|
||||||
};
|
|
||||||
|
|
||||||
bool MyMesh::isValidClientRepeatFreq(uint32_t f) const {
|
|
||||||
for (int i = 0; i < sizeof(repeat_freq_ranges)/sizeof(repeat_freq_ranges[0]); i++) {
|
|
||||||
auto r = &repeat_freq_ranges[i];
|
|
||||||
if (f >= r->lower_freq && f <= r->upper_freq) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyMesh::startInterface(BaseSerialInterface &serial) {
|
void MyMesh::startInterface(BaseSerialInterface &serial) {
|
||||||
_serial = &serial;
|
_serial = &serial;
|
||||||
serial.enable();
|
serial.enable();
|
||||||
@@ -937,7 +904,6 @@ void MyMesh::handleCmdFrame(size_t len) {
|
|||||||
i += 40;
|
i += 40;
|
||||||
StrHelper::strzcpy((char *)&out_frame[i], FIRMWARE_VERSION, 20);
|
StrHelper::strzcpy((char *)&out_frame[i], FIRMWARE_VERSION, 20);
|
||||||
i += 20;
|
i += 20;
|
||||||
out_frame[i++] = _prefs.client_repeat; // v9+
|
|
||||||
_serial->writeFrame(out_frame, i);
|
_serial->writeFrame(out_frame, i);
|
||||||
} else if (cmd_frame[0] == CMD_APP_START &&
|
} else if (cmd_frame[0] == CMD_APP_START &&
|
||||||
len >= 8) { // sent when app establishes connection, respond with node ID
|
len >= 8) { // sent when app establishes connection, respond with node ID
|
||||||
@@ -1242,20 +1208,13 @@ void MyMesh::handleCmdFrame(size_t len) {
|
|||||||
i += 4;
|
i += 4;
|
||||||
uint8_t sf = cmd_frame[i++];
|
uint8_t sf = cmd_frame[i++];
|
||||||
uint8_t cr = cmd_frame[i++];
|
uint8_t cr = cmd_frame[i++];
|
||||||
uint8_t repeat = 0; // default - false
|
|
||||||
if (len > i) {
|
|
||||||
repeat = cmd_frame[i++]; // FIRMWARE_VER_CODE 9+
|
|
||||||
}
|
|
||||||
|
|
||||||
if (repeat && !isValidClientRepeatFreq(freq)) {
|
if (freq >= 300000 && freq <= 2500000 && sf >= 5 && sf <= 12 && cr >= 5 && cr <= 8 && bw >= 7000 &&
|
||||||
writeErrFrame(ERR_CODE_ILLEGAL_ARG);
|
|
||||||
} else if (freq >= 300000 && freq <= 2500000 && sf >= 5 && sf <= 12 && cr >= 5 && cr <= 8 && bw >= 7000 &&
|
|
||||||
bw <= 500000) {
|
bw <= 500000) {
|
||||||
_prefs.sf = sf;
|
_prefs.sf = sf;
|
||||||
_prefs.cr = cr;
|
_prefs.cr = cr;
|
||||||
_prefs.freq = (float)freq / 1000.0;
|
_prefs.freq = (float)freq / 1000.0;
|
||||||
_prefs.bw = (float)bw / 1000.0;
|
_prefs.bw = (float)bw / 1000.0;
|
||||||
_prefs.client_repeat = repeat;
|
|
||||||
savePrefs();
|
savePrefs();
|
||||||
|
|
||||||
radio_set_params(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr);
|
radio_set_params(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr);
|
||||||
@@ -1782,15 +1741,6 @@ void MyMesh::handleCmdFrame(size_t len) {
|
|||||||
out_frame[i++] = RESP_CODE_AUTOADD_CONFIG;
|
out_frame[i++] = RESP_CODE_AUTOADD_CONFIG;
|
||||||
out_frame[i++] = _prefs.autoadd_config;
|
out_frame[i++] = _prefs.autoadd_config;
|
||||||
_serial->writeFrame(out_frame, i);
|
_serial->writeFrame(out_frame, i);
|
||||||
} else if (cmd_frame[0] == CMD_GET_ALLOWED_REPEAT_FREQ) {
|
|
||||||
int i = 0;
|
|
||||||
out_frame[i++] = RESP_ALLOWED_REPEAT_FREQ;
|
|
||||||
for (int k = 0; k < sizeof(repeat_freq_ranges)/sizeof(repeat_freq_ranges[0]) && i + 8 < sizeof(out_frame); k++) {
|
|
||||||
auto r = &repeat_freq_ranges[k];
|
|
||||||
memcpy(&out_frame[i], &r->lower_freq, 4); i += 4;
|
|
||||||
memcpy(&out_frame[i], &r->upper_freq, 4); i += 4;
|
|
||||||
}
|
|
||||||
_serial->writeFrame(out_frame, i);
|
|
||||||
} else {
|
} else {
|
||||||
writeErrFrame(ERR_CODE_UNSUPPORTED_CMD);
|
writeErrFrame(ERR_CODE_UNSUPPORTED_CMD);
|
||||||
MESH_DEBUG_PRINTLN("ERROR: unknown command: %02X", cmd_frame[0]);
|
MESH_DEBUG_PRINTLN("ERROR: unknown command: %02X", cmd_frame[0]);
|
||||||
|
|||||||
@@ -5,14 +5,14 @@
|
|||||||
#include "AbstractUITask.h"
|
#include "AbstractUITask.h"
|
||||||
|
|
||||||
/*------------ Frame Protocol --------------*/
|
/*------------ Frame Protocol --------------*/
|
||||||
#define FIRMWARE_VER_CODE 9
|
#define FIRMWARE_VER_CODE 8
|
||||||
|
|
||||||
#ifndef FIRMWARE_BUILD_DATE
|
#ifndef FIRMWARE_BUILD_DATE
|
||||||
#define FIRMWARE_BUILD_DATE "15 Feb 2026"
|
#define FIRMWARE_BUILD_DATE "29 Jan 2026"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FIRMWARE_VERSION
|
#ifndef FIRMWARE_VERSION
|
||||||
#define FIRMWARE_VERSION "v1.13.0"
|
#define FIRMWARE_VERSION "v1.12.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
|
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
|
||||||
@@ -106,11 +106,8 @@ protected:
|
|||||||
float getAirtimeBudgetFactor() const override;
|
float getAirtimeBudgetFactor() const override;
|
||||||
int getInterferenceThreshold() const override;
|
int getInterferenceThreshold() const override;
|
||||||
int calcRxDelay(float score, uint32_t air_time) const override;
|
int calcRxDelay(float score, uint32_t air_time) const override;
|
||||||
uint32_t getRetransmitDelay(const mesh::Packet *packet) override;
|
|
||||||
uint32_t getDirectRetransmitDelay(const mesh::Packet *packet) override;
|
|
||||||
uint8_t getExtraAckTransmitCount() const override;
|
uint8_t getExtraAckTransmitCount() const override;
|
||||||
bool filterRecvFloodPacket(mesh::Packet* packet) override;
|
bool filterRecvFloodPacket(mesh::Packet* packet) override;
|
||||||
bool allowPacketForward(const mesh::Packet* packet) override;
|
|
||||||
|
|
||||||
void sendFloodScoped(const ContactInfo& recipient, mesh::Packet* pkt, uint32_t delay_millis=0) override;
|
void sendFloodScoped(const ContactInfo& recipient, mesh::Packet* pkt, uint32_t delay_millis=0) override;
|
||||||
void sendFloodScoped(const mesh::GroupChannel& channel, mesh::Packet* pkt, uint32_t delay_millis=0) override;
|
void sendFloodScoped(const mesh::GroupChannel& channel, mesh::Packet* pkt, uint32_t delay_millis=0) override;
|
||||||
@@ -179,7 +176,6 @@ private:
|
|||||||
|
|
||||||
void checkCLIRescueCmd();
|
void checkCLIRescueCmd();
|
||||||
void checkSerialInterface();
|
void checkSerialInterface();
|
||||||
bool isValidClientRepeatFreq(uint32_t f) const;
|
|
||||||
|
|
||||||
// helpers, short-cuts
|
// helpers, short-cuts
|
||||||
void saveChannels() { _store->saveChannels(this); }
|
void saveChannels() { _store->saveChannels(this); }
|
||||||
|
|||||||
@@ -28,5 +28,4 @@ struct NodePrefs { // persisted to file
|
|||||||
uint8_t gps_enabled; // GPS enabled flag (0=disabled, 1=enabled)
|
uint8_t gps_enabled; // GPS enabled flag (0=disabled, 1=enabled)
|
||||||
uint32_t gps_interval; // GPS read interval in seconds
|
uint32_t gps_interval; // GPS read interval in seconds
|
||||||
uint8_t autoadd_config; // bitmask for auto-add contacts config
|
uint8_t autoadd_config; // bitmask for auto-add contacts config
|
||||||
uint8_t client_repeat;
|
|
||||||
};
|
};
|
||||||
@@ -131,14 +131,6 @@ class HomeScreen : public UIScreen {
|
|||||||
// fill the battery based on the percentage
|
// fill the battery based on the percentage
|
||||||
int fillWidth = (batteryPercentage * (iconWidth - 4)) / 100;
|
int fillWidth = (batteryPercentage * (iconWidth - 4)) / 100;
|
||||||
display.fillRect(iconX + 2, iconY + 2, fillWidth, iconHeight - 4);
|
display.fillRect(iconX + 2, iconY + 2, fillWidth, iconHeight - 4);
|
||||||
|
|
||||||
// show muted icon if buzzer is muted
|
|
||||||
#ifdef PIN_BUZZER
|
|
||||||
if (_task->isBuzzerQuiet()) {
|
|
||||||
display.setColor(DisplayDriver::RED);
|
|
||||||
display.drawXbm(iconX - 9, iconY + 1, muted_icon, 8, 8);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CayenneLPP sensors_lpp;
|
CayenneLPP sensors_lpp;
|
||||||
|
|||||||
@@ -78,14 +78,6 @@ public:
|
|||||||
bool hasDisplay() const { return _display != NULL; }
|
bool hasDisplay() const { return _display != NULL; }
|
||||||
bool isButtonPressed() const;
|
bool isButtonPressed() const;
|
||||||
|
|
||||||
bool isBuzzerQuiet() {
|
|
||||||
#ifdef PIN_BUZZER
|
|
||||||
return buzzer.isQuiet();
|
|
||||||
#else
|
|
||||||
return true;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void toggleBuzzer();
|
void toggleBuzzer();
|
||||||
bool getGPSState();
|
bool getGPSState();
|
||||||
void toggleGPS();
|
void toggleGPS();
|
||||||
|
|||||||
@@ -116,7 +116,3 @@ static const uint8_t advert_icon[] = {
|
|||||||
0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x04, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t muted_icon[] = {
|
|
||||||
0x20, 0x6a, 0xea, 0xe4, 0xe4, 0xea, 0x6a, 0x20
|
|
||||||
};
|
|
||||||
@@ -292,7 +292,6 @@ int MyMesh::handleRequest(ClientInfo *sender, uint32_t sender_timestamp, uint8_t
|
|||||||
|
|
||||||
// create copy of neighbours list, skipping empty entries so we can sort it separately from main list
|
// create copy of neighbours list, skipping empty entries so we can sort it separately from main list
|
||||||
int16_t neighbours_count = 0;
|
int16_t neighbours_count = 0;
|
||||||
#if MAX_NEIGHBOURS
|
|
||||||
NeighbourInfo* sorted_neighbours[MAX_NEIGHBOURS];
|
NeighbourInfo* sorted_neighbours[MAX_NEIGHBOURS];
|
||||||
for (int i = 0; i < MAX_NEIGHBOURS; i++) {
|
for (int i = 0; i < MAX_NEIGHBOURS; i++) {
|
||||||
auto neighbour = &neighbours[i];
|
auto neighbour = &neighbours[i];
|
||||||
@@ -328,7 +327,6 @@ int MyMesh::handleRequest(ClientInfo *sender, uint32_t sender_timestamp, uint8_t
|
|||||||
return a->snr < b->snr; // asc
|
return a->snr < b->snr; // asc
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// build results buffer
|
// build results buffer
|
||||||
int results_count = 0;
|
int results_count = 0;
|
||||||
@@ -343,7 +341,6 @@ int MyMesh::handleRequest(ClientInfo *sender, uint32_t sender_timestamp, uint8_t
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if MAX_NEIGHBOURS
|
|
||||||
// add next neighbour to results
|
// add next neighbour to results
|
||||||
auto neighbour = sorted_neighbours[index + offset];
|
auto neighbour = sorted_neighbours[index + offset];
|
||||||
uint32_t heard_seconds_ago = getRTCClock()->getCurrentTime() - neighbour->heard_timestamp;
|
uint32_t heard_seconds_ago = getRTCClock()->getCurrentTime() - neighbour->heard_timestamp;
|
||||||
@@ -351,7 +348,6 @@ int MyMesh::handleRequest(ClientInfo *sender, uint32_t sender_timestamp, uint8_t
|
|||||||
memcpy(&results_buffer[results_offset], &heard_seconds_ago, 4); results_offset += 4;
|
memcpy(&results_buffer[results_offset], &heard_seconds_ago, 4); results_offset += 4;
|
||||||
memcpy(&results_buffer[results_offset], &neighbour->snr, 1); results_offset += 1;
|
memcpy(&results_buffer[results_offset], &neighbour->snr, 1); results_offset += 1;
|
||||||
results_count++;
|
results_count++;
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -750,47 +746,6 @@ void MyMesh::onControlDataRecv(mesh::Packet* packet) {
|
|||||||
sendZeroHop(resp, getRetransmitDelay(resp)*4); // apply random delay (widened x4), as multiple nodes can respond to this
|
sendZeroHop(resp, getRetransmitDelay(resp)*4); // apply random delay (widened x4), as multiple nodes can respond to this
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (type == CTL_TYPE_NODE_DISCOVER_RESP && packet->payload_len >= 6) {
|
|
||||||
uint8_t node_type = packet->payload[0] & 0x0F;
|
|
||||||
if (node_type != ADV_TYPE_REPEATER) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (packet->payload_len < 6 + PUB_KEY_SIZE) {
|
|
||||||
MESH_DEBUG_PRINTLN("onControlDataRecv: DISCOVER_RESP pubkey too short: %d", (uint32_t)packet->payload_len);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pending_discover_tag == 0 || millisHasNowPassed(pending_discover_until)) {
|
|
||||||
pending_discover_tag = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
uint32_t tag;
|
|
||||||
memcpy(&tag, &packet->payload[2], 4);
|
|
||||||
if (tag != pending_discover_tag) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
mesh::Identity id(&packet->payload[6]);
|
|
||||||
if (id.matches(self_id)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
putNeighbour(id, rtc_clock.getCurrentTime(), packet->getSNR());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyMesh::sendNodeDiscoverReq() {
|
|
||||||
uint8_t data[10];
|
|
||||||
data[0] = CTL_TYPE_NODE_DISCOVER_REQ; // prefix_only=0
|
|
||||||
data[1] = (1 << ADV_TYPE_REPEATER);
|
|
||||||
getRNG()->random(&data[2], 4); // tag
|
|
||||||
memcpy(&pending_discover_tag, &data[2], 4);
|
|
||||||
pending_discover_until = futureMillis(60000);
|
|
||||||
uint32_t since = 0;
|
|
||||||
memcpy(&data[6], &since, 4);
|
|
||||||
|
|
||||||
auto pkt = createControlData(data, sizeof(data));
|
|
||||||
if (pkt) {
|
|
||||||
sendZeroHop(pkt);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -824,7 +779,7 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
|||||||
_prefs.airtime_factor = 1.0;
|
_prefs.airtime_factor = 1.0;
|
||||||
_prefs.rx_delay_base = 0.0f; // turn off by default, was 10.0;
|
_prefs.rx_delay_base = 0.0f; // turn off by default, was 10.0;
|
||||||
_prefs.tx_delay_factor = 0.5f; // was 0.25f
|
_prefs.tx_delay_factor = 0.5f; // was 0.25f
|
||||||
_prefs.direct_tx_delay_factor = 0.3f; // was 0.2
|
_prefs.direct_tx_delay_factor = 0.2f; // was zero
|
||||||
StrHelper::strncpy(_prefs.node_name, ADVERT_NAME, sizeof(_prefs.node_name));
|
StrHelper::strncpy(_prefs.node_name, ADVERT_NAME, sizeof(_prefs.node_name));
|
||||||
_prefs.node_lat = ADVERT_LAT;
|
_prefs.node_lat = ADVERT_LAT;
|
||||||
_prefs.node_lon = ADVERT_LON;
|
_prefs.node_lon = ADVERT_LON;
|
||||||
@@ -855,9 +810,6 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
|
|||||||
_prefs.advert_loc_policy = ADVERT_LOC_PREFS;
|
_prefs.advert_loc_policy = ADVERT_LOC_PREFS;
|
||||||
|
|
||||||
_prefs.adc_multiplier = 0.0f; // 0.0f means use default board multiplier
|
_prefs.adc_multiplier = 0.0f; // 0.0f means use default board multiplier
|
||||||
|
|
||||||
pending_discover_tag = 0;
|
|
||||||
pending_discover_until = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyMesh::begin(FILESYSTEM *fs) {
|
void MyMesh::begin(FILESYSTEM *fs) {
|
||||||
@@ -1225,15 +1177,6 @@ void MyMesh::handleCommand(uint32_t sender_timestamp, char *command, char *reply
|
|||||||
} else {
|
} else {
|
||||||
strcpy(reply, "Err - ??");
|
strcpy(reply, "Err - ??");
|
||||||
}
|
}
|
||||||
} else if (memcmp(command, "discover.neighbors", 18) == 0) {
|
|
||||||
const char* sub = command + 18;
|
|
||||||
while (*sub == ' ') sub++;
|
|
||||||
if (*sub != 0) {
|
|
||||||
strcpy(reply, "Err - discover.neighbors has no options");
|
|
||||||
} else {
|
|
||||||
sendNodeDiscoverReq();
|
|
||||||
strcpy(reply, "OK - Discover sent");
|
|
||||||
}
|
|
||||||
} else{
|
} else{
|
||||||
_cli.handleCommand(sender_timestamp, command, reply); // common CLI commands
|
_cli.handleCommand(sender_timestamp, command, reply); // common CLI commands
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,11 +69,11 @@ struct NeighbourInfo {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifndef FIRMWARE_BUILD_DATE
|
#ifndef FIRMWARE_BUILD_DATE
|
||||||
#define FIRMWARE_BUILD_DATE "15 Feb 2026"
|
#define FIRMWARE_BUILD_DATE "29 Jan 2026"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FIRMWARE_VERSION
|
#ifndef FIRMWARE_VERSION
|
||||||
#define FIRMWARE_VERSION "v1.13.0"
|
#define FIRMWARE_VERSION "v1.12.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FIRMWARE_ROLE "repeater"
|
#define FIRMWARE_ROLE "repeater"
|
||||||
@@ -97,8 +97,6 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
|
|||||||
RegionEntry* load_stack[8];
|
RegionEntry* load_stack[8];
|
||||||
RegionEntry* recv_pkt_region;
|
RegionEntry* recv_pkt_region;
|
||||||
RateLimiter discover_limiter, anon_limiter;
|
RateLimiter discover_limiter, anon_limiter;
|
||||||
uint32_t pending_discover_tag;
|
|
||||||
unsigned long pending_discover_until;
|
|
||||||
bool region_load_active;
|
bool region_load_active;
|
||||||
unsigned long dirty_contacts_expiry;
|
unsigned long dirty_contacts_expiry;
|
||||||
#if MAX_NEIGHBOURS
|
#if MAX_NEIGHBOURS
|
||||||
@@ -118,7 +116,6 @@ class MyMesh : public mesh::Mesh, public CommonCLICallbacks {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void putNeighbour(const mesh::Identity& id, uint32_t timestamp, float snr);
|
void putNeighbour(const mesh::Identity& id, uint32_t timestamp, float snr);
|
||||||
void sendNodeDiscoverReq();
|
|
||||||
uint8_t handleLoginReq(const mesh::Identity& sender, const uint8_t* secret, uint32_t sender_timestamp, const uint8_t* data, bool is_flood);
|
uint8_t handleLoginReq(const mesh::Identity& sender, const uint8_t* secret, uint32_t sender_timestamp, const uint8_t* data, bool is_flood);
|
||||||
uint8_t handleAnonRegionsReq(const mesh::Identity& sender, uint32_t sender_timestamp, const uint8_t* data);
|
uint8_t handleAnonRegionsReq(const mesh::Identity& sender, uint32_t sender_timestamp, const uint8_t* data);
|
||||||
uint8_t handleAnonOwnerReq(const mesh::Identity& sender, uint32_t sender_timestamp, const uint8_t* data);
|
uint8_t handleAnonOwnerReq(const mesh::Identity& sender, uint32_t sender_timestamp, const uint8_t* data);
|
||||||
|
|||||||
@@ -26,11 +26,11 @@
|
|||||||
/* ------------------------------ Config -------------------------------- */
|
/* ------------------------------ Config -------------------------------- */
|
||||||
|
|
||||||
#ifndef FIRMWARE_BUILD_DATE
|
#ifndef FIRMWARE_BUILD_DATE
|
||||||
#define FIRMWARE_BUILD_DATE "15 Feb 2026"
|
#define FIRMWARE_BUILD_DATE "29 Jan 2026"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FIRMWARE_VERSION
|
#ifndef FIRMWARE_VERSION
|
||||||
#define FIRMWARE_VERSION "v1.13.0"
|
#define FIRMWARE_VERSION "v1.12.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LORA_FREQ
|
#ifndef LORA_FREQ
|
||||||
|
|||||||
@@ -33,11 +33,11 @@
|
|||||||
#define PERM_RECV_ALERTS_HI (1 << 7) // high priority alerts
|
#define PERM_RECV_ALERTS_HI (1 << 7) // high priority alerts
|
||||||
|
|
||||||
#ifndef FIRMWARE_BUILD_DATE
|
#ifndef FIRMWARE_BUILD_DATE
|
||||||
#define FIRMWARE_BUILD_DATE "15 Feb 2026"
|
#define FIRMWARE_BUILD_DATE "29 Jan 2026"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FIRMWARE_VERSION
|
#ifndef FIRMWARE_VERSION
|
||||||
#define FIRMWARE_VERSION "v1.13.0"
|
#define FIRMWARE_VERSION "v1.12.0"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FIRMWARE_ROLE "sensor"
|
#define FIRMWARE_ROLE "sensor"
|
||||||
|
|||||||
8
fetch_prs.sh
Executable file
8
fetch_prs.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git branch -D pr-1297
|
||||||
|
git branch -D pr-1338
|
||||||
|
|
||||||
|
# fetch PRs
|
||||||
|
git fetch upstream pull/1338/head:pr-1338
|
||||||
|
git fetch upstream pull/1297/head:pr-1297
|
||||||
8
merge_prs.sh
Executable file
8
merge_prs.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git merge pr-1338 --no-edit -m "Integration of upstrem PR #1338"
|
||||||
|
git merge pr-1297 --no-edit -m "Integration of upstrem PR #1297"
|
||||||
|
|
||||||
|
git merge pio-ini-adjustments -m "platformio.ini: Adjust defaults for LoRa frequncies and advert interval limits"
|
||||||
|
|
||||||
|
|
||||||
@@ -59,7 +59,6 @@ platform = platformio/espressif32@6.11.0
|
|||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
extra_scripts = merge-bin.py
|
extra_scripts = merge-bin.py
|
||||||
build_flags = ${arduino_base.build_flags}
|
build_flags = ${arduino_base.build_flags}
|
||||||
-D ESP32_PLATFORM
|
|
||||||
; -D ESP32_CPU_FREQ=80 ; change it to your need
|
; -D ESP32_CPU_FREQ=80 ; change it to your need
|
||||||
build_src_filter = ${arduino_base.build_src_filter}
|
build_src_filter = ${arduino_base.build_src_filter}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include "SerialBLEInterface.h"
|
#include "SerialBLEInterface.h"
|
||||||
#include "esp_mac.h"
|
|
||||||
|
|
||||||
// See the following for generating UUIDs:
|
// See the following for generating UUIDs:
|
||||||
// https://www.uuidgenerator.net/
|
// https://www.uuidgenerator.net/
|
||||||
|
|||||||
56
tools/maint/README.md
Normal file
56
tools/maint/README.md
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# Maintenance Tools
|
||||||
|
|
||||||
|
This directory contains automation for managing our **Friendly Fork**. It allows us to integrate community-submitted Pull Requests from the upstream repository into our local development branches.
|
||||||
|
|
||||||
|
## Why this exists
|
||||||
|
|
||||||
|
In firmware development, critical bug fixes or hardware support often exist in the upstream "Pull Request" queue long before they are officially merged. This tool allows us to build an integrated firmware version that includes those necessary patches while remaining syncable with the official source.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### 1. Prerequisites
|
||||||
|
|
||||||
|
You must have the original repository added as a remote named `upstream`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git remote add upstream https://github.com/meshcore-dev/MeshCore.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Basic Commands
|
||||||
|
|
||||||
|
**Apply specific patches:**
|
||||||
|
To pull in PR #1338 and PR #1400 from the upstream project:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./tools/maint/apply_patches.sh 1338 1400
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
**Start over (Reset):**
|
||||||
|
To wipe the integrated branch and reset it to match the official upstream `main` branch exactly:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./tools/maint/apply_patches.sh --reset
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Traceability
|
||||||
|
|
||||||
|
Every time this script runs, it updates `patch_manifest.log`. This file tracks:
|
||||||
|
|
||||||
|
* The date of the integration.
|
||||||
|
* The base commit SHA we started from.
|
||||||
|
* The specific commit SHA of every PR applied.
|
||||||
|
|
||||||
|
**This log is essential for debugging firmware regressions.** If the hardware fails, check the manifest to identify which experimental patch might be the cause.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### A Note on Merge Conflicts
|
||||||
|
|
||||||
|
If a PR cannot be applied automatically, the script will abort the merge. You will need to:
|
||||||
|
|
||||||
|
1. Manually merge the PR.
|
||||||
|
2. Resolve the conflicts in your editor.
|
||||||
|
3. Commit the result.
|
||||||
|
4. Manually update the `patch_manifest.log`.
|
||||||
65
tools/maint/apply_patches.sh
Executable file
65
tools/maint/apply_patches.sh
Executable file
@@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Configuration
|
||||||
|
UPSTREAM_REMOTE="upstream"
|
||||||
|
BASE_BRANCH="main" # Change to 'master' if that's what upstream uses
|
||||||
|
TARGET_BRANCH="main-integrated"
|
||||||
|
MANIFEST_FILE="tools/maint/patch_manifest.log"
|
||||||
|
|
||||||
|
# Function to reset the branch
|
||||||
|
reset_to_upstream() {
|
||||||
|
echo "Warning: This will wipe all local changes on $TARGET_BRANCH."
|
||||||
|
read -p "Are you sure you want to reset to $UPSTREAM_REMOTE/$BASE_BRANCH? (y/n) " -n 1 -r
|
||||||
|
echo
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
|
git fetch "$UPSTREAM_REMOTE"
|
||||||
|
git checkout -B "$TARGET_BRANCH" "$UPSTREAM_REMOTE/$BASE_BRANCH"
|
||||||
|
echo "--- Reset to Upstream: $(date) ---" > "$MANIFEST_FILE"
|
||||||
|
echo "Base Commit: $(git rev-parse HEAD)" >> "$MANIFEST_FILE"
|
||||||
|
echo "Reset successful. Branch is now clean."
|
||||||
|
else
|
||||||
|
echo "Reset aborted."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check for reset flag
|
||||||
|
if [[ "$1" == "--reset" ]]; then
|
||||||
|
reset_to_upstream
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Standard PR application logic
|
||||||
|
PR_IDS=("$@")
|
||||||
|
if [ ${#PR_IDS[@]} -eq 0 ]; then
|
||||||
|
echo "Usage:"
|
||||||
|
echo " Apply PRs: $0 <PR_ID1> <PR_ID2> ..."
|
||||||
|
echo " Reset: $0 --reset"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Ensure target branch exists and is checked out
|
||||||
|
git checkout -B "$TARGET_BRANCH"
|
||||||
|
|
||||||
|
echo "--- Patch Session: $(date) ---" >> "$MANIFEST_FILE"
|
||||||
|
|
||||||
|
for PR in "${PR_IDS[@]}"; do
|
||||||
|
echo "--------------------------------------"
|
||||||
|
echo "Fetching PR #$PR..."
|
||||||
|
|
||||||
|
if git fetch "$UPSTREAM_REMOTE" "pull/$PR/head:PR_TEMP_FETCH"; then
|
||||||
|
if git merge PR_TEMP_FETCH --no-edit -m "Integrate upstream PR #$PR"; then
|
||||||
|
echo "Successfully integrated PR #$PR"
|
||||||
|
echo "PR #$PR SHA: $(git rev-parse PR_TEMP_FETCH)" >> "$MANIFEST_FILE"
|
||||||
|
else
|
||||||
|
echo "Conflict in PR #$PR. Aborting merge."
|
||||||
|
git merge --abort
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
git branch -D PR_TEMP_FETCH
|
||||||
|
else
|
||||||
|
echo "Error: PR #$PR not found."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "--------------------------------------"
|
||||||
|
echo "Done. See $MANIFEST_FILE for details."
|
||||||
64
tools/maint/patch_and_build_hansemesh_fw.sh
Executable file
64
tools/maint/patch_and_build_hansemesh_fw.sh
Executable file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/bash # Note: switched to bash for process substitution support
|
||||||
|
|
||||||
|
export PATH="$HOME/.platformio/penv/bin:$PATH"
|
||||||
|
|
||||||
|
LOGFILE="$PWD/meshcore-evo-fw.log"
|
||||||
|
FIRMWARE_VERSION="v1.12.0-evo_0.1.7"
|
||||||
|
FIRMWARE_BUILD_DATE=$(date '+%d-%b-%Y')
|
||||||
|
|
||||||
|
collect_bin_files(){
|
||||||
|
DEST_DIR="./firmwares"
|
||||||
|
mkdir -p "$DEST_DIR"
|
||||||
|
BUILD_DIR=".pio/build"
|
||||||
|
|
||||||
|
if [ ! -d "$BUILD_DIR" ]; then
|
||||||
|
echo "Error: $BUILD_DIR not found. Did you run the build process?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Copying firmware files to $DEST_DIR..."
|
||||||
|
|
||||||
|
for target_path in "$BUILD_DIR"/*/; do
|
||||||
|
echo $target_path
|
||||||
|
target_name=$(basename "$target_path")
|
||||||
|
# if ls "$target_path"*.bin >/dev/null 2>&1; then
|
||||||
|
for bin_file in "$target_path"*firmware*.{uf2,bin,zip}; do
|
||||||
|
filename=$(basename "$bin_file")
|
||||||
|
new_filename="${target_name}_${FIRMWARE_VERSION}_${FIRMWARE_BUILD_DATE}_${filename}"
|
||||||
|
cp "$bin_file" "$DEST_DIR/$new_filename"
|
||||||
|
echo "Done: $new_filename"
|
||||||
|
done
|
||||||
|
# fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Everything after this line goes to BOTH console and logfile
|
||||||
|
exec > >(tee -a "$LOGFILE") 2>&1
|
||||||
|
|
||||||
|
echo "-------------------- Build start ----------------"
|
||||||
|
date
|
||||||
|
echo "-------------------------------------------------"
|
||||||
|
|
||||||
|
# apply patches
|
||||||
|
# ./tools/maint/apply_patches.sh 1199 1338 1297
|
||||||
|
|
||||||
|
# build all repeater firmwares, the will be in .out
|
||||||
|
FIRMWARE_VERSION=$FIRMWARE_VERSION ./build.sh build-repeater-firmwares
|
||||||
|
|
||||||
|
# build single firmwares
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware ProMicro_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware RAK_4631_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware heltec_v4_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware Heltec_v3_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware Xiao_nrf52_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware LilyGo_T3S3_sx1262_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware Heltec_t114_without_display_repeater
|
||||||
|
#FIRMWARE_VERSION=$FIRMWARE_VERSION FIRMWARE_BUILD_DATE=$FIRMWARE_BUILD_DATE ./build.sh build-firmware Heltec_t114_repeater
|
||||||
|
#collect_bin_files
|
||||||
|
|
||||||
|
|
||||||
|
echo "-------------------- Build end ------------------"
|
||||||
|
date
|
||||||
|
echo "-------------------------------------------------"
|
||||||
|
|
||||||
|
#grep -E " SUCCESS | FAILED " hansemesh_fw.log
|
||||||
@@ -26,7 +26,6 @@ build_flags =
|
|||||||
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
|
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
|
||||||
-D SX126X_CURRENT_LIMIT=140
|
-D SX126X_CURRENT_LIMIT=140
|
||||||
-D SX126X_RX_BOOSTED_GAIN=1
|
-D SX126X_RX_BOOSTED_GAIN=1
|
||||||
-D SX126X_REGISTER_PATCH=1
|
|
||||||
-D PIN_BOARD_SDA=5
|
-D PIN_BOARD_SDA=5
|
||||||
-D PIN_BOARD_SCL=6
|
-D PIN_BOARD_SCL=6
|
||||||
-D PIN_USER_BTN=0
|
-D PIN_USER_BTN=0
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ build_flags =
|
|||||||
-D P_LORA_SCLK=5 ; SPI clock
|
-D P_LORA_SCLK=5 ; SPI clock
|
||||||
-D P_LORA_MISO=19 ; SPI MISO
|
-D P_LORA_MISO=19 ; SPI MISO
|
||||||
-D P_LORA_MOSI=27 ; SPI MOSI
|
-D P_LORA_MOSI=27 ; SPI MOSI
|
||||||
-D P_LORA_TX_LED=25 ; LED pin for TX indication
|
-D P_LORA_TX_LED=2 ; LED pin for TX indication
|
||||||
-D PIN_BOARD_SDA=21
|
-D PIN_BOARD_SDA=21
|
||||||
-D PIN_BOARD_SCL=22
|
-D PIN_BOARD_SCL=22
|
||||||
-D PIN_VBAT_READ=35 ; Battery voltage reading (analog pin)
|
-D PIN_VBAT_READ=35 ; Battery voltage reading (analog pin)
|
||||||
@@ -65,7 +65,7 @@ build_flags =
|
|||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
build_src_filter = ${LilyGo_TLora_V2_1_1_6.build_src_filter}
|
||||||
+<../examples/simple_secure_chat/main.cpp>
|
+<../examples/simple_repeater>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${LilyGo_TLora_V2_1_1_6.lib_deps}
|
${LilyGo_TLora_V2_1_1_6.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
|
|||||||
build_flags =
|
build_flags =
|
||||||
${esp32c6_base.build_flags}
|
${esp32c6_base.build_flags}
|
||||||
${sensor_base.build_flags}
|
${sensor_base.build_flags}
|
||||||
-I variants/m5stack_unit_c6l
|
-I variants/M5Stack_Unit_C6L
|
||||||
-D P_LORA_TX_LED=15
|
-D P_LORA_TX_LED=15
|
||||||
-D P_LORA_SCLK=20
|
-D P_LORA_SCLK=20
|
||||||
-D P_LORA_MISO=22
|
-D P_LORA_MISO=22
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ build_flags =
|
|||||||
-I variants/rak3112
|
-I variants/rak3112
|
||||||
-D RAK_3112=1
|
-D RAK_3112=1
|
||||||
-D ESP32_CPU_FREQ=80
|
-D ESP32_CPU_FREQ=80
|
||||||
-D ARDUINO_USB_CDC_ON_BOOT=1
|
|
||||||
-D P_LORA_DIO_1=47
|
-D P_LORA_DIO_1=47
|
||||||
-D P_LORA_NSS=7
|
-D P_LORA_NSS=7
|
||||||
-D P_LORA_RESET=8
|
-D P_LORA_RESET=8
|
||||||
@@ -132,14 +131,14 @@ lib_deps =
|
|||||||
extends = rak3112
|
extends = rak3112
|
||||||
build_flags =
|
build_flags =
|
||||||
${rak3112.build_flags}
|
${rak3112.build_flags}
|
||||||
-I examples/companion_radio/ui-orig
|
-I examples/companion_radio/ui-new
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
|
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
|
||||||
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
|
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
|
||||||
build_src_filter = ${rak3112.build_src_filter}
|
build_src_filter = ${rak3112.build_src_filter}
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../examples/companion_radio/ui-orig/*.cpp>
|
+<../examples/companion_radio/ui-new/*.cpp>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${rak3112.lib_deps}
|
${rak3112.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
@@ -148,7 +147,7 @@ lib_deps =
|
|||||||
extends = rak3112
|
extends = rak3112
|
||||||
build_flags =
|
build_flags =
|
||||||
${rak3112.build_flags}
|
${rak3112.build_flags}
|
||||||
-I examples/companion_radio/ui-orig
|
-I examples/companion_radio/ui-new
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
-D BLE_PIN_CODE=123456 ; dynamic, random PIN
|
||||||
@@ -160,7 +159,7 @@ build_flags =
|
|||||||
build_src_filter = ${rak3112.build_src_filter}
|
build_src_filter = ${rak3112.build_src_filter}
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../examples/companion_radio/ui-orig/*.cpp>
|
+<../examples/companion_radio/ui-new/*.cpp>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${rak3112.lib_deps}
|
${rak3112.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
@@ -169,7 +168,7 @@ lib_deps =
|
|||||||
extends = rak3112
|
extends = rak3112
|
||||||
build_flags =
|
build_flags =
|
||||||
${rak3112.build_flags}
|
${rak3112.build_flags}
|
||||||
-I examples/companion_radio/ui-orig
|
-I examples/companion_radio/ui-new
|
||||||
-D MAX_CONTACTS=350
|
-D MAX_CONTACTS=350
|
||||||
-D MAX_GROUP_CHANNELS=40
|
-D MAX_GROUP_CHANNELS=40
|
||||||
-D WIFI_DEBUG_LOGGING=1
|
-D WIFI_DEBUG_LOGGING=1
|
||||||
@@ -181,7 +180,7 @@ build_flags =
|
|||||||
build_src_filter = ${rak3112.build_src_filter}
|
build_src_filter = ${rak3112.build_src_filter}
|
||||||
+<helpers/esp32/*.cpp>
|
+<helpers/esp32/*.cpp>
|
||||||
+<../examples/companion_radio/*.cpp>
|
+<../examples/companion_radio/*.cpp>
|
||||||
+<../examples/companion_radio/ui-orig/*.cpp>
|
+<../examples/companion_radio/ui-new/*.cpp>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${rak3112.lib_deps}
|
${rak3112.lib_deps}
|
||||||
densaugeo/base64 @ ~1.4.0
|
densaugeo/base64 @ ~1.4.0
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ extern "C"
|
|||||||
|
|
||||||
// Power management boot protection threshold (millivolts)
|
// Power management boot protection threshold (millivolts)
|
||||||
// Set to 0 to disable boot protection
|
// Set to 0 to disable boot protection
|
||||||
#define PWRMGT_VOLTAGE_BOOTLOCK 3300 // Won't boot below this voltage (mV)
|
#define PWRMGT_VOLTAGE_BOOTLOCK 3100 // Won't boot below this voltage (mV)
|
||||||
// LPCOMP wake configuration (voltage recovery from SYSTEMOFF)
|
// LPCOMP wake configuration (voltage recovery from SYSTEMOFF)
|
||||||
// AIN3 = P0.05 = PIN_A0 / PIN_VBAT_READ
|
// AIN3 = P0.05 = PIN_A0 / PIN_VBAT_READ
|
||||||
#define PWRMGT_LPCOMP_AIN 3
|
#define PWRMGT_LPCOMP_AIN 3
|
||||||
|
|||||||
@@ -96,8 +96,6 @@ build_flags = ${WioTrackerL1.build_flags}
|
|||||||
-D PIN_BUZZER=12
|
-D PIN_BUZZER=12
|
||||||
-D QSPIFLASH=1
|
-D QSPIFLASH=1
|
||||||
-D ADVERT_NAME='"@@MAC"'
|
-D ADVERT_NAME='"@@MAC"'
|
||||||
-D ENV_PIN_SDA=PIN_WIRE1_SDA
|
|
||||||
-D ENV_PIN_SCL=PIN_WIRE1_SCL
|
|
||||||
; -D MESH_PACKET_LOGGING=1
|
; -D MESH_PACKET_LOGGING=1
|
||||||
; -D MESH_DEBUG=1
|
; -D MESH_DEBUG=1
|
||||||
build_src_filter = ${WioTrackerL1.build_src_filter}
|
build_src_filter = ${WioTrackerL1.build_src_filter}
|
||||||
|
|||||||
Reference in New Issue
Block a user