public static void Main() { var interf = NetworkInterface.GetAllNetworkInterfaces()[0]; interf.EnableDhcp(); interf.RenewDhcpLease(); while(true) { Thread.Sleep(10000); Debug.Print(interf.IPAddress.ToString()); } }
The IPAddress is always 0.0.0.0, I did not forgot to set the mac address and I deployed the good firmware (I had the same problem before the firmware update)
HalSystemInfo.halVersion: 4.2.0.0
HalSystemInfo.halVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC
HalSystemInfo.oemCode: 34
HalSystemInfo.modelCode: 177
HalSystemInfo.skuCode: 4097
HalSystemInfo.moduleSerialNumber: 00000000000000000000000000000000
HalSystemInfo.systemSerialNumber: 0000000000000000
ClrInfo.clrVersion: 4.2.0.0
ClrInfo.clrVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC
ClrInfo.targetFrameworkVersion: 4.2.0.0
SolutionReleaseInfo.solutionVersion: 4.2.0.0
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC
Am I doing something wrong ?
I suspect something is wrong with my ethernet port... I don't see DHCP requests with wireshark. Does the netduino plus should have a led blinking when ethernet is plugged ?
Edited by Nicolas Dorier, 11 August 2011 - 02:14 PM.