ValueError: invalid join data rate 3 Lopy LORAWAN
-
You need to adjust the lora.join function not the add_channel. The join has to be DR 0 or 4
-
@seb line 32 where it says lora.add_channel
-
which line of code are you changing?
-
Hi @seb, the only problem is that when I put 0 gives the same error and with 4 it hangs out.
-
Hi,
I located the cause for your issue, when we updated our LoRa stack to allow users to change regions we added this: https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/mods/modlora.c#L1664
This was based on a recommendation in the LoRaWAN spec and I believe it will be relaxed in a future firmware update. For now just make sure when you run lora.join, you set the dr to either
0
or4
.
-
-
Hi @seb ,
Sure I am going to send them to your email. Thank you very much.
-
Hi,
I have managed to replicate your error, I am now investigating the cause and will get back to you when I know more.
-
Hi,
Would it be possible to share all your code? or at least a link to which example you have used.