|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Note that the NEW thread is at http://forum.xda-developers.com/show....php?p=1801986
The topic maintainer (who has done a great job) has been fairly absent recently, which is why the thread has been continued elsewhere. The current topic also includes the information on how to do this all manually, without WMWifiRouter. (End of Menneisyys' update; original original post follows.) Breaking News!: Chainfire has released WMWifiRouter v0.80. An app that automates the launching of Internet Sharing/Registry Changes/WiFi power Cycling/with a new 10 minute timeout fix/process! If you appreciate his work on this or his KaiserTweak application, feel free to donate something to him via PayPal. IMPORTANT NOTES:
WMWifiRouter info from ChainFire: Changelog: v0.80
The power tweak: This replaces the old screen toggle. This should tell your device to not turn WiFi off when it goes into standby mode. On my Kaiser (TyTN II) this allows me to put the device into standby mode using the power button while the connection keeps being shared. Obviously this consumes a lot less power. I do not know if this will work on all devices, please let me know. Also note that while it usually works for me, it doesn't _always_ work, so try a few times. Wait for the connections to be established before putting the device into standby. Upgrading:
Installation:
Usage:
Usage Notes:
So get testing all! ---------------------------------------------------------------- Now back to the regular tutorial... Description: A tutorial on how to share your mobile device's dial-up (GPRS/EDGE/UMTS/HSDPA/EV-DO, etc. cellular) connection over an Ad Hoc WiFi connection. Starting with Windows Mobile 5 AKU3 Microsoft included an "Internet Sharing" application, for free, that allowed you to share your Internet connection (like the commercial apps PDANet and USBModem). But all of these applications only supported sharing your dial-up connection via a USB cable or Bluetooth PAN/DUN connection. This hacked version lets you share your Internet connection via an Ad Hoc WiFi network. This useful, among other reasons, if you want to share your Internet Connection with a device that doesn't support Bluetooth PAN, or USB Host connectivity, but does support Ad Hoc WiFi networks, such as a Sony PSP or iPod Touch. Introduction: To find out how this method differs from fluxist's read the FAQ located below. The tutorial is very verbose, because I think it's better to include too much information, rather than not enough. Expect a good number of edits/updates/corrections to this tutorial because of its length. I'm also hoping to include as much information as possible in the hopes that someone smarter than me can use this information to come up with an even better solution. This tutorial is HTC Mogul centric (since that's what I have), and includes certain notes that only apply to the Mogul (I will specify this in the note itself). Requirements:
Setup Summary
Connect Summary
Last edited by Menneisyys; 9th January 2008 at 05:59 PM.. |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Optional Steps
Sprint HTC Mogul/SERO Notes 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. If you're really paranoid (it has been concluded these entries have no meaning when using Internet Sharing), 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". Optional: Setting up a shortcut to the "Wi-Fi" applet In this tutorial we will be accessing the "Wi-Fi" applet several times (and possibly every time you connect via Internet Sharing as part of the 10 minute timeout workaround). To prevent having to go to the Start->Settings->"Connections" tab every time you wish to access this applet, we can create a shortcut to this applet, by either:
Setting up an Ad Hoc WiFi connection on your mobile device
Configuring a static IP address on your WiFi device
Connecting to your Ad Hoc WiFi connection on your mobile device
Setting up/connecting the Ad Hoc WiFi connection on your client device Since the specific procedure on how to connect to Ad Hoc networks greatly varies from device to device (Windows XP/Vista/Sony PSP/MAC/etc...), it's impractical to document each possible combination. In general just fire up your client and search for nearby networks, making sure you're not only looking for access points, but also peer-to-peer (Ad Hoc) networks. This (looking for both types of network) is the default with desktop Windows Wi-Fi clients, other platforms might be needed to be manually instructed to list available Ad Hoc connections. Installing the hacked Internet Sharing application
Connecting & Sharing the Internet via Wifi
Workaround for the 10 minute timeout You may notice, at least on my device, that "Internet Sharing", at exactly 10 minutes of usage, disconnects from the Internet, while you AdHoc WiFi stays on. This timeout is built into "intshrui.exe". Remember in the previous procedure how the status displayed as "Check USB cable connection", the status line needs to change to "Connected" for the timeout not to occur. This is how:
"Share&KeepSharingViaUSB.mscr" Mortscript Last edited by Menneisyys; 9th January 2008 at 06:00 PM.. |
|
#3
|
|||
|
|||
|
This script is included in the attached .zip file To use this script you must first download and install MortScript from here:
http://www.sto-helit.de/index.php?mo...=view&entry=65 or here: http://www.pocketpcfreewares.com/en/index.php?soft=1448 This is an adaptation of Xiou's Share&KeepSharing script. It turns off Wifi radio, starts hacked version of Internet Sharing app, connects and turns WiFi radio on. Once one valid connection has been made, reconnects if Internet Sharing enabled status status changes to disabled (ie. a disconnect occurs). Also, keeps device from going into standby mode, to prevent loss of WiFi connectivity. It's heavily documented so it should be fairly easy to view, modify and understand by looking at it in a text editor. Troubleshooting/Tips:
FAQ:
Last edited by Menneisyys; 9th January 2008 at 06:00 PM.. |
|
#4
|
|||
|
|||
Other reading of interest: Bluetooth specs: http://en.wikipedia.org/wiki/Bluetooth Internet sharing description & why Microsoft Mobile team removed Bluetooth DUN: http://blogs.msdn.com/windowsmobile/...tooth-dun.aspx The new dial-up network model of the WM5 AKU3: http://www.pocketpcmag.com/blogs/ind...&c=1&tb=1&pb=1 A tutorial of setting up and using Wi-Fi peer-to-peer (Ad Hoc) connections between Pocket PC's: http://www.pocketpcmag.com/blogs/ind...3&p=588&more=1 Dial-up Networking Through Bluetooth Under WM5 AKU3 / WM6: http://www.pocketpcmag.com/blogs/ind...&c=1&tb=1&pb=1 Unrestricted BT PAN server with the MS BT stack: http://www.pocketpcmag.com/blogs/ind...&c=1&tb=1&pb=1 Links for developers/hackers : Sample for using Internet Sharing API: http://groups.google.com/group/micro...?lnk=st&rnum=1 Configurable TCP/IP Configuration Parameters in WinCE 3.0: http://msdn2.microsoft.com/en-us/library/ms881801.aspx Controlling the Radio Devices: http://www.teksoftco.com/articles/ar...diodevices.htm 802.11 WLAN WiFi : Power Mini FAQ - Windows CE: http://blogs.msdn.com/cenet/archive/...indows-ce.aspx WiFi toggling fix: http://forums.sbsh.net/index.php?sho...hreaded&start= New Windows Mobile 6 State and Notifications Broker State Values: http://www.pluralsight.com/blogs/jim.../20/46866.aspx Internet Connection Sharing for Microsoft Windows CE MSDN documentation: http://msdn2.microsoft.com/en-us/library/aa924710.aspx http://msdn2.microsoft.com/en-us/library/ms901927.aspx http://www.microsoft.com/technet/arc....mspx?mfr=true Thanks/Credits: Chainfire - For his awesome WMWifiRouter application. fluxist - For the original hack! Menneisyys - For his blogging on the subject. Xiou's - For his Share&KeepSharing script. gthing - For the XDA-Developers Hermes Accesspoint Wiki. luv2chill - Sprint Mogul Internet Sharing Connect Fix. (post by luv2chill). electronicrice - Multi-NAI disable hacks for the Mogul Final Thoughts/Notes: fluxist's tutorial instructs you to set the IP address to 192.168.1.1, I instruct you to set it to 192.168.0.9. This is so it matches up to what I found in "intshare.dll". When I was testing sometimes my laptop would get a 192.168.0.0 network address, even when my mobile device was statically set to a 192.168.1.0 network address. My expertise is in network/system administration/repair and software development. I can easily create code, but when it comes to hacking someone else's compiled code, I'm a complete novice. The ideal solution is if a one click solution could be written to change the WiFi configuration to Ad Hoc, set a static IP address, connect to the Internet with the Internet sharing app, have it stay with a status of "Connected", and reconnect on loss of connection. I'm figuring a skilled hacker/cracker should be able to patch "intshrui.exe", where I believe the actual 10 minute time out exists, and get rid of it. When opening this file in a Hex editor, I noticed the strings "HostConnectTimeout" and "CellConnectTimeout" inside. Another solution would be to figure out the undocumented APIs to build a new Internet Sharing application. intshare.dll exposes the following exports: InternetSharingEnable, InternetSharingDisable, RegisterForInternetSharingNotifications, and DeregisterForInternetSharingNotifications. ipnat.dll exposes the following exports: IPNat, LanaUp, NAT_Close, NAT_Deinit, NAT_IOControl, NAT_Init, NAT_Open, NAT_Read, NAT_Seek, NAT_Write, and NatConfigure. The included "Share&KeepSharingViaUSB.mscr" Mortscript uses vjvolubilis.exe (available at http://www.vijay555.com/?Releases:VJVolubilis) to toggle the Wifi radio off and on, but this app is not compatible with the HTC Mogul. It would be great if someone can suggest a program that would work with Mortscript and the HTC Mogul. -------------------- Changelog: v0.2
v0.1
Last edited by TalynOne; 5th November 2007 at 07:32 AM.. |
|
#5
|
|||
|
|||
|
All I can say is Wow. Thank you very much for the effort and time that you put into creating this. I am currently using an Athena and the files and tuturial that you setup work great. Thanks for the work. It makes my Athena just that much better. I will let you know if I run into any problems.
|
|
#6
|
|||
|
|||
|
Great, congrats, will frontpage this!
__________________
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE. |
|
#7
|
||||
|
||||
|
Awesome, thanks.
|
|
#8
|
|||
|
|||
|
wow...thanks a million
don't dare read it now, but wow...thanks...speechless
__________________
If the best things in life are free, why are the next best so expensive... |
|
#9
|
|||
|
|||
|
thanks for all the time and effort you put into this. you definitely went out of your way to make sure this was easily understandable and complete. i applaud you for your hard work.
|
|
#10
|
|||
|
|||
|
great tutorial, my only question is when would you use this. When you have a laptop with no wireless card?
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|