nRF9160 MQTT responses time

Hi,

I'm using nRF9160 to send data to AWS via MQTT publish every second. Normally, the nRF9160 responds with "OK" almost instantly when I send the AT command, however, it takes more than 1 second to send "OK" from time to time. I'm wondering how can I improve this latency.

Thanks,

Parents
  • Hi,

    How much data are you sending?

    Depending on your link quality and how much data you are sending, it might be that the modem isn't always able to send the data fast enough, causing send() to block until the memory buffer becomes ready again.

    One thing you can try to reduce the latency, is to increase the buffers controlled byt eh Kconfig options found in this Kconfig file: nrf/lib/nrf_modem_lib/Kconfig.modemlib

    Best regards,

    Didrik

    P.S. Due to holiday vacations, response time might be longer than normal. We apologize for the inconvenience.

Reply
  • Hi,

    How much data are you sending?

    Depending on your link quality and how much data you are sending, it might be that the modem isn't always able to send the data fast enough, causing send() to block until the memory buffer becomes ready again.

    One thing you can try to reduce the latency, is to increase the buffers controlled byt eh Kconfig options found in this Kconfig file: nrf/lib/nrf_modem_lib/Kconfig.modemlib

    Best regards,

    Didrik

    P.S. Due to holiday vacations, response time might be longer than normal. We apologize for the inconvenience.

Children
Related