I have been trying to make a gps tracker using a DFRobot sim7000 to try and send longitude and latitude to an MQTT server using a 3g/4g connection but I can’t seem to get it working.
I couldn’t get it working with the DFRobot library so i was advised to use the botletics library. I read the guide on here and came up with this code for submitting longitude and latitude to a mqtt server using celluar.
I had a look at the library code, and it looks like it does support the 7000 and 7070, but I’m not sure why other functions would work, but not GPS, all the functions just send and receive AT commands over serial.
Have you tried hooking into the RX and TX lines of your shield with a USB-to-serial converter to see if sending the commands manually gets a response you can decode?
It’s also good to not rule out hardware issues, could you attach a photo of how you’ve got everything hooked up?
Yes, the DFRobot SIM7000 has a USB port and I have succeeded in using it with AT Command Tester software where both cellular data works and GPS works. So the problem is with both the botletics library and the default DFRobot SIM7000 library
If botletics libary isn’t going to work for me how would I go about debugging and finding out why the attacthService function in the DFRobot library doesn’t work since the GPS features in the DFRobot library work
Here is DFRobot SIM7000 library with the only change being made is changing the APN from cmnet to internet in attacthService void
And you can get our latest projects and tips straight away by following us on: