SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By s3034585
#73791
Hi Guys

I have configured XBee Pro 60mW Wire Antenna for 115.2k baud rate and Atmega 168.

When i press charater p from the keyboard i get a weird character (ð) displayed on the terminal, it is happening only for 'p' character.

If i use a normal rs232 cable then characters recevied and transmitted are correct.

strange thing is that when i do loopback test using xctu software from maxstream and tried to send 'p' character i get the same character out.
But when i interface that to atmega i get this character. I have test atmega using a rs232 cable. I know there is nothing worng with the code.

Any ideas how to debug this issue.

Thanks
Tama
By stevech
#73793
normal RS232 cable works.
Other cable doesn't work. What is the other cable? Does it have GND wired through?

By RS232, do you mean RS232's plus/minus 6V or more? You'll have a MAX232 or some such, independent of the XBee, to translate from logic levels to RS232 voltage levels.

Try this at 19.2 or 9600. 115K has very little error margin in many regards.
By s3034585
#73795
if i a use a direct cable to pc rs232 port and atmega rs232 port(there is max232 in beweent). then there is no error.

But if i use 2xbee pro modules
PC side -> xebee prob(thru usb interface baord)

Atmega side -> atmega @18.432Mhz+ max232 ->(max232+xebee pro)

in this configurations i get an error.

the obvious ?? would be why 2 max 232 chips. These are 2 seperate boards working at 3v and 5 v hence 2 chips.