Transmitting in Class C mode result in AT_ERROR

Hi,

I´m working on my RAK3172-Library for the ESP32 platform and I try to integrate FUOTA for LoRaWAN. I have configured my RAK3172-SiP in class C mode and want to transmit a response to my FUOTA server, but the module reports an AT_ERROR when transmitting in class C

I (2172) RAK3172: Transmit command: AT
I (2182) RAK3172:      Status: OK
I (2182) RAK3172: Transmit command: AT+VER=?
I (2202) RAK3172:      Value: RUI_3.5.1_RAK3272-SiP
I (2202) RAK3172:      Status: OK
I (2202) RAK3172: Transmit command: AT+SN=?
I (2212) RAK3172:      Value: 
I (2212) RAK3172:      Status: OK
I (2212) RAK3172: Transmit command: AT+CLIVER=?
I (2232) RAK3172:      Value: 1.5.7
I (2232) RAK3172:      Status: OK
I (2232) RAK3172: Transmit command: AT+APIVER=?
I (2242) RAK3172:      Value: 3.2.2
I (2242) RAK3172:      Status: OK
I (2242) RAK3172: Transmit command: AT+HWMODEL=?
I (2262) RAK3172:      Value: rak3172-sip
I (2262) RAK3172:      Status: OK
I (2262) RAK3172: Transmit command: AT+HWID=?
I (2282) RAK3172:      Value: stm32wle5xx
I (2282) RAK3172:      Status: OK
I (2282) RAK3172: Transmit command: AT+BUILDTIME=?
I (2292) RAK3172:      Value: 20220902-103101
I (2292) RAK3172:      Status: OK
I (2292) RAK3172: Transmit command: AT+REPOINFO=?
I (2322) RAK3172:      Value: 3e429785:7b38e62c:8d72350f:b0bb2e6c:c668e351:e27f8a41:df8c723b:ab7872a1:9bf2db1d:c757ea45:d5c6e88d:05c82209:da54579d:d1e75214:1365fb0c:714946eb:4ec2e55d:de257c79
I (2332) RAK3172:      Status: OK
I (2342) RAK3172: Transmit command: AT+NWM=?
I (2342) RAK3172:      Value: 1
I (2342) RAK3172:      Status: OK
I (2352) main: Firmware: RUI_3.5.1_RAK3272-SiP
I (2352) main: Serial number:
I (2362) main: Current mode: 1
I (2362) RAK3172_LoRaWAN: Initialize module in LoRaWAN mode...
I (2372) RAK3172: Transmit command: AT+JOIN=0:0:7:0
I (2432) RAK3172:      Status: OK
I (2432) RAK3172: Transmit command: AT+NJS=?
I (2452) RAK3172:      Value: 0
I (2452) RAK3172:      Status: OK
I (2452) RAK3172: Transmit command: AT+CLASS=C
I (2512) RAK3172:      Status: OK
I (2512) RAK3172: Transmit command: AT+ADR=1
I (2572) RAK3172:      Status: OK
I (2572) RAK3172: Transmit command: AT+BAND=4
I (2582) RAK3172:      Status: OK
I (2582) RAK3172: Transmit command: AT+BAND=?
I (2602) RAK3172:      Value: 4
I (2602) RAK3172:      Status: OK
I (2602) RAK3172: Transmit command: AT+TXP=0
I (2662) RAK3172:      Status: OK
I (2662) RAK3172: Transmit command: AT+NJM=1
I (2722) RAK3172:      Status: OK
I (2722) RAK3172_LoRaWAN: Using OTAA mode
I (2722) RAK3172: Transmit command: AT+DEVEUI=AC1F09FFFE071978
I (2782) RAK3172:      Status: OK
I (2782) RAK3172: Transmit command: AT+APPEUI=0000000000000000
I (2842) RAK3172:      Status: OK
I (2842) RAK3172: Transmit command: AT+APPKEY=1ED00F6F5EF603C7B1B7DACA1E262E44
I (2902) RAK3172:      Status: OK
I (2902) RAK3172: Transmit command: AT+NJS=?
I (2912) RAK3172:      Value: 0
I (2912) RAK3172:      Status: OK
I (2912) main: Not joined. Rejoin...
I (2922) RAK3172: Transmit command: AT+JOIN=1:0:15:5
I (3072) RAK3172:      Status: OK
I (10802) RAK3172: Event: +EVT:JOIN_FAILED_RX_TIMEOUT
I (34142) RAK3172: Event: +EVT:JOINED
I (34162) RAK3172: Transmit command: AT+CFM=0
I (34212) RAK3172:      Status: OK
I (34212) RAK3172: Transmit command: AT+SEND=1:7b7d
I (34212) RAK3172:      Status: AT_ERROR

