WIZnet_W5100 Ethernet

Does any one know how to ping an external IP address from a micro device using the WIZnet_W5100 Ethernet lib?

Check this codeshare:

http://www.tinyclr.com/codeshare/entry/323

Thanks for the reply.

Having an issue with ‘Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Icmp);’ every time I step into that call I get a ‘A first chance exception of type ‘System.NotSupportedException’ occurred in System.dll’.

I am setting up the device with these commands.


using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Net;
using GHIElectronics.NETMF.Net.NetworkInformation;

Main()
{
WIZnet_W5100.Enable(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di10, (Cpu.Pin)FEZ_Pin.Digital.Di7, true);

Dhcp.EnableDhcp(new byte[] { 0x00, 0xC9, 0x3A, 0x3C, 0x9B, 0x4A }, "FEZ_kengo");
Debug.Print("Network settings:");
Debug.Print("IP Address: " + new IPAddress(NetworkInterface.IPAddress).ToString());
Debug.Print("Subnet Mask: " + new IPAddress(NetworkInterface.SubnetMask).ToString());
Debug.Print("Default Getway: " + new IPAddress(NetworkInterface.GatewayAddress).ToString());
Debug.Print("DNS Server: " + new IPAddress(NetworkInterface.DnsServer).ToString());

}

Any ideas?

Looks like Icmp must be not supported on W5100.

I think Architect is right. I have done ICMP on an EMX, but I believe it was with raw socket.

Yes it does look like neither .NET MF 4.1 or GHI support ICMP ping but .NET 4.2 may.

http://netmf.codeplex.com/workitem/1126

Is it possible to upgrade the USBizi100 to 4.2?

There is no 4.2 on USBIzi and no plans so far

the ip stack is within the w5100. unless it supports ICMP, 4.2 will not make a difference.

correct