Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Oster

Member Since 22 Sep 2012
Offline Last Active Sep 30 2014 05:27 AM
-----

Topics I've Started

XBee Serial Question

01 October 2012 - 08:43 PM

Hi all,

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?

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.