Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do we deal with the serial port?

Status
Not open for further replies.

cdcer

MIS
May 11, 2001
4
0
0
HK
If I want to give an command outside world through the serail port but do not care the response of it, do I need to poll or detect the event happen in the port? Moreover, for output only, is it true that I only need to open the port and put the output to the port only. But do I need to setup the port, such as the baud rate, the data bits, start, stop bits, and etc.?

Thank you!
 
Yes, you need to set up the port (baud rate, parity etc) then just open the port, send the string of info out (or the commands) and close the port (if you haven't set it to close after the commands or string was sent).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top