USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« on: April 24, 2011, 05:17:42 am » |
14400 and 28800 shows garbage. All other settings are OK. This is IDE issue, when monitoring serial port with other software, data looks normal. Example sketch:
void setup() { Serial.begin(14400); }
void loop() { Serial.println("Test"); delay(20); }
Example of garbage output:
f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n f×n
OS Windows XP SP3, processor Intel P4 2.8GHz, RAM 2 Gb; board Ard.Duemilanove, chip 328 (the same with 168) FTDI Driver 5/19/2006 ver.2.0.0.0
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #1 on: April 24, 2011, 07:07:10 am » |
I have had a few issues with the serial monitor acting up - I wonder if it's anything to do with the modified txrx dll that I (and many others) installed to sort out the slow loading.
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #2 on: April 24, 2011, 01:15:42 pm » |
Switched to latest available FTDI driver 3/18/2011 2.8.14.0 with no result 
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #3 on: April 24, 2011, 03:36:43 pm » |
Is this with an un-modified version of the IDE? Have you tried a different version to see if you still see the issue?
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #4 on: April 24, 2011, 03:41:39 pm » |
I am not aware of what 'modified IDE' is; I just downloaded arduino-0022.zip, unzipped it and ran arduino.exe The same result I had with IDE 0017.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #5 on: April 24, 2011, 03:54:12 pm » |
I am not aware of what 'modified IDE' is Well the answer will be no then  Hmm, I haven't heard of this problem on 0017. If you have the board set to 14400, does it work on any other settings (wrong baud rates) in the IDE serial monitor?
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #6 on: April 24, 2011, 04:50:15 pm » |
No, no other speed settings convert garbage into text. But I have noticed that when I use Serial.begin(9600) (serial output is OK at IDE setting 9600), I still can see this output when I switch serial monitor to 14400. This happens _only_ on 9600. Any other board rates only produce correct output when serial monitor is set to matching speed. Just tried the same on a different computer, Windows 7, IDE 0022. Same bug.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #7 on: April 24, 2011, 04:52:18 pm » |
Have you checked your serial port settings in device manager? 8 Data bits, No parity, 1 Stop bit and No flow control
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #8 on: April 24, 2011, 04:55:50 pm » |
Yessir! As I said, I can see correct output on 14400 when using 'third party' serial port monitor. This is obviously the bug of Arduino IDE.
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #9 on: April 24, 2011, 05:05:20 pm » |
Yeah - just trying to check all angles as I haven't seen this one before.
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #10 on: April 24, 2011, 05:06:58 pm » |
Can you try it yourself in similar environment?
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #11 on: April 24, 2011, 05:09:51 pm » |
Edit: Yeah I'll try it
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #12 on: April 24, 2011, 05:12:26 pm » |
Just open new sketch, copy the code from first message, upload and enjoy 
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #13 on: April 24, 2011, 05:16:47 pm » |
Works fine here for 14400 and 28800 - on the Arduino IDE and X-CTU serial monitor and PUTTY serial monitor.
I suspect that it's a USB cable issue or a board connection issue and the arduino IDE serial monitor is simply less resilient to noise or something than better alternative serial monitors.
Not sure why it would only occur at those baud rates but I'm pretty sure now it's not an IDE issue specifically.
|
|
|
|
|
Logged
|
|
|
|
|
USA, OH
Offline
Jr. Member
Karma: 0
Posts: 54
|
 |
« Reply #14 on: April 24, 2011, 05:29:34 pm » |
Definitely not a cable, just tried another one, brand new with same result. Well, then it is only one reason: my board  Probably some glitch in communication chip. Unfortunately, I don't have another board to compare. But it also proves Arduino serial monitor is not 'resilient' enough compared to every other serial monitors:( Thanks for your time, man!
|
|
|
|
|
Logged
|
|
|
|
|
|