After changing to class A the transmission works. How can I send using class C?

Welcome back to the forum @kampi

I have no RAK3172-SiP with the old firmware version (3.5.1) only the latest (4.0.5) and I cannot test on EU868.
But I have no problems to use your settings and use the AT+SEND command:

---- Sent utf8 encoded message: "atz\r\n" ----

RAKwireless RAK3272-SiP
------------------------------------------------------
Version: RUI_4.0.5_RAK3272-SiP
Current Work Mode: LoRaWAN.
---- Sent utf8 encoded message: "AT\r\n" ----
OK
---- Sent utf8 encoded message: "AT+VER=?\r\n" ----
AT+VER=RUI_4.0.5_RAK3272-SiP
OK
---- Sent utf8 encoded message: "AT+SN=?\r\n" ----
AT+SN=AC1F09FFFE0537A2
OK
---- Sent utf8 encoded message: "AT+CLIVER=?\r\n" ----
AT+CLIVER=1.5.10
OK
---- Sent utf8 encoded message: "AT+APIVER=?\r\n" ----
AT+APIVER=3.2.6
OK
---- Sent utf8 encoded message: "AT+HWMODEL=?\r\n" ----
AT+HWMODEL=rak3172-sip
OK
---- Sent utf8 encoded message: "AT+HWID=?\r\n" ----
AT+HWID=stm32wle5xx
OK
---- Sent utf8 encoded message: "AT+BUILDTIME=?\r\n" ----
AT+BUILDTIME=20230518-031803
OK
---- Sent utf8 encoded message: "AT+REPOINFO=?\r\n" ----
AT+REPOINFO=736eace2:85a7d925:431cb7ef:40aa6db6:5bc6927d:7eec9a9f:45914d43:f43a68c0:8cb9ba74:3bbaeeca:6a3d6842:b9d39ab6:d5c6e88d:a29aaa6e:da54579d:d1e75214:1365fb0c:714946eb:d3bf42be:70a77d4a
OK
---- Sent utf8 encoded message: "AT+NWM=?\r\n" ----
AT+NWM=1
OK
---- Sent utf8 encoded message: "AT+NJS=?\r\n" ----
AT+NJS=0
OK
---- Sent utf8 encoded message: "AT+CLASS=C\r\n" ----
OK
---- Sent utf8 encoded message: "AT+ADR=1\r\n" ----
OK
---- Sent utf8 encoded message: "AT+BAND=?\r\n" ----
AT+BAND=10
OK
---- Sent utf8 encoded message: "AT+TXP=0\r\n" ----
OK
---- Sent utf8 encoded message: "AT+NJM=1\r\n" ----
OK
---- Sent utf8 encoded message: "AT+JOIN=1:0:15:5\r\n" ----
OK
+EVT:JOIN_FAILED_7
+EVT:JOINED
---- Sent utf8 encoded message: "AT+CFM=0\r\n" ----
OK
---- Sent utf8 encoded message: "AT+SEND=1:7b7d\r\n" ----
OK
+EVT:TX_DONE
---- Sent utf8 encoded message: "AT+SEND=1:7b7d\r\n" ----
OK
+EVT:TX_DONE

Can you update to the latest RUI3 version and check.

I went through the Changelog but didn’t see anything related to problems with Class C or EU868.

Hi @beegee,

thanks. The upgrade solves the issue. @beegee is the same version 4.0.5 also available for the RAK3172 module (not SiP)?

Hi @kampi

Yes, V4.0.5 is available for all WisDuo modules.The latest firmware and the change log is always in the Download Center

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.