public class AGWPEConnector extends TNCConnector
Connector.PortStats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_GUI |
static java.lang.String |
TYPE_NAME |
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 |
|---|
AGWPEConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down this port connection.
|
void |
configure(PortConfig config)
Update the configuration of the connector to match the updated
setup.
|
int |
getBitRate()
Get the bit transmission rate for the radio on this port.
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
static java.lang.String[] |
getRadioPortNames(java.lang.String ipAddress,
int socketPort,
java.lang.String oldAgwpePortName)
Get the list of ports discovered on this AGWPE server.
|
static boolean |
hasLocalAGWPE()
Test if the host computer is potentially running AGWPE with TCP/IP support.
|
boolean |
isOpen()
Test if the connection to the associated AGWPE server is open and working.
|
void |
sendFrame(AX25Frame frame)
Transmit an AX.25 frame through this port.
|
java.lang.String |
toString() |
convertTNC2FormatToAX25Frame, 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 void configure(PortConfig config) throws java.io.IOException, java.lang.IllegalArgumentException
configure in class PortConnectorconfig - 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 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 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_WEATHERpublic static boolean hasLocalAGWPE()
public boolean isOpen()
public static java.lang.String[] getRadioPortNames(java.lang.String ipAddress,
int socketPort,
java.lang.String oldAgwpePortName)
throws java.io.IOException
ipAddress - String of IP address to AGWPE serversocketPort - TCP port number for AGWPE serveroldAgwpePortName - String of port number currently in use on AGWPEConnector (or null if not initialized yet)java.io.IOException - if expected socket error communicating with AGWPE serverpublic int getBitRate()
getBitRate in class TNCConnector