Skip to content

LMIC-node-gps-tracker based on Leonel Lopes Parente's LMIC-node (https://github.com/lnlp/LMIC-node). it adds gps functionality to the node.

License

Notifications You must be signed in to change notification settings

roelwolf/LMIC-node-gps-tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LMIC-node-T-Beam-GPS

This repository is a fork of Leonel Parente's LMIC-node and adds a gps functionality to the default LMIC-node

The code makes use of the library mikalhart/TinyGPSPlus

The code is written for the TTGO T-Beam but is easily adapted for any other board equipped with a gps module.

I changed as less as posible to the original code in LMIC-node.h and LMIC-node.cpp. The additions are mainly between the lines "USER CODE BEGIN" and "USER CODE END"

It is possible to change the uplink interval by sending a downlink command on channel 100 to the node. There a 4 possible intervals: 0c1E (30 sec), 0x3C (60 sec), 0x78 (120 sec) and 0xB4 (180 sec). When needed, change this in the code of LMIC-node.cpp.

I also added the files gps.h and gps.cpp that I borrowed from sbiermann Lora-TTNMapper-ESP32 with a few changes.

In platfomio.ini the are also some additions: Added some new variables:

  • HOME_LATITUDE, HOME_LONGITUDE Here you can fill in the coordinates of your starting point. Used i.c.w. MIN_DISTANCE.
  • MIN_DISTANCE meters around your starting point where the mapper is not allowed to upload packages.
  • GPS_DEVIATION To ignore small displacements, send only packages when the tracker moves.
  • GPS_TX_PIN, GPS_RX_PIN The pin numbers of the gps module. Depends on the board type.
  • a payload formatter for version 3.

Packages

No packages published

Languages

  • C 80.4%
  • C++ 18.8%
  • JavaScript 0.8%