[PLUG] Serial Communication Code.

Shakthi Kannan shakthimaan at gmail.com
Mon Jun 29 10:23:02 IST 2009


Hi,

--- On Thu, Jun 25, 2009 at 2:38 PM, Suraj Swami<suraj.g.swami at gmail.com> wrote:
| I want to send single charector on the serial port which my hardware will
| receive and execute.
\--

What hardware? Do you have the datasheet?

---
|    tcdrain(fd);
\--

You should always check return values of functions. You can check
return value of tcdrain() and see what it returns. Also refer:

http://linux.die.net/man/3/tcdrain
http://opengroup.org/onlinepubs/007908799/xsh/tcdrain.html

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com




More information about the Plug-mail mailing list