Rak3272 - at commands

Hi,
Maybe is a question that all have when use the AT COMMANDS

all must to begin making a basic init

AT+DEVEUI=008XX11XX51FD8XX
AT+APPKEY=A614D59963A0861EDF2702AE6F0E1AD6
AT+BAND=6
AT+MASK=0002
AT+CLASS=A
AT+NJM=1
AT+JOIN=1:0:10:8
AT+CFM=1

and the loop must to see something like…

if AT+NJS=? returns 1, then you can AT+SEND=2:112233
else
AT+JOIN=1:0:10:8
endif

Right ?

is there some instructions (flowchart) that all the use AT commands must to follow after a reset or time in time ?

Btw: are the parameters stored in EEPROM ?

1 Like

Hi @tcpipchip ,

The flow you said is correct. AT+CFM=1 is optional and shouldn’t be enable in all end-devices. It will required confirm downlink which is frequently used, will not be healthy for the scalability of the LoRaWAN Network.

The parameters are stored in internal flash of the module. There is no external EEPROM.

2 Likes

thanks so much!

Do you have the info

RF_SW_CTRL1_GPIO_PORT, RF_SW_CTRL1_PIN
RF_SW_CTRL2_GPIO_PORT, RF_SW_CTRL2_PIN

of RAK3272 if they are PB12 and PC13 ?

It is PB8 and PC13.

image

Hi
When you reset the RAK3272 in boot mode (BOOT = GND), whats happens ? and When in VCC33 ?
Both need to use UART to transfer the program ?

If BOOT is high (3.3V) then you reset, you will enter UART bootloader mode of STM32WL. This is chip level bootloader and not RUI3. You need to use STM32CubeProgrammer for this and upload the RUI3 .hex file.

If you are just using RUI3 to upload Arduino sketch, you do not need to pull up the BOOT. Else, your application will not run because you enter STM32WL UART Bootloader.

thanks so much!

Why am i getting this error

AT+SEND=2:4848484848484848

OK

+EVT:SEND_CONFIRMED_OK

AT+NJS=?

AT+NJS=1

OK

AT+MASK=0002

OK

AT+SEND=2:48484848484848484848484848484848

AT_PARAM_ERROR

+EVT:TX_DONE

Hi @tcpipchip ,

It looks like a bug. I tried it on my end and seems to be ok.

image

On your AT commands, it appears that the device suddenly goes from a confirmed uplink to unconfirmed uplink without changing it manually via AT+CFM. Do you have a running custom firmware on your device?

Hi, i am back
Yes,
If package is greater than 22 BYTES,
AT+SEND=2:484848484848484848484848
i got
AT_PARAM_ERROR
+EVT:TX_DONE and the CHIRPSTACK receive …“data”,null}
yes, change to unconfirmed :frowning:

If package is less or equal than 22 BYTES,
AT+SEND=2:4848484848484848484848
i got
OK
+EVT:SEND_CONFIRMED_OK
and the CHIRPSTACK receive the correct data

I am using UART AT COMMANDS, esp32 sending data :frowning:

i tried too using TERATERM, REALTERM…etc

Can you try to change your dr to 2 via AT+DR=2?

Then test again?

i will add to software this now!

Hi @tcpipchip ,

Thank you for providing the whole set of AT commands set. It seems this is not just about size but related to payload + mac commands size which appears to be a wrong total uplink packet size. We added some fix related to this on 4.0.6. I will send you in direct message a pre-release 4.0.6 firmware files so you can test.

hi, thanks

looks that is not accepting PARAM to my region, AU915…

you sent 3172, but…correct is 3272 ?

today i use
RAK3272-SiP_latest_final.hex

3172 and 3272 are the same module.

It is really strange that you will get error on AT+BAND=6. Have you tried other rejoin? Joining probably fails because the region is incorrect. (But this is different issue on what we have about the AT+SEND)

Hi, do you monitor if there is some pin grounded to choose high band frequency or low band frequency ? If yes, make it as high band by default