Fixed fatal linker error (global symbol conflict of "writephonebook")
[gnokii.git] / Docs / gnokii-6210-7110-IrDA
1 Getting gnokii to work with a 6210 under linux
2 ==============================================
3
4 - Compile your kernel with IrDA support for your chipset.
5
6 For me on my VAIO this was:
7 CONFIG_IRDA=m
8 CONFIG_IRCOMM=m
9 CONFIG_IRDA_OPTIONS=y
10 CONFIG_IRDA_DEBUG=y
11
12 CONFIG_IRTTY_SIR=m
13         Use the emulation of serial port part of your IrDA chipset or...
14 CONFIG_NSC_FIR=m
15         Specify the one you have (I have a NSC 87338)
16
17 - Reboot onto new kernel etc.
18 - Check your serial devices don't conflict with the ioport/irq that your
19   chipset driver will try to use:
20   setserial /dev/ttySX (where X is 0 -> 3) should give you the information
21   you need.
22   If you have a device that conflicts with your ioport/irq then you will
23   need to remove the serial driver's control over it with:
24   setserial /dev/ttySX uart none port 0 irq 0
25   (where X is there relevant port mine is /dev/ttyS2)
26 - I used the chipset way to get IrDA working.
27   I needed:
28   options nsc-ircc dongle_id=0x09
29   alias irda0 nsc-ircc
30   in /etc/modules.conf
31   Then just irattach irda0 -s 1 which *should* load all the modules you need
32   and start it doing irda discovery.
33   The modules I have loaded at this point are: nsc-ircc and irda.
34 - Run irdadump to see that it is indeed attempting to discover something.
35   You should see messages like:
36 15:24:07.380360 xid:cmd 0c57083d > ffffffff S=6 s=0 (14)
37 15:24:07.470333 xid:cmd 0c57083d > ffffffff S=6 s=1 (14)
38 15:24:07.560310 xid:cmd 0c57083d > ffffffff S=6 s=2 (14)
39 15:24:07.650283 xid:cmd 0c57083d > ffffffff S=6 s=3 (14)
40 15:24:07.740279 xid:cmd 0c57083d > ffffffff S=6 s=4 (14)
41 15:24:07.830279 xid:cmd 0c57083d > ffffffff S=6 s=5 (14)
42 15:24:07.920311 xid:cmd 0c57083d > ffffffff S=6 s=* langly hint=0400 [ Computer
43 ] (22)
44 - Place the phone in front of it, enable the Infrared parts of it (Menu 90)
45   then it should change to be like:
46 15:26:07.380336 xid:cmd 0c57083d > ffffffff S=6 s=0 (14)
47 15:26:07.470288 xid:cmd 0c57083d > ffffffff S=6 s=1 (14)
48 15:26:07.560284 xid:cmd 0c57083d > ffffffff S=6 s=2 (14)
49 15:26:07.650281 xid:cmd 0c57083d > ffffffff S=6 s=3 (14)
50 15:26:07.740280 xid:cmd 0c57083d > ffffffff S=6 s=4 (14)
51 15:26:07.847192 xid:rsp 0c57083d < d10e0000 S=6 s=4 Nokia 6210 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)
52 15:26:07.830293 xid:cmd 0c57083d > ffffffff S=6 s=5 (14)
53 15:26:07.920283 xid:cmd 0c57083d > ffffffff S=6 s=* langly hint=0400 [ Computer
54 ] (22)
55 - Now try using ircomm to talk to the phone.  Try minicom /dev/ircomm0 (you
56   may need to setup a default profile for this port as the root user with
57   minicom -s /dev/ircomm0).
58 - This depends on your distribution having the right lines in modules.conf
59   for ircomm to be loaded:
60 alias tty-ldisc-11 irtty
61 alias char-major-160 irda0
62 alias char-major-161 ircomm-tty
63   And your /dev/ircomm0 should be character device 161,0.
64   Debian testing/unstable gets this right.
65   If these don't work you may need to load ircomm and ircomm-tty manually.
66 - minicom /dev/ircomm0 should now work and AT commands should function.
67 - With a .gnokiirc modified as follows:
68         port = /dev/ircomm0
69         model = 6210
70         connection = irda
71   gnokii --monitor should now function.
72
73         [huggie@langly ~]$ gnokii --monitor
74         Entering monitor mode...
75         RFLevel: 100
76         Battery: 100
77         SIM: Used 5, Free 85
78         etc.
79   
80   Not all the functions for 6210 work yet seemingly.
81
82 - If instead gnokii hangs then you may have a version of gnokii that still
83   has recv() in irda_open of common/devices/unixirda.c.  Just comment out
84   that line, recompile and try again.
85
86
87 Simon Huggins <huggie-gnokii@earth.li>