Main Site Documentation

Xbee issues


#1

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);
            UART.Open();

            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);

                Debug.Print(nowDateTime);

                Thread.Sleep(5000);

                // toggle LED state
                ledState = !ledState;
                led.Write(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…


#2
UART.Flush();

Compare your code to this…


#3

Check your other topic.