I've recently tried to get XS4ALL Mobiel UMTS working a GlobeSurfer iCON 7.2 on Ubuntu. This isn't as easy as it should be, so I'm documenting how I did it here.
The device starts in disk mode, which autostarts and installs the driver on Windows. These drivers are useless to us (the option driver is available in the default Ubuntu kernel), and the device won't do serial things unless it's "switched" to serial mode.
To do this, you need to download usb_modeswitch, and compile it using the compile.sh command (the build-essential and libusb-dev packages are required for this).
Then edit usb_modeswitch.conf, comment the configuration variables that are active in the distributed config file, and uncomment the ones for the "Option GlobeSurfer Icon 7.2". After editing the file, copy it to /etc. Also copy the compiled binary (usb_modeswitch) to /usr/local/bin.
Now you need to set up the system so it will run the mode-switch tool automatically when you insert the UMTS device. You can do this by creating a custom udev rule. Create a file called 80-usb_modeswitch.rules in /etc/udev/rules.d with the following content:
SUBSYSTEM=="usb", SYSFS{idProduct}=="1000", SYSFS{idVendor}=="05c6", RUN+="/usr/local/bin/usb_modeswitch"
Note that you might have to undo most of this once usb_modeswitch has been packaged properly.
The PPP configuration tools are currently a bit buggy, so it's easier to just create your own chat scripts and ppp configuration files. This isn't very interesting, so I'll just list the filenames and their contents.
#! /bin/bash /usr/sbin/chat -V -f /etc/chatscripts/umts-pin || /usr/sbin/chat -V -f /etc/chatscripts/umts-nopin /usr/sbin/chat -v -f /etc/chatscripts/umts
Note that this file should be executable! Also note that the first script (umts-prep) sends the PIN to the modem. If this fails, the modem probably already has the PIN, so the dial script continues. If the PIN sending was in the same chat script as the dialing, it would be much harder to ignore the error.
/dev/ttyUSB0 460800 connect "/usr/local/bin/umts_chatscript" lock defaultroute modem crtscts usepeerdns noipdefault ipcp-restart 8 ipcp-max-configure 50 ipcp-accept-local ipcp-accept-remote user xs4allusername password ""
Use the username from the letter XS4ALL sent you with your SIM, or it won't work.
ABORT BUSY ABORT ERROR ABORT 'NO CARRIER' REPORT CONNECT TIMEOUT 10 # Set your pin here "" "AT+CPIN=0000"
Don't forget to set your pin!
ABORT BUSY ABORT ERROR ABORT 'NO CARRIER' REPORT CONNECT TIMEOUT 10 # Set your pin here "" "ATZ"
Don't forget to set your pin!
ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR REPORT CONNECT # Prefer UMTS, but switch back to GPRS if it's not available "" "AT_OPSYS=3,2" OK "AT+CGDCONT=1,\"ip\",\"umts.xs4all.nl\"" TIMEOUT 10 OK "ATD*99***1#" CONNECT \c
You can now connect using Network Manager, or manually using pon xs4all-umts on the command line. Network Manager currently has a bug: it doesn't detect that the network connection is established, so it won't tell the desktop environment that there's a network connection, so some programs might insist on being in "offline mode".
I haven't found a simple signal level monitoring application. This should either be incorporated into Network Manager, or maybe a small applet-like program is needed.
I think this should all work out of the box, or with minimal configuration. It's way too hard now.
Posted by http://gedmin.as/ at Thu Dec 27 19:16:19 2007 from
Posted by Martijn at Fri Dec 28 13:59:17 2007 from
Op dit werk is een Creative Commons Licentie van toepassing.