I connected Ethernet J11D module to FEZ Spider, but event NetworkUp is never raised I found some older discussions about this problem, but found no solution. I use .NET Micro Framework 4.2.
When I try code from Setting up Ethernet on the .NET Gadgeteer - Pete Brown's 10rem.net, i get this output:
Program Started
Network down.
When I change code to…
void SetupEthernet()
{
//ethernet.UseDHCP();
ethernet.UseStaticIP(
"169.254.81.121",
"255.255.0.0",
"169.254.81.122");
}
… I get en exception:
Program Started
#### Exception System.NullReferenceException - CLR_E_NULL_REFERENCE (1) ####
#### Message:
#### Gadgeteer.Modules.Module+NetworkModule::UseStaticIP [IP: 000f] ####
#### Gadgeteer.Modules.Module+NetworkModule::UseStaticIP [IP: 0008] ####
#### Gadgeteer.Examples.Program::SetupEthernet [IP: 0011] ####
#### Gadgeteer.Examples.Program::ProgramStarted [IP: 000c] ####
A first chance exception of type ‘System.NullReferenceException’ occurred in Gadgeteer.dll
An unhandled exception of type ‘System.NullReferenceException’ occurred in Gadgeteer.dll
Is there a solution, I haven’t found? Or am I doing something wrong?