[PLUG] Serial Communication Code.

Shakthi Kannan shakthimaan at gmail.com
Sun Jun 28 21:53:02 PDT 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