Giter Site home page Giter Site logo

android_hardware_gps's Introduction

Android Serial GPS Driver

How to use:

To set serial port, add a property "ro.kernel.android.gps" and set it equal to your GPS device file. ie. ro.kernel.android.gps=ttyO1

Default baud rate is 9600, to adjust add a property "ro.kernel.android.gpsttybaud" and set it equal to the needed rate. (4800-115200) ie. ro.kernel.android.gpsttybaud=9600

Default GPS fix rate (interval between position updates) depends on the used device but it is often 1 second. This rate is possible to modify by property "ro.kernel.android.gps.max_rate" if your GPS device is able to process UBX protocol. Acceptable property value must be from one of two ranges - from 1 to 65 seconds or from 250 to 65000 milliseconds.

Serial GPS driver is able to synchronize system time by the similar way as Internet connection. Property "ro.kernel.android.gps.time_sync" which is greater than zero is taken as threshold in seconds. If difference between system time and GPS time will grow over given threshold then system time will be set to GPS time with the respect to the current time zone. Threshold should be set to some value from 20 to 60. If property is missing or its value is zero then time synchronization is turned off.

Notes:

  • If using a USB device make sure you have the necessary kernel modules loaded or built in to the kernel.
  • Make sure the permissions on your device file are correct

Donate: If you find any of this useful and want to show appreciation see below:

PayPal: [email protected] Bitcoin: 1Pg54vVnaLxNsziA6cy9CTefoEG5iAm9Uh

android_hardware_gps's People

Contributors

alxchr avatar cwhuang avatar kconger avatar kolaci avatar konstat avatar martin-kolaci 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.