Hi all.

Since I see many mails on the list on this subject and originally had problems
getting the hang of it myself, I thought I'd send out a mini-mini-howto (not
really, but a description of my setup) to help out a bit.

First some meaningless background, which you might as well skip.  My own
success with IrCOMM and my Nokia 8810 has been a mixture of good and bad.  :)
I started out trying to make this work when using a 2.0.36 kernel by applying
the needed patches.  No go.  I didn't give up, and with 2.2.9irda2 I got it to
work.  (I also changed hardware during this time, I suspect my old laptop had
somewhat weird IrDA-hw..)
However, after 2.2.9irda2 I didn't have much success until 2.2.12irda3, which
worked perfect.  If I remember correctly Takahide's code was in the
kernel up until 2.2.12irda3, when Dag replaced it with new code.
When looking at some old patches I've got I see that patch-2.2.12-irda1 is a
mixture of Takahide's and Dag's code, but irda3 showed up rather fast anyway.
Takahide's code used /dev/irnine 60,64 through modules ircomm and ircomm_tty.
Dag's code uses /dev/ircomm[0-15] and /dev/irlpt[0-15] 161,[0-31] through 
modules ircomm and ircomm-tty.  (Note the underscore vs. dash..)

Today, I'm using 2.2.13irda3 without any problems along with irda-utils 0.9.5
which all compiled cleanly except for irdadump.c which included a file called
<netpacket/packet.h> which I did not have, I found that on my system in
/usr/src/linux/include/config/packet.h instead.  Changed the include and
irdadump.c compiled fine too.  (First time for me, btw. :)

I have an SMC IrCC v2 chipset in my Dell Latitude CPi D300XT which I've set to
be SIR compatible and configured to be on port 0x2f8 irq 3 on my system, the
kernel sees it as ttyS1.
(The smc-ircc driver doesn't work for me, it says the irport_change_speed
symbol is missing, I will look into this and maybe hack/rewrite the driver as
well, I've grabbed the chip PDFs from SMC and had a quick look at them.)

I load the following modules on startup of my machine:
/sbin/insmod/irda               # For the basic IrDA stuff.
/sbin/insmod/irtty              # Communication with hardware.
/sbin/insmod/ircomm             # IrCOMM protocol.
/sbin/insmod/ircomm-tty # IrCOMM device driver.

Then I run:
/usr/sbin/irmanager -d 1        # -d 1 to enable discovery.

irmanager in turn runs "/etc/irda/drivers start" to start up the hw drivers.

In /etc/irda/drivers under the start case I commented out all irattach, insmod
and modprobe lines and typed in the appropriate one for me instead:
/usr/sbin/irattach /dev/ttyS1

..which tells the irtty module to use /dev/ttyS1 if I've got this right.

Now, I enable Ir communication on my 8810 and place it in front of the
computer, within a couple of sec's it shows up in /proc/net/irda/discovery:
nickname: Nokia  8810, hint: 0xb125, saddr: 0x6e6e4be5, daddr: 0x60120000

I can now start minicom or cu or chat or whatever to communicate with the
modem in my phone through the device file /dev/ircomm0.

The other files I've got set up that are involved in this are:

/etc/conf.modules
------
alias tty-ldisc-11 irtty
alias char-major-161 ircomm-tty
------

/dev/ircomm0
------
crw-r--r--   1 root     root     161,   0 Nov  6 22:36 /dev/ircomm0
------

I hope these will be useful bytes for someone.  :)

(Oh, and please note that I have no experience at all with anything but
IrCOMM.)

//Peter

--
irc: CareBear\    tel: +46-40-914420
irl: Peter Stuge  gsm: +46-705-783805


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

Reply via email to