Experimental Wifi support for Netduino Go! - Netduino Go - Netduino Forums
   
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.
Photo

Experimental Wifi support for Netduino Go!


  • Please log in to reply
20 replies to this topic

#1 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 04 May 2012 - 08:38 PM

Currently there is no Netduino Go!Module for Wireless Networking yet. I hope some manufacturer will make a nice version, but until then, I've got a work-around that worked for me.

Keep in mind, this solution is experimental and comes with no guarantees!

The RN-XV WiFly Module driver I published earlier has been tested successfully with the Sytech Designs ZigBee Module.

This is done by combining the driver together with the Gadgeteer Light project. No worries, attached you'll find a zip file with all dependencies included.

This is a short code sample:
// Initialises the WiFly module on socket 7
WiFlyGSX WifiModule = new WiFlyGSX(Gadgeteer.Board.Hardware.GetSerial(7));

// Enables wifi
WifiModule.EnableDHCP();
WifiModule.JoinNetwork("Thoolen", 0, WiFlyGSX.AuthMode.WPA2_PSK, "MyPersonalSecretLab");

// Waits until we've got an IP
string Ip = "";
while (true)
{
    Ip = WifiModule.LocalIP;
    if (Ip != "0.0.0.0") break;
    Debug.Print("Waiting for an IP address...");
    Thread.Sleep(1500);
}

// Prints some useful info
Debug.Print(Ip);
Debug.Print(WifiModule.MacAddress);

// Performs a HTTP request
HTTP_Client WebClient = new HTTP_Client(new WiFlySocket("www.netmftoolbox.com", 80, WifiModule));
HTTP_Client.HTTP_Response Response = WebClient.Get("/helloworld/");
Debug.Print(Response.ResponseBody);

Here's a picture of the full setup:
Attached File  DSCN2653.JPG   124.33KB   236 downloads
This image contains:
- Netduino Go! Mainboard
- Sytech Designs ZigBee Module
- Roving Networks RN-XV Module
- Nwazet Stackable Plate

Attached Files


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#2 orange

orange

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 24 May 2012 - 08:37 AM

Looking great. How does this compare to adding a WiFi shield to Shield Base? In general of course not using Shield Base should help preserve a socket, yes? First using your own solution: A) http://forums.netdui...-module-driver/ $34.95 http://forums.netdui...-module-driver/ $19.95 http://www.sparkfun.com/products/9976 " This module is in simple terms, a serial-to-tcp-bridge. It can handle one tcp socket at the same time, but for many applications this is exactly enough! " is fine with me it's just lower performance. Second: B) http://littlebirdele...uino-802-11-g-n $90 http://www.sparkfun.com/products/9954 $90 http://bit.ly/KNg4zt $51 Thanks

#3 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 24 May 2012 - 08:45 AM

Looking great. How does this compare to adding a WiFi shield to Shield Base? In general of course not using Shield Base should help preserve a socket, yes?

I never got a wifi shield to work on a regular netduino, so I'm not going to make promises on the shieldbase :D

The benefit of the module I used is that the most expensive part can be interfaced with all netduinos;
- with an xbee shield: Netduino Classic / Plus
- with an xbee breakout: Netduino Mini
- with an xbee gadgeteer module: Netduino Go / Gadgeteer boards

With a shield it's limited to a Netduino Classic / Plus / Netduino Go! + ShieldBase, more expensive, and you may need to write drivers yourself if they don't exist yet.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#4 orange

orange

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 24 May 2012 - 08:47 AM

Here is another thing I found that works for Fez Spider: http://www.ghielectr...log/product/282 Is there a chance this works with Netuidino Go with small changes? http://www.ghielectr...log/product/282 It's pricy: $99

#5 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 24 May 2012 - 08:49 AM

Here is another thing I found that works for Fez Spider: http://www.ghielectr...log/product/282

Is there a chance this works with Netuidino Go with small changes?

I wouldn't bet on it. The problem with most networking solutions is that they require specific firmware as well.
Even GHI is experiencing that. Thus the note: Currently, this module works only with FEZ Spider Main board.. It doesn't work with other gadgeteer mainboards.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#6 orange

orange

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 24 May 2012 - 08:56 AM

What about: $15: http://www.ghielectr...log/product/314 It seems to be exact same thing as "Sytech Designs ZigBee Module". I see $ price instead of UK Pound

#7 orange

orange

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 24 May 2012 - 08:59 AM

