Multi Xbees with CD (Change Detect on IO lines) missing Data
Martin_Wade
Posts: 2
I have setup 2 Xbees (plan more later) to monitor Data I/O lines (set to input) and using the Change Detect parameter. They each have a different short My address and are set to a DL of 1 which is my 3rd (master) Xbee. This Xbee is attached to my propeller so that it can watch for API frames with DIO type. In order to test I use the propeller pins to actually cause the changes on the Remote Xbee input pins. If I change 1 pin at a time all is well and I can read the correct IO pin and the correct Orignation address. But if I change 1 pin on both Xbees at the same time one wins and I do not recieve the other ones API frame. I thought maybe I was losing this in the serial reciever so I increased the Rx Buffer and added a routine to monitor the buffer size in use. I am staying way inside the new buffer and can tell that when the collision occurs one frame does not reach the buffer at all. So to me that would indicate that i am getting the collision in the wireless portion and the master is never recieving the 2nd Xbee's API frame. Any thoughts on this. I believe I should be focusing on the following but have not found the right combination yet. I am running API mode on all of them.
RR = retries
RN = CSMA CA backoff component
CA = Detection Level (should I go lower on this number)
Thanks for any help
RR = retries
RN = CSMA CA backoff component
CA = Detection Level (should I go lower on this number)
Thanks for any help
Comments
I can't see what's wrong from the information you give, but if you can post the settings of all three XBees that may help. The way to do that would be to use X-CTU to save the settings in .PRO files, and then attach the three files to a post, eg host.pro, remote1.pro, remote2.pro.
I'm assuming you're using the series 1 XBees, BTW.
Thanks for your quick response and offer to help.
It's probably right in front of me, but for the life of me, I can't figure out how to turn off the "X Unsolved" heading. If a moderator can change this and let me know for the future that would be great.