11 Replies Latest reply on Nov 10, 2015 3:29 PM by chrwei

    ** B0100000063f694 error (Serial.read();)

    edison_esl

      suddenly, Serial.read() isn't work.

      serial monitor  show this message "** B0100000063f694� "

      i used Edison board

      but it was all good last week before "upgrade"

      how can i solve it?

      and it doesn't work Ethernet Library: sketch crashes when remote client closes connection methood....

      (

      1. Add #include <signal.h> at the start of the sketch

      2. Under "void setup()" added signal(SIGPIP,SIG_IGN);

      )

       

      i use simple code....Serial.read()

      ----------------------------------------------------------------------------------------------------------------------------

      float val = 147;

      void setup()

      {

       

      analogWrite(5,137);//시작 선언,보통은 이렇지만 간혹가다 237을 넣어줘야 시작되는 녀석들도 있음.

      delay(1000);

      Serial.begin(9600);

      }

      void loop(){

        //analogWrite(9,137);//시작 선언,보통은 이렇지만 간혹가다 237을 넣어줘야 시작되는 녀석들도 있음.

      if(Serial.available() > 0)

      {

        int command = Serial.read();

        Serial.print("val ");

        Serial.println(val);

       

        if(command == '4')

        {

          if(val >= 185)

          {

            val = 185;

          }

          else

         {

           val = val + 0.5;

         }

          analogWrite(5,val);

        }

       

        else if(command == '1')

        {

          if(val <= 147)

          {

            val = val;

          }

          else

         {

           val = val - 0.5;

         }

          analogWrite(5,val);

        }

      }

       

      }