Closed derGraph closed 7 months ago
GPIO pre-transfer timeout, is it connected? GPIO pre-transfer timeout, is it connected?
This suggests there could be some hardware issue, though the module itself seems to be communicating (mostly) fine. Other than that, you seem to always be wipign the persistent storage. That will lead to reuse of previous nonces, which your application server might be rejecting (just a guess though). From RadioLib end, everything seems to be correct. The only suspicious thing is:
// SX1262 has the following connections:
// NSS pin: 8
// DIO0 pin: 13
// RESET pin: 12
// DIO1 pin: 14
SX1262 radio = new Module(8, 13, 12, 14);
Is the pinout actually correct for SX1262? The comment seems to be copied from some SX127x module, since SX126x does not have DIO0 pin.
I just edited the comments to match my config. DIO0=Busy And how do I change the SF in the otaa sequence?
DIO0=Busy
So your constructor actually looks like this?
SX1262 radio = new Module(NSS, BUSY, RESET, DIO1);
If that's the case, then you have BUSY and DIO1 swapped. Since DIO1 is used to detected received packets, that could explain why you don't get a reply.
And how do I change the SF in the otaa sequence?
It's stated in the example:
// a specific starting-datarate can be selected in dynamic bands (e.g. EU868):
/*
uint8_t joinDr = 4;
state = node.beginOTAA(joinEUI, devEUI, nwkKey, appKey, joinDr);
*/
You will need to consult the LoRaWAN regional specification to find out which SF corresponds to a specific data rate value.
I tried changing the pins and have removed the node.wipe()
now getting error code -6, will try near a lora gateway tomorrow...
Ok, so I got a connection to a gateway of a friend of mine, it looks like this:
but i dont recieve an answer. How do i have to Format the nwkKey and the appKey (LSB, MSB ...) from the TTN Console for my device.
Thanks
The gateway just forwards this to the TTN servers, so the more interesting information will be found there. If it's dropping the join request for some reason, it should report it (you might have to enable some verbose mode in the node console).
How do i have to Format the nwkKey and the appKey (LSB, MSB ...) from the TTN Console for my device.
It has to be the exact same as what you set in TTN.
Can you please tell me if i have this translated correctly (I will reset the device after):
In the console i recieved this
I fail to understand why you swapped the order of the bytes in the key. Like I said above, it has to be exactly the same.
Also JoinEUI 000... is pretty weird, though I guess not strictly forbidden.
I tried putting the byte in the other order but it didn't work.
I would suggest trying to find out whgat is the cause for this behavior, instead of guessing. The byte order in keys really isn't the culprit here.
In the console i recieved this
Judging by the gateway status message, I'm guessing that's the gateway console. You probably won't be able to tell why the end device is not joining from there, since the gateway just forwards messages between the TTN servers and your end devices. What does the end device console say? If you enable verbose stream it should tell you e.g. if some nonces need to be reset.
You have correctly assumed the console of the gateway, in the console of the device i cant find anything. I also created a new device with Join EUI of 0x6969696969696969.
@derGraph really make sure that your keys match. On the pictures you shared, the devEUIs differ between the TTN console and your code. You can use the formatting and copy-buttons on the TTN console to just copy-paste the keys, and in that case you cannot make any typos. If the join-request appears in the gateway console, also look at the device console (probably with verbose mode enabled), to see if there is any problem reported there. But it won't end up at your device console if the devEUI is incorrect, because then it can't match the device which is based on the devEUI...
Closing due to inactivity.
Sketch that is causing the module fail
Hardware setup ESP32 Heltec Lora V3 (SX1262) Debug mode output Initializing ...
Additional info (please complete):
Error -705 is not occuring when RADIOLIB_VERBOSE is not defined. Is the setup correct? Debug output without RADIOLIB_VERBOSE:
Is the problem that I am not in range (I have tested previously 10m to a Gateway from TTN-Mapper) or that something isn't working.
Thanks!