Comments (4)
This has been discussed (at length) here: #946
It's been fixed in upstream, just not released yet. Are you using the last release? And if so, can you try with the current master?
from radiolib.
@jgromes: I used the latest release (6.4.2). Now I pulled the current master and get the same error:
18:52:13.358 -> [Radio] Initializing ...
18:52:13.359 -> RadioLib Debug Info
18:52:13.359 -> Version: 6.4.2.0
18:52:13.359 -> Platform: ESP32
18:52:13.359 -> Compiled: Feb 27 2024 18:50:41
18:52:13.359 ->
18:52:13.359 -> Found SX126x: RADIOLIB_SX126X_REG_VERSION_STRING:
18:52:13.359 -> 0000320 4c 4c 43 43 36 38 20 56 32 48 20 32 48 30 32 00 | LLCC68 V2H 2H02.
18:52:13.359 ->
18:52:13.359 -> M SX126x
18:52:13.359 -> success!
18:52:13.359 -> [LoRaWAN] Attempting over-the-air activation ... Didn't restore session (checksum: 0, mode: 0)
18:52:13.359 -> First 16 bytes of NVM:
18:52:13.391 -> 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
18:52:13.391 -> Wiping EEPROM and starting a clean session
18:52:13.681 -> Setting up dynamic channels
18:52:13.681 -> Channel UL/DL 0 frequency = 868.099976 MHz
18:52:13.681 -> Channel UL/DL 1 frequency = 868.299988 MHz
18:52:13.681 -> Channel UL/DL 2 frequency = 868.500000 MHz
18:52:13.681 -> exe MAC CID = 03, len = 4
18:52:13.681 -> ADR REQ: dataRate = 2, txPower = 0, chMask = 0x0000, chMaskCntl = 00, nbTrans = 0
18:52:13.681 -> DR 72: LORA (SF: 10, BW: 125.000000, CR: 5)
18:52:13.681 -> ADR failed to configure dataRate 2, code -9!
18:52:13.681 -> ADR ANS: status = 0x05
18:52:13.681 -> exe MAC CID = 04, len = 1
18:52:13.681 -> Max duty cycle: 1/2^7
18:52:13.681 -> exe MAC CID = 05, len = 4
18:52:13.681 -> Rx param REQ: rx1DrOffset = 0, rx2DataRate = 0, freq = 869.525024
18:52:13.712 -> Rx param ANS: status = 0x07
18:52:13.712 -> exe MAC CID = 08, len = 1
18:52:13.712 -> RX timing: delay = 1 sec
18:52:13.744 -> exe MAC CID = 09, len = 1
18:52:13.744 -> TX timing: dlDwell = 0, ulDwell = 0, maxEirp = 16 dBm
18:52:13.744 -> exe MAC CID = 0c, len = 1
18:52:13.744 -> ADR param setup: limitExp = 6, delayExp = 5
18:52:13.777 -> exe MAC CID = 0f, len = 1
18:52:13.777 -> Rejoin setup: maxTime = 15, maxCount = 10
18:52:13.777 -> There are no channels defined - are you in ABP mode with no defined subband?
Based on the discussion you mentioned I tried again with joinDr of 3:
state = node.beginOTAA(joinEUI, devEUI, nwkKey, appKey, 3);
Now it seems to attempt a join request with SF 9, reaches a timeout, and then fails in a second attempt with SF 12.
I am not sure if this is expected behavior (as the SF 9 request timed out).
18:53:46.769 -> [Radio] Initializing ...
18:53:46.769 -> RadioLib Debug Info
18:53:46.801 -> Version: 6.4.2.0
18:53:46.801 -> Platform: ESP32
18:53:46.801 -> Compiled: Feb 27 2024 18:50:41
18:53:46.801 ->
18:53:46.801 -> Found SX126x: RADIOLIB_SX126X_REG_VERSION_STRING:
18:53:46.801 -> 0000320 4c 4c 43 43 36 38 20 56 32 48 20 32 48 30 32 00 | LLCC68 V2H 2H02.
18:53:46.801 ->
18:53:46.801 -> M SX126x
18:53:46.801 -> success!
18:53:46.801 -> [LoRaWAN] Attempting over-the-air activation ... Didn't restore session (checksum: 0, mode: 0)
18:53:46.801 -> First 16 bytes of NVM:
18:53:46.801 -> 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
18:53:46.801 -> Wiping EEPROM and starting a clean session
18:53:47.154 -> Setting up dynamic channels
18:53:47.154 -> Channel UL/DL 0 frequency = 868.099976 MHz
18:53:47.154 -> Channel UL/DL 1 frequency = 868.299988 MHz
18:53:47.154 -> Channel UL/DL 2 frequency = 868.500000 MHz
18:53:47.154 -> exe MAC CID = 03, len = 4
18:53:47.154 -> ADR REQ: dataRate = 3, txPower = 0, chMask = 0x0000, chMaskCntl = 00, nbTrans = 0
18:53:47.154 -> DR 56: LORA (SF: 9, BW: 125.000000, CR: 5)
18:53:47.154 -> ADR ANS: status = 0x07
18:53:47.154 -> exe MAC CID = 04, len = 1
18:53:47.154 -> Max duty cycle: 1/2^7
18:53:47.185 -> exe MAC CID = 05, len = 4
18:53:47.185 -> Rx param REQ: rx1DrOffset = 0, rx2DataRate = 0, freq = 869.525024
18:53:47.185 -> Rx param ANS: status = 0x07
18:53:47.185 -> exe MAC CID = 08, len = 1
18:53:47.185 -> RX timing: delay = 1 sec
18:53:47.185 -> exe MAC CID = 09, len = 1
18:53:47.185 -> TX timing: dlDwell = 0, ulDwell = 0, maxEirp = 16 dBm
18:53:47.185 -> exe MAC CID = 0c, len = 1
18:53:47.185 -> ADR param setup: limitExp = 6, delayExp = 5
18:53:47.185 -> exe MAC CID = 0f, len = 1
18:53:47.185 -> Rejoin setup: maxTime = 15, maxCount = 10
18:53:47.282 ->
18:53:47.282 -> Channel frequency UL = 868.500000 MHz
Any idea what the problem could be?
from radiolib.
I see now that TTN actually receives (at least some) of the join requests. The first one appeared ok (even though I did not notice any change in the RadioLib debug output). Since then, however, I get the error "DevNonce is too small" in TTN console. I tried to reset DevNonce in TTN, but no change.
from radiolib.
It looks like the original problem was resolved (TTN now obviously receives your join requests), so I will convert this to a discussion.
Based on the discussion you mentioned I tried again with joinDr of 3:
Setting appropriate DR is required, since LLCC68 only supports a subset of spreading factors.
I see now that TTN actually receives (at least some) of the join requests. The first one appeared ok (even though I did not notice any change in the RadioLib debug output).
So ... can you post the output? Was there a timeout, or did you receive the join accept message? Either way it might be worth it to wipe the persistent memory, and (temporarily) allow reusing dev nonces in TTN.
from radiolib.
Related Issues (20)
- NodeMCU (ESP8266) with SX1262 is not working HOT 2
- Heltec Wireless Stick Lite V3 not receiving join accept HOT 4
- e22-400m33s recieve interrupt HOT 3
- Can you update an example of the Arduino platform LLCC68? Thank you! HOT 2
- LoRaWan - CubeCell cannot join most time (error -6) HOT 33
- LoRaWAN cppcheck warnings / bugs HOT 5
- EEPROM.h: No such file or directory HOT 6
- Other pager protocols HOT 3
- Add method to set io-home mode HOT 10
- LoRaWAN: band at compile time, bands in general. HOT 12
- ESP8266 store Session in EEPROM not supported (Issue) HOT 5
- LoRaWAN - Frame Count Reset HOT 2
- LoRaWan - Raspberry Pi 3B error -6 on method LoRaWANNode::sendReceive() HOT 18
- CubeCell + POCSAG issues. HOT 1
- RP2040-LoRa Development kit HOT 6
- SPIcheckStream in Module.cpp is ineffective (does nothing) HOT 1
- LoRaWAN ESP32 (Heltec WSL V3) reboot with stack error HOT 14
- Heltec Wireless Stick Lite V3 - code -12 and then -1108 HOT 16
- EByte E22 900T22D HOT 1
- Arduino Nano / ESP32 CC1101 : Error -6 when receiving HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from radiolib.