public class SerialTNCConnector extends TNCConnector implements gnu.io.SerialPortEventListener
Connector.PortStats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_GUI
Specify the fully-qualified platform-wildcarded class name for the editor for SerialTNCConnector.
|
static java.lang.String |
TYPE_NAME
Specify the PortConnector type name for SerialTNCConnector.
|
currentCfg, 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 |
|---|
SerialTNCConnector()
Create an uninitialized SerialTNCConnector instance, to be configured with a later call to configure().
|
| 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.
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
boolean |
isOpen()
Reports whether this PortConnector has an open connection to its port.
|
void |
sendFrame(AX25Frame frame)
Transmit an AX.25 frame through this port.
|
void |
serialEvent(gnu.io.SerialPortEvent event)
Process incoming serial port event.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
convertTNC2FormatToAX25Frame, getBitRate, getCallsign, getPortAddress, setPortAddressaddFrameListener, addPortEventListener, createPort, fireConsumeFrame, fireConsumeFrame, fireFailed, fireReceiving, fireTransmitting, getPortConnectorClass, portConnectorClasses, portTypeNames, registerPortConnectorType, removeFrameListener, removePortEventListener, setPortConfigfinalize, getStats, hasCapabilitypublic static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
public SerialTNCConnector()
configure(PortConfig)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 sendFrame(AX25Frame frame) throws java.io.IOException
sendFrame in class TransmittingPortConnectorframe - AX25Frame object to transmitjava.io.IOException - if transmit failed for any reason other than a receive-only portpublic void serialEvent(gnu.io.SerialPortEvent event)
serialEvent in interface gnu.io.SerialPortEventListenerevent - SerialPortEvent describing the handling neededpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getCapabilities()
getCapabilities in class ConnectorConnector.CAP_RCV_PACKET_DATA,
Connector.CAP_XMT_PACKET_DATA,
Connector.CAP_FULL_DUPLEX,
Connector.CAP_GPS_DATA,
Connector.CAP_IGATE,
Connector.CAP_OPENTRAC,
Connector.CAP_RF,
Connector.CAP_WAYPOINT_SENDER,
Connector.CAP_WEATHER