This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MQTT AT-Commands

Good Day. I am wondering if anyone could maybe assist me in where I am going wrong with my software.

I have the intention of using a Nrf9160 as a serial modem through AT commands. As a chosen communication protocol we would like to use MQTT. 

Background info

Hardware : NRF9160

Firmware : mfwnrf9160120  (2020-04-29)

Software Image : Serial LTE Modem

I am attaching my project config file and the current AT-Commands that the modem will accept

My problem is that I cant seem to get the MQTT AT commands for the modem in.

When I started the GPS commands were initially not useable in the modem. So I modified the project config file and then the GPS commands became useable through AT-Commands. 

I am lost as to where I could be going wrong,  If any one would be able to help me out that would be very kind.

  • The nrf52832 is working correctly as we have a few running the codeset we have made for them. We chose to have the nrf52 as the "Master" of the two as we require BLE in our application.

    I am still developing on a nRF9160DK. I am currently using the device through a UART serial port to get all my AT-Commands ready for getting the device attached to the networks and to read GPS.

    All my other commands are currently useable, But the MQTT commands do not show when I send the command AT+CLAC then I get the reply in the file "AT-Commands.txt"

    When I send the AT command for MQTT connect I only get error.

    AT#XMQTTCON=1,"3001","MyUseName","MyPassword","MyBrokerDetails",1883

  • Good day. I seem to have resolved my problem.

    I removed the following line from my project config and came right.

    CONFIG_SLM_MQTTC=y

    I do see that the command AT+CLAC does not return any of the MQTT commands

  • Happy to hear that your issue is solved!

    PieterK said:
    I do see that the command AT+CLAC does not return any of the MQTT commands

    Yes, this is correct as the SLM AT commands are proprietary AT commands, while the modem-specific AT commands are documented in the nRF91 AT Commands Reference Guide. 

  • Hi Pieterk


    I have check your thread and I am new into nRF9610 platform. 

    I am working on same application as yours difference is  I have STM32 mcu in place of nrf52. 

    I am trying to build serial lte modem application for nRF9610 for MQTT purpose over STM32.

    I have installed necessary software and tested some pre-build images and example on dk board over usb connection.

    if possible can you help me to share some information on how would I building this serial lte application and list of at command that you used in nrf52 it would be helpful.

    Any help will be appreciated. 

    Thanks & Regards,

    Ashvin 

Related