[ltp] IR (SIR) success!
Tom Grydeland
linux-thinkpad@www.bm-soft.com
Mon, 26 Feb 2001 20:08:35 +0100 (MET)
On Mon, 26 Feb 2001, Tom Allison wrote:
> These are my notes on getting the IR port to work with my Palm Vx.
> mknod /dev/irnine c 161 0
> then issue command:
> irattach /dev/ttyS1 -d
> (this must be run as root)
> This will set up the connection between /dev/pilot -> /dev/irnine ->
> /dev/ttyS1
> You have to use the "-d" option for "Discovery" of the devices in IR-land.
> Then you can use either Pilot-Link or Jpilot.
>
> NOTE: You must start the PDA's sync process before you hit <rtn>
> (Pilot-Link) or sync/backup (jpilot). Otherwise, it'll puke.
[...]
> Windows to enable the IR port (Which kills com1 in the back for thinkpads).
> Then you can go into Linux and find the IR port.
Thanks to Till Straumann's suggestions, I can use setpnp to enable the
IR port, and once it has been enabled at boot, I can turn it on and off
without rebooting.
> Let me know if this is of any assistance and/or if this makes any sense to
> you.
Yes! I have now, for the first time, synced between my Palm and the
Thinkpad!
Thanks a bundle to Thomas Hood, Till Straumann and Tom Allison for
patient explanations!
What remains:
* Switching the devices around -- having IR on /dev/ttyS0 (4,64) and
the DB9 on /dev/ttyS2 (4,66) or have them use different IRQs. Not
because it makes a difference, I just want to convince myself that it
can be done.
* FIR
findchip -v reports:
reg=0x011
Found NSC PC87338 Controller at 0x2e, DevID=0x0b, Rev. 2
SIR Base 0x2f8, FIR Base 0x2f8
IRQ = 4, DMA = 3
Enabled: yes, Suspended: no
UART compatible: yes
Half duplex delay = 0 us
I don't understand where 0x2e or 0x2f8 comes from -- lspnp -v -b 13
reports:
13 IBM0071 IBM Thinkpad infrared port
irq 4
io 0x03e8-0x03ef
dma 3
And tpctl --rs2 reports:
serial port 2: enable 0x3e8 IRQ4
In this configuration, I can
irattach /dev/ttyS2 -d
followed by
pilot-xfer -p /dev/irnine -l
and I get a listing of the databases on the palm.
When I try to load the nsc-ircc module for FIR connection,
kernel: nsc-ircc, Wrong chip version ff
Anyway, SIR is *way* better than no IR!
Thanks again, all!
--
//Tom Grydeland <Tom.Grydeland@phys.uit.no>
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html