I need a little help with setting up my xbee so that I have two xbees that communicate with each other just like what a wire would do. Currently I can send data from my microcontroller to my pc through the xbess however what I recieve is just random junk.
Is there some steps that I need to follow to configure my xbees to allow what comes into one xbee’s din pin to come out of the other’s dout pin?
I have used the 900 XSC series XBees but looked at the data sheet.
First thing to check is that the XBee Baud rate matches what ever you connect them to.
Should I assume that you have some sort of interface between the XBee and the PC?
What is the other XBee connected to?
Can you get a response wit a Query/Test from PC Settings tab for the XBees with the X-CTU utility?
If so then get the XBee parameters from the Modem Configuration tab. Hint: a Profile Save writes these to a text file that you can copy and paste into the forum if you have question about the parameters.
I’ll need a little time to read more of the data sheet on the XSC XBees and check the parameters.
Just need a little clairification of this statement:
Currently I can send data from my microcontroller to my pc through the xbess however what I recieve is just random junk
So the propeller microcontroller is send data but the data looks like juck on the PC terminal. Is this correct?
Is the Baud rate on the propeller microcontroller 9600?
What is the data the propeller microcontroller is sending? ASCII or raw binary values?
Have you had the propeller microcontroller connected to the PC (with the proper level translation) without the XBees and receive the correct data? If not and you don’t have an RS232 Com port on the PC you can remove the XBee from the USB Explorer board and connect the propeller microcontroller UART lines into the XBee socket for testing. Get this to work first.
I did a quick look at the XBee parameters and nothing seems out of line. So I’m thinking that the problem is in the serial set-up of the other parts. Beside the Baud rate are the other devices set for 8 data bits, No parity, 1 Stop bit?
waltr:
Have you had the propeller microcontroller connected to the PC (with the proper level translation) without the XBees and receive the correct data?
Yes, I have been able to communicate to my pc using a prop plug (heres another link: [http://www.parallax.com/Store/Microcont ... roductName](http://www.parallax.com/Store/Microcontrollers/PropellerTools/tabid/143/ProductID/398/List/1/Default.aspx?SortField=ProductName,ProductName))
So I’m thinking that the problem is in the serial set-up of the other parts. Beside the Baud rate are the other devices set for 8 data bits, No parity, 1 Stop bit?
Now that you mention it I believe that this is probably the most likely reason for my problem. I’ll have to ask more at the Parallax forum to see hwat the full duplex serial program sets the other devieces too. I’ll reply with another post with some more info.