Xbee API Test 3

Dependencies:   XBee mbed

> help
h or help
m <status-in-hex>,. ... Modem status
l <cmd>,<val-in-hex>.   ... exec <cmd> (AT) at this host.
lset fid <val-in-hex>. ... set local frame id. default is 1.
lset cmd <val-in-hex>. ... set local command.
lset val <val-in-hex>. ... set local command value.
q <cmd>,<val-in-hex>.   ... set queue parameter value.
r <cmd>,<val-in-hex>.   ... exec <cmd> (AT)at remote host.
rset a16 <val-in-hex>. ... set remote address high.
rset a64 <val-in-hex>,<val-in-hex>.  ... set remote address low.
rset fid <val-in-hex>. ... set remote frame id. default is 1.

> l D4,0x05
cmd=D4 val=0x05
apiId=88

object 100008c8:35 01 00 10 88 00 05 FE 04 01 00 FF

l OK:

> l D4,0x04
cmd=D4 val=0x04
apiId=88

object 100008c8:35 01 00 10 88 00 05 FE 04 01 00 FF

l OK:

>
Committer:
takashiyamanoue
Date:
Sat Jul 21 04:09:54 2012 +0000
Revision:
0:3edcfa3aba71
xbee test 3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
takashiyamanoue 0:3edcfa3aba71 1 #include "XBee.h"
takashiyamanoue 0:3edcfa3aba71 2
takashiyamanoue 0:3edcfa3aba71 3 class ResponseQueue {
takashiyamanoue 0:3edcfa3aba71 4 private:
takashiyamanoue 0:3edcfa3aba71 5 unsigned short * response;
takashiyamanoue 0:3edcfa3aba71 6 int queueHead, queueTail;
takashiyamanoue 0:3edcfa3aba71 7 int responseStoreMax;
takashiyamanoue 0:3edcfa3aba71 8 int responseStorePointer;
takashiyamanoue 0:3edcfa3aba71 9 int queueMax;
takashiyamanoue 0:3edcfa3aba71 10 AtCommandResponse **queue;
takashiyamanoue 0:3edcfa3aba71 11 AtCommandResponse **responseStore;
takashiyamanoue 0:3edcfa3aba71 12 public:
takashiyamanoue 0:3edcfa3aba71 13 ResponseQueue();
takashiyamanoue 0:3edcfa3aba71 14 void init() ;
takashiyamanoue 0:3edcfa3aba71 15 AtCommandResponse *requestResponse();
takashiyamanoue 0:3edcfa3aba71 16 int collectResponse(AtCommandResponse *b);
takashiyamanoue 0:3edcfa3aba71 17 int putResponse(AtCommandResponse *b) ;
takashiyamanoue 0:3edcfa3aba71 18 AtCommandResponse *getResponse() ;
takashiyamanoue 0:3edcfa3aba71 19 int length();
takashiyamanoue 0:3edcfa3aba71 20 };