From 811ea175fa46d7d7505cdb964332729e62377acc Mon Sep 17 00:00:00 2001 From: uncle lit <43320854+LitBomb@users.noreply.github.com> Date: Tue, 1 Jul 2025 22:04:16 -0700 Subject: [PATCH 1/8] Update faq.md - rewrite Linux firmware update with more detailed instructions - fix T114 reset typo: double click twice, not once - add link reference to MeshCore logo on github - add public channel key for t-deck to the t-deck section - reference the verbiage "what is meshcore?" on meshcore.co.uk homepage --- docs/faq.md | 138 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 87 insertions(+), 51 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 1c67c9c7..ab7c63a0 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -31,13 +31,14 @@ author: https://github.com/LitBomb - [4.2. Q: Why is my T-Deck Plus not getting any satellite lock?](#42-q-why-is-my-t-deck-plus-not-getting-any-satellite-lock) - [4.3. Q: Why is my OG (non-Plus) T-Deck not getting any satellite lock?](#43-q-why-is-my-og-non-plus-t-deck-not-getting-any-satellite-lock) - [4.4. Q: What size of SD card does the T-Deck support?](#44-q-what-size-of-sd-card-does-the-t-deck-support) - - [4.5. Q: How do I get maps on T-Deck?](#45-q-how-do-i-get-maps-on-t-deck) - - [4.6. Q: Where do the map tiles go?](#46-q-where-do-the-map-tiles-go) - - [4.7. Q: How to unlock deeper map zoom and server management features on T-Deck?](#47-q-how-to-unlock-deeper-map-zoom-and-server-management-features-on-t-deck) - - [4.8. Q: How to decipher the diagnostics screen on T-Deck?](#48-q-how-to-decipher-the-diagnostics-screen-on-t-deck) - - [4.9. Q: The T-Deck sound is too loud?](#49-q-the-t-deck-sound-is-too-loud) - - [4.10. Q: Can you customize the sound?](#410-q-can-you-customize-the-sound) - - [4.11. Q: What is the 'Import from Clipboard' feature on the t-deck and is there a way to manually add nodes without having to receive adverts?](#411-q-what-is-the-import-from-clipboard-feature-on-the-t-deck-and-is-there-a-way-to-manually-add-nodes-without-having-to-receive-adverts) + - [4.5. Q: What is the public key for the default public channel?](#45-q-what-is-the-public-key-for-the-default-public-channel) + - [4.6. Q: How do I get maps on T-Deck?](#46-q-how-do-i-get-maps-on-t-deck) + - [4.7. Q: Where do the map tiles go?](#47-q-where-do-the-map-tiles-go) + - [4.8. Q: How to unlock deeper map zoom and server management features on T-Deck?](#48-q-how-to-unlock-deeper-map-zoom-and-server-management-features-on-t-deck) + - [4.9. Q: How to decipher the diagnostics screen on T-Deck?](#49-q-how-to-decipher-the-diagnostics-screen-on-t-deck) + - [4.10. Q: The T-Deck sound is too loud?](#410-q-the-t-deck-sound-is-too-loud) + - [4.11. Q: Can you customize the sound?](#411-q-can-you-customize-the-sound) + - [4.12. Q: What is the 'Import from Clipboard' feature on the t-deck and is there a way to manually add nodes without having to receive adverts?](#412-q-what-is-the-import-from-clipboard-feature-on-the-t-deck-and-is-there-a-way-to-manually-add-nodes-without-having-to-receive-adverts) - [5. General](#5-general) - [5.1. Q: What are BW, SF, and CR?](#51-q-what-are-bw-sf-and-cr) - [5.2. Q: Do MeshCore clients repeat?](#52-q-do-meshcore-clients-repeat) @@ -65,18 +66,20 @@ author: https://github.com/LitBomb - [6.4. 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: 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 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: WebFlasher fails on Linux with failed to open](#67-q-webflasher-fails-on-Linux-with-failed-to-open) - + - [6.7. Q: WebFlasher fails on Linux with failed to open](#67-q-webflasher-fails-on-linux-with-failed-to-open) - [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.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.4 Q are the MeshCore logo and font available?](#74-q-are-the-meshcore-logo-and-font-available) ## 1. Introduction ### 1.1. Q: What is MeshCore? -**A:** MeshCore is free and open source +**A:** MeshCore is a multi platform system for enabling secure text based communications utilising LoRa radio hardware. It can be used for Off-Grid Communication, Emergency Response & Disaster Recovery, Outdoor Activities, Tactical Security including law enforcement and private security and also IoT sensor networks. ([source](https://meshcore.co.uk/)) + +MeshCore is free and open source: * MeshCore is the routing and firmware etc, available on GitHub under MIT license * There are clients made by the community, such as the web clients, these are free to use, and some are open source too * The cross platform mobile app developed by [Liam Cottle](https://liamcottle.net) for Android/iOS/PC etc is free to download and use @@ -276,7 +279,18 @@ GPS on T-Deck is always enabled. You can skip the "GPS clock sync" and the T-De ### 4.4. Q: What size of SD card does the T-Deck support? **A:** Users have had no issues using 16GB or 32GB SD cards. Format the SD card to **FAT32**. -### 4.5. Q: How do I get maps on T-Deck? +### 4.5. Q: what is the public key for the default public channel? +**A:** +T-Deck uses the same key the smartphone apps use but in base64 +`izOH6cXN6mrJ5e26oRXNcg==` +The third character is the capital letter 'O', not zero `0` + +The smartphone app key is in hex: +` 8b3387e9c5cdea6ac9e5edbaa115cd72` + +[Source](https://discord.com/channels/826570251612323860/1330643963501351004/1354194409213792388) + +### 4.6. Q: How do I get maps on T-Deck? **A:** You need map tiles. You can get pre-downloaded map tiles here (a good way to support development): - (Europe) - (US) @@ -290,14 +304,14 @@ There is also a modified script that adds additional error handling and parallel UK map tiles are available separately from Andy Kirby on his discord server: -### 4.6. Q: Where do the map tiles go? +### 4.7. Q: Where do the map tiles go? Once you have the tiles downloaded, copy the `\tiles` folder to the root of your T-Deck's SD card. -### 4.7. Q: How to unlock deeper map zoom and server management features on T-Deck? +### 4.8. Q: How to unlock deeper map zoom and server management features on T-Deck? **A:** You can download, install, and use the T-Deck firmware for free, but it has some features (map zoom, server administration) that are enabled if you purchase an unlock code for \$10 per T-Deck device. Unlock page: -### 4.8. Q: How to decipher the diagnostics screen on T-Deck? +### 4.9. Q: How to decipher the diagnostics screen on T-Deck? **A: ** Space is tight on T-Deck's screen, so the information is a bit cryptic. The format is : `{hops} l:{packet-length}({payload-len}) t:{packet-type} snr:{n} rssi:{n}` @@ -316,12 +330,12 @@ See here for packet-type: [https://github.com/ripplebiz/MeshCore/blob/main/src/P [Source](https://discord.com/channels/1343693475589263471/1343693475589263474/1350611321040932966) -### 4.9. Q: The T-Deck sound is too loud? -### 4.10. Q: Can you customize the sound? +### 4.10. Q: The T-Deck sound is too loud? +### 4.11. Q: Can you customize the sound? **A:** You can customise the sounds on the T-Deck, just by placing `.mp3` files onto the `root` dir of the SD card. `startup.mp3`, `alert.mp3` and `new-advert.mp3` -### 4.11. Q: What is the 'Import from Clipboard' feature on the t-deck and is there a way to manually add nodes without having to receive adverts? +### 4.12. Q: What is the 'Import from Clipboard' feature on the t-deck and is there a way to manually add nodes without having to receive adverts? **A:** 'Import from Clipboard' is for importing a contact via a file named 'clipboard.txt' on the SD card. The opposite, is in the Identity screen, the 'Card to Clipboard' menu, which writes to 'clipboard.txt' so you can share yourself (call these 'biz cards', that start with "meshcore://...") @@ -450,45 +464,65 @@ This could change in the future if MeshCore develops a client firmware that repe ### 5.13. Q: Can I use a Raspberry Pi to update a MeshCore radio? ** A:** Yes. -You will need to install picocom on the pi. -`sudo apt install picocom` +Below are the instructions to flash firmware onto a supported LoRa device using a Raspberry Pi over USB serial. -Then run the following commands to setup the repeater. -``` -picocom -b 115200 /dev/ttyUSB0 --imap lfcrlf -set name your_repeater_name -time epoch_time -password your_unique_password -set advert.interval 240 -advert -``` -Note: If using a RAK the path will most likely be /dev/ttyACM0 +> Instructions for nRF devices like RAK, T1000-E, T114 are immediately after the ESP instructions -Epoch time comes from https://www.epochconverter.com/ +For ESP-based devices (e.g. Heltec V3) you need: +- Download firmware file from flasher.meshcore.co.uk + - Go to the web site on a browser, find the section that has the firmware up need + - Click the Download button, right click on the file you need, for example, + - `Heltec_V3_companion_radio_ble-v1.7.1-165fb33.bin` + - Non-merged bin keeps the existing Bluetooth pairing database + - `Heltec_v3_companion_radio_usb-v1.7.1-165fb33-merged.bin` + - Merged bin overwrites everything including the bootloader, existing Bluetooth pairing database, but keeps configurations. + - Right click on the file name and copy the link and note it for later use here is an example: `https://flasher.meshcore.dev/releases/download/companion-v1.7.1/Heltec_v3_companion_radio_ble-v1.7.1-165fb33.bin` + - Run: + - `wget https://flasher.meshcore.dev/releases/download/companion-v1.7.1/Heltec_v3_companion_radio_ble-v1.7.1-165fb33.bin` to download the firmware file for your device type. or the version you need - USB, BLE, Repeater, Room Server, merged bin or non-merged bin + - If the above wget command only downloads a very small file (10K bytes instead of more than 100K byte, use this command instead: + - `wget --user-agent="Mozilla/5.0" --content-disposition "https://flasher.meshcore.dev/releases/download/companion-v1.7.1/Heltec_v3_companion_radio_usb-v1.7.1-165fb33.bin"` + - Confirm the `ttyXXXX` device path on your Raspberry Pi: + - Go to `/dev` directory, run ls command to find confirm your device path + - They are usually `/dev/ttyUSB0` for ESP devices + - For ESP-based devices, install esptool from the shell: + - `pip install esptool --break-system-packages` + - To flash, use the following command: + - For non-merged bin: + - `esptool.py -p /dev/ttyUSB0 --chip esp32-s3 write_flash 0x10000 .bin` + - For merged bin: + - `esptool.py -p /dev/ttyUSB0 --chip esp32-s3 write_flash 0x00000 .bin` + -You can also flash the repeater using esptool. You will need to install esptool with the following command... -`pip install esptool --break-system-packages` +**Instructions for nRF devices:** -Then to flash the firmware to Heltec, obtain the .bin file from https://flasher.meshcore.co.uk/ (download all firmware link) +For nRF devices (e.g. RAK, Heltec T114) you need the following: +- Download firmware file from flasher.meshcore.co.uk + - Go to the web site on a browser, find the section that has the firmware up need + - You need the ZIP version for the adafruit flash tool (below) + - Click the Download button, right click on the ZIP file, for example: + - `RAK_4631_companion_radio_ble-v1.7.1-165fb33.zip` + - Right click on the file name and copy the link and note it for later use here is an example: `https://flasher.meshcore.dev/releases/download/companion-v1.7.1/RAK_4631_companion_radio_ble-v1.7.1-165fb33.zip` + - Run: + - `wget https://flasher.meshcore.dev/releases/download/companion-v1.7.1/RAK_4631_companion_radio_ble-v1.7.1-165fb33.zip` to download the firmware file for your device type. or the version you need - USB, BLE, Repeater, Room Server, ZIP file only + - Confirm the `ttyXXXX` device path on your Raspberry Pi: + - Go to `/dev` directory, run ls command to find confirm your device path + - They are usually `/dev/ttyACM0` for nRF devices + - For nRF-based devices, install adafruit-nrfutil + - `pip install adafruit-nrfutil --break-system-packages` + - Use this command to flash the nRF device: + - `adafruit-nrfutil --verbose dfu serial --package RAK_4631_companion_radio_usb-v1.7.1-165fb33.zip -p /dev/ttyACM0 -b 115200 --singlebank --touch 1200` + + +To manage a repeater or room server connected to a Pi over USB serial using shell commands, you need to install `picocom`. To install `picocom`, run the following command: +- `sudo apt install picocom` -For Heltec: -`esptool.py -p /dev/ttyUSB0 --chip esp32-s3 write_flash 0x00000 firmware.bin` +To start managing your USB serial-connected device using picocom, use the following command: + - `picocom -b 115200 /dev/ttyUSB0 --imap lfcrlf` -If flashing a visual studio code build bin file, flash with the following offset: -`esptool.py -p /dev/ttyUSB0 --chip esp32-s3 write_flash 0x10000 firmware.bin` +From here, reference repeater and room server command line commands on MeshCore github wiki here: + - https://github.com/ripplebiz/MeshCore/wiki/Repeater-&-Room-Server-CLI-Reference -For Pi -Download the zip from the online flasher website and use the following command: - -Note: Requires adafruit-nrfutil command which can be installed as follows. -`pip install adafruit-nrfutil --break-system-packages` - -``` -adafruit-nrfutil --verbose dfu serial --package t1000_e_bootloader-0.9.1-5-g488711a_s140_7.3.0.zip -p /dev/ttyACM0 -b 115200 --singlebank --touch 1200 -``` - -[Source](https://discord.com/channels/826570251612323860/1330643963501351004/1342120825251299388) ### 5.14. Q: Are there are projects built around MeshCore? @@ -541,9 +575,9 @@ You can get the epoch time on and use it to se **A:** 1. Connect USB-C cable to your device, per your device's instruction, get it to flash mode: - - For RAK, double click its reset button - - For T1000-e, quickly disconnect and reconnect the magnetic side of the cable from the device TWICE - - For Heltec T114, click the reset button once (the bottom button) + - For RAK, click the reset button **TWICE** + - For T1000-e, quickly disconnect and reconnect the magnetic side of the cable from the device **TWICE** + - For Heltec T114, click the reset button **TWICE** (the bottom button) - For Xiao nRF52, click the reset button once. If that doesn't work, quickly double click the reset button twice. If that doesn't work, disconnection the board from your PC and reconnect again ([seeed studio wiki](https://wiki.seeedstudio.com/XIAO_BLE/#access-the-swd-pins-for-debugging-and-reflashing-bootloader)) 5. A new folder will appear on your computer's desktop 6. Download the `flash_erase*.uf2` file for your device on flasher.meshcore.co.uk @@ -612,7 +646,9 @@ Currently, the following boards are supported: - Seeed Studio XIAO nRF52840 BLE SENSE - RAK 4631 +### 7.4 Q are the MeshCore logo and font available? +**A:** Yes, it is on the MeshCore github repo here: https://github.com/ripplebiz/MeshCore/tree/main/logo --- From 62f1ab4b069e406b2a1281180fd389422f36e1e6 Mon Sep 17 00:00:00 2001 From: Rastislav Vysoky Date: Sun, 6 Jul 2025 17:40:52 +0200 Subject: [PATCH 2/8] remove hardware compatibility list - it was outdated. --- README.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/README.md b/README.md index 708db2c4..281c9502 100644 --- a/README.md +++ b/README.md @@ -74,17 +74,7 @@ They can also be managed via LoRa in the mobile app by using the Remote Manageme ## 🛠 Hardware Compatibility -MeshCore is designed for use with: -* Heltec V3 LoRa Boards -* RAK4631 -* XiaoS3 WIO (sx1262 combo) -* XiaoC3 (plus external sx126x module) -* LilyGo T3S3 -* Heltec T114 -* Station G2 -* Sensecap T1000e -* Heltec V2 -* LilyGo TLora32 v1.6 +MeshCore is designed for devices listed in the [MeshCore Flasher](https://flasher.meshcore.co.uk) ## 📜 License From 6aa41bd67d85e20f9cbf48e90e719439a9f75fe5 Mon Sep 17 00:00:00 2001 From: Rastislav Vysoky Date: Fri, 11 Jul 2025 11:37:01 +0200 Subject: [PATCH 3/8] faq: fix broken links, replace discord link from Andy's discord to MeshCore discord --- docs/faq.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index ab7c63a0..6dc8fe9e 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -179,7 +179,7 @@ The T-Deck firmware is free to download and most features are available without 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. -[Source]([https://](https://discord.com/channels/826570251612323860/1330643963501351004/1356540643853209641)) +[Source](https://discord.com/channels/826570251612323860/1330643963501351004/1356540643853209641) the rest of the radio settings are the same for all frequencies: - Spread Factor (SF): 11 @@ -271,7 +271,7 @@ You can get the latitude and longitude from Google Maps by right-clicking the lo GPS on T-Deck is always enabled. You can skip the "GPS clock sync" and the T-Deck will continue to try to get a GPS lock. You can go to the `GPS Info` screen; you should see the `Sentences:` counter increasing if the baud rate is correct. -[Source]([https://](https://discord.com/channels/826570251612323860/1330643963501351004/1356609240302616689)) +[Source](https://discord.com/channels/826570251612323860/1330643963501351004/1356609240302616689) ### 4.3. Q: Why is my OG (non-Plus) T-Deck not getting any satellite lock? **A:** The OG (non-Plus) T-Deck doesn't come with a GPS. If you added a GPS to your OG T-Deck, please refer to the manual of your GPS to see what baud rate it requires. Alternatively, you can try to set the baud rate from 9600, 19200, etc., and up to 115200 to see which one works. @@ -396,7 +396,7 @@ The third character is the capital letter 'O', not zero `0` - Firmware repo: ### 5.8. Q: How can I support MeshCore? -**A:** Provide your honest feedback on GitHub and on AndyKirby's Discord server . Spread the word of MeshCore to your friends and communities; help them get started with MeshCore. Support Scott's MeshCore development at . +**A:** Provide your honest feedback on GitHub and on [MeshCore Discord server](https://discord.gg/BMwCtwHj5V). Spread the word of MeshCore to your friends and communities; help them get started with MeshCore. Support Scott's MeshCore development at . Support Liam Cottle's smartphone client development by unlocking the server administration wait gate with in-app purchase From 10bb05c31a5e41d24c5a29721478c49dae5ec89f Mon Sep 17 00:00:00 2001 From: Rastislav Vysoky Date: Fri, 11 Jul 2025 11:39:50 +0200 Subject: [PATCH 4/8] replaced Andy Kirby's discord with MeshCore discord. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 281c9502..fa5b3cd0 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Here are some general principals you should try to adhere to: - 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). -- Join [Andy Kirby's Discord](https://discord.gg/GBxVx2JMAy) 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 From 55453e1136441900b4aaa019f2d06ce4ae3d1aa9 Mon Sep 17 00:00:00 2001 From: TasmanDevil Date: Fri, 25 Jul 2025 22:53:56 +0200 Subject: [PATCH 5/8] disable led light on t-echo device --- variants/techo/variant.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/variants/techo/variant.h b/variants/techo/variant.h index 6aebf82f..59f69161 100644 --- a/variants/techo/variant.h +++ b/variants/techo/variant.h @@ -61,9 +61,9 @@ //////////////////////////////////////////////////////////////////////////////// // Builtin LEDs -#define LED_RED (34) -#define LED_GREEN (33) -#define LED_BLUE (14) +#define LED_RED (-1) +#define LED_GREEN (-1) +#define LED_BLUE (-1) #define PIN_STATUS_LED LED_GREEN #define LED_BUILTIN LED_GREEN From b0946b3f6b6c74188381a740524b12b7079c5824 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Sun, 27 Jul 2025 20:38:20 +1000 Subject: [PATCH 6/8] Revert "disable led light on t-echo device" This reverts commit 55453e1136441900b4aaa019f2d06ce4ae3d1aa9. --- variants/techo/variant.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/variants/techo/variant.h b/variants/techo/variant.h index 59f69161..6aebf82f 100644 --- a/variants/techo/variant.h +++ b/variants/techo/variant.h @@ -61,9 +61,9 @@ //////////////////////////////////////////////////////////////////////////////// // Builtin LEDs -#define LED_RED (-1) -#define LED_GREEN (-1) -#define LED_BLUE (-1) +#define LED_RED (34) +#define LED_GREEN (33) +#define LED_BLUE (14) #define PIN_STATUS_LED LED_GREEN #define LED_BUILTIN LED_GREEN From 331a29b082a6d7fc5c92c5638b25221446dddf1d Mon Sep 17 00:00:00 2001 From: wel97459 Date: Fri, 8 Aug 2025 20:17:06 -0700 Subject: [PATCH 7/8] Changed radio_init to use radio.std_init this also changes the preamble to 16 as before it was 8 --- variants/waveshare_rp2040_lora/target.cpp | 36 ++--------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/variants/waveshare_rp2040_lora/target.cpp b/variants/waveshare_rp2040_lora/target.cpp index 895f6db2..7bc1d043 100644 --- a/variants/waveshare_rp2040_lora/target.cpp +++ b/variants/waveshare_rp2040_lora/target.cpp @@ -12,19 +12,9 @@ VolatileRTCClock fallback_clock; AutoDiscoverRTCClock rtc_clock(fallback_clock); SensorManager sensors; -#ifndef LORA_CR -#define LORA_CR 5 -#endif - bool radio_init() { rtc_clock.begin(Wire); -#ifdef SX126X_DIO3_TCXO_VOLTAGE - float tcxo = SX126X_DIO3_TCXO_VOLTAGE; -#else - float tcxo = 1.6f; -#endif - SPI1.setSCK(P_LORA_SCLK); SPI1.setTX(P_LORA_MOSI); SPI1.setRX(P_LORA_MISO); @@ -34,30 +24,8 @@ bool radio_init() { SPI1.begin(false); - int status = radio.begin(LORA_FREQ, LORA_BW, LORA_SF, LORA_CR, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, - LORA_TX_POWER, 8, tcxo); - - if (status != RADIOLIB_ERR_NONE) { - Serial.print("ERROR: radio init failed: "); - Serial.println(status); - return false; // fail - } - - radio.setCRC(1); - -#ifdef SX126X_CURRENT_LIMIT - radio.setCurrentLimit(SX126X_CURRENT_LIMIT); -#endif - -#ifdef SX126X_DIO2_AS_RF_SWITCH - radio.setDio2AsRfSwitch(SX126X_DIO2_AS_RF_SWITCH); -#endif - -#ifdef SX126X_RX_BOOSTED_GAIN - radio.setRxBoostedGainMode(SX126X_RX_BOOSTED_GAIN); -#endif - - return true; // success + //passing NULL skips init of SPI + return radio.std_init(NULL); } uint32_t radio_get_rng_seed() { From cdc762ada2d85f58be09cd0a46e5c90de5711e7c Mon Sep 17 00:00:00 2001 From: 446564 Date: Sat, 9 Aug 2025 17:37:51 -0700 Subject: [PATCH 8/8] add lsp ignores adds cache and ccls dirs and clangd files to git ignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1bca8e04..db044b5a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,7 @@ out/ .vscode/settings.json .vscode/extensions.json .idea -cmake-* \ No newline at end of file +cmake-* +.cache +.ccls +compile_commands.json