Umts

From Flo's Knowledge in a Nutshell

Jump to: navigation, search

Contents

UMTS and Ubuntu

This Article describes how to connect to the Internet with an Option UMTS Modem, Provider Orange Switzerland.

System Requirements

  • Ubuntu 7.4 +
  • Option 7.1 UMTS Modem

Prepare Modem

The modem has the ability to act like an external Drive. This is used because Windows users have to install software first.

  • Install usb-modeswitch from repositories
apt-get install usb-modeswitch
  • Execute usb-modeswitch as root
  • Device should now show up correctly if you type "lsusb".
Bus 005 Device 003: ID 05e3:0505 Genesys Logic, Inc. 
Bus 005 Device 002: ID 0951:1606 Kingston Technology 
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0af0:6901 Option 
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Configure Wvdial

We use Wvdial to connect, ensure a correct configuration.

root@flo2eeepc:/etc/ppp/peers# cat wvdial
noauth
name wvdial
usepeerdns
  • Note that Orange Switzerland has the APN mobileoffice3g

Connecct

  • Type wvdial as root and enjoy... Debugging Messages can be found at /var/log/messages.

Automate

To automate the switch an connect process i worte a small shellscript.

#!/bin/bash
i=0
while [ $i -lt 1 ]
do
sleep 1
X="$(usb_modeswitch)"
if  [[ "$X" =~ "Switching not required." ]]
then
i=1
echo modeswitch done please wait...
sleep 3
wvdial
else
echo connecting...
fi
done
Personal tools