jpmeijers / RN2483-Arduino-Library

Arduino C++ code to communicate with a Microchip RN2483 module
Apache License 2.0
86 stars 60 forks source link

Set DR on initOTAA #56

Closed smiba closed 3 years ago

smiba commented 6 years ago

We're using DR5 when using initABP(), however initOTAA() does not specify this meaning that it will fallback to DR0 (SF12, 2ms air time!).

Sounds unwanted

smiba commented 5 years ago

Any update on this? As the issue is still present obviously

jpmeijers commented 5 years ago

Are you saying that the RN2483's default DR for an OTAA join is SF12BW125?

Strange that I have never seen this. Let me just double check this with the RN2483's I have laying around before I merge this in.

smiba commented 5 years ago

Yes, I've tried this myself back when I made this PR and the transmission would always happen at SF12BW125 without that line. It seems to be the RN2483's default behaviour

TD-er commented 5 years ago

Could this be firmware version dependent? I am using RN2483 1.0.1 Dec 15 2015 09:38:09 and it is connecting just fine, but someone else is using 1.0.3 and has issues connecting via OTAA.

Alex9779 commented 4 years ago

I know this is rather old but maybe we can bring back live to this and clean up some stuff. All I can tell about this is that I found this to be true, is you "sys factoryRESET" the device it does not even respect 868 channel settings. You have to call "mac reset 868" to get them. And then ADR is disabled but DR is set to 0 meaning SF12BW125. I have current modules with firmware 1.0.5 I checked this...

jpmeijers commented 3 years ago

Manually applied this change to only RN2483, as we are not sure about the required DR for US915 and AU915 frequency plans