- Fri Apr 02, 2010 12:14 pm
#97639
Hi - i am trying to use the dsPIC30f3012 MCU to get UART data to a PC and am having some trouble setting up the xbee link. I am using the series 1 xbees with the wire antenna, and have the transmitter connected to an xbee board to breadboard it (http://www.nodna.com/print_product_info ... cts_id=868) and the receiver connected to the PC through a usb board (http://www.dontronics-shop.com/990002-x ... board.html). Since I am only using the MCU UART to get data to the XBee transmitter, I have a logic level converter (http://www.sparkfun.com/commerce/produc ... ts_id=8745) that takes the 5V MCU UART to 3.3V for the xbee's DIN pin (the converter doesn't work with analog signals). Xbee firmware is version 10E6. I configured the xbees as follows using xctu:
Transmitter: Baud=9600; PAN ID =1111; MY = 10; DL = 11; CH=C (default)
Receiver: Baud=9600; PAN ID =1111; MY = 11; DL = 10; CH=C (default)
Everything else i left the way it was for both xbees: IU=1;IT=1;IR=0; RO=3;A1=0;CE=0 to name a few parameters. I am simply interested in getting MCU UART data to the PC through the xbees; it is very likely that the transmitter will only transmit and the receiver will only receive. Both the xbees, the MCU UART, and the xctu are set at 9600 baud, with the 8,N,1 configuration. The 2 xbees are maybe 12 feet apart in the lab.
I did a node detect with the xctu (atnd) and the receiver successfully detects the transmitter. But i tried doing a range test, and i get "Timeout waiting for data" error all the time and every tx is bad. I just went into the range test tab, and clicked start - i hope i am doing the range test correctly?
Also, i setup the MCU uart and tested it using a loopback test and the MCU UART seems to work. But i tried sending data (decimal 100 a few times) through the UART to the xbee's DIN pin for tx, and nothing is received in the terminal window of xctu on the PC end. Apart from the node detection, nothing else seems to work. I am obviously doing something wrong, maybe i did not configure something right?
I would be very grateful for any help.
Transmitter: Baud=9600; PAN ID =1111; MY = 10; DL = 11; CH=C (default)
Receiver: Baud=9600; PAN ID =1111; MY = 11; DL = 10; CH=C (default)
Everything else i left the way it was for both xbees: IU=1;IT=1;IR=0; RO=3;A1=0;CE=0 to name a few parameters. I am simply interested in getting MCU UART data to the PC through the xbees; it is very likely that the transmitter will only transmit and the receiver will only receive. Both the xbees, the MCU UART, and the xctu are set at 9600 baud, with the 8,N,1 configuration. The 2 xbees are maybe 12 feet apart in the lab.
I did a node detect with the xctu (atnd) and the receiver successfully detects the transmitter. But i tried doing a range test, and i get "Timeout waiting for data" error all the time and every tx is bad. I just went into the range test tab, and clicked start - i hope i am doing the range test correctly?
Also, i setup the MCU uart and tested it using a loopback test and the MCU UART seems to work. But i tried sending data (decimal 100 a few times) through the UART to the xbee's DIN pin for tx, and nothing is received in the terminal window of xctu on the PC end. Apart from the node detection, nothing else seems to work. I am obviously doing something wrong, maybe i did not configure something right?
I would be very grateful for any help.