public class OuternetConnector extends TNCConnector
Modifier and Type | Class and Description |
---|---|
static interface |
OuternetConnector.OuternetTestListener
Interface for listeners (such as the Test Port button on the configuration GUI panel)
to intercept the data read from the Outernet receiver.
|
PortConnector.PortStatsType
Connector.ConnectorType, Connector.PortStats
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_GUI
The fully-qualified platform-wildcarded class name for the configuration editor for OuternetConnector.
|
static java.lang.String |
TYPE_NAME
The PortConnector type name for OuternetConnector.
|
RF_SEND_TIME_PER_BYTE_1200, RF_SEND_TIME_PER_BYTE_300, RF_SEND_TIME_PER_BYTE_9600, timeslotTimer
currentCfg, portConfig
CAP_ADSB, CAP_FAST_RF_9600, CAP_FULL_DUPLEX, CAP_GPS_DATA, CAP_HF, CAP_IGATE, CAP_KENWOOD_CMD, CAP_OPENTRAC, CAP_OTHER_TRANSPORT, CAP_RAW_AX25, CAP_RCV_PACKET_DATA, CAP_RF, CAP_SUBCLIENT, CAP_WAYPOINT_SENDER, CAP_WEATHER, CAP_XMT_PACKET_DATA, stats
Constructor and Description |
---|
OuternetConnector() |
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.
|
static void |
fillinConfigDefaults(PortConfig.Cfg cfg)
Set the correct defaults for a port in process of being created.
|
int |
getAcceptableProtocolsMask()
Get the bitmask of AX.25 protocols supported by this port.
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
boolean |
isOpen()
Reports whether this Connector has an open connection to its port.
|
boolean |
readMostRecentFile(OuternetConnector.OuternetTestListener listener)
Attempt to read both files from the OUTERNET receiver, and extract the records from the
most recent file and forward them to the AX25Stack.
|
java.lang.String |
toString()
Returns a string representation of the OuternetConnector object.
|
convertTNC2FormatToAX25Frame, getBitRate, getCallsign, getPortAddress, getRFSendTimePerByte, setPortAddress
addPortEventListener, createPort, fillinConfigDefaultsForType, fireFailed, fireReceiving, fireTransmitting, getCollectedStatsTypes, getPortConfig, getPortConnectorClass, getPortConnectorInactivityTimer, getStats, portConnectorClasses, portTypeNames, registerPortConnectorType, removePortEventListener, setPortConfig
addFrameListener, finalize, fireConsumeFrame, fireConsumeFrame, getStats, getType, hasCapability, removeFrameListener
public static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
public static void fillinConfigDefaults(PortConfig.Cfg cfg)
cfg
- PortConfig.Cfg whose defaults should be adjustedpublic void configure(PortConfig config) throws java.io.IOException, java.lang.IllegalArgumentException
configure
in class PortConnector
config
- 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 readMostRecentFile(OuternetConnector.OuternetTestListener listener) throws java.io.IOException
listener
- OuternetTestListener if receive is supposed to be redirected to a test widget, or null for normal operationjava.io.IOException
- if web pages can't be readpublic boolean isOpen()
public int getCapabilities()
getCapabilities
in class Connector
Connector.CAP_RCV_PACKET_DATA
,
Connector.CAP_RF
public java.lang.String toString()
toString
in class java.lang.Object
public int getAcceptableProtocolsMask()
getAcceptableProtocolsMask
in class TNCConnector