Leslie211 / libxbee

Automatically exported from code.google.com/p/libxbee
0 stars 0 forks source link

xbeeZB seems to have broken Remote AT support (other connection types may be affected as well) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
To reproduce the issue
1. Setup two xbee ZB radios to be able to communicate (libxbee talks to the 
coordinator, the other is set as router)
2. Setup a Remote AT from one radio to another in "xbeeZB" mode
3. Send an AT command

I expect a response to the AT command. Instead the packet isn't even received 
by the remote radio (RX light doesn't light up). If I change the connection 
type to "xbee2" from "xbeeZB" everything works fine.

I'm using today's xbeeZB branch from git on Ubuntu 12.04. 

Is the ZB branch supposed to be working right now? Is there any simple way to 
log a frame dump so I can compare xbee2 to xbeeZB and see what's up?

Original issue reported on code.google.com by pe...@pedrocr.net on 24 Aug 2012 at 1:56

GoogleCodeExporter commented 8 years ago
Hi, thanks for the report.

Have you tried the sample?
Are the nodes both associated?
Is the coordinator (in this setup) using API firmware, with mode 1?

Basic ZB functionality is there (should match that of xbee2), but the ZDO layer 
is still under development.

To get the logging working for data as well, you'll need to uncomment the 
following in your config.mk
OPTIONS+=       XBEE_LOG_RX
OPTIONS+=       XBEE_LOG_TX

You can either uncomment the following as well (will enable logging unless 
disabled)
OPTIONS+=       XBEE_LOG_LEVEL=100
Or you can specify the XBEE_LOG_LEVEL in the environment, for example:
$ XBEE_LOG_LEVEL=100 ./myApp

I'll look into this too, I'm fairly sure I tested the AT connections.

Original comment by attie@attie.co.uk on 24 Aug 2012 at 8:25

GoogleCodeExporter commented 8 years ago
Hello,

Sorry it's taken me a while.
I've looked into this, and fixed a bug.
I've also added a Remote AT sample for the xbeeZB mode.

Original comment by attie@attie.co.uk on 27 Aug 2012 at 7:51

GoogleCodeExporter commented 8 years ago
Thanks for looking into it. I got the fix from git and have just
confirmed that this does indeed fix it. My test case now works both
with "xbee2" and "xbeeZB".

Pedro

Original comment by pe...@pedrocr.net on 28 Aug 2012 at 4:38

GoogleCodeExporter commented 8 years ago
No problem!

Original comment by attie@attie.co.uk on 28 Aug 2012 at 4:40