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.

J-zY's Content

There have been 1 items by J-zY (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#18366 Sm5100B-D + Netduino Plus

Posted by J-zY on 24 September 2011 - 09:38 AM in Netduino Plus 2 (and Netduino Plus 1)

Hello everyone,

For the last week i've been trying to get this http://www.sparkfun.com/products/9607 shield working. This is my code:
   public static void Main()
        {
            // write your code here
            SerialPort serialPort = new SerialPort(SerialPorts.COM2, 9600);

            serialPort.Open();

            while (true)
            {

                int bytesToRead = serialPort.BytesToRead;

                if (bytesToRead > 0)
                {
                    // get the waiting data

                    byte[] buffer = new byte[bytesToRead];

                    serialPort.Read(buffer, 0, buffer.Length);

                    // print out our received data

                    Debug.Print(new String(System.Text.Encoding.UTF8.GetChars(buffer)));

                }



                Thread.Sleep(100); 
            }

        }
I'm powering it with 9v external power and it turns on and I can call it, but it wont print anything. The netduino doesn't reveive any data.

Can somebody tell me what I'm doing wrong? :)




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.