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

Netduino Mini surfs on the wave!


  • Please log in to reply
10 replies to this topic

#1 Quiche31

Quiche31

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationFrance

Posted 03 December 2010 - 10:31 AM

I have attached some very early, unfinished, experimental drivers that have been tested with the following Ethernet shields:
* Arduino Ethernet Shield (original)
* Arduino Ethernet Shield (new design) requires soldering of optional 3x2 'ICSP' connector
* DFRobot Ethernet Shield
(...)
What you can do with this driver:
1. Send/receive data to devices/servers on the Internet (using System.Net.Sockets.Socket)
2. Request web pages
3. Act as a TCP server (web, web services, sockets, etc.)
3. Use web services
4. Stream data

EDIT: updated drivers posted on 25-Nov-2010


I can report that the experimental driver for Wiznet-based Ethernets shields works perfectly with the $20 WIZ811MJ module, connected to my Netduino Mini.
I used the test program that Chris provided, which needed only three minor adjustments to cope with the Mini (see below)

(...)
// So that we can designate Netduino Mini pins:
using SecretLabs.NETMF.Hardware.NetduinoMini;

(...)
namespace NetduinoWiznetTest
{
    public class Program
    {
        public static void Main()
        {
            // configure our wiznet chip
            SecretLabs.NETMF.Net.Wiznet5100 wiznet = new SecretLabs.NETMF.Net.Wiznet5100(SPI.SPI_module.SPI1, Pins.GPIO_PIN_12);

            // configure our IP settings
            NetworkInterface networkInterface = NetworkInterface.GetAllNetworkInterfaces()[0];
            networkInterface.PhysicalAddress = new byte[] { 0x5C, 0x86, 0x4A, 0x00, 0x00, 0x00 }; // test MAC address
            // Adjust to the network environment; here the router is at 192.168.1.1
            networkInterface.EnableStaticIP("192.168.1.12", "255.255.255.0", "192.168.1.1");
          (...)
    }
  }
}

One detail worth mentioning, which in fact is the only issue that I've got. I started using GPIO_PIN_13 as the CS pin for SPI, and for some unknown reason, noticed that this pin was persistently high, even though I left it disconnected, just in the case of a wiring/soldering issue that would force its state. So I changed CS from GPIO_PIN_13 to GPIO_PIN_12 and it then worked: it consumed 10K of RAM, and took only 720ms to the Wiznet to fetch the first byte (the 'H' of HTTP) from Secret Labs home page, and a lots have happened at this point already, as you know. Indeed there is no DNS resolution involved but still, I was quite impressed. And the fact that the Netduino is smaller than the Ethernet module adds to the delight!

I can send detailed connection/schema/log information for those interested in troubleshooting their setting. Just let me know.

Great work Chris and folks at Secret Labs!

JP

Posted Image
From top to bottom: the WIZ811MJ module, a power supply module to feed the Wiznet with 3.3V, the Netduino Mini powered by a NiMH battery, and the USBto232 module for deployment & debugging.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 03 December 2010 - 08:34 PM

Very cool! How funny that the Netduino Mini is smaller than the Ethernet controller... We'll take a look at the SPI_CS code. Curious. Are you going to build a web server of sorts with this? Chris

#3 Quiche31

Quiche31

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationFrance

Posted 03 December 2010 - 09:27 PM

I have an aquarium automate in mind, with remote access via the web. But for the time being I am just free-playing with the various components with an opened eyes, as a learning experience! Now with a chip that small and that capable, everything seems possible!

#4 Charles

Charles

    Advanced Member

  • Members
  • PipPipPip
  • 192 posts

Posted 06 December 2010 - 06:13 AM

Very nice! This gives me great hope for the mini. Only one question... 720ms? Is that a typo? That's almost 3/4 of a second to get one byte? This seems dreadfully slow even for alpha drivers.

#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 06 December 2010 - 06:36 AM

Very nice! This gives me great hope for the mini. Only one question...

720ms? Is that a typo? That's almost 3/4 of a second to get one byte? This seems dreadfully slow even for alpha drivers.


Charles,

