trouble with xbee
I worked last night on trying to·setup the appbee module·on one of my BS2 carrier boards. I had a BS2SX module in the board and I had one of the Maxstream usb boards hooked to my PC. I programmed both xbee modules with the latest 1083 firmware.
When I try to run the sample code to send a character from the stamp and appbee to the PC board I receive characters on the maxstream terminal window but they aren't what I've sent. I initially thought it might be a transmission or baud rate problem·but I'm getting the same characters consistently and I would imagine they would be somewhat random with a transmission problem. I've tried sending text, dec, hex. Doesn't seem to matter. When I send different characters·the recieved characters on the other end sometimes change but there's no one for one correlation. Other that this everything appears fine. When I reset the appbee the transmission stops. The transmissions are in sync with the basic program I have the character debuged to the screen before it's serout line.
I'll keep reading and troubleshooting but maybe someone has seen this and can narrow down my troubleshooting.
When I try to run the sample code to send a character from the stamp and appbee to the PC board I receive characters on the maxstream terminal window but they aren't what I've sent. I initially thought it might be a transmission or baud rate problem·but I'm getting the same characters consistently and I would imagine they would be somewhat random with a transmission problem. I've tried sending text, dec, hex. Doesn't seem to matter. When I send different characters·the recieved characters on the other end sometimes change but there's no one for one correlation. Other that this everything appears fine. When I reset the appbee the transmission stops. The transmissions are in sync with the basic program I have the character debuged to the screen before it's serout line.
I'll keep reading and troubleshooting but maybe someone has seen this and can narrow down my troubleshooting.
Comments
Thanks,
Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!
I was trying just the most basic code below with a few variations to try different characters and DEC and Hex numbers.
Thanks Joel
RX PIN 0 ' Receive Pin
TX PIN 2 ' Transmit Pin
X VAR Byte
HIGH TX ' Idle transmit pin
DO
X = X + 1
SEROUT TX,84, [noparse][[/noparse]DEC X,CR,CR] ' Send value of X as decimal
' Second CR is added byte buffer for flow control example
DEBUG X
PAUSE 500
LOOP
-Martin
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!
I will try 240 and let you know. I also thought about changing to a straight BS2 processor to see if that had any impact. My next check will be to re-setup and do a loop back check on the xbee modules just to confirm that they are still configured to talk correctly.
I appreciate the help.
I changed 84 to 240 with the sx chip in and works perfect. When I send a decimal number to the xbee board on the PC the corresponding ascii char for that number is displayed on the terminal.
Thanks for the help. Saved me a lot of frustration. I guess the clock speed on the sx changes the constant.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Giggly Googley!
Glad it worked!
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!