AT+DR=0 results in AT_ERROR

Hello,

I have created a module to communicate with a RAK3172 LoRa module and the command AT+DR=0 is returning AT_ERROR when I use the following initialization sequence.

RAK3172_SendCommand("AT+NWM=1")
RAK3172_SendCommand("AT+CLASS=" + String(Class))
RAK3172_SendCommand("AT+BAND=" + String((uint8_t)BAND_EU868))
RAK3172_SetTxPwr(16)
RAK3172_SendCommand("AT+DR=0")

What is the problem with this sequence?

Welcome to RAK forum @kampi :slight_smile:

Regarding AT+DR=0 error, can you check if your ADR is ON via AT+ADR=??

1 Like

In LoRaWAN mode allowed TX power is 0 (strongest) to 10 (weakest). Unless your function is translating the 16 into 0 (max power for EU868) this is the culprit.

Hi,

the function will translate the Tx power from dB to the value range 0...10 for the RAK.

@kampi ,

Have you checked the ADR? If it is ON, you cannot configure the DR to specific setting.

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