Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

DHCP not working


  • Please log in to reply
1 reply to this topic

#1 Nicolas Dorier

Nicolas Dorier

    Member

  • Members
  • PipPip
  • 24 posts

Posted 11 August 2011 - 02:07 PM

I don't manage to make DHCP work on my netduino :(

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.


#2 Nicolas Dorier

Nicolas Dorier

    Member

  • Members
  • PipPip
  • 24 posts

Posted 11 August 2011 - 02:18 PM

Ok don't bother, it seems my ethernet port... it is down the ethernet's leds are off :(




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.