- Tadashi Yasui likes this
- Netduino Forums
- → Viewing Profile: Likes: Oster
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.
Community Stats
- Group Members
- Active Posts 2
- Profile Views 2342
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
2
Neutral
User Tools
Friends
Oster hasn't added any friends yet.
#36393 XBee Serial Question
Posted by Oster on 01 October 2012 - 10:01 PM
Well, I realized now what I did wrong. The shield has two dip toggle switches and it was configured (incorrectly) to have tx/rx pins swapped. D'oh.
#36389 XBee Serial Question
Posted by Oster on 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:
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?
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?
- Tadashi Yasui likes this
- Netduino Forums
- → Viewing Profile: Likes: Oster
- Privacy Policy