Re: [iPAQ] IRDA on the IPAQ

From: Rajesh Krishna Balan <rajesh+.a.t.cs.cmu.edu>
Date: Thu Sep 28 2000 - 13:29:30 EDT

On Thu, 28 Sep 2000, Nils Faerber wrote:

> > I've loaded the irda.o (recompiled to remove the dma references), irtty.o,
> > irlan.o, sa1100_ir.o, done the irattach and everything. Everything loads
> > and looks fine *except* that i can't get any real IR packets to be emitted
> > or received from the IR receiver.
> I do not know if sa1100_ir.o has to be used at all. If you look at "dmesg" you
> will see that the standard iPaq serial driver already recognises a third serial
> port ttyS2 and sais "ttyS2 using IrDA".

yah. but if you look at serial_sa1100.c which is the code that gives you
that message, you will notice that the logic to turn on the IR hardware on
the iPAQ seems to be reversed. They turn off the hardware when the serial
port is opened and turn it on when the port is closed. The key lines are
the ones that clear or set the EGPIO_BITSY_IR_ON bit.

According to the iPAQ guide, this bit is active high. But it is used as
though it is active low. I have reversed the bits and recompiled the
kernel. I will test it later to see if that helps. If it works, i'll post
a patch.

> This means to me either the IrDA hardware driver is included in the serial
> driver and sa1100_ir.o must not be used or it just means that ttyS2 is using
> the IrDA port which would mean that one has to use irattach.
> But either method does not work at all..
> I have tried the same like you described and ended up that running "irmanager
> -d1" stopped my serial console ;)

that is because of a bug in the /etc/irda/drivers file. you need to
comment out the

irattach /dev/ttyS0 -d tekram line. that is the line that kills the
serial console.

comment in the line #irattach /dev/ttyS2

> > Also, there is no /proc/sys tree to turn on irda discovery.
> Yep. The irmanager process complains about it.
> Very strange.
> The most strange thing is that I can use the FIR port on my x86 notebook with
> the same kernel and driver version without any of those problems.

:) i can get the IR working on IBM notebooks with the same kernel as well.

> If I have time again I will try to investigate this further.

Thanks,

Rajesh
Received on Thu Sep 28 10:26:21 2000

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:42 EDT