Serial lte modem mqtt connect timeout problem

Hi Nordic,

    I am using the nrf52840 as the host and the nRF9160 as the modem with the serial_lte_modem library.

    Normally, when the nrf52840 sends an MQTT connection request (AT#XMQTTCON=1), if incorrect broker parameters are configured, modem_cmd_send() will return the result after the timeout period. However, through my testing, I found that if the timeout is set to more than 170 seconds, modem_cmd_send() will only return after 170 seconds.

    I read the document and it didn't mention the specific timeout duration, which confuses me. I hope someone can answer my question. 

Parents
  • Hi,

    This is strange, because modem_cmd_send() uses default Zephyr semaphores, which should be working fine. So it doesn't make sense that it returns after 170 seconds.

    What I believe is most likely to be happening, is that maybe after 170 seconds there is something sent to the UART. Can you maybe monitor the UART between the 2 chips to see if there is something happening on it while the function is waiting for an answer?

    Best regards,
    Simon D-M

Reply
  • Hi,

    This is strange, because modem_cmd_send() uses default Zephyr semaphores, which should be working fine. So it doesn't make sense that it returns after 170 seconds.

    What I believe is most likely to be happening, is that maybe after 170 seconds there is something sent to the UART. Can you maybe monitor the UART between the 2 chips to see if there is something happening on it while the function is waiting for an answer?

    Best regards,
    Simon D-M

Children
Related