SPI communication with Wiznet via managed drivers is slow compared to the super-fast integrated networking built into Netduino Plus.

We're also working on some faster networking drivers for Netduino and Netduino Mini, which we hope to have out in beta next month. Community member Pascal has been contributing a lot of cool stuff...

Chris

#6 Quiche31

Quiche31

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationFrance

Posted 06 December 2010 - 07:09 AM

Very nice! This gives me great hope for the mini. Only one question...

720ms? Is that a typo? That's almost 3/4 of a second to get one byte? This seems dreadfully slow even for alpha drivers.


I ought to be more accurate on this measurement. This is the elapsed time between A and D, below:
A. Initialize the Wiznet
B. Open a socket on secretlabs.com
C. Send a http get
D. Receive the response

So this accounts for driver latency as well as network latency (I ping secretlabs.com in 180 ms) and server processing.

JP

#7 Maurice Spronkers

Maurice Spronkers

    New Member

  • Members
  • Pip
  • 9 posts
  • LocationRozenburg (ZH), The Netherlands

Posted 13 December 2010 - 09:22 PM


I can send detailed connection/schema/log information for those interested in troubleshooting their setting. Just let me know.


Hi Quiche31

I'am interested in the schema, specialy the connection between the wiznet module and the mini.

Tried to connect it to the normal netduino but with no luck. Mini will be delivered this week.

Thanks,
Maurice Spronkers

#8 Quiche31

Quiche31

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationFrance

Posted 13 December 2010 - 11:30 PM

I'am interested in the schema, specialy the connection between the wiznet module and the mini.

Maurice, here is my connections scheme between Wiznet and Netduino Mini
J1-1 (MOSI) to Mini 14 (SPI MOSI)
J1-2 (MISO) to Mini 15 (SPI MISO)
J1-11 (GND) to GND
J1-12 (3V3) to 3.3V (watchout! you need 3.3V - I use a power stick for this as shown below)
J2-3 (SCLK) to Mini 16 (SPI SPCK)
J2-4 (/SCS) to Mini 12 (but you want to try Mini 13 instead, the default for SPI CS, which did not work on mine)
Posted Image
Cheers
JP

#9 Maurice Spronkers

Maurice Spronkers

    New Member

  • Members
  • Pip
  • 9 posts
  • LocationRozenburg (ZH), The Netherlands

Posted 15 December 2010 - 08:25 PM

Thanks JP.

#10 Dr Who

Dr Who

    Advanced Member

  • Members
  • PipPipPip
  • 261 posts
  • LocationNYC

Posted 17 July 2013 - 04:45 AM

Hello!

Found this discussion searching for other ideas regarding battery power for a Mini. So who's battery pack is your system wearing? Also would this Wiznet system work, http://www.shopwiznet.com/wiz820io I was given one of them at the first Maker Faire that I attended that I bought a weekender for.

 

The two salesmen were at the Parallax(!) booth, but I surmise that the little devil would work with anything that supports properly delivered SPI communications.

 

So the question is, would that fellow work in place of the module your using?



Doctor Who
"This signature does not exist!"

#11 Quiche31

Quiche31

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts
  • LocationFrance

Posted 17 July 2013 - 05:52 AM

Hello!

Found this discussion searching for other ideas regarding battery power for a Mini. So who's battery pack is your system wearing? Also would this Wiznet system work, http://www.shopwiznet.com/wiz820io I was given one of them at the first Maker Faire that I attended that I bought a weekender for.

 

The two salesmen were at the Parallax(!) booth, but I surmise that the little devil would work with anything that supports properly delivered SPI communications.

 

So the question is, would that fellow work in place of the module your using?

 

Hi there.

The battery I was using is a Ni-MH 6-cell battery pack delivering 7.2V under 1300 mAh.

Regarding your W5200 module: I don't know if this will work but is worth giving a try as you have it anyhow and won't hurt anything; a quick superficial comparison of the two datasheets (the one of the W5100 and W5200 chips) shows the same register arrangements, but this alone doesn't mean that they have kept backward compatibility. So how about trying it out, and maybe upgrade the driver if required, and send it back to Secret Labs?

 

JP






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.