Giter Site home page Giter Site logo

hnjm / tracker-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benagricola/tracker

0.0 2.0 0.0 47 KB

Particle Electron GPS / GSM tracker based on fancy-asset-tracker demo and ULOC tracking example.

License: GNU General Public License v3.0

C++ 95.29% C 4.71%

tracker-1's Introduction

Tracker

Based on David Middlecamp's fancy-asset-tracker demo for the Particle Electron with the Asset Tracker Shield.

Functionality

The basic implementation provides a combined GPS and Mobile network location system that will:

  • Wake up when accelerometer detects motion

  • If more motion is detected

    • Reset 'no motion' shutdown timer
    • Initialise GPS module
    • Attempt to connect to Particle cloud
  • If no status has been sent in more than 6 hours

    • Send idle_checkin status
  • Read new NMEA sentences from the GPS module

  • If we connected to the cloud but do NOT have a GPS fix

    • Retrieve an approximate location using the UBlox CellLocate feature (ULOC)
    • Use the GSM based location to hint the GPS module in hopes of a quicker fix timer using the PMTK740 and PMTK741 commands
  • Publish the most accurate location we have to the Particle cloud.

    • If we have a GPS fix then use that, otherwise submit the approximate GSM location
  • If GPS module has not gained a fix in 10 minutes (accelerometer will keep the tracker running permanently if it is in motion)

    • Turn off the GPS module for 10 minutes to save battery (yay active antenna)
  • TODO: If battery SoC is less than 20%

    • Disable accelerometer based interrupts that keep the device awake
    • Rely on idle checkin every 6 hours (or longer? configurable maybe) to report location
  • If we've not detected motion in more than 3 minutes

    • Put the Electron into deep sleep mode for 6 hours (or until woken by motion)

TODO

  • Implement low-battery 'emergency' mode that only reports location every hours
  • Implement ability to deep sleep the tracker for hours with no motion activated wakeup, e.g. when tracked device is being used by owner. Proximity based maybe?

tracker-1's People

Contributors

benagricola avatar stopshinal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.