I wouldn't bet on it. The problem with most networking solutions is that they require specific firmware as well.
Even GHI is experiencing that. Thus the note: Currently, this module works only with FEZ Spider Main board.. It doesn't work with other gadgeteer mainboards.


Sounds like that.

Upside is that this is real WiFi not a Wifi-Serial bridge.

It's crazy, I bought an external WiFi-Ethernet Bridge with extra 4 ethernet ports and it has webpage for setup, antennas, WEP etc. for ~$50 so in practice it may be better to have an ethernet convertor and lose one SPI then use an external box like this. Only downside is that it takes more space...

#8 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 24 May 2012 - 09:00 AM

It seems to be exact same thing as "Sytech Designs ZigBee Module". I see $ price instead of UK Pound

Haven't tested it but I guess it would do the same. Since I live in Europe it's way cheaper to order in € or £ due to additional import/customs fees when I order in $ :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#9 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 24 May 2012 - 09:02 AM

Only downside is that it takes more space...

Size can make things so much more expensive ;)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#10 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 01 June 2012 - 06:49 AM

What about:

$15: http://www.ghielectr...log/product/314

It seems to be exact same thing as "Sytech Designs ZigBee Module". I see $ price instead of UK Pound


Hi Orange,

Did you end up getting the module from this store?

http://www.ghielectr...log/product/314

Did it work?

#11 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 01 June 2012 - 04:46 PM

Hi Stefan, First of all, great project you made here, Congrats! Were you able to do some HTTP posts and HTTP gets to Pachube successfully using this setup? - Netduino Go - Sytech Designs ZigBee Module - Roving Networks RN-XV Module

#12 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 01 June 2012 - 05:34 PM

Were you able to do some HTTP posts and HTTP gets to Pachube successfully using this setup?

I haven't tested Pachube but I was be able to do both POST and GET request, yes.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#13 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 01 June 2012 - 07:26 PM

I haven't tested Pachube but I was be able to do both POST and GET request, yes.


Thanks for the info Stefan, I want to be able to do posts and gets of temperature and humidity data to and from pachube. I have done it successfully using the Netduino Plus but it seems that it must work with the hardware you use. I'll give it a try as soon as I get all the hardware.

#14 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 03 June 2012 - 04:01 AM

Hi Stefan, I was going to place my order on the parts but noticed the Netduino Go doesn't have a built-in Micro SD or any of the available Netduino modules at this time. I know there are plans to make one specific for the Netduino Go but who knows how much longer that would take. So what shield or module would you recommend right now to be able to write and read into a Micro SD from the Netduino Go?

#15 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 03 June 2012 - 08:32 AM

So what shield or module would you recommend right now to be able to write and read into a Micro SD from the Netduino Go?

I personally would wait for this one: http://forums.netdui...-module-update/
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#16 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 04 June 2012 - 04:35 AM

I personally would wait for this one: http://forums.netdui...-module-update/


I'll wait, as always thanks for your help Stefan

#17 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 09 June 2012 - 04:28 AM

Quick update everyone,

I ended up buying the XBee Adapter Module from GHI electronics for the RN-XV WiFly Module - Wire Antenna. I tried it out with my NGo and it works like a charm. So awesome, thanks Stefan!

Posted Image
http://www.ghielectr...log/product/314

#18 contractorwolf

contractorwolf

    Member

  • Members
  • PipPip
  • 23 posts

Posted 18 November 2012 - 09:37 PM

I am wondering as well why the socket is defined as 7 but he has it plugged into 8 (in the image)? should that work? James

#19 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 18 November 2012 - 11:26 PM

Hi James,

I am wondering as well why the socket is defined as 7 but he has it plugged into 8 (in the image)? should that work?

I believe he's using the legacy Gadgeteer compatibility mode for "socket 7". GoPorts 5-8 (the top half) all share the same UART peripheral...so if it's just using UART then it'll work with any of those four GoPort ("socket") addresses.

Chris

#20 contractorwolf

contractorwolf

    Member

  • Members
  • PipPip
  • 23 posts

Posted 19 November 2012 - 01:57 AM

Cool, I got mine working now (I tested it on sockets 6,7,8 so far), but after a couple of request I get a *CLOS* appended to the end of the response data. After that *CLOS* appears the next request always gets stuck on this line:
WebClient.Get("/wifiget.asp?iteration=" + requestCount.ToString()

...seemingly still waiting on a response. But it never moves past that. Where does the *CLOS* come from? And why does it block future requests?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.