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 23 Sep 2011
Offline Last Active Oct 31 2011 07:43 PM

Topics I've Started

Sm5100B-D + Netduino Plus

24 September 2011 - 09:38 AM

Hello everyone,

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


            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)));



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.