On Mon, 16 Feb 2004 14:05:17 +0100
Pattrick Hueper <pattyh@gmx.net> wrote:
> if i do cat /dev/ttyS1 on my laptop and try to send a contact from the
> PDA via infrared, i see characters coming out of ttyS1, same with
> minicom, i also tried Andrews suggestion with my digital video camera,
> i can see the diode blinking when sending the contact, but when
> booting the kernel it stays dark... so i suppose its not sending
> anything...
Yes. The problem is, every PDA has a way of enabling the IR transceiver
power and this way is different on different PDAs. Failure of using IrDA
on 22xx series should be related with this, I think.
> I saw a warning when building the kernel:
> #warning "PLATFORM_SIR_ON/OFF not defined, SIR must be enabled in
> platform initialization code!"
Yes, that's exactly it. This warning tells you the pxa-serial driver
does not know how to enable transceiver power, it knows just how to
switch ttyS2 to IrDA mode and back (this is platform-independent).
Hmm... after looking into h2200-gpio.h I see there is something we can
do about it (so nice when everything is documented). I'll add a
definition of PLATFORM_SIR_ON/OFF and you can try to update your CVS and
see if it works.
> (btw, there seems to be an error in line 61, same file which says:
> #if !defined PLATFORM_SIR_OFF || !defined PLATFORM_SIR_OFF
> the second PLATFORM_... should be PLATFORM_SIR_ON, i guess...)
Yep. This line has been changed several times by two different people, I
think we messed something during the changes :)
-- Greetings, AndrewReceived on Mon Feb 16 19:47:43 2004
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:46 EDT