Fona/MQTT failure

Adafruit cellular platform - SMS and IoT over celluar

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
anpretorius
 
Posts: 14
Joined: Tue Aug 07, 2018 2:44 pm

Fona/MQTT failure

Post by anpretorius »

Hi All

I have a strange issue that I am not able to solve.
I currently use a feather M4 express to talk to a SIM868 modem. The base for the project is the MQTT Fona example from Adafruit.

The idea is to use the GPS functionality of the SIM 868 and send the location in JSON format to a MQTT server.

All the code compile, connect and function as expected, but seems to just stop after data has been send to the server 6 times. I have attached the sketch as well as a serial sniff between the modem and CPU, and the serial console output. There is no obvious reason for the CPU to freeze up. When it freeze I need to fiscally reset the CPU as well as plugging the USB out and re inserting the connection.

Any ideas how i can further trouble shoot would be appreciated.
Attachments
Sim868_28-11-2021.zip
complete program
(4.07 KiB) Downloaded 12 times
Message on serial console
Message on serial console
Serial console.JPG (22.43 KiB) Viewed 730 times
Serial Sniff between modem and CPU
Serial Sniff between modem and CPU
snif.PNG (9.07 KiB) Viewed 730 times

User avatar
anpretorius
 
Posts: 14
Joined: Tue Aug 07, 2018 2:44 pm

Re: Fona/MQTT failure

Post by anpretorius »

Hi All

Maybe this can help somebody in the future.

the fault seems to have been in the JSON lib. I have now created my own JSON string and and taken the lib out of the sketch.
So far so good, everything seems to have stabilized.

Andre

Locked
Please be positive and constructive with your questions and comments.

Return to “FONA”