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.

Nicolas Dorier

Member Since 03 Feb 2011
Offline Last Active Oct 13 2011 02:18 PM
-----

Topics I've Started

DHCP not working

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 ?

zigbee, zwave, X10 which one for what ?

26 April 2011 - 05:11 PM

I've seen that there is a lot's of home automation protocol out there. The cool thing about them is that they can easily installed. I used X10 for some projects, but the reliability is really bad. Two others protocol, zigbee and zwave seems to exist, and both seems to be meshed wireless network. Both seems much more reliable than X10, and are low power consumption. My question is, why would someone would choose zigbee over zwave ? Which one is easier to program with the netduino ? What is your experience on these protocols ? Can you recommend some cool component and devices to play with it on netduino ?

OutOfMemory not expected

04 March 2011 - 08:37 AM

Hi, here is a really simple program :

ArrayList list = new ArrayList();
			for(int i = 0; i < 1000; i++)
			{
				list.Add(i);
				Log(i.ToString() + " " + Debug.GC(true).ToString());
			}


And it seems that an OutOfMemoryException is raised very early... After 473 elements... and 14844 Bytes unused in the RAM

469 14940
470 14916
471 14892
472 14868
473 14844
#### Exception System.OutOfMemoryException - CLR_E_OUT_OF_MEMORY (1) ####


What is going on ?

How can I see flash and RAM memory left ?

01 March 2011 - 04:49 PM

I have seen that in the firmware 4.1.1.a7 :

With this firmware, you will have the following resources available for your code:
64KB Flash
28KB+ RAM


When I deploy my program on the netduino I see

Total: (11924 RAM - 100376 ROM - 54323 METADATA)

And in the website tech spec for the netduino

Code Storage: 128 KB
RAM: 60 KB

And in MFDeploy I see

RAM    0x00000000  0x00020000 (131072 in dec))
FLASH  0x00100000  0x00080000 (524288 in dec)

Does somebody can explain what is all these different value about the netduino ROM/Flash ?
How can we know how much memory is left for our code after the deployment ?

Thanks !

Socket programming unreliable

26 February 2011 - 10:54 PM

I have tried to program sockets with the netduino in v4.1.0 (update 5) and v4.1.1 ALPHA 7.
From what I have seen, I had some problems.
Sometimes, call to bind like this
server.Bind(new IPEndPoint(IPAddress.Parse("192.168.5.100"), 5656));
completely blocks the netduino (even MFDeploy can't ping it after that)

Sometimes it does not block but throw an exception which means that no interface have this IP
And sometimes, after several reboot, without doing anything, it works.

Most of the time, when I use sockets, I can't deploy without replugging the USB cable.
And MFDeploy can't ping when the server is on.

Am I doing something wrong ?

Here two project, "Portal.Debug.Client" is a WPF test client which connect and "ping" the netduino.
"Portal.Debug" just listen for a client, and send back the data it recieves.

Sometimes it does not work, sometimes it work, it's very unreliable.

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.