public class SerialGpsConnector extends AbstractGpsConnector implements gnu.io.SerialPortEventListener
Note: For backwards compatibility, we are treating the FLAGS_LOCAL bit inversely (if clear, is a local GPS; if set, is a remote GPS).
Connector.PortStats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_GUI |
static java.lang.String |
TYPE_NAME |
cachedToString, dispatchThread, QUEUE_READER, queuedButNotConsumed, rtQueuecurrentCfg, portConfigCAP_FULL_DUPLEX, CAP_GPS_DATA, CAP_HF, CAP_IGATE, CAP_OPENTRAC, CAP_RCV_PACKET_DATA, CAP_RF, CAP_WAYPOINT_SENDER, CAP_WEATHER, CAP_XMT_PACKET_DATA, stats| Constructor and Description |
|---|
SerialGpsConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down this port connection.
|
void |
configure(PortConfig portConfig)
Update the configuration of the connector to match the updated
setup.
|
boolean |
isOpen()
Reports whether this PortConnector has an open connection to its port.
|
void |
serialEvent(gnu.io.SerialPortEvent event)
Process incoming serial port event.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
write(java.lang.String line)
Transmit a line of text containing a waypoint sentence to the GPS device.
|
aprsMessageReceived, getCapabilities, parsedAX25MessageReceived, startQueueReader, uncaughtExceptionaddFrameListener, addPortEventListener, createPort, fireConsumeFrame, fireConsumeFrame, fireFailed, fireReceiving, fireTransmitting, getPortConnectorClass, portConnectorClasses, portTypeNames, registerPortConnectorType, removeFrameListener, removePortEventListener, setPortConfigfinalize, getCallsign, getStats, hasCapabilitypublic static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
public void configure(PortConfig portConfig) throws java.io.IOException, java.lang.IllegalArgumentException
configure in class PortConnectorportConfig - PortConfig defining new port settingsjava.io.IOException - if interface changes could not be appliedjava.lang.IllegalArgumentException - if type information is invalid for
changing the settings of this PortConnectorpublic boolean isOpen()
public void serialEvent(gnu.io.SerialPortEvent event)
serialEvent in interface gnu.io.SerialPortEventListenerevent - SerialPortEvent describing the handling neededpublic void write(java.lang.String line)
write in class AbstractGpsConnectorline - String text to transmitpublic java.lang.String toString()
toString in class java.lang.Object