Main Site Documentation

Xbee issues


ok, so i have 2 xbees (series 1), i used X-CTU to set their baud rates (both at 115200), their pan IDs are the same and everything else is the default setting. in my code i have the following:

            SerialPort UART = new SerialPort("COM1", 115200);

            Debug.Print("Panda Xbee started");
            string nowDateTime = "";

            while (true)
                nowDateTime = DateTime.Now.ToString();
                tx_data = Encoding.UTF8.GetBytes(nowDateTime);
                UART.Write(tx_data, 0, tx_data.Length);



                // toggle LED state
                ledState = !ledState;

the secondary xbee is connected to my laptop through usb and i have X-CTU open on the terminal tab (after testing the connection using the test/query button). but i get nothing coming through, i event wrote my own com port listener but i get nothing on it.

i even tried to go the other way, and use the laptop as the sender and the fez as a receiver. after completely switching all the setup (wiring etc) to go the opposite direction, and having the incoming data output to debug.print all i get coming through is “OK OK” even when i dont have the other xbee plugged in. what am i missing here? are one of these things fried and i just cant tell? below is the pic of how i have it wired in using the fez as the sender. im losing my mind trying to figure this out…


Compare your code to this…


Check your other topic.