DA16200: Is there a way to set the Keep-Alive of the MQTT Server (AWS MQTT Broker) using DA Module ?

Hi Renesas Team,

I am  using the Dialog Module DA16200 connected to a Host MCU for MQTT.

DA16200 is used as an MQTT Client in this project.

I had configured the dialog module to wake up from DPM and  ping the MQTT Server(AWS Broker) every 10 minutes to the server to keep the connection alive.

For this I programmed the Host MCU to send the AT command "AT+NWMQPING=600" to configure this.

The pings are working fine. However, the AWS MQTT Broker disconnects the connection with DA Module after 5 minutes.

This means that there is a disconnection between AWS MQTT Broker and DA Module from the 6th Minute to the 10th Minute. 

It seems that the Keep-Alive of the AWS MQTT Broker is set at 5 minutes instead of 10. 

My question is: Is there a way to set the Keep Alive of AWS MQTT Broker using DA Module to the desired value of 10 minutes?

Thank you so much for your support,

Regards,

Nandagopal

  • Hi Nandan, 

    Thanks for your inquiry. 

    AT+NWMQPING is used to keep the connection with the broker.AT+NWMQPING=600 ( 60 seconds x 10 ) means DA16200 sends mqtt ping packet to mqtt-broker every 10mins . Sp, the PING REQ period will be 10 minutes. 

    The AT+DPMKA is used to set the "dpm keep alive" in order to keep the connection with AP.

    For further investigation, please share : 

    1. The AT Command sequence that you're using. 

    2. The dpm status 

    3. The mqtt configuration 

    4. A sniffer log (if it's possible)

    Best regards, 

    PM_Renesas

  • Hi Nandan, 

    Can you also indicate the SDK version?

    Regards, 

    PM_Renesas

  • we are currently using SDKv3.2.2.0

  • Hi Renesas Team, 

    Thank you once again for your continued support! 

    Apologies for the delayed response...Here is the AT command sequence you requested.

    2234.ATCommandsUsed.txt
    FOR INITIAL CONFIGURATION
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    AT+WFJAP=?
    AT+WFJAPA=XX,XX
    AT+WFSTA=?
    AT+NWSNTP=1
    AT+DPMKA=30000
    AT+DPMTIMWU=10
    AT+NWMQCID=xx
    AT+NWMQPING=600
    AT+NWMQTT=xx,1883,xx,xx,1,0
    AT+DPM=1
    FOR EVERY WAKE-UP OF HOST-MCU
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    AT+MCUWUDONE
    AT+CLRDPMSLPEXT
    AT+WFSTA=?
    AT+NWMQCL=?
    //Receive commands and process using MQTT
    ...
    //Once finished 
    AT+SETDPMSLPEXT