Xbee coordinator stops transmitting

Greetings,

I am trying to get two xbees to communication effectively.

Devices:

2ea - Xbee s2 XB24-Z7PIT-004

Setup:

Coordinator

80
0
251
20A7
0
[A]ID=7777
[A]SC=FFFF
[A]SD=3
[A]ZS=0
[A]NJ=FF
[A]DH=0
[A]DL=FFFF
[A]NI= 
[A]NH=1E
[A]BH=0
[A]AR=FF
[A]DD=30000
[A]NT=3C
[A]NO=0
[A]CR=3
[A]SE=E8
[A]DE=E8
[A]CI=11
[A]PL=4
[A]PM=1
[A]EE=0
[A]EO=0
[A]BD=5
[A]NB=0
[A]SB=0
[A]RO=0
[A]D7=1
[A]D6=0
[A]CT=64
[A]GT=3E8
[A]CC=2B
[A]SP=20
[A]SN=1
[A]D0=1
[A]D1=0
[A]D2=0
[A]D3=0
[A]D4=0
[A]D5=1
[A]P0=1
[A]P1=0
[A]P2=0
[A]PR=1FFF
[A]LT=0
[A]RP=28
[A]DO=1
[A]IR=0
[A]IC=0
[A]V+=0

Router

80
0
251
22A7
0
[A]ID=7777
[A]SC=FFFF
[A]SD=3
[A]ZS=0
[A]NJ=FF
[A]NW=0
[A]JV=1
[A]JN=0
[A]DH=0
[A]DL=0
[A]NI= 
[A]NH=1E
[A]BH=0
[A]AR=FF
[A]DD=30000
[A]NT=3C
[A]NO=0
[A]CR=3
[A]SE=E8
[A]DE=E8
[A]CI=11
[A]PL=4
[A]PM=1
[A]EE=0
[A]EO=0
[A]BD=5
[A]NB=0
[A]SB=0
[A]RO=0
[A]D7=1
[A]D6=0
[A]CT=64
[A]GT=3E8
[A]CC=2B
[A]SM=0
[A]SN=1
[A]SO=0
[A]SP=20
[A]ST=1388
[A]PO=0
[A]D0=1
[A]D1=0
[A]D2=0
[A]D3=0
[A]D4=0
[A]D5=1
[A]P0=1
[A]P1=0
[A]P2=0
[A]PR=1FFF
[A]LT=0
[A]RP=28
[A]DO=1
[A]IR=0
[A]IC=0
[A]V+=0

I am using X-CTU software and the problem I am seeing is transmitting from the coordinator stops after about 8-9 characters. What I mean to say is the display on the router stops displaying what I am typing on the coordinator. If I keep typing it will sort of catch up and display what I typed on the coordinator all at once. Now going the other way from the router to the coordinator works fine and does not stop or pause or whatever it happening.

Please let me know your thoughts as to why the coordinator might be doing this.

Your assistance is greatly appreciated!

Thanks,

Ed

Hi all some additional information. It appears that the data flow will stop between 8-9 characters… It also appears that some packets get lost and they can even be received out of order… Really weird The delay is around 2-3 seconds. Any thoughts Folks? I am running in AT mode should I try API mode?

Thanks for all your help!

Ed

Is the serial Flow control enabled or disabled?

What are you using an an interface between the XBee serial and your PC?

Try setting the DH, DL to the full 64bit address of the other XBee. I think the setting these to 0 on the router is broadcast mode which has no ACK and retransmission of the RF packets so any loss of signal and the packet is lost.

AT mode is wanted if you need a serial pass through (transparent mode). API mode requires building and decoding an API frame which is very difficult to do by hand but not to hard within code.

Hi Waltr,

Thanks for the thoughts. My comments below:

Is the serial Flow control enabled or disabled? Serial Flow is disabled I believe. IE: D7-DI07 Configuration is set to 0 and it was set to 1 on both the router and the coordinator

What are you using an an interface between the XBee serial and your PC? I have used a few different configurations for the interface. I have used a beaglebone with a cape, a Digi XBIB-U-CAP and the Digi XStick with both the router and the coordinator in all the various configurations.

Try setting the DH, DL to the full 64bit address of the other XBee. I think the setting these to 0 on the router is broadcast mode which has no ACK and retransmission of the RF packets so any loss of signal and the packet is lost. I will try the DH, DL technique and let you know how it goes.

Again thanks!

I tried it with the DH and DL set to each others address and it works properly. So if broadcast has issues with packet delivery reliability then how would one use a mesh network of Xbee’s? So I am trying to setup a system where the coordinator sends to all the routers and if a router sends a packet it should broadcast all the other Xbees as well. Is there a way to do this reliably? Thank you in advance for your assistance.

broadcast uses the FFFF destintation address in either 16 or 64 bit addressing mode.

Broadcasts cannot have an ACK, by nature. Same for IEEE 802.3 MAC layer broadcasts (Ethernet).

Broadcasts are used, normally, for network management/discovery. Data transfers are always unicast (peer to peer). This is true in most any standards based wireless, e.g., 802.11 as well.

XBee Series 2 are far more complex, due to the mandatory use of Zigbee in these radios that use the Ember chipset.

XBee Series 1 are much simpler; they use Freescale’s chipset and never use Zigbee. IMO, Digi’s proprietary DigiMesh is a better choice than Zigbee if you MUST use a self-forming/healing mesh. Rare is the need for that in student/hobby projects.

As Steve said, XBee S2, ZibBee, is a bit complicated. Do study the XBee document and also any of the other info found on Digi Int’s web site including their Wiki and Forum.

In general: The coordinator’s host does a ‘node discovery’ then collects a list of all nodes (XBees) discovered (another way is having a hard coded list of all nodes that should be on the network). If a message MUST get to every node then the Host sends this message through the Coordinator to every node (by the 64bit address). Each node will then ACK the message.

I like having the Coordinator set in API command mode, which requires the host to build and decode API Frames. But the advantage is every incoming Frame has the address of the originating Node.