Replies: 8 comments 16 replies
|
Hi f1ssf, From the README details, since you are using the RA-01SH module with the SX1262 chipset, it’s crucial to select the correct LoRa module type in your //#define LORA_MODULE LORA_MODULE_SX1276 // for older SX1276 modules
#define LORA_MODULE LORA_MODULE_SX1262 // for SX1262 RA-01SH modules (after Aug 2025)Make sure you have Also, confirm that the frequency band ( #define BAND 433.0Other LoRa params such as TX Power (20 dBm), bandwidth (250 kHz), spreading factor (SF10), coding rate (4/5), and preamble length (12) should match those in your sensor nodes. The failure code
From the README warnings and specs:
You can find the schematic here for your module version: Additionally, update your node sensors to the latest firmware supporting XOR encryption and SX1262 modules, as noted in the updates, since firmware compatibility is important. If you want step-by-step Arduino IDE setup instructions and recommended library versions, see the README section: This should help resolve the LoRa init fail issue with RA-01SH on 433 MHz. Summary checklist for you:
If you need more config examples or troubleshooting, there are example sensor repos linked in the README too. Good luck! ✅ If this answer helped, please close the discussion. |
|
Hi,
For RA-01S you should use: #define LORA_MODULE LORA_MODULE_SX1262
#define BAND 433.0In radio.h the pinout of SX1262 was declared like this, so you can check with a "continuity test" from ESP1 to the LoRa module // SPI + control pins
#define CONFIG_MOSI 1
#define CONFIG_MISO 0
#define CONFIG_CLK 4
#define CONFIG_NSS 3
#define CONFIG_RST 6
#define CONFIG_DIO1 5
#define CONFIG_BUSY 10PS: What version of Capibridge do you have, V2 or V1 ? V2 comes with the SH module |
|
I checked the RadioLib source and found that
chipType = "SX1261"
chipType = "SX1268" |
|
I found 3 modules "Ra-01S" in my stock :)) and tested, all works, the capibridge is updated, PirBox-LITE code is the default one from repo, no change! Capibridge config/////////////////////////// LoRa/ESPNow Gateway Key ///////////////////////////
#define GATEWAY_KEY "xy" // Separation Key "Keep it small" Must match exactly sensors key
#define LoRa_Encryption true // Global LoRa Encryption, true or false
#define ESPNOW_Encryption false // Global ESP-NOW Encryption, true or false
#define encryption_key_length 4 // must match number of bytes in the XOR key array
#define encryption_key { 0x4B, 0xA3, 0x3F, 0x9C } // Multi-byte XOR key (2–16 bytes)
/////////////////////////////////// WIFI //////////////////////////////////////
#define WIFI_SSID "xxxxxx"
#define WIFI_PASSWORD "xxxxxx"
/////////////////////////////////// MQTT //////////////////////////////////////
#define MQTT_USERNAME "xxxxxx"
#define MQTT_PASSWORD "xxxxxx"
#define MQTT_SERVER "192.168.99.2"
#define MQTT_PORT 1883
#define DISCOVERY_EVERY_PACKET true // true = publish discovery every time data is received from that sensor
// false = publish discovery once per CapiBridge boot (remembers if that sensor is already published)
// Using false reduces MQTT traffic, but if you delete a sensor in Home Assistant,
// you must reboot CapiBridge to clear the cache so it can rediscover that sensor
////////////////////////////// LORA CONFIG ////////////////////////////////////
// Select which LoRa module this CapiBridge is uses:
//#define LORA_MODULE LORA_MODULE_SX1276 // Ra-01H "SX1276" Module (orders shipped before Aug 2025)
//#define LORA_MODULE LORA_MODULE_SX1262 // Ra-01SH "SX1262" Module CapiBridge v2 (orders shipped after Aug 2025)
#define LORA_MODULE LORA_MODULE_SX1268 // Ra-01S Module " 433Mhz Version"
#define BAND 433.0 // 433.0 / 868.0 / 915.0
#define LORA_TX_POWER 20 // dBm; check regulatory limits in your region (SX1262 supports up to 22) (SX1276 supports up to 20)
/// Bandwidth vs SF support (SX126x):
// 125 kHz: SF5–SF9
// 250 kHz: SF5–SF10
// 500 kHz: SF5–SF11
#define LORA_SIGNAL_BANDWIDTH 250.0 // kHz: 125.0, 250.0, 500.0
#define LORA_SPREADING_FACTOR 10 // "5–11 on SX1262" "6-12 on SX1276"
#define LORA_CODING_RATE 5 // 5–8 → coding rate 4/5 .. 4/8
#define LORA_SYNC_WORD 0x12 // Default 0x12 Dont Change
#define LORA_PREAMBLE_LENGTH 12 // 6..65535
///////////////////////////////////////////////////////////////////////////////
#define ROW_Debug false // true or false , Prints ROW hex values insteed of JSON
PirBox config/////////////////////////// LoRa Gateway Key ///////////////////////////
#define GATEWAY_KEY "xy" // Separation Key "Keep it Short 2 letters is enough"
#define NODE_NAME "PirBoxL433" // Sensor Name which will be visible in Home Assistant
#define Encryption true // Global Payload obfuscation (Encryption)
#define encryption_key_length 4 // must match number of bytes in the XOR key array
#define encryption_key { 0x4B, 0xA3, 0x3F, 0x9C } // Multi-byte XOR key (between 2–16 values).
// Use random-looking HEX values (from 0x00 to 0xFF).
// Must match exactly on both sender and receiver.
// Example: { 0x1F, 0x7E, 0xC2, 0x5A } ➜ 4-byte key.
/////////////////////////// LORA RADIO CONFIG ///////////////////////////
#define BAND 433E6 // 433E6 MHz or 868E6 MHz or 915E6 MHz
#define TX_OUTPUT_POWER 22 // dBm tx output power
//| Bandwidth | Supported Spreading Factors |
//|-----------|-----------------------------|
//| 125 kHz | SF5 – SF9 |
//| 250 kHz | SF5 – SF10 |
//| 500 kHz | SF5 – SF11 |
#define LORA_BANDWIDTH 5 // bandwidth 4: 125Khz, 5: 250KHZ, 6: 500Khz
#define LORA_SPREADING_FACTOR 10 // spreading factor 6-12 [SF5..SF11]
#define LORA_CODINGRATE 1 // [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8]
#define LORA_PREAMBLE_LENGTH 12 // Same for Tx and Rx
#define LORA_PAYLOADLENGTH 0 // 0: Variable length packet (explicit header), 1..255 for Fixed length packet (implicit header)
#define LORA_CRC_ON true
#define LORA_SYNC_WORD 0x1424 // The 0x1424 private sync word is equivalent to the CapiBridge 0x12 sync word.
// LoRa Sync Word Compatibility Table20
//
// This table shows how 16-bit sync words used on "PirBOX" SX126x-based modules (like Ra-01SH) correspond to the 8-bit sync words used on older SX127x-based modules.
//
// | Type | SX126x Sync Word | SX127x Equivalent | Notes |
// |---------|------------------|-------------------|---------------------------------------------------------------------|
// | Public | `0x3444` | `0x34` | Default for LoRaWAN. Reserved, do **not** use for private networks. |
// | Private | `0x1424` | `0x12` | Recommended for custom/private networks. |
// | Private | `0x1437` | `0x37` | Custom private network sync word. |
// | Private | `0x14A9` | `0xA9` | Custom private network sync word. |
// | Private | `0x14D5` | `0xD5` | Custom private network sync word. |
//
// Notes:
// - SX126x uses a 16-bit sync word, always starting with `0x14` for compatibility.
// - SX127x uses an 8-bit sync word, derived from the lower byte (`0xYZ` from `0x14YZ`).
// - Avoid `0x3444` (`0x34`) in private networks — it's reserved for "LoRaWAN public" use.
// - Choose a unique `0x14YZ` value for a private network to avoid collisions and improve isolation. |
|
Your problem can be related to configs or component placement. |




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi
I have found module Ra-01s (433) and for me the chipset is SX1262 family. I have define band 433, but after compiling serial moni write:
What do you think about it ? tnx's
All reactions