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.

Senthil's Content

There have been 3 items by Senthil (Search limited from 27-April 23)


By content type

See this member's

Sort by                Order  

#59378 Error: No response from device

Posted by Senthil on 25 July 2014 - 03:47 AM in Netduino Plus 2 (and Netduino Plus 1)

Okay Replaced the Firmware as per the http://forums.netdui...-v422-update-2/ Now I am able to Ping the device and run the LED Program  :P




#59376 Error: No response from device

Posted by Senthil on 25 July 2014 - 01:00 AM in Netduino Plus 2 (and Netduino Plus 1)

Today I was trying to Deploy new program to my Netduino, I was not able to do and now when I use MDDeploy too I get Error: No response from device .

 

Should I consider Device is dead ? I am sure I kept the device in working condition yesterday and now it is not working. All I did today was plug in to USB and try to load a new program PWM. 

 

Any pointer to see if my device is really dead  




#59321 Reading Multi Byte from Serial Port

Posted by Senthil on 20 July 2014 - 11:20 PM in Netduino Plus 2 (and Netduino Plus 1)

 I am trying to read a value from COM1 using DataReceived Event. But with below sample I was able to ready only Single Byte ,  What I wanted to do is to read String . Say "On" "Off" I do I do it ?
public class Program
    {
        static SerialPort port;
    
        public static void Main()
        { 
            port = new SerialPort("COM1", 9600, Parity.None, 8, StopBits.One );
            port.Open();
            port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived); 
            Thread.Sleep(Timeout.Infinite);

        }

        static void port_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            byte[] byte1 = new byte[1];
            port.Read(byte1, 0, byte1.Length);
char[] c = System.Text.Encoding.UTF8.GetChars(byte1);

            String a = new String(c);
            if (a == "n")
            {
              //on led
            }
            else if (a == "f")
            {
               //off led
            }
} }




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.