XBEE on RCFAST
VG
Posts: 32
Hi All,
I am trying to use RCFAST (internal clock) with XBEE Series 1. The code works perfectly on the Protoboard (XTAL) with XBee board soldered to it. The propeller on breadboard (no XTAL) seem to have hard time understanding the XBEE message. The message is coming to Prop (it blinks on an LED). But it seems DOUT (XBEE) byte is not interpreted properly. Do you have any idea or expereince with this setup.
VG.
I am trying to use RCFAST (internal clock) with XBEE Series 1. The code works perfectly on the Protoboard (XTAL) with XBee board soldered to it. The propeller on breadboard (no XTAL) seem to have hard time understanding the XBEE message. The message is coming to Prop (it blinks on an LED). But it seems DOUT (XBEE) byte is not interpreted properly. Do you have any idea or expereince with this setup.
VG.
Comments
I suspect that the Propeller won't startup in RCSLOW because it's already in RCFAST on boot, and it won't fall back when the CLK register is loaded from a SPIN program. I did try explicitly giving the binary value to _clkmode and that didn't work. In the end I used CLKSET to get the Prop into RCSLOW.
Here's a test program to find your clock frequencies:
@VG: Can you post your code which sets up the connection? Have you tried a slower baud rate?
I am able to see messages (after using an external 20Mhz oscillator) from XBEE to Prop. If the message is more than 16bytes I don't have any LED Blinks from getMsg module. This happens only with the standalone prop with eeprom and 20MHz crystal not with a protoboard.
Is there a restriction from FullDuplexSerial??? I see the tx and rx bufffers are set to 16bytes. I changed those buffers to larger size. That did not work. Worse even those messages that are less than 16 bytes ended up "0" byte filled. Do you have any clues/suggestions about how to handle this? My messages are upto 30 bytes.
All my communication is at 9600 (very slow, but that's OK).
I have a proto board connected to the prop chip on BB on pins p30 and 31.
After a lot of trials I noticed 16characters is limit on regular FullDuplexSerial. Cruso99 made a simple fix in FullDuplexSerial_rr004 to be adjustable upto 256 (in 2 powered numbers.) Thanks to all those who helped me or directed into the right thing.
VG