cannot get 3.simple_data working on xbee series 1

55 views
Skip to first unread message

Jeffrey Laut

unread,
Mar 4, 2013, 3:48:37 PM3/4/13
to lib...@googlegroups.com
Hi,

I am have successfully ran samples 1 and 2, however I cannot get 3.simple_data to print "Hello" for me..

My xbees are configured differently from the default configuration as follows;

coordinator
 DH - 13A200
 DL - 40920E8B
 MY - FFFF
 NI - 01
 BD - 57600
 AP - 1
 D6 - 1
 CE - 1 (although I've read CE has no effect for series 1, correct?)

end-point
 DH - 13A200
 DL - 409AA188
 MY - FFFF
 NI - 02
 BD - 57600
 AP - 1
 D6 - 1

I have recompiled with the following lines in 'config.mk' uncommented;
OPTIONS+=       XBEE_LOG_LEVEL=100
OPTIONS+=       XBEE_LOG_RX
OPTIONS+=       XBEE_LOG_TX

The output of sample 3 with debugging is as follows;

jeff@cadmium ~/code/libxbee.libxbee-v3/sample/xbee1/3.simple_data $ ./main 
  6#[conn.c:423] _xbee_conNew() 0x224c1f0: Created new '64-bit Data' type connection
  8#[conn.c:179] xbee_conLogAddress() 0x224c1f0: address @ 0x7fff9f6cd8c0...
  8#[conn.c:183] xbee_conLogAddress() 0x224c1f0:    16-bit address:  --
  8#[conn.c:188] xbee_conLogAddress() 0x224c1f0:    64-bit address:  0x0013A200 0x40920E8B
  8#[conn.c:195] xbee_conLogAddress() 0x224c1f0:    endpoints:       --
  8#[conn.c:200] xbee_conLogAddress() 0x224c1f0:    profile ID:      ----
  8#[conn.c:205] xbee_conLogAddress() 0x224c1f0:    cluster ID:      ----
 15#[thread.c:68] threadFunc() 0x224c1f0: starting thread 0x224fe20, function xbee_rxHandler()...
 15#[thread.c:68] threadFunc() 0x224c1f0: starting thread 0x224ffe0, function xbee_tx()...
 15#[thread.c:68] threadFunc() 0x224c1f0: starting thread 0x224fc60, function xbee_rx()...


I have the endpoint connected to another computer with a serial terminal open.  When I type into the endpoint, I'm expecting to see "Hello" printed on the terminal of the computer connected to the coordinator, correct?  I am not seeing anything, nor is the debugging logging anything on the rx line.  The xbee-usb adapters that I am using have indicators for rx and tx.  I can see the end-point transmitting when I type into it, however the rx light on the coordinator does not blink.

Using the default firmware settings, I can create a serial connection and communicate between them using only serial terminals, if that helps.  

My biggest doubt is how the xbees are configures (although I've played with several different settings).

Any help is greatly appreciated.

-Jeff



Jeffrey Laut

unread,
Mar 4, 2013, 4:45:56 PM3/4/13
to lib...@googlegroups.com
correction; I just noticed I have the DL for the coordinator and the endpoint swapped in my description above.  That was not the problem.
-Jeff

Beda

unread,
Mar 5, 2013, 3:19:27 AM3/5/13
to lib...@googlegroups.com
Do you have endpoint in AT mode? When you open Terminal in X-CTU for Coordinator do you see something, when you send data from endpoint?

Attie Grande

unread,
Mar 5, 2013, 5:56:18 AM3/5/13
to Beda, libxbee
Hi Jeffery,

Please could you try what Beda suggested:
configure your two nodes to communicate with each other, one with libxbee running, and the other with X-CTU or another terminal open.
Type into the terminal, and you should see the libxbee sample respond, and send a return message.

Attie
On 5 March 2013 08:19, Beda <beda...@gmail.com> wrote:
Do you have endpoint in AT mode? When you open Terminal in X-CTU for Coordinator do you see something, when you send data from endpoint?

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/DWzQ-mvge9UJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jeffrey Laut

unread,
Mar 5, 2013, 9:36:00 AM3/5/13
to lib...@googlegroups.com, Beda
thanks!  that was the problem.  the end-point needed to be in AT mode. 
Reply all
Reply to author
Forward
0 new messages