public abstract class TNCConnector extends PortConnector
PortConnector.PortStatsTypeConnector.ConnectorType, Connector.PortStats| Modifier and Type | Field and Description |
|---|---|
protected static float |
RF_SEND_TIME_PER_BYTE_1200
The transmission time per byte in milliseconds for a 1200-baud RF modem.
|
protected static float |
RF_SEND_TIME_PER_BYTE_300
The transmission time per byte in milliseconds for a 300-baud RF modem.
|
protected static float |
RF_SEND_TIME_PER_BYTE_9600
The transmission time per byte in milliseconds for a 9600-baud RF modem.
|
protected static ReschedulableTimer |
timeslotTimer
Timer to use for port timeslot timing.
|
currentCfg, portConfigCAP_ADSB, CAP_APRS, 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| Modifier | Constructor and Description |
|---|---|
protected |
TNCConnector()
Initialize abstract superclass for TNCConnector.
|
| Modifier and Type | Method and Description |
|---|---|
static AX25Frame |
convertTNC2FormatToAX25Frame(int bufLen,
byte[] buf)
Convert a String of a TNC2 format APRS packet into an AX25Frame object.
|
int |
getAcceptableProtocolsMask()
Get the bitmask of AX.25 protocols supported by this port.
|
int |
getBitRate()
Get the bit transmission rate on this port.
|
java.lang.String |
getCallsign()
Get the string representation AX.25 callsign associated with this TNC port.
|
AX25Callsign |
getPortAddress()
Get the AX.25 callsign associated with this TNC port.
|
float |
getRFSendTimePerByte()
Calculate the estimated RF transmission time per frame byte for the TNC on this port.
|
void |
setPortAddress(AX25Callsign portAddress)
Set the AX.25 callsign associated with this TNC port.
|
addPortEventListener, configure, createPort, fillinConfigDefaultsForType, fireFailed, fireReceiving, fireTransmitting, getCollectedStatsTypes, getPortConfig, getPortConnectorClass, getPortConnectorInactivityTimer, getStats, portConnectorClasses, portTypeNames, registerPortConnectorType, removePortEventListener, setPortConfigaddFrameListener, close, finalize, fireConsumeFrame, fireConsumeFrame, getCapabilities, getStats, getType, hasCapability, isOpen, removeFrameListenerprotected static final float RF_SEND_TIME_PER_BYTE_9600
protected static final float RF_SEND_TIME_PER_BYTE_1200
protected static final float RF_SEND_TIME_PER_BYTE_300
protected static final ReschedulableTimer timeslotTimer
protected TNCConnector()
public static AX25Frame convertTNC2FormatToAX25Frame(int bufLen, byte[] buf)
bufLen - the number of bytes to use in the bufferbuf - the byte array containing the TNC2 format messagepublic AX25Callsign getPortAddress()
public void setPortAddress(AX25Callsign portAddress)
portAddress - AX25Callsign for this port (may be null if port is not configured)public java.lang.String getCallsign()
getCallsign in class Connectorpublic int getBitRate()
getBitRate in class PortConnectorpublic float getRFSendTimePerByte()
public int getAcceptableProtocolsMask()
Enum.ordinal() value of
the ProtocolFamily enum.