First of all, thaznks for your reply.
To ansmer yours questions, i would like to make a C or C++ program which communicate via the serial port COM1 to a device. The device is a screen plasma. I would like the program to remote the sreen : switch on, switch off, change channel ...
The serial communication setting is :
Baud : 4800 BPS
Data length : 8 bits
Parity : none
Stop bit : 1 bit
Flow control RTS/CTS
Communication code : ASCII code
Reception time out : 4 seconds
To do it, I need to send ASCII code. For exemple, to switch off the screen i must send the "%A0001" code.
I need to receive the acknoledgment to know if it has been weel done. (code for good receive : "@S")
Thanks for your help.
Canarich
fred smith <[EMAIL PROTECTED]> a écrit :
On Thu, Sep 05, 2002 at 04:47:20PM +0200, cana rich wrote:
>
> Hello,
> I am using Linux REDHAT 7.2 and i would like to make a serial port communication.
> I know the "setserial" function to set up the serial port bu thow can i write data (sending for example 0x0001 on serial port) and receive data?
> Thanks for your help.
> Canarich
Can't answer your question without more information.
Are you trying to write a C (C++, whatever) program and want to know
how to use a serial port therefrom?
or are you wanting to use a terminal program with a serial port?
or are you wanting to do file transfers via a serial port? If so, using
what protocol, to/from what sort of system and software?
Or something else? If so, what?
--
---- Fred Smith -- [EMAIL PROTECTED] ------------------------ ----
Do you not ! know? Have you not heard?
The LORD is the everlasting God, the Creator of the ends of the earth.
He will not grow tired or weary, and his understanding no one can fathom.
----------------------------- Isaiah 40:28 (niv) -----------------------------
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !