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 16 Dec 2011
Offline Last Active May 16 2015 05:32 AM

Topics I've Started

Web server problems

14 July 2013 - 08:29 AM

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Hi[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I am running a web server on NP2 (previously on NP1) and it seems to run ok.[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]The problem is, when I start pushing it - a little too much processing for each received message combined with hysterical pushing the refresh button on the browser (more than 4 times in Debug mode - a little more en Release mode) - it falls over!.[/color][/font]


[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have tried most of the servers shown in this forum, and they usually works when testing, but when pushing them as above, the same thing happens. [/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have not been successful trying to multitask.[/color][/font]


[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have nailed Down the problem to the "socket.Accept" statement.[/color][/font]


[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I get this exception: [/color][color=rgb(30,30,30);]A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll[/color][color=rgb(34,34,34);], the first message is received and then everything stops. Other tasks (Onewire and display) are still running.[/color][/font]


[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Questions:[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Is there a limit to how many outstanding messages the socket Accept wil have? And if s how many?[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Is there a way to overcome the problem?[/color][/font]


[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Any help is appreciated.[/color][/font]

how to "Factory reset" Netduino Plus (ver 1 & 2) ?

06 June 2013 - 04:14 AM

[font="calibri;"]This might be a stupid question, but I have been messing around with different versions of firmware on my devices and want to go back to start ("factory reset").[/font]


[font="calibri;"]The result is strange behavior: One NP1 will deploy a program, but ends all threads without doing anything when started.[/font]

[font="calibri;"]Both NP1 and NP2 will throw a socket exception whenever I try a DNS request for ex.[/font]

[font="calibri;"](This happens even with this as the only one codeline in the software:[/font]

	IPEndPoint ep = new IPEndPoint(Dns.GetHostEntry("").AddressList[0], 80);

[font="calibri;"] [/font]

Other devices - with the same IP-setting - performs well.


[font="calibri;"]Now I want to factory reset my devices and try all over with new firmware. I touched the blank spot and tried all the obvious ways but nothing helps. [/font]


[font="calibri;"]What can I do?[/font]


[font="calibri;"]The socket exception occurs with 4.2 as well as with 4.3 beta.[/font]


[font="calibri;"]Please advice![/font]




DNS request problem in 4.2

21 March 2013 - 05:20 PM

Yesterday my internet provider "upgraded the Network" and after this my NetduinoPlus2 NTP client will not Work.

(It has been working for month before - and before on NetduinoPlus 1.gen for years).

I have isolated the problem to the DNS call:


IPEndPoint ep = new IPEndPoint(Dns.GetHostEntry(servername).AddressList[0],123)  

After timeout I get an Socket error exception.

Having messed around for 24 hours, I decided to make an experiment. I installed a DNS server on my Synology fileserver and changed the DNS address in the NETMF program to the Synology DNS.  

This works! as it use to.

It doesnt solve the problem, but proves that my program is still working. My conclusion is that there must be a problem/weakness in the METMF/Netduino DNS that makes this protocol more sensitive to deviations than most other equipment (all other equipment works). My internet provider claims that they have no other problems reported.

Does anyone have an explanation? or maybe an advice?

I tried:

Using DHCP same problem Using the router as DNS ( same problem Using the providers DNS-IP same problem Using an open DNS ( same problem  

Why does it work with a local DNS-server?

Does IP4 IP6 has something to do with it (Synology also uses IP6)



How does NETMF/Netduino handle embedded resources

16 March 2013 - 05:46 AM

I have a file as an embedded resource (resource -id: myfile) which is quite large.


I want to send this file from a function like this:



My function sendString chops up the string and send it in smaller bites.  

The concept is tested with a smaller file and Works.


The question is:  

Will the resource string be send to my function as a string (in RAM) or as a reference to the resource string (in FLASH)?.  

If it is first copied to RAM, it will take all my RAM which is not good.  

I tried to use ref string buf in the function argument, but it does not seems to Work (with the embedded ressource file).  

Any ideas?

Sorry if this is a plain NETMF question, but it might also have somthing to do with the implementation in Netduino ???  



VPN Server on Netduino Plus

16 February 2013 - 06:32 AM

My intensions are to build a VPN server on a Netduino Plus (1).


Can any body point me in the right direction?


I do have the inolved RFCs but is looking for something more (framework, code sample o.a.).


Tnx in advance


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.