Hi, I have some Makerfab LoRaWAN soil sensors (https://www.makerfabs.com/lorawan-temperatur-humidity-soil-moisture-sensor.html) that I am attempting to connect to TTN.
The sensor has an Atmega328P connected to an ai thinker ra-08h module connected by serial and controlled via AT commands. I have uploaded the AU915 firmware (LoRaWAN 1.0.3 Spec) from https://docs.ai-thinker.com/en/lorawan.
The issue I am seeing is that the ra-08h module does not appear to be keeping to the uplink channels, and keeps transmitting on downlink channels (with sporadic use of the actual uplink channels). I have tried multiple configurations to try to get the connections reliable however it doesn’t appear to be working. I have not been able to see any posts about using the ra-08h on the AU915 range with TTN. I hope someone may be able to assist with what may be the root cause (which I hope isnt the AU915 firmware released by ai-thinker).
I have gone through the AT commands document https://docs.ai-thinker.com/_media/lora/docs/ra-08_at_instruction.pdf and there doesnt seem to be any way to manually set the channels other than the frequency mask.
The AT configuration for the following log.
sendData("AT+CCLASS=0", AT_TIMEOUT);
sendData("AT+CFREQBANDMASK=0002", AT_TIMEOUT);
sendData("AT+CJOINMODE=0", AT_TIMEOUT);
sendData("AT+CRXP=0,8,923300000", AT_TIMEOUT);
sendData("AT+CULDLMODE=1", AT_TIMEOUT);
sendData("AT+CRX1DELAY=5", AT_TIMEOUT);
sendData("AT+CCONFIRM=1", AT_TIMEOUT);
sendData("AT+CADR=1", AT_TIMEOUT);
sendData("AT+CAPPPORT=2", AT_TIMEOUT);
logs for the above configuration
---------------- Start----------------
[First Task]
AHT10 Read Success.
AT
gc|γ⸮A"P⸮c|N⸮
##############################################ASR6601:~#
ASR61:~#
AT
RASR6601:~#
ASR6601:~#
AT+CDEVEUI=REDACTED
OK
ASR6601:~#
AT+CAPPEUI=REDACTED
OK
ASR6601:~#
AT+CAPPKEY=REDACTED
OK
ASR6601:~#
AT+CCLASS=0
OK
ASR6601:~#
AT+CFREQBANDMASK=0002
OK
ASR6601:~#
AT+CJOINMODE=0
OK
ASR6601:~#
AT+CRXP=0,8,923300000
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CULDLMODE=1
OK
ASR6601:~#
AT+CRX1DELAY=5
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CCONFIRM=1
D⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CADR=1
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CAPPPORT=2
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
---------------- Inital Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 924600000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 927500000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 923800000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 925100000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 916200000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 926300000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 918800000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 924500000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 924800000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 923300000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 915200000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 923300000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 925200000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 924500000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 918200000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 927500000 Hz at DR 8
+CJOIN:OK
Joined
---------------- Join Successful----------------
BAT ADC:0
BAT VOL:0
SOIL ADC:820
SOIL PER:100
TEMPERAUTRE:23
HUMIDITY:57
TX COUNT:1
AT+DTRX=1,1,14,17390334000001
AT+DTRX=1,1,14,17390334000001
H⸮jjiU9⸮07
ASR6601:~# TX on freq 921400000 Hz at DR 3
ASR6601:~# RX on freq 927500000 Hz at DR 11
RX on freq 923300000 Hz at DR 8
ERR+SENT:01
---------------- Reattempt Send----------------
AT+DTRX=1,1,14,17390334000001
AT+DTRX=1,1,14,17390334000001
H⸮jjiU9⸮07
ASR6601:~# TX on freq 924400000 Hz at DR 3
ASR6601:~# RX on freq 926900000 Hz at DR 11
RX on freq 923300000 Hz at DR 8
ERR+SENT:01
---------------- Reattempt Send----------------
AT+DTRX=1,1,14,17390334000001
AT+DTRX=1,1,14,17390334000001
H⸮jjiU9⸮07
ASR6601:~# TX on freq 926400000 Hz at DR 3
ASR6601:~# RX on freq 923300000 Hz at DR 11
RX on freq 923300000 Hz at DR 8
ERR+SENT:01
---------------- Too Many Reattempt--------------⸮K⸮
[Task Over]
.
Changed AT+CULDLMODE to 2
logs (doesnt even join this time)
---------------- Start----------------
[First Task]
AHT10 Read Success.
AT
gc|γ⸮EXe⸮v⸮⸮
##############################################ASR6601:~#
ASR61:~#
AT
RASR6601:~#
ASR6601:~#
AT+CDEVEUI=REDACTED
OK
ASR6601:~#
AT+CAPPEUI=REDACTED
OK
ASR6601:~#
AT+CAPPKEY=REDACTED
OK
ASR6601:~#
AT+CCLASS=0
OK
ASR6601:~#
AT+CFREQBANDMASK=0002
OK
ASR6601:~#
AT+CJOINMODE=0
OK
ASR6601:~#
AT+CRXP=0,8,923300000
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CULDLMODE=2
OK
ASR6601:~#
AT+CRX1DELAY=5
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CCONFIRM=1
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CADR=1
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
AT+CAPPPORT=2
H⸮j⸮H⸮H(MI⸮601:~#
ASR6601:~#
---------------- Inital Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 919200000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 925700000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 922600000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 926300000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 918800000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 924500000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 927600000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 926900000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 918400000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 923300000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 919400000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 926300000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 924400000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 926900000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 920200000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 923900000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 921000000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 926300000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 915800000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 925100000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL
---------------- Reattempt Join----------------
AT
RASR6601:~#
ASR6601:~#
AT
RASR6601:~#
ASR6601:~#
AT+CJOIN=1,0,5,2
OK
ASR6601:~# TX on freq 915200000 Hz at DR 4
Start to Join, nb_trials:1
RX on freq 923300000 Hz at DR 12
RX on freq 923300000 Hz at DR 8
TX on freq 923200000 Hz at DR 0
Start to Join, nb_trials:1
RX on freq 923300000 Hz at DR 8
RX on freq 923300000 Hz at DR 8
+CJOIN:FAIL