This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 mqtt_simple and gps can not coexist

Hi, Sir:

I am using nrf9160 to develop a project of mqtt and GPS, using mqtt to upload GPS data to the cloud server; I use the software and hardware information as follows:

hardware:

  • nRF9160 DK

software:

  • system: ubuntu + SES
  • ncs : v1.1.0
  • modem : mfw_nrf9160_1.1.0.zip
  • mode: nb-lot and gps(CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y)
  • example: ncs/nrf/samples/nrf9160/mqtt_simple

I use the mqtt_simple demo as the development starting point, and it works works, next I added gps function;then I met some problem:

After GPS starting to run, mqtt run with errors and cannot publish or subscribe any data:

I don't know why? Could you  please provide a solution?

Harry

Best Wishes!

  • Hi!

    Which network provider is your SIM card from? If you are using the iBasis SIM card, the iBasis network does not support PSM yet, so you will have to purchase a SIM card from a local provider.

    Best regards,

    Heidi

  • Hi, Heidi:

    I am using the  SIM card from a local provider.

  • Right. I can't think of any other obvious reasons that the GPS does not work with the mqtt_simple example. Could you zip your working directory and send it, so I can have a look?

    Best regards,

    Heidi

  • My code is attached, please load mqtt _gps. config (mqtt_test/),then compile.

    Best regards,

    Harry

    mqtt_test.zip

  • Hi again! I took a look at your code but I don't see anything wrong.

    I think a modem trace will help us see what's going on. Could you follow this tutorial on how to get a modem trace from your device and attach it in your next reply or original post, thanks!

    Best regards,

    Heidi

1 2