-->
Page 2 of 3

Re: read from serial

PostPosted: Tue Nov 17, 2015 9:17 am
by adi_g_s
ok i got it, need to send end of line '\n'

Re: read from serial

PostPosted: Tue Nov 17, 2015 12:15 pm
by adi_g_s
but my embedded device which i'm trying to communicate, it doesn't reply with end of line.
could i put a timeout for input or expect fixed length of data?

Re: read from serial

PostPosted: Tue Nov 17, 2015 5:33 pm
by Mmiscool
I could ad a function that retrieves serial communications one character at a time. The input command tries to make this easier by making the protocol a bit simpler.

Re: read from serial

PostPosted: Wed Nov 18, 2015 1:15 am
by TassyJim
A timeout would be more useful.
A command to give the number of characters in the receive buffer and the ability to specify the number of characters read (instead of just one) together would make serial comms much easier when talking to a variety of devices.

Being able to set the baud rate is a must.

Jim