Hi,
When I use either the standard LoRaWAN sketch, or my sketch (which uses the same basic flow but sends my own data) and the v.1.2.0 board library, everything connects to my AU915 gateway perfectly fine etc. I get the following in serial monitor:
17:44:36.465 -> ChipID:D3A59B532920
17:44:37.921 -> Sleep time between cycles (ms) 1782280
17:44:37.954 ->
17:44:37.954 -> AT Rev 1.3
17:44:37.954 -> +AutoLPM=1
17:44:37.954 ->
17:44:37.954 -> +LORAWAN=1
17:44:37.954 ->
17:44:37.954 -> +KeepNet=0
17:44:37.954 -> +OTAA=1
17:44:37.954 -> +Class=A
17:44:37.954 -> +ADR=1
17:44:37.954 -> +IsTxConfirmed=0
17:44:37.954 -> +AppPort=2
17:44:37.954 -> +DutyCycle=1782280
17:44:37.954 -> +ConfirmedNbTrials=3
17:44:37.987 -> +ChMask=0000000000000000000000FF
17:44:37.987 -> +DevEui=D3A59BFEFF532920(For OTAA Mode)
17:44:37.987 -> +AppEui=D3A59BFEFF532920(For OTAA Mode)
17:44:37.987 -> +AppKey=78B002315A33806DDE257F062E141304(For OTAA Mode)
17:44:37.987 -> +NwkSKey=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF(For ABP Mode)
17:44:37.987 -> +AppSKey=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF(For ABP Mode)
17:44:37.987 -> +DevAddr=FFFFFFFF(For ABP Mode)
17:44:37.987 ->
17:44:37.987 ->
17:44:37.987 -> LoRaWAN AU915 Class A start!
17:44:37.987 ->
17:44:38.152 -> joining…TX on freq 916000000 Hz at DR 5
17:44:38.218 -> Event : Tx Done
17:44:43.215 -> RX on freq 925700000 Hz at DR 13
17:44:43.248 -> Event : Rx Done
17:44:43.744 -> joined
17:44:44.770 -> Duration1: 143.3999938965uS Duration2: 217.0000000000uS Duration3: 1.5000000000uS
17:44:44.803 -> Freq1: 6973Hz Freq2: 4608295Hz Freq3: 666666Hz
17:44:44.803 -> BatteryVoltage:4172
17:44:44.803 -> confirmed uplink sending …
17:44:44.803 -> TX on freq 915200000 Hz at DR 5
17:44:44.969 -> Event : Tx Done
17:44:45.962 -> RX on freq 923300000 Hz at DR 13
17:44:45.995 -> Event : Rx Done
17:44:46.226 -> received unconfirmed downlink: rssi = -47, snr = 11, datarate = 13
17:44:47.351 -> Duration1: 143.3000030518uS Duration2: 218.0000000000uS Duration3: 0.0000000000uS
17:44:47.351 -> Freq1: 6978Hz Freq2: 4587156Hz Freq3: 4294967295Hz
17:44:47.351 -> BatteryVoltage:4172
17:44:47.384 -> unconfirmed uplink sending …
17:44:47.384 -> TX on freq 915600000 Hz at DR 5
17:44:47.583 -> Event : Tx Done
17:44:48.543 -> RX on freq 924500000 Hz at DR 13
17:44:48.576 -> Event : Rx Done
17:44:48.807 -> received unconfirmed downlink: rssi = -47, snr = 10, datarate = 13
Compiling exactly the same code using v1.3.0 or 1.4.0 results in the following:
18:04:58.988 -> ChipID:D3A59B532920
18:05:00.477 -> Sleep time between cycles (ms) 1782280
18:05:00.477 ->
18:05:00.477 -> AT Rev 1.3
18:05:00.510 -> +AutoLPM=1
18:05:00.510 ->
18:05:00.510 -> +LORAWAN=1
18:05:00.510 ->
18:05:00.510 -> +KeepNet=0
18:05:00.510 -> +OTAA=1
18:05:00.510 -> +Class=A
18:05:00.510 -> +ADR=1
18:05:00.510 -> +IsTxConfirmed=0
18:05:00.510 -> +AppPort=2
18:05:00.510 -> +DutyCycle=1782280
18:05:00.510 -> +ConfirmedNbTrials=3
18:05:00.510 -> +ChMask=0000000000000000000000FF
18:05:00.510 -> +DevEui=D3A59BFEFF532920(For OTAA Mode)
18:05:00.510 -> +AppEui=D3A59BFEFF532920(For OTAA Mode)
18:05:00.510 -> +AppKey=78B002315A33806DDE257F062E141304(For OTAA Mode)
18:05:00.510 -> +NwkSKey=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF(For ABP Mode)
18:05:00.543 -> +AppSKey=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF(For ABP Mode)
18:05:00.543 -> +DevAddr=FFFFFFFF(For ABP Mode)
18:05:00.543 ->
18:05:00.543 ->
18:05:00.543 -> LoRaWAN AU915 Class A start!
18:05:00.543 ->
18:05:00.774 -> joining…TX on freq 916000000 Hz at DR 5
18:05:02.858 -> TX on freq 916000000 Hz at DR 5
18:05:05.902 -> Event : Tx Timeout
18:05:06.861 -> join failed, join again at 30s later
18:05:36.932 -> TX on freq 916200000 Hz at DR 5
18:05:38.983 -> TX on freq 916200000 Hz at DR 5
18:05:42.027 -> Event : Tx Timeout
18:05:42.986 -> join failed, join again at 30s later
It never transmits and never connects. It does this on every board I’ve tried - all work with v1.2.0, none work with v1.3.0 or v1.4.0
I’d normally just keep using the old version of the library - but the yield() problem is stopping me drive a stepper motor with the A4998 library on my latest project.
Can someone please shed some light on what is going on?
Boards are all HTCC-AB01 all connecting to an AU915 gateway (3 different ones - 2x Mikrotik and 1xRAK), same issue on both the linux version of Arduino IDE and Windows version of Arduino IDE.