Go Down

Topic: [MOD] Arduino Enhanced Release 1.0.5 for Windows (installer, drivers, etc) +SRC (Read 257 times) previous topic - next topic

Lakes

Changing the font back to System,plain,14 made no difference to the serial monitor output, I had to edit the prefs text file as the system font does not appear in the prefs GUI dropdown.

Both prefs setting are editor.font=System,plain,14 and editor.antialias=false




eried


Changing the font back to System,plain,14 made no difference to the serial monitor output, I had to edit the prefs text file as the system font does not appear in the prefs GUI dropdown.

Both prefs setting are editor.font=System,plain,14 and editor.antialias=false


OK I see, but can you replicate the problem with a simple sketch? I need some guesses about what is producing the problem because I didn't added too much to the serial routine, only some conditions:


My first guess is maybe at that rate, java speed is so crappy that it loses chars? can you test at lower/higher speed?
My website: http://ried.cl

Lakes

Even with a delay of half a sec, the serial.prints are not seen until you press the reset button.

Code: [Select]
int sleep = 500;
void setup()
{

  Serial.begin(57600);
  delay(sleep);
  Serial.println();
  delay(sleep);
  Serial.println("Code to Replicate ArdunioERW Serial Monitor Bug.");
  delay(sleep);
  Serial.println();
   delay(sleep);
  Serial.println("Serial Connected");
  delay(sleep);
  Serial.println();
}

void loop()
{
{


Here`s another with some code in the main loop.
The loop should pause waiting for some serial input, but does not.
Sometimes a line of random chars appears before anything else is seen.
Code: [Select]
int sleep = 500;
void setup()
{

  Serial.begin(57600);
  delay(sleep);
  Serial.println();
  delay(sleep);
  Serial.println("Code to Replicate ArdunioERW Serial Monitor Bug.");
  delay(sleep);
  Serial.println();
   delay(sleep);
  Serial.println("Serial Connected");
  delay(sleep);
  Serial.println();
}
 


void loop()
{
  byte t = 0;
  Serial.println();
  delay(sleep);
  Serial.println("Please type a single number into the serial monitor.");
  delay(sleep);
  Serial.println();
   delay(sleep);

  while(!Serial.available())     // Do nothing while waiting for input.
  {  }
  byte num;
   t = Serial.read();
    if (t  >= '0' &&  t <= '9'){
      num = (t - '0');
    }
     Serial.print("Number Converted to ");
     Serial.println(num);
     Serial.read();  //discard nl char sent


Both these work correctly in the original serial monitor.

eried

This is weird, I tested the first one and I still can't replicate the issue, did you edited something else? like the boards.txt?



No reset, or anything, just upload and open the monitor. Can another user please check this?
My website: http://ried.cl

Lakes

Don`t know where the boards.txt file is stored, the text file I`ve looked at is the prefs file which is stored in Application\data\Arduino
I`ve changed editor.window.height.default=800 and editor.antialias=false

I suppose it could be something odd with my PC, I`ll try it on the laptop later.

Ok, I`ve just tried a compile with the incorrect board selected and did not get an error, that can`t be right!

I`ve not done anything to change this file.

Can I copy the original boards.txt to replace yours?

Go Up