I've been breaking my brain trying to figure this out. I have an XBee series 1 that I cannot communicate with over the netduino's COM1. I have a node coordinator connected to my computer's serial port and confirmed that I can communicate Xbee to Xbee on my computer. The XBee is connected to a Seeedstudio XBee adapter for the arduino. I have connected the shield with an FTDI cable for testing from my computer and I have not had any problems until I try a simple write loop on the netduino with this code in main:
SerialPort port = new SerialPort("COM1", 9600); byte[] bytes = Encoding.UTF8.GetBytes("This is a test"); port.Open(); while (true) { port.Write(bytes, 0, bytes.Length); port.Flush(); Thread.Sleep(1000); }
Nothing is received by the node coordinator when this code is running. I have connected the FTDI cable to COM1 on the netduino and can confirm that the data is sent to a terminal on my computer. Any ideas on what may be preventing communication?