Timeline for Serial.read has garbled data after a Serial.write
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 29, 2014 at 13:25 | comment | added | Roberto | @ChrisStratton you are right - I was not even sure on how to provide the details - I still hope my own answer can help other people. | |
Apr 29, 2014 at 9:32 | vote | accept | Roberto | ||
Apr 29, 2014 at 9:32 | answer | added | Roberto | timeline score: 2 | |
Apr 26, 2014 at 16:27 | review | Close votes | |||
Apr 26, 2014 at 17:21 | |||||
Apr 26, 2014 at 16:08 | comment | added | Chris Stratton | This question really is not answerable without more details, such as the nature of the garbled data as already requested. It appears to have been abandoned and should probably be closed. | |
Mar 27, 2014 at 22:36 | comment | added | jfpoilpret |
Which version of Arduino IDE are you using? It seems HardwareSerial.cpp has changed a lot along different versions, in particular the flush() method. In version 1.0.5 it should be OK normally.
|
|
Mar 27, 2014 at 8:42 | answer | added | JohnnyDeauville | timeline score: 0 | |
Mar 25, 2014 at 19:40 | comment | added | imjosh | Try putting a ~2.2k pull-down resistor on the Arduino's RX pin (connect the resistor to ground and the pin). | |
S Mar 25, 2014 at 14:17 | history | suggested | hithwen | CC BY-SA 3.0 |
reformat code sample
|
Mar 25, 2014 at 13:52 | review | Suggested edits | |||
S Mar 25, 2014 at 14:17 | |||||
Mar 25, 2014 at 10:34 | comment | added | drodri | Could you please tell more about "garbled data". You mean what it is inside your "data" variable? What is the final value of streamReadResponse after the call to readBytesUntil with and without the delay? | |
Mar 25, 2014 at 9:46 | review | First posts | |||
Mar 25, 2014 at 12:54 | |||||
Mar 25, 2014 at 9:26 | history | asked | Roberto | CC BY-SA 3.0 |