Read whole data stored in serial buffer


hello,

i'm trying communicate aftermarket car ecu via rs-232.
i can send request packet ecu, , replies requested data.
the amount of data differs requested.
it can 30 bytes of data sent ecu due.

so far good...

but, how can read data stored in serial buffer? (it can store 64 bytes, right?)
with available method, can count amount of data received. found no method read whole buffer.

best regards
bastian

data on serial drops in 1 @ time.
you must build returned data piece piece. there <cr> or <lf> @ end of response. read until terminator , can analyze response.


Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > Read whole data stored in serial buffer


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code