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
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.
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
Post a Comment