Using Internet Sharing feature via USB in Windows Mobile 6 phone

Using WM6-based phone as a GPRS/3G modem for Linux / Fedora machine via Bluetooth is pretty straightforward. However, Bluetooth has some quite obvious disadvantages – it’s a bit slower, and drains phone battery faster. USB connection is probably not so convenient, as you need to carry an extra cable around – but on the other hand speeds are better, and USB automatically charges battery. Nice. So, how to actually use it? I always thought it’s a rocket science, but it turned out it’s even easier than Bluetooth!

First of all, make sure to install the latest usb-rndis-lite drivers – I couldn’t manage to make it working with core drivers built into kernel. Installation:

svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
./clean.sh --> as root
make install --> as root

Then, create ifcfg-rndis0 file in /etc/sysconfig/network-scripts directory:

DEVICE=rndis0
BOOTPROTO=dhcp
ONBOOT=no
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes

Note: if you’ve used my instructions regarding Bluetooth, then you may just copy ifcfg-bnep0 to ifcfg-rndis0, and inside the file change DEVICE to rndis0.

And now – the easiest part. :) In the phone, open Internet Sharing application, choose USB option, and hit Connect. Then connect USB cable, and rndis0 interface will connect you automagically to the internet. Simple as that! :) Example dmesg output after connecting the cable:

usb 1-6.3: new full speed USB device using ehci_hcd and address 6
usb 1-6.3: configuration #1 chosen from 1 choice
usbcore: registered new interface driver cdc_ether
rndis0: register 'rndis_host' at usb-0000:00:1d.7-6.3, RNDIS device, 80:00:60:0f:e8:00
usbcore: registered new interface driver rndis_host

Source: http://suseforums.net/index.php?showtopic=41219

One Response to “Using Internet Sharing feature via USB in Windows Mobile 6 phone”

  1. Boris Says:

    Hello Dawid,

    I spend nearly the whole day to get my HTC Touch Cruise (aka o2 Orbit2) connected to my kubuntu laptop to finally use UTMS. It was a day full of trying, reading tips on the internet, try again … and start over.

    Under Windows it was a matter of a few minutes: connect Orbit2, hit “Internetfreigabe” (internet sharing) and there was internet!

    Thanks for sharing your ideas on the topic. You made my day …

    Best regards

    Boris