![Photo](http://www.gravatar.com/avatar/7f048acd41c102153ad256531a91d0ef?s=100&d=http%3A%2F%2Fforums.netduino.com%2Fpublic%2Fstyle_images%2Fmaster%2Fprofile%2Fdefault_large.png)
Netduino Go with Xbee module not supported yet?
#1
Posted 02 August 2012 - 02:07 AM
#2
Posted 02 August 2012 - 02:42 AM
#3
Posted 02 August 2012 - 04:56 PM
#4
Posted 03 August 2012 - 12:07 AM
Yes, if you plug that Gadgeteer module into socket 1 then it will use pins 4 and 5 of each of sockets 1-4. You could potentially use other Gadgeteer modules on those other sockets, but GoBus modules generally won't work alongside a Gadgeteer module on the same GoBus channel. In other words, we added a special "Gadgeteer S, U, X" compatibility mode to Netduino Go...but it requires switching over a GoBus channel for exclusive use by Gadgeteer.Are you saying that if I connect this module to one of the GO bus sockets, for example socket 1, then I must leave 1-4 empty? Using this gadgeteer I will not require the XBee Shield?
Also, will I be able to just start working with the socket or do I need to initialize the outport for a gadgeteer xbee module? So far I have used the outport for the RGBLed, Potentiometer, button, and shield base. There are corresponding reference libraries NetduinoGo.RGBLed, etc... that I can use to communicate with those on the GoSocket. Is there a library for communicating with Gadgeteers that I need to use?
Once you plug in the module, you should be able to access it as "COM1" on the Netduino Go mainboard and then speak to the XBee module via normal SerialPort commands. There are several NETMF wrappers for XBee on the Internet which should work.
Community member Stefan has also created a library called Gadgeteer Light for his Netduino Gadgeteer adapter shield...and that might work for you here to use the manufacturer's XBee Gadgeteer library.
NOTE: Gadgeteer 'U' modules on sockets 1-4 use COM1; Gadgeteer 'U' modules on sockets 5-8 use COM2.
Chris
#5
Posted 03 August 2012 - 12:09 AM
I am trying to communicate with the serial port of my netduino Go shield base. However I've read that the serial ports are not released or working with the Netduino Go. Aside from programming directly the shield base, is there any other work around that I am missing?
Funny you should mention Xbee, I just ordered a few boards to act as an XBee host w/ an STM8S207 processor. These don't use the serial port but are a native GO! module.
I'm not really in a position ot manufacture these, but if you want to have a little fun and assemble your own module, I can get you the .BRD file and you can order some of your own boards. You can get three of them for about $15 and not including the XBee module it's about $10 for parts per board. Nothing too small on this one and is pretty easy to hand solder.
-twb
Attached Files
- Gutworks likes this
Windows Phone Development MVP
President Software Logistics, LLC
Tampa, FL
#6
Posted 03 August 2012 - 12:12 AM
Very nice, ByteMaster!Funny you should mention Xbee, I just ordered a few boards to act as an XBee host w/ an STM8S207 processor. These don't use the serial port but are a native GO! module.
Chris
#7
Posted 03 August 2012 - 01:22 AM
Very nice, ByteMaster!
Here's a pix of a similar module with a RN-171 WiFi module soldered in place. This is the same module on the underside of the RN-VX WiFi module with the same foot print and pin-compatible with XBee modules.
The firmware is starting to become pretty solid, hope to have all the 'stuff' (H/W & S/W) I'm working on published by the end of August.
-twb
Attached Files
Windows Phone Development MVP
President Software Logistics, LLC
Tampa, FL
#8
Posted 03 August 2012 - 02:29 AM
It's just cruel to tease us like this, ByteMasterHere's a pix of a similar module with a RN-171 WiFi module soldered in place. This is the same module on the underside of the RN-VX WiFi module with the same foot print and pin-compatible with XBee modules.
![;)](http://forums.netduino.com/public/style_emoticons/default/wink.png)
Seriously, though, thanks for sharing all of this with us!
Chris
#9
Posted 06 August 2012 - 08:45 PM
![;)](http://forums.netduino.com/public/style_emoticons/default/wink.png)
#10
Posted 06 August 2012 - 09:50 PM
That should work! As long as they don't use the same pins you'll be good to go.Otherwise, can I put the adafruit motorshield on the Go shield base, then stack the accelerator on top of that?
Chris
#11
Posted 10 August 2012 - 04:19 AM
#12
Posted 10 August 2012 - 05:57 AM
#13
Posted 11 August 2012 - 02:05 AM
The XBee Gadgeteer is plugged into Socket 1. I Have the Go Button plugged into Socket 5. Nothing else is plugged into any other socket.
Here is the code on the NDG side:
serialPort = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One); serialPort.ReadTimeout = 500; serialPort.WriteTimeout = 500; serialPort.Handshake = Handshake.None; serialPort.DataReceived += new SerialDataReceivedEventHandler(serialPort_Datareceived); serialPort.Open(); private static void serialPort_Datareceived(object sender, SerialDataReceivedEventArgs e) { SerialPort spL = (SerialPort)sender; Debug.Print("Data Received"); } static void button_ButtonReleased(object sender, bool buttonState) { Debug.Print("Button Pressed"); string output = " Hello from your Netduino: "; byte[] bytes = System.Text.Encoding.UTF8.GetBytes(output); serialPort.Write(bytes, 0, bytes.Length); }
On the windows form side I am able to receive the data from the NDG, but when I send data, I see the Gadgeteer light go on, however the event is not fired.
Here is the code on the windows form side.
serialPort = new SerialPort("COM3", 9600, Parity.None, 8, StopBits.One); serialPort.ReadTimeout = 500; serialPort.Handshake = Handshake.None; serialPort.DataReceived += new SerialDataReceivedEventHandler(serialPort_Datareceived); serialPort.Open(); private void button1_Click(object sender, EventArgs e) { // then we will prepare sending the message byte[] buffer = new byte[MOVEMESSAGE.Length]; // convert the string to bytes buffer = System.Text.Encoding.UTF8.GetBytes(MOVEMESSAGE); // write it to Xbee through serial if (!serialPort.IsOpen) { serialPort.Open(); } serialPort.Write(buffer, 0, buffer.Length); } private void serialPort_Datareceived(object sender, SerialDataReceivedEventArgs e) { SerialPort spL = (SerialPort)sender; txtBox1.Text += "Data Received"; }
The confusing part is that I can send from the NDG and receive on the windows form, but I cannot send from the windows form and receive on the NDG. However when I switch the XBee's, I can send from the windows form and receive on the NDG. But I cannot send from the NDG anymore and receive on the windows form.
Thanks
#14
Posted 11 August 2012 - 09:35 AM
#15
Posted 12 August 2012 - 04:53 PM
#16
Posted 12 August 2012 - 08:20 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users