Operating System - HP-UX
1826123 Members
4487 Online
109690 Solutions
New Discussion

reading data from the serial port

 
SOLVED
Go to solution
Sergey Yazikov
Occasional Contributor

reading data from the serial port

Hi,

Does anybody have a C demo program that reads data of the serial port and the source code is available?

Thanks in advance,
Serge.
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: reading data from the serial port

Here's a small program I wrote to read temperatures from a digital thermometer using a serial interface. It has examples of doing the port setup (baudrate, wordlength, ...) as well as opening and reading from the port.

This should get you started, Clay
If it ain't broke, I can fix that.