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 11 Aug 2010
Offline Last Active Mar 22 2015 02:05 AM

Posts I've Made

In Topic: Looking for a few ninja code contributors...

22 March 2013 - 02:10 PM

I'm a little late to the party but I have access to a Beagle 480 USB sniffer and all flavors of Netduino.  If any debugging assistance is required, I'd be happy to help out.

In Topic: Holding a hacknight with Netduino's and Windows Azure

19 November 2012 - 02:28 PM

Sounds like an awesome time

In Topic: Introducing Netduino Plus 2

08 November 2012 - 04:50 PM

Your timing is perfect. Can't wait for mine to arrive! Thanks guys!

In Topic: Running out of memory

15 October 2012 - 11:42 PM

Thanks Chris! I have WireShark installed but I don't have access to the shared host's OS nor do I know how to monitor the traffic from the N+ using it. I moved my test loop into the SocketExample you recommended (much smaller deployment) and it locks up at 561 iterations with no output. I'm going to try to access some local web services to eliminate the possibility of a server side issue.

In Topic: Running out of memory

15 October 2012 - 10:28 PM

Same exact failure with using sockets and a POST. 563 inserts, then locked.

private static void TestSockettPost()
            int numTests = 1000;

            while (numTests > 0)
                //write test data and show LED

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

                    using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))

                        using (NetworkStream ns = new NetworkStream(socket))
                            //POST /somepage.php HTTP/1.1
                            //Content-Type: application/x-www-form-urlencoded
                            //Content-Length: 19

                            byte[] bytes = System.Text.Encoding.UTF8.GetBytes(
                                "POST /PATH/FILE.php HTTP/1.1\r\n" +                
                                "Host:\r\n" +
                                "Connection: keep-alive\r\n" +
                                "Content-Length: 21\r\n" +
                                "Cache-Control: max-age=0\r\n" +
                                "Origin: null\r\n" +
                                "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4\r\n" +
                                "Content-Type: application/x-www-form-urlencoded\r\n" +
                                "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" +
                                "Accept-Encoding: gzip,deflate,sdch\r\n" +
                                "Accept-Language: en-US,en;q=0.8\r\n" +
                                "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3\r\n" +
                                "\r\n" +

                            ns.Write(bytes, 0, bytes.Length);

                            Debug.Print("POST done");
                catch (Exception ex)

                //hide LED


            Debug.Print("Test complete");

This just seems crazy to me. Anybody have any idea what could be going on or any input on how to troubleshoot?

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.