Gps Glonass Android Driver

GPS/GLONASS generic android driver (gps.default.so)
Alternatives To Gps Glonass Android Driver
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Hidusbf497
6 months ago2Batchfile
USB Mice Overclocking Software (for Windows)
Ratelimit42496272 years ago19July 19, 20213mitJavaScript
Rate limiter middleware
Rtl8812au312
7 months ago62C
RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
Sick_scan120
9 months agoapache-2.0C++
sick_scan is an open-source project to support the laser scanner of the company SICK using the ROS-framework
React Native Rating90
55 years ago6September 18, 20177mitJavaScript
🌟 cross-platform rating for react-native built with Animated and native driver 🌟
Bluezone82
19 days ago1gpl-3.0Java
An example application implementing Hexagonal Architecture
Acan251551
2 months ago20mitC++
MCP2515 CAN Controller Driver for Arduino
Sick_scan247
9 months ago5apache-2.0C++
sick_scan2 is an open-source project to support the laser scanner of the company SICK using the ROS2 framework
Uber Ruby41
133 years ago12November 03, 201712mitRuby
A Ruby Interface to the Uber API
Adonis Throttle39
33 years ago13January 31, 20201mitJavaScript
A rate limiter for Adonis JS
Alternatives To Gps Glonass Android Driver
Select To Compare


Alternative Project Comparisons
Readme

gps-glonass-android-driver

GPS/GLONASS generic android driver for serial devices. (gps.default.so)

It uses ro.kernel.android.gps, ro.kernel.android.gps.speed and ro.kernel.android.gps.max_rate kernel parameters.

Installation

Just copy the library to /system/lib/hw/ folder add properties to build.prop and reboot device.

Kernel properties

build.prop example:

  ro.kernel.android.gps=ttyUSB0
  ro.kernel.android.gps.speed=9600
  ro.kernel.android.gps.max_rate=1

Properties description

  • ro.kernel.android.gps - [REQUIRED] Device name
  • ro.kernel.android.gps.speed - [NON REQUIRED] Baud rate. Supports: 4800, 9600, 19200, 38400, 57600, 115200. Default value: 9600
  • ro.kernel.android.gps.max_rate - [NON REQUIRED] Maximum refresh rate. Between 1-10Hz. Default value: 1

IMPORTANT Higher max refresh rate causes higher CPU load. Recommended value is 1Hz (car navigation, etc)

init.d script

On some devices the library cannot set baudrate itself, in that case you can use the folowing script. Call it 00_gps.sh, save it in init.d folder, add 755 permisions and root as an owner.

#!/system/bin/sh
# GPS Switcher
# init.d 00_gps.sh
# [email protected]

GPSTTY=/dev/`getprop ro.kernel.android.gps`
SPEED=`getprop ro.kernel.android.gps.speed`

if [[ ! -z $GPSTTY ]] ; then

	# Default speed
	if [[ -z $SPEED ]] ; then
		SPEED="9600"
	fi;
	
	# Serial device params
	if [ -c $GPSTTY ] ; then
		echo "Setting USB GPS $GPSTTY speed to $SPEED"
		# Speed
		busybox stty -F $GPSTTY ispeed $SPEED
		# No echo
		busybox stty -F $GPSTTY -echo
		# Owner
		chown root:system $GPSTTY
		# Permissions
		chmod 666 $GPSTTY
	fi;
	
fi;

*** busybox required

Popular Driver Projects
Popular Rating Projects
Popular Libraries Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C
Driver
Rate
Properties
Gps