well im not sure wot do u mean by open("/dev/ttyS0", O_RDONLY)
which is these codes?
See, serial programming can be done in trillion ways. Everone will
tell his/her own views` ... take one and chuck others ... but all lead
more or less in same way.
anyway i prefer python . since it work as if ur working on a file ...
open read/write close. simple... and libraries are good.
google ull get ans.
-raj
On 3/19/06, justin joseph <justin_joseph007 at yahoo.com> wrote:
>
>
> --- thoma <arunthomas007 at gmail.com> wrote:
>
> > Hi,
> >
> >
> > 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
>
> You can use inb, outb combination to read and write
> from the serial port. I think that will give you more
> control over the port. The below link might give you
> some idea.
>
> http://linuxgazette.net/issue99/misc/pramode/recv.txt
>
>
> > 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
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> Mailinglist mailing list
> Mailinglist at ilug-cochin.org
> http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
>
--
________________________________
Don't look down, You know wot it is...