sschirme
unread,Feb 15, 2012, 3:15:44 PM2/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xbee-api
I am successfully opening a local xbee on the correct serial port, and
then send the AT command ND (node discover) and print the response. I
do this in a while loop, to print all node serials in that network,
until the response is an "empty" one without a xbee serial.
The code runs fine without any warnings just after I plugged my local
coordinator xbee in the USB port.
I have 1 coordinator and two end devices, all in API mode 2, other
than that, default parameters, all S1 xbees.
However, if I run this code several times without physically
unplugging the local coordinator xbee in between, I get non-
deterministic strange errors.
Am I missing something? Should I do the node discovery in a different
way? Can I flush/reset the serial connection?
1. run ok
2. run:
[2012-02-15 15:02:13,505] [Animation Thread] [WARN]
[com.rapplogic.xbee.api.XBee] XBee radio is in API mode without escape
characters (AP=1). The radio must be configured in API mode with
escape bytes (AP=2) for use with this library.
** Error opening XBee port /dev/tty.usbserial-A8004xAX:
com.rapplogic.xbee.api.XBeeException **
(Exception printed out by me)
-> no serials of remote xbees printed
3. run:
[2012-02-15 15:05:55,777] [Animation Thread] [WARN]
[com.rapplogic.xbee.api.XBee] XBee radio is in API mode without escape
characters (AP=1). The radio must be configured in API mode with
escape bytes (AP=2) for use with this library.
[2012-02-15 15:05:56,554] [Animation Thread] [WARN]
[com.rapplogic.xbee.api.XBee] Unknown radio type (HV): 2
-> no serials of remote xbees printed
4. run ok
5. run:
[2012-02-15 15:09:47,771] [Animation Thread] [WARN]
[com.rapplogic.xbee.api.XBee] XBee radio is in API mode without escape
characters (AP=1). The radio must be configured in API mode with
escape bytes (AP=2) for use with this library.
[2012-02-15 15:09:48,558] [Animation Thread] [WARN]
[com.rapplogic.xbee.api.XBee] Unknown radio type (HV): 2
[2012-02-15 15:09:48,560] [Thread-5] [WARN]
[com.rapplogic.xbee.RxTxSerialComm] We were notified of new data but
available() is returning 0
-> no serials of remote xbees printed