com.eurotech.framework.linux.position
Class GpsDevice
java.lang.Object
com.eurotech.framework.linux.position.GpsDevice
public class GpsDevice
- extends Object
GPS Utility class, not intended to be used by the end user of ESF.
Assuming the device talks NMEA over a serial port configured thru PositionService
GpsDevice
public GpsDevice()
toString
public String toString()
- Overrides:
toString
in class Object
getProtocolName
public String getProtocolName()
getUnitAddress
public String getUnitAddress()
configureProtocol
public void configureProtocol(Properties protocolConfig)
throws PositionException
- Throws:
PositionException
configureConnection
public void configureConnection(org.osgi.service.io.ConnectionFactory connFactory,
Properties connectionConfig)
throws PositionException
- Throws:
PositionException
getConnectStatus
public int getConnectStatus()
getPosition
public org.osgi.util.position.Position getPosition()
getNmeaPosition
public NmeaPosition getNmeaPosition()
is_validPosition
public boolean is_validPosition()
get_dateNmea
public String get_dateNmea()
get_timeNmea
public String get_timeNmea()
connect
public void connect()
throws PositionException
- Throws:
PositionException
disconnect
public void disconnect()
get_lastSentence
public String get_lastSentence()
Copyright © 2013. All Rights Reserved.