View Single Post
  #1 (permalink)  
Old 11-06-2007, 01:27 AM
TalynOne's Avatar
TalynOne
PPCGeeks Regular
Offline
 
Join Date: Jul 2007
Posts: 163
Reputation: 949
TalynOne knows their stuffTalynOne knows their stuffTalynOne knows their stuffTalynOne knows their stuffTalynOne knows their stuffTalynOne knows their stuffTalynOne knows their stuffTalynOne knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Post Tutorial: USB DUN with "Wireless Modem" app on HTC Mogul

Description:

The "Wireless Modem" application lets you connect your mobile device via a USB cable to a computer, and dial-up (DUN) to your phone's EV-DO data connection. This allows you to access the Internet on your computer via your cell phone (tethering)!

It seems Sprint/HTC neglected to give us the necessary files to get the "Wireless Modem" (from the good old pre Windows Mobile 6 days) application working. This is a howto on getting "Wireless Modem" setup and running. I've attached the missing files needed at the bottom of this post.


Tested with:

HTC Mogul running original v2.08 Windows Mobile 6 ROM with Windows XP Pro SP2 (32-bit), and Vista Ultimate Edition (32-bit)


Why is this better than other methods?:

You may ask what the purpose of this method is when you may already have a working solution such as Internet Sharing, PDANet, or USBModem? Good question, it's:

Better than PDANet because:
  • It's free
  • Doesn't rely on ActiveSync
  • Can be shared. Since "Wireless Modem" works through a dial-up adapter, on Windows XP/Vista machines it can be shared with other clients via ICS (Internet Connection Sharing). For instance I've connected via my laptop, and shared that connection via a crossover network cable from my laptop to an XBox 360, to let the XBox 360 access the Internet!

Better than USBModem because :
  • It's free (Wireless Modem's behavior is pretty much identical to USBModem)

Better than the "Internet Sharing" application (included with WM5 AKU3+) because:
  • It's not NAT'ed, you get a public IP with "Wireless Modem". NAT'ed connections are problematic with some games and applications, such as certain VPNs.
  • Since it's not NAT'ed there's less communication overhead, resulting in a slightly better latency, and faster transfer speed.

Setup Summary
  1. Install the Dial-up Networking through Bluetooth Under WM5 AKU3/WM6 Hack
  2. Enable PAM (Phone as Modem), and set it as the default dial-up connection
  3. Apply registry changes to (hopefully) disable NAI (tethering) detection
  4. Setup a dial-up connection on your client (eg. laptop) device
  5. Decompress the attached files and place them in the proper folders
  6. Run the "Wireless Modem" app, and start it sharing via USB
  7. Connect your device via USB cable to your computer
  8. Dial-Up to the Internet and enjoy!

Installing the Dial-up Networking Through Bluetooth Under WM5 AKU3 / WM6 Hack
  1. From the Bluetooth DialUp Access folder in the attached .zip file, install WM6_BT_DUN.cab into main memory on your device.
  2. After installation, soft reset your device

Enabling PAM (Phone as Modem) Connection
  1. You must first have the MSL number for your phone. The MSL unlock code is used for programming your phone yourself, and is unique for every phone. You can retrieve the MSL for your phone by using the GetSPC application. It's essentially a keygen that calculates what the MSL should be from the hexadecimal ESN (case-sensitive). You can download it from HERE. Otherwise you can call Sprint technical support, tell them you're a developer, and you need the MSL number for your phone.
  2. Open up your dialer, and dial in ##3282#
  3. A window should open, select Edit
  4. Enter in your MSL from step 1, and press the OK button (left softkey)
  5. Select the line that has the value MIP_Mode under the Item column
  6. Press the Menu button (right softkey) and choose Edit
  7. Change the value from from Mobile IP Only to Mobile IP Preferred
  8. Press the OK button (left softkey) and soft reset when it tells you to.

Setting PAM (Phone As Modem) as the default dial-up connection
  1. Go to Start->Settings->"Connections" tab
  2. Select the "Connections" applet
  3. On the "Tasks" tab, select "Manage existing connections"
  4. On the "Modem" tab, make sure the "Phone as Modem" radio button is selected
  5. Press "OK" to save your changes

Disabling NAI/Tethering Detection (hopefully)
Using a registry editor, navigate to the "HKEY_LOCAL_MACHINE\Software\OEM\WModem" key, and set the "CheckProfile", "Multi-NAI" and "WModemDUN" DWORDS to a decimal value of "0". Remember to soft reset for the changes to take effect.

Note:
The following note does relate to getting the "Wireless Modem" application, but might of interest to those using the "Internet Sharing" application. It seems Sprint is up to shenanigans in regards to tethering for SERO users. Those of you running Sprint ROMs should navigate to the following registry key "HKEY_LOCAL_MACHINE\Comm\InternetSharing" and delete the string value named "Extension". This will allow you to connect to the Internet via the "Internet Sharing" app without the dreaded error 67/authentication errors. Previous to this fix, Mogul SERO users would have to connect to the Internet via another method (such as starting Internet Explorer first) before pressing the Connect button in the the Internet Sharing application.

For the lazy, I've created two Mortscripts (included in the attached .zip file), that apply ("MogulTetherFix.mscr") and, check ("CheckMogulTetherFix.mscr"), that the proper registry entries have been made (both for "Wireless Modem" and "Internet Sharing"). To use these scripts you must first download, and install MortScript from HERE or HERE.


Installing the missing files:

From the attached .zip file, copy the following files:

Wireless Modem.lnk
- Description: Shortcut to Wireless Modem application (Points to "\Windows\WModem.exe" /LAUNCH)
- Place in \Windows\Start Menu\Programs folder on your device

WModem.exe
- Description: The actual "Wireless Modem" application
- Place in \Windows folder on your device (v2.08 Mogul ROM already has this file).

WModem.exe.0409.mui
- Description: English language resources file needed by WModem.exe
- Place in \Windows folder on your device (was missing from v2.08 Mogul ROM).

Last edited by TalynOne; 11-06-2007 at 04:40 PM.
Reply With Quote
This post has been thanked 27 times.