Hi guys,
I am trying to use the fez spider ethernet module.
I used both the methods UseStaticIp and UseDHCP with no success.
UseStaticIP("192.168.0.199", "255.255.255.0", "192.168.0.1");
does not raise any exception, but the spider does not respond to a ping.
UseDHCP()
raises this exception:
Using mainboard GHIElectronics-FEZSpider version 1.0
#### Exception System.Exception - CLR_E_FAIL (3) ####
#### Message:
#### Microsoft.SPOT.Net.NetworkInformation.NetworkInterface::UpdateConfiguration [IP: 0000] ####
#### Microsoft.SPOT.Net.NetworkInformation.NetworkInterface::EnableDhcp [IP: 000f] ####
#### Gadgeteer.Modules.Module+NetworkModule::DHCPThread [IP: 0026] ####
Eccezione first-chance di tipo ‘System.Exception’ in Microsoft.SPOT.Net.dll
Eccezione non gestita di tipo ‘System.Exception’ in Microsoft.SPOT.Net.dll
I saw that the MAC address displayed during the fez spider boot sequence was different than that on the wiznet label. So I tried this:
byte[] mac = { 0x00, 0x21, 0x03, 0x80, 0x2D, 0xC9 };
ethernet.NetworkSettings.PhysicalAddress = mac;
During the next startup of the spider, the MAC displayed during the startup was right.
I also noticed that when I plug the ethernet cable on the module and on the router, the ethernet module act led is switched off; the router led is also switched off.
Missing something?