Netduino home hardware projects downloads community

Jump to content

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


Member Since 30 Aug 2011
Offline Last Active Apr 10 2012 11:40 AM

Posts I've Made

In Topic: Export TXT File from NetDuino Plus to PC

25 October 2011 - 08:18 PM

Without running your code I am not sure what your problem is. You have 2 pieces of code; data recording and data transfer which need to be threaded to run at the same time. My experience is this can memory issues (which I never resolved though I had other stuff going on to). My solution was to start the webserver in 1 thread then started data recording. Not sure whether you will need to close the file to upload data.

In Topic: Cannot Connect to Pachube

06 October 2011 - 12:52 PM

I have seen N+ hang on a socket connection and also with DNS. I would try hard coding the target IP address. The other thing to bare in mind is the networking using a lot of memory which the then causes indirect and undefined errors, especially if you have a lot of other stuff going on.

In Topic: Crash on network socket unplug

28 September 2011 - 08:47 AM

Hi Phil, I haven't seen your issue, mainly because I have get Socket.Connect() hanging problem (My Sockets are using http or udp). We too wanted to use Netduino in a production environment, but this another issues mainly memory related mean we are having to consider our options. Netduino Plus is a nice platform - very compact, lots of features, interesting price But................

In Topic: Network stability issues

28 September 2011 - 08:13 AM

Strange, when I run the exact same code in VB it works perfectly. No problems at all.

Netduino Plus rev.B, capabilities:

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.clrVendorInfo:                  Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC
SolutionReleaseInfo.solutionVendorInfo: Netduino Plus (v4.2.0.0 RC1) by Secret Labs LLC
SoftwareVersion.BuildDate:              Aug  7 2011
SoftwareVersion.CompilerVersion:        400902
FloatingPoint:                          True
SourceLevelDebugging:                   True
ThreadCreateEx:                         True
LCD.Width:                              0
LCD.Height:                             0
LCD.BitsPerPixel:                       0
AppDomains:                             False
ExceptionFilters:                       True
IncrementalDeployment:                  True
SoftReboot:                             True
Profiling:                              False
ProfilingAllocations:                   False
ProfilingCalls:                         False
IsUnknown:                              False

Try running with MFDeploy instead of the Visual Studio debugger, it gives some more info like:

You can do this by opening C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Tools\MFDeploy.exe, select USB, the device and press F5. Then press the reset button on your netduino to re-run your app.

Hi Stephan,

Just been using MFDeploy - once I reverted to DHCP - I the same as you got except after AutoNegotiate complete -rather than getting NetworkConnection true I get System.Net.Sockets.SocketException. Any ideas why? I am running RC4.2


In Topic: Network stability issues

27 September 2011 - 02:44 PM

I have a C# version without non availability for 500+ iterations but it is interesting. I hoped it might have explained a Socket.Connect() problem I am experiencing.

using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
using Microsoft.SPOT.Net.NetworkInformation;

namespace NetstabTest
public class Program
public static void Main()
Program p = new Program();
NetworkChange.NetworkAvailabilityChanged += p.NetworkAvailibilty;

int i = 0;
while (true)
Debug.Print("sleeping:" + i++);


private void NetworkAvailibilty(object sender, NetworkAvailabilityEventArgs e)
Debug.Print("Network availibility" + e.IsAvailable);

public void GetNetworkAccess()

NetworkInterface[] nis = NetworkInterface.GetAllNetworkInterfaces();

for (int i = 0; i < nis.Length; i++)
NetworkInterface networkInterface = nis[i];

if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
string m_macAddress = networkInterface.PhysicalAddress[0].ToString();
for (int j = 1; j < networkInterface.PhysicalAddress.Length; ++j)
m_macAddress += "-" + networkInterface.PhysicalAddress[j].ToString();

string[] m_staticDnsAddresses = new string[] { "", "" };
for (int k = 0; k < networkInterface.DnsAddresses.Length; ++k)
m_staticDnsAddresses[k] = networkInterface.DnsAddresses[k];



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.