Send Pico LTE GPS data to web server or Telegram

Get the GPS position of the Pico LTE and send it to a web server or a Telegram chat over the cellular connection.

These examples get the board’s GPS position and send it, over the cellular connection, to a web server or to a Telegram chat.

Before you begin

Required

Hardware

  • Sixfab Pico LTE or Pico LTE 2Registered and active in Sixfab Connect, connected to the computer with the micro USB cable.
  • Passive GNSS antennaOn the u.FL connector, for example the Passive GNSS/GPS Antenna u.FL Plug, 100 mm. The board works with passive antennas only.

Software

Connect the GNSS antenna to the u.FL connector:

Set destination

In config.json, set the destination of the position.

Run example

Open the script from the examples/gps folder of the SDK repository in Thonny and click Run. The script waits for a GPS fix, then sends the latitude and longitude.

The first fix can take a few minutes; under open sky it is faster. See also GNSS.

Troubleshooting

  • +CME ERROR: 516: the module has no fix. Use the board outdoors, or a better antenna.
  • +CME ERROR: 504: a GPS operation is already running on the module. Continue, or stop it and restart your program.