nRF9160 SLM data mode exit

Hi,

I'm using nRF9160 to send real-time data over MQTT. I'm doing 1 MQTT publish per second. It works most of the time, however, I noticed that the modem couldn't exit the data mode occasionally. I append "+++" at the end of the data, but the modem remains in the data mode. Any suggestions on how to exit data mode correctly?

I'm using SLM 2.0.2 with modem FW 1.3.2

Thanks,

Parents Reply
  • Hi Øyvind,

    I'm using AT#XMQTTPUB to enter data mode, the payload comes after this. The payload ends with "+++", which tells the modem to leave the data mode.

    Once the modem is stuck in the data mode, the next AT#XMQTTPUB will be treated as part of the payload. Hence, I can see the "+++AT#XMQTTPUB" in the MQTT broker.

    My hypothesis is the modem for some reason stuck in "datamode off pending" state for a little longer. Hence, the modem still sends everything it receives until it actually leaves the datamode. 

Children
Related