doorbash / gps-tracker

GPS tracker made with Arduino and sim868. Backend: https://github.com/doorbash/gps-tracker-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Config:

Edit <arduino ide directory>/hardware/arduino/avr/cores/arduino/HardwareSerial.h

Change:

#define SERIAL_TX_BUFFER_SIZE 64
#define SERIAL_RX_BUFFER_SIZE 64

To:

#define SERIAL_TX_BUFFER_SIZE 256
#define SERIAL_RX_BUFFER_SIZE 256

Edit <arduino ide directory>/hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.h:

Change:

#define _SS_MAX_RX_BUFF 64

To:

#define _SS_MAX_RX_BUFF 256

Create config.h:

#define SOFTWARE_SERIAL
#define DEBUG_MODE
#define MAX_BUFFER_SIZE 200
#define BAUD_RATE_SERIAL 9600
#define SS_RX_PIN 7
#define SS_TX_PIN 8
#define BACKEND_URL "http://your.domain.com/gps-tracker/"
// #define HTTPSSL
#define DEVICE_ID "00000000000000000000"

Todo:

  • Add device id
  • Add better sleep mode (to make it more energy efficient)

About

GPS tracker made with Arduino and sim868. Backend: https://github.com/doorbash/gps-tracker-backend


Languages

Language:C++ 100.0%