gpspositionprovider.jar
Description
This bundle provides provides a org.osgi.service.wireadmin.Producer service that polls GPS positions from a GPS receiver connected to the gateway by a serial link or others receiver (CellID from Cellular Phone, ...)
In fact, this bundle use classes from GPSMap (http://gpsmap.sourceforge.net) done by Christof Dallermassl.
For more details on how to use this bundle, refer to the /doc/readme.html file embedded in the bundle jarfile.
Contributors
Didier Donsez (Didier.Donsez@ieee.org)
License
LGPL
Services
org.osgi.service.wireadmin.Producer
Properties
- wireadmin.producer.flavors=Class[] { org.osgi.util.position.Position.class, java.lang.String.class }
- service.pid=fr.imag.adele.bundle.gpspositionproducer
- service.description=A service that polls positions from a GPS receiver
- PositioningMethod=GPS
Requirements
- javax.comm
- org.osgi.service.wireadmin; specification-version=1.0
- org.osgi.util.measurement; specification-version=1.0
- org.osgi.util.position; specification-version=1.0
Download
Build
- download a recent distribution of GPSMap available from http://gpsmap.sourceforge.net
- install javax.comm (which can be put in $JAVA_HOME/jre/lib)
- download a recent distribution of the javax.comm available from http://java.sun.com/products/javacomm/
- configure the build properties in build.xml
- build the embedded lib extracted from gpstool.jar with
ant build.embeddedlibs
- configure the properties (serial port, ...) in ./res/config.properties
- build with ant
Usage
1 bundle use the fr.imag.adele.bundle.location.LocationProvider service registered by this bundle
- locationservlet.jar is a servlet which offer a simple front end to display the current GPS position (http://thegateway/location/read)
The activation of this bundle is blocking when no GPS receiver is connected to the gateway
Tested gateways (testers are welcome)
Tested GPS Receiver (testers are welcome)
- Trimble Lassen SK8 (serial port : NMEA output mode) (by Didier Donsez)
- Garmin eTrex Legend (serial port : NMEA output mode) (by Didier Donsez)
- Sanav BT-48 (Bluetooth serial port : NMEA output mode) (by david [dot] tacconi [at] create-net [dot] it)
TODO (contributions are welcome)
- provides a service for the J2ME Location API (JSR 179)
- produces Location objects (J2ME Location API (JSR 179)) optionallaly by using dynamic import
- Package as a Driver/Device for a Device Access Manager
- test it with RXTX under Linux (http://www.frii.com/~jarvi/rxtx/intro.html), a GNU javax.comm alternative (for Linux, ...). requires to add a GsmTransport using org.gnu.rxtx
Typical usage
The following book introduces Location-Based Services:
Jochen Schiller (Editor), Agnes Voisard (Editor), Location-Based Services, Publisher: Elsevier Science, Morgan Kaufmann Series in Data Management Systems, May 2004, ISBN: 1558609296, 255pp
Links
Some links on other wire admin materials:
Other links about NMEA0183, GPS, Location-Based Services, ...
My GPS position
lat 45 11'37"N, lon 05 46'15"E, alt 223m