...like Nokia 7110 and others. If you find this useful, i'm glad to
hear. If you find any mistake, report it to me as I can fix it :-).

It's a draft document, however, it looks like almost complete step-by-step
instruction.

-- 
Michal 'CeFeK' Nazarewicz   / CAOL, DK GROUP SYSADMIN ^ NETADMIN         B
ICQ 47171266 / +48 (601) CEFEK 0 / http://www.dkgroup.pl/index.html      O
mailto:cefek at saydk dot co dot uk / MN4735-RIPE / Pengiun #164007      F
Linux kanton 2.4.0-test7 #9 sob wrz 2 12:46:51 CEST 2000 i686 slackware7 H


0. PREAMBLE
===========

This document is created by Michal 'CeFeK' Nazarewicz. May NOT be
redistributed unless certain conditions are met:
        * Is distributed as a whole,
        * There is no part removed,
        * I am said to be an author.

If anyone find information enclosed here helpful, I'm happy. If anyone
need help or find any mistake, or just want me to add missing information
to this paper, please let me know at michal.nazarewicz(at)saydk.co.uk.


1. WARRANTY
===========
This document is a draft. That way, it cannot be treated as a detailed
manual; instead of this, it's purpose is just to be helpful. It's not a
guide nor manual; it's a trace of certain commands I issued to make my
notebook work with my Nokia 7110 cellular phone.

I can not guarantee this will work for you. Moreover, I can't be held
responsible for ANY damage made by issuing commands enclosed in this
document. You ARE NOT FORCED to do anything with information found here,
and if you do - you do this on your risk.



2. REQUIREMENTS
===============
First of all, you need the following components on your system to be up
and running:

2.1 Linux Kernel version AT LEAST 2.2.16
2.2 PPPd version 2.3.10 (may work on earlier, but I haven't tested this
yet)
2.3 Minicom is recommended
2.4 DIP - Dialup IP.
2.5 IrDA utils

Where to get them?
Linux kernel -- for example,
 > ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.2.16.tar.bz2
PPPd -- for example,
 > address
Minicom and DIP -- 
 > can be found at
 > ftp.slackware.com/pub/linux/slackware/slackware-current/slakware
IrDA utils
 > address

3. CONFIGURATION
================

1. Make sure that your kernel is configured to support IrDA, that you can
   find IrDA devices by hand (we'll check this later in this document).

For example, my configuration is like this (snipped from
/usr/src/linux-2.2.16/.config):

8<-----(cut)--------
# IrDA (infrared) support
#
CONFIG_IRDA=y
# (cefek's [author's] comment) - it's obvious :-)
CONFIG_IRLAN=y
# (cefek) may be useful later, with another laptops.
CONFIG_IRCOMM=y
# (cefek) Nokia 7110 mobile phone (and all others, probably) needs
#         that, Linux needs that, WE NEED THAT -- it's explained later.
CONFIG_IRDA_ULTRA=y
# (cefek) don't remember why I've switched this on. :]
CONFIG_IRDA_OPTIONS=y
# CONFIG_IRDA_CACHE_LAST_LSAP is not set
# CONFIG_IRDA_FAST_RR is not set
CONFIG_IRDA_DEBUG=y
# (cefek) well, in case...
CONFIG_IRDA_COMPRESSION=y
# (cefek) can be faster. Have to check without this!
CONFIG_IRDA_DEFLATE=y
# (cefek) other useful option.

#
# Infrared-port device drivers
#
CONFIG_IRTTY_SIR=y
# (cefek) my Dell Latitude CPt IR port is recognized as /dev/tty*,
#         so I don't need any other drivers. That's good, since 
#         I don't have to poke with them :-)

# CONFIG_IRPORT_SIR is not set
# (cefek) 'cause I know that IRTTY_SIR will work for me.

CONFIG_NSC_FIR=n
# (cefek) may be useful later ;-)

CONFIG_WINBOND_FIR=n
CONFIG_TOSHIBA_FIR=n
CONFIG_SMC_IRCC_FIR=y
# (cefek) I use SMC IrCC [controller], so I can use that driver.

# CONFIG_DONGLE is not set
# (cefek) 'cause we don't need it.

8<------(cut)----------

2. Make the following devices under /dev:

kanton:~$ ls -la /dev/ircomm*
crw-r--r--   1 root     root     161,   0 Jul 15 17:23 /dev/ircomm0
crw-r--r--   1 root     root     161,   1 Jul 13 23:49 /dev/ircomm1

   with commands (as root):
kanton:~# mknod /dev/ircomm0 c 161 0
kanton:~# mknod /dev/ircomm1 c 161 1

   These devices will be used as normal serial ports -- you can't use the
device /dev/ttyS1 as it is not suitable for use. Instead of this, Linux
kernel drivers (for IrCOMM and IrCOMM_tty) uses these ports -- they're
used just like normal, ordinary serial ports. Of course with an exception
-- they're infrared.

3. You need to run:
        3.2.1 irattach -- to start using IrDA port on your notebook
                with devices /dev/ircomm0 and /dev/ircomm1
                command: irattach /dev/ttyS1 (ir you're using another comm
                port, select that one. Correct settings may be found in
                BIOS).
        3.2.2 echo 1>/proc/sys/net/irda/discovery -- to start discovery
                of remote devices, like cellphones (N7110 :]).
                This can be done also by issuing command 'irmanager -d 1',
                but I found this working.
        ***
        When you've done issuing this command, i strongly advise to switch
        IrDA reception to ON in your mobile phone (via Menu-9
        ["Infrared"]) and change directory to /proc/net/irda. After that,
        if you cat the file "discovery", you should see something similar
        to this:
-(cut)--
IrLMP: Discovery log:

nickname: Nokia 7110, hint: 0xb125, saddr: 0x8911ff76, daddr: 0x4b230000
-(cut)--
        This, obviously, means that your cell phone is found and ready to
        be used. If you want to check if this really works, you may try to 
        use "irdaping" program (like "irdaping 0x4b230000").
        ***
        
        3.2.3 terminal/dip/chat/whatever to use your mobile phone via
                IrDA. Note, that after you issue any command, that uses
                your cellular phone, the "IrDA reception ON" sign [a 
                small irda port icon on the phone's display] will
                stop blinking, and start to lit. This is normal.

You can use this script to automate this:

8<------(cut)-----------
#!/bin/bash

# Try to map ircomm0 and ircomm1 devices to your serial port
# On most laptops, this should be suitable -- irda port is
#  the second one (COM2 under DOS/Windows, ttyS1 under Linux)

echo "IrDA port attaching."
irattach /dev/ttyS1

# Start discovery of remote devices via the IrDA port 
echo "Starting remote discovery."
echo 1 >/proc/sys/net/irda/discovery
8<------(cut)-------

Now, you can use your phone as normal modem. Enjoy -- and drop me a letter
if that succeeds (to my e-mail address <cefek(at)saydk(dot)co(dot)uk>.

Reply via email to