|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.cs.seclab.modem.SerialModem
edu.uiuc.cs.seclab.modem.xbee.XBeeModem
public class XBeeModem
| Nested Class Summary | |
|---|---|
protected class |
XBeeModem.ApiEscapedState
|
protected class |
XBeeModem.ApiState
API mode with unescaped characters |
protected class |
XBeeModem.ModemState
|
private class |
XBeeModem.OutgoingTxn
|
private class |
XBeeModem.OutgoingTxnCoord
|
protected class |
XBeeModem.PassThruState
Pass-thru mode |
| Field Summary | |
|---|---|
protected java.util.HashMap<XBee64Address,XBee16Address> |
addrCache
Cache of addresses used by Series 2 modems to associate 16-bit network addresses with 64-bit ZigBee addresses, to avoid the overhead of spurious routing requests. |
static java.util.List<java.lang.Byte> |
BAD_FRAME_IDS
|
protected java.util.List<XBeeModemDebugListener> |
debugListeners
|
static int |
DEFL_MAX_OUTGOING_TXNS
|
static int |
DEFL_OUTGOING_WAIT_TM
Wait for ten seconds before resending a transaction |
static int |
DEFL_RETRY_CNT
|
static int |
MAX_FRAME_ID
|
static int |
MIN_FRAME_ID
If frame ID is set to 0, no response will be returned |
static int |
MIN_FW
Minimum firmware revision required by this driver |
protected XBeeModem.OutgoingTxnCoord |
outTxnCoord
|
protected java.util.List<XBeeModemRecvListener> |
rxers
|
protected boolean |
series2
Set if this is a Series 2 modem |
protected XBeeModem.ModemState |
state
|
| Fields inherited from class edu.uiuc.cs.seclab.modem.SerialModem |
|---|
incoming, is, lastTxTime, notifier, open, os, portId, sPort |
| Fields inherited from interface gnu.io.CommPortOwnershipListener |
|---|
PORT_OWNED, PORT_OWNERSHIP_REQUESTED, PORT_UNOWNED |
| Constructor Summary | |
|---|---|
XBeeModem(boolean series2_,
SerialParams comPort)
Initialize an XBee-PRO modem on a serial port |
|
XBeeModem(boolean series2_,
gnu.io.SerialPort port)
Initialize an XBee-PRO on a serial port that is already open |
|
| Method Summary | |
|---|---|
void |
addDebugListener(XBeeModemDebugListener listener)
|
void |
addRecvListener(XBeeModemRecvListener rxer)
|
private void |
commonInit()
|
java.util.List<XBeeModemDebugListener> |
getDebugListeners()
|
void |
handleModemString(java.lang.StringBuilder s)
|
boolean |
isSeries2()
|
private void |
notifyDebugListeners(XBeeModemDebugEvent ev)
|
void |
removeDebugListener(XBeeModemDebugListener listener)
|
void |
removeRecvListener(XBeeModemRecvListener rxer)
|
void |
reset()
Reset module |
void |
send(ModemPacket pkt_)
Convert data packet to API packet and send |
int |
sendCmd(XBeeAtCmd cmd,
XBeeAtCmd.Mode mode)
|
void |
sendCmds(java.util.Collection<XBeeAtCmd> cmds,
XBeeAtCmd.Mode mode)
|
| Methods inherited from class edu.uiuc.cs.seclab.modem.SerialModem |
|---|
addDebugListener, addRecvListener, closeConnection, initPort, isOpen, ownershipChange, removeDebugListener, removeRecvListener, sendBreak, serialEvent, setConnectionParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<XBee64Address,XBee16Address> addrCache
public static final java.util.List<java.lang.Byte> BAD_FRAME_IDS
protected java.util.List<XBeeModemDebugListener> debugListeners
public static final int DEFL_MAX_OUTGOING_TXNS
public static final int DEFL_OUTGOING_WAIT_TM
public static final int DEFL_RETRY_CNT
public static final int MAX_FRAME_ID
public static final int MIN_FRAME_ID
public static final int MIN_FW
protected XBeeModem.OutgoingTxnCoord outTxnCoord
protected java.util.List<XBeeModemRecvListener> rxers
protected boolean series2
protected XBeeModem.ModemState state
| Constructor Detail |
|---|
public XBeeModem(boolean series2_,
SerialParams comPort)
throws ModemException,
java.io.IOException
comPort - modParams - updateParams - storeParams -
ModemException
java.io.IOException
public XBeeModem(boolean series2_,
gnu.io.SerialPort port)
throws ModemException,
java.io.IOException
serialPort -
ModemException
java.io.IOException| Method Detail |
|---|
public void addDebugListener(XBeeModemDebugListener listener)
public void addRecvListener(XBeeModemRecvListener rxer)
private void commonInit()
public java.util.List<XBeeModemDebugListener> getDebugListeners()
public void handleModemString(java.lang.StringBuilder s)
handleModemString in interface SerialModemRecvListenerpublic boolean isSeries2()
private void notifyDebugListeners(XBeeModemDebugEvent ev)
public void removeDebugListener(XBeeModemDebugListener listener)
public void removeRecvListener(XBeeModemRecvListener rxer)
public void reset()
throws ModemException,
java.io.IOException
java.io.IOException
ModemException
public void send(ModemPacket pkt_)
throws ModemException
send in interface Modemsend in class SerialModemModemException
java.io.IOException
public int sendCmd(XBeeAtCmd cmd,
XBeeAtCmd.Mode mode)
throws ModemException,
java.io.IOException
ModemException
java.io.IOException
public void sendCmds(java.util.Collection<XBeeAtCmd> cmds,
XBeeAtCmd.Mode mode)
throws ModemException,
java.io.IOException
ModemException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||