Topic RSS
Is there a way to clear the serial read buffer?
July 18, 2017
2:13 am
2:13 am
JJ
New Member
Members
Forum Posts: 2
Member Since:
July 18, 2017
July 18, 2017
Offline
Is there a way to clear the serial read buffer?
I am communicating via RS485 in a request-response structure.
When I make a request in Aduino, the other side responds.
The response always sends 28 bytes.
However, when 28 byte serial read is performed, one or two trash values are continuously pushed in.
Is there a way to clear the serial read buffer?
Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
7
7
Guest(s)
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrolAdministrators: geadmin: 22, filipealtoe: 96, Steffan: 356
© Simple:Press —