SeeedStudio WIZnet Ethernet Shield on Panda II

Hey Guys.
I just received my SeedStudio shield, and i searched the internet thin for a guide on using it with Fez Panda…
This one: http://www.seeedstudio.com/depot/ethernet-shield-p-518.html

Found some guy here on the forum with a question about it, but it got answered with a link to another topic, whichdoesnt excist anymore…
Something about setting some sort of jumpers?

I tried this example code:


            byte[] ip = { 192, 168, 1, 222 };
            byte[] subnet = { 255, 255, 255, 0 };
            byte[] gateway = { 192, 168, 1, 1 };
            byte[] mac = { 0x00, 0x88, 0x98, 0x90, 0xD4, 0xE0 };
            WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10,
             (Cpu.Pin)FEZ_Pin.Digital.Di7, true);
            NetworkInterface.EnableStaticIP(ip, subnet, gateway, mac);
            NetworkInterface.EnableStaticDns(new byte[] { 192, 168, 1, 1 });
            while (true) {
                MyLED.Write(false);
                Thread.Sleep(300);
                MyLED.Write(true);
                Thread.Sleep(300);
            }

And connected it with a cable directly to my PC, set my own IP static in same area and subnet (192.168.1.150).
Then ping .222 and i get following:

C:\Users\christian.bekker>ping 192.168.1.222

Pinging 192.168.1.222 with 32 bytes of data:
Reply from 192.168.1.150: Destination host unreachable.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.1.222:
    Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),

Seems a bit strange? sice it says “Reply from 192.168.1.150: Destination host unreachable”, which is my ip…

Anyone who’s got some experience with this shield?

I am fairly certain that you would need a hub or switch between your Panda and PC.

Or else perhaps a cross-over cable would do the trick.

Just tried that, get exactly the same :confused:

Maybe these will help:

A search of the GHI forum (http://www.ghielectronics.com/community/forum/search?q=WIZnet+Ethernet+Shield+) brings up these 2 threads

http://www.ghielectronics.com/community/forum/topic?id=2741

which has a reference to this older one:

http://www.ghielectronics.com/community/forum/topic?id=1439

Are you sure about Di7 as Reset-Pin? Entirely possible on your board, but …
I looked at some of my old Panda-II programs, and they all use Di9


      WIZnet_W5100.Enable(SPI.SPI_module.SPI1,        // Use SPI1
          (Cpu.Pin)FEZ_Pin.Digital.Di10,              // /CS pin
          (Cpu.Pin)FEZ_Pin.Digital.Di9,               // /Reset pin
          true);                                      // Reserve socket

It dont seem to be the same shield…
And they keep refering to a picture that isnt in the thread? (Maybe lost when the forum moved?)

Really not sure, just copy pasted a example i found.

And from this pinout i can see it seem all wrong? they map to pwm?

Looking at the link you supplied for the Seeed Ethernet Module, the pinout is different than the usual Arduino pinout used:
( Ethernet Shield V1.0 - Seeed Wiki )


 Pins usage on Arduino

D0 - Unused
D1 - Unused
D2 - Connects the INT pin of the W5100
D3 - Contral the reset of the W5100
D4 - Unused
D5 - Unused
D6 - Unused
D7 - Unused

D8 - Unused
D9 - Unused
D10 - Used for SPI Chip Select
D11 - Used for SPI MOSI
D12 - Used for SPI MISO
D13 - Used for SPI SCK

If that is your board, then the setup would be:


WIZnet_W5100.Enable(SPI.SPI_module.SPI1,        // Use SPI1
          (Cpu.Pin)FEZ_Pin.Digital.Di10,              // /CS pin
          (Cpu.Pin)FEZ_Pin.Digital.Di3,               // /Reset pin
          true);                                      // Reserve socket

Whether a pin is used for PWM or digital I/O or not is determined by the software.

It is indeed the shield im using, though mine says 1.1, but the components looks excatly the same…
I tried your setup, but i still get unreachable…
I can se that somthing happen on the LED’s when i ping… but i guess they just dont get through to the panda…

I found a solution at LetsMakeRobots (http://letsmakerobots.com/node/37411).

Need to solder 3 connections together, to get it to the right pins.
Now it works like a charm…

For anyone having some problem, the needed pins to solder, are marked with red in the image.

Thanks for everybody trying to help :slight_smile:

Yeah, that shield doesn’t seem to have any documentation around those jumper solder points does it…