SLM 2.4.0 + RAI

Hi, 

We want to use RAI with SLM FW and not sure how to add it
I've read some tickets regarding it but still no walkthrough.

Here are the steps we do now:

1. Receive GPS fix

2. Connect to out server

3. Send data and GPS

4. Check shadow

5. Close connection

6. Send Sleep=2 command

After the sleep command there is a time when the modem is still active and consuming power, and when the network is release the current drops to what it should be (happen the same with PSM or EDRX)

We want to know how to add the RAI (in code or AT commands) that immediate after Sleep=2 the modem will go idle 

Any guide regarding this issue?

We connect with MQTT (LTE-M)

Parents Reply
  • > we don't know how and where to add the socket so I can inform it is the last message.
    If you use the "serial_lte_modem" that app maintains the socket for you.
    With "AT#XSOCKETOPT" (see the documentation there) you should the be able to "set SO_RAI_LAST" or "set SO_RAI_NO_DATA".
    > We do send sleep=2 when we finished so I want it to send the RAI too.
    Enter "sleep=2" is not related to RAI and so that doesn't set the socket opt for you.
Children
Related