Hi,

You don't need Linux-IrDA, you just need to open the serial port (tty) from
user-space and add a small driver to set up the RTS/DTR lines for the Tekram
dongle. Then you can do the stuff you want with normal read()'s and
write()'s. Look at the code for the tekram dongle driver, read about the
TIOCMSET and TIOCMGET ioctls and just write your own driver. Notice that you
can do much simpler than Linux-IrDA since you're in user-space and can call
usleep instead of the async state-machine used the Linux-IrDA driver.

-- Dag

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Svagera
> Sent: 31. mars 2002 14:41
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Linux-IrDA] Q: SIR access without IrDA stack?
>
>
> >
> > SIR implies IrDA.
> >
> > If you want to speak proprietary Ir with some device (e.g.
> Nokia 6110&co)
> > you need a package specifically for this purpose.  (Gnokii for
> the 6110..)
> >
> > Or am I missing something?
> >
> > //Peter
> > _______________________________________________
> Thank you Peter!
> I think you are right. To my understanding SIR is one mode of the lowest
> IrDA level (IrPHY). It was defined by HP long before the rest of the
> IrDA stack (IrLAP, IrLMP, IrCOMM, ...) In such a reduced form it is
> implemented in HP Palmtop 200LX. If I am right, it is nothing else than
> serial communication with 9600bps to 115.2kbps using infrared
> transmission. That means not a single protocol byte is added to the data
> stream as it is done when using the higher layer IrCOMM. Please correct
> me if I am wrong.
> Now to my problem: When I plug the Tekram IR-dongle to COM1, one might
> suspect that I can connect to HP200LX by using directly /dev/ttyS0. This
> is actually the case but only for 9600bps, the default speed of Tekram
> dongle. Why? Because to change the dongle speed a special procedure has
> to be done on the serial control lines as one can see in kernel file
> tekram.c. So I would prefer to use IrDA stack together with Tekram
> driver, with a possibility to directly access IrPHY layer. I don't know
> if this is possible in Linux IrDA implementation?
> The needed package specifically for this purpose (communication with
> HP200LX) that you mentioned is available. It is LXtools which was
> primarily written
> for RS232 (wire !) connection. I just search for a proper Linux /dev/?
> to
> do the same with IR.
>
>
> Robert
> _______________________________________________
> Linux-IrDA mailing list  -  [EMAIL PROTECTED]
> http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda
>
>
>

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to