Hello,
I'm implementing a simple protocol to communicate to a device via serial port.
My program should:
1)Write a packet
2)Wait till a timer is expired, or exactly N characters are read
In other words a complete packet should arrive within a certain time, or the read fails.
I've read about termios config (VMIN & VTIME), as well as about open system call flags, but I'm a bit confused and need some clarification.
Thanks!
John