I dont understand your problem clearly. And that why you are not able to write 
your own program.
You basically have to use the read() system call to get data available on the 
serial input buffers. That is how u receive data.
The read() will handle all the receives. I dont think you have to worry about 
DCD , or RXD and moreover DCD is used for checking availability of signal.I 
think you problem is that you are not setting some flags.
All that depends upon the functionality required in your program. I cant 
suggest you anything until i know what your program wants to do.
If you still have doubts, mail me at vbimal at gmail.com maybe with some code 
you've written.

On Sun, 19 Mar 2006 thoma wrote :
>I have already read all those stuffs. The remote and receiver are working
>under LIRC and XMMS also.
>But i cant write my own program for reading from the serial port. I think
>the problem is my receiver sends data through DCD pin [data carrier detect].
>The data should be sent through* RXD* pin [ Received Data]. Is there any way
>to read data(signals)  from DCD pin.
>Thank You
>
>
>On 18 Mar 2006 18:51:21 -0000, bimal viswanath <bimal_v at rediffmail.com>
>wrote:
> >
> >
> > You wont have to write a driver..the linux serial driver should be enough
> > for most of ur stuff.
> > check this: 
> > http://www.easysw.com/~mike/serial/serial.html<http://www.easysw.com/%7Emike/serial/serial.html>
> > Things should be easy after reading this.. Then check ur hardware part if
> > there are further problems.
> >
> > On Sat, 18 Mar 2006 thoma wrote :
> >
> > >Hi,
> > >
> > >i am a student in Model Engineering College. My project is Controlling a
> > >media player using a remote control ( Similar to LIRC ).
> > >I made the circuit and it is connected to the serial port. Does anybody
> > know
> > >how to program the serial port so that i can read the signals from the
> > >serial port.
> > >i used
> > >open("/dev/ttyS0", O_RDONLY)
> > >  method. but i am not able to receive the signals.
> > >But if my serial mouse is connected, i can read from ttyS0.
> > >is there any other method or do i have to write a proper device driver
> > for
> > >the serial port.
> > >Plz help me. Its urgent
> > >_______________________________________________
> > >Mailinglist mailing list
> > >Mailinglist at ilug-cochin.org
> > >http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
> >
> >
> >
> > <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490
> >  at Middle5?PARTNER=3>
> >
> > _______________________________________________
> > Mailinglist mailing list
> > Mailinglist at ilug-cochin.org
> > http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
> >
> >
> >
>_______________________________________________
>Mailinglist mailing list
>Mailinglist at ilug-cochin.org
>http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://ilug-cochin.org/pipermail/mailinglist_ilug-cochin.org/attachments/20060319/2a8cac6f/attachment.htm

Reply via email to