Linux Kernel Driver for IPWireless USB Modem

by Stephen Blackheath <stephen@blacksapphire.com>, and
   Ben Martel <benm@symmetric.co.nz>


REQUIREMENTS

* Linux kernel 2.4.x or 2.6.x, and the corresponding kernel headers.

* pppd (PPP daemon)


BUILDING

1. Set the KERNELDIR environment variable to point to the directory that
   contains the 'include' directory for kernel headers corresponding to your
   currently running kernel, e.g.

     export KERNELDIR=/usr/src/linux

2. Ensure that the version of gcc you are using matches the one with which
   your kernel was built.

     gcc --version
     cat /proc/version

   If they don't match, then point the CC environment variable at the
   correct version of gcc, e.g.

     export CC=gcc-2.95

3. Use 'make' to build it

     make


INSTALLING THE DRIVER

1. Install the kernel module and related files:

     su
     make install


CHECKING THAT THE DRIVER IS INSTALLED CORRECTLY

1. Watch the system messages while you plug the card in

     tail -f /var/log/messages

2. You should see something like this:

Aug  1 17:50:57 aotearoa kernel: ipwireless_usb: IPWireless USB Modem Driver v1.0.15 installed with major number 253
Aug  1 17:50:57 aotearoa kernel: ipwireless_usb: allocated modem interface on ttyIPWu0 (or ttyIPWu/0 for devfs)
Aug  1 17:50:57 aotearoa kernel: usbcore: registered new driver ipwireless_usb

3. Some devices called ttyIPWu* should have been created in the /dev
   directory when the card was plugged in.  Check that they are there:

     ls -l /dev/ttyIPWu*

   This should have happened automatically - see /etc/init.d/ipwireless


CONFIGURING PPPD

  When the modem is plugged in, it will appear on /dev/ttyIPWu0 to
  /dev/ttyIPWu31.  These devices work like serial ports, and the device itself
  behaves like a Hayes-compatible modem.

  If your system uses devfs, then the device names will be /dev/ttyIPWu/0 to
  /dev/ttyIPWu/31.

  Configure pppd to connect using a chat script with these commands:

    AT+CGDCONT=1,"PPP","<network_name>","<user_id>,<password>",0,0
    ATD*99#

  You may also need to use configure it to authenticate to the service provider
  using chap authentication.

