public class YaesuConnector extends TNCConnector implements jssc.SerialPortEventListener
The expected packet format is in two lines. Line 1 contains the AX.25 frame header information in the format:
src>dest,digi [MM/dd/yy HH:mm:ss] <UI>:
where the ",digi" part is optional (if the packet wasn't specified for digipeating). The Kantronics variation is the format:
src>dest,digi: <UI>:
where no date is provided, and an extra colon character is immediately after the last digipeater (much like the APRS-IS/TNC2 format, if there wasn't an encoding of the frame type and a line break stuck in between the header and the body).
The second line is the body of the packet in plain text (should be ASCII, but this class supports UTF-8 just in case). For APRS packets, this should just be a printable packet.
PortConnector.PortStatsType
Connector.ConnectorType, Connector.PortStats
Modifier and Type | Field and Description |
---|---|
static java.util.Set<PortConfig.Fields> |
BLANK_FIELDS
Set of PortConfig field identifiers for fields that should not be copied from another system and should therefore be
blanked out when copying configuration files.
|
static java.lang.String |
CONFIG_GUI
The fully-qualified platform-wildcarded class name for the configuration editor for YaesuConnector.
|
static java.util.Map<PortConfig.Fields,PortConfig.RequireHints> |
REQ_FIELDS
List of PortConfig field identifiers that are mandated for this port type to work, and the ResourceBundle key to
prompt for a value if missing.
|
static java.lang.String |
TYPE_NAME
The PortConnector type name for YaesuConnector.
|
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 |
---|
YaesuConnector() |
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.
|
static void |
fillinConfigDefaults(PortConfig.Cfg cfg)
Set the correct defaults for a port in process of being created.
|
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 |
serialEvent(jssc.SerialPortEvent event)
Process incoming serial port event.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
convertTNC2FormatToAX25Frame, getAcceptableProtocolsMask, 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 final java.util.Set<PortConfig.Fields> BLANK_FIELDS
public static final java.util.Map<PortConfig.Fields,PortConfig.RequireHints> REQ_FIELDS
public static void fillinConfigDefaults(PortConfig.Cfg cfg)
cfg
- PortConfig.Cfg whose defaults should be adjustedpublic void configure(PortConfig portConfig) throws java.io.IOException, java.lang.IllegalArgumentException
configure
in class PortConnector
portConfig
- 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 close()
public int getCapabilities()
getCapabilities
in class Connector
Connector.CAP_RCV_PACKET_DATA
,
Connector.CAP_XMT_PACKET_DATA
,
Connector.CAP_FULL_DUPLEX
,
Connector.CAP_GPS_DATA
,
Connector.CAP_HF
,
Connector.CAP_IGATE
,
Connector.CAP_OPENTRAC
,
Connector.CAP_RF
,
Connector.CAP_WAYPOINT_SENDER
,
Connector.CAP_WEATHER
public void serialEvent(jssc.SerialPortEvent event)
serialEvent
in interface jssc.SerialPortEventListener
event
- SerialPortEvent describing the handling neededpublic java.lang.String toString()
toString
in class java.lang.Object