'C' program to communicate thru PC's Serial Port

K

Thread Starter

Kiran

I want to communicate with a stand alone instrument having RS 232 port. How can i talk to this instrument?
Please give me program code for this.
 
C

Curt Wuollet

I can help you with Linux code to setup and open the port and describe how to read and write. But, no one can deduce how to talk to an instrument they know nothing about.

Regards

cww
 
C

Curt Wuollet

OK, I sent a very small but complete program that I wrote to setup a serial connected UPS to notify the host that doom is impending. It is very much the standard method of dealing with serial ports under Linux and quite similar to most versions of UNIX. A man on any of the system calls should flesh it in. I can also recommend a book: Linux Application Development

Regards

cww
 
Hi there,

I too am looking for a code which will help me communicate with the serial port through linux. Can you please send me the code as well. My email address is [email protected]

Thank You very much!
 
Top