Wifi Client (WLAN Driver) Tuning - may solve connection problem - Huawei Ideos X5 U8800

Hi Guys,
If you experience Wifi connection problem, you may want to try tuning the WLAN driver. In fact, I found that the default settings are inappropriate for a consistent and stable connection. So, I'd like to share how I got through the problem.
1. Root your phone. Download and install Root Explorer or ES File Explorer (Explorer).
2. Make sure you manage how to use the Explorer as a tool to modify files in the /system folder.
3. Using the Explorer, browse to /system/etc/firmware/wlan/qcom_cfg.ini
4. Make a backup if you wish. Most of the parameters inside need not be changed except the followings:
a. gTxPowerCap=30 (change to 60 increases the TX power)
b. gDot11Mode=auto (change to n to always connect as n, but if you sometimes want to use g, don't change this)
c. You may wish to play around with the other parameters as well
5. Now save the file.
6. Browse to /system/etc/firmware/wlan/hostapd_default.conf
7. Again make a backup copy.
8. This is a long file. So please hang on. Amendment of the following is recommended:
a. max_num_sta=2007 (change to 10 to only display 10 wireless AP)
b. channel=6 (change to 0 can solve most wifi connection problems)
c. You may wish to play around with the SSID options such as disabling SSID broadcast.
9. Cheers !

The changes to hostapd_default.conf will only affect using your phone as a wifi access point. But the first set of changes are worth looking at.

Thanks for this BookBu,
I've constantly been having dropouts on my wifi irrespective of ROM. I've used void, B160, even stock and still I constantly have dropouts. I only made the TX power change but I'll see how it goes.
It seems to be a problem that nly affects a few users, so if it continues to happen I will change my phone as I only just bought it as it may be a hardware problem. My router at home isn't the best either so hard to contribute to whats actually causing it.
Would doing this cause more power requirements for the battery? Just out of sheer logic. Would it be significant? I don't have wifi on all the time only when downloading so it's not that big a deal for me but I'm just curious

Yes,I think boosting up the transmission cap should make the hardware draw more power from the battery. However, the hardware will enter into idle state in which no power is wasted when not in use. From my experience, the idle time is about 50 to 60 % Just imagine that you must use a more powerful flash light if you wish to see far things in the dark.
Sent from my IDEOS X5

Related

Internet Sharing over Wifi-Chainfire's WMWifiRouter v0.80 Ooo Pretty (Dec-10-2007)

Note that the NEW thread is at http://forum.xda-developers.com/showthread.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:
If you use this application, NO hacked .dlls are are needed/used. Ignore my (TalynOne's) tutorial, except for any sections referenced in Chainfire's notes below.
Make sure you have a working version of Internet Sharing installed, and tested, before trying to share it via WiFi.
WMWifiRouter info from ChainFire:
Changelog:
v0.80
Changed interface to use big icons and animations
Added new program icons, still needs some work though
Added option to make the log visible
Added about screen (with new logo)
Added options to create/remove shortcut in your program menu
Added extra registry backup/restore functionality
Added detection for ICS, with the optional error message
v0.76
Made "Unattended mode" the default power saving mode (seems to work for everybody)
Tweaked clean-up code
v0.75
Changed the power tweak with two different power saving modes: "idle" and "unattended". This fixed the power tweak for all users as far as I can tell.
v0.74
Changed the way ICS is launched and forced to connect (hopefully this will end the manual-connect issue once and for all)
Added code to prevent multiple instances
Added an icon
v0.73
Adjustments in power tweak
Adjustments in timings
Added registry tweaks for Sprint users
Put the configurable options in a menu
Added some code that cleans up your registry if the program crashed or you needed to soft-reset
Code cleaned up
v0.7
Added a power tweak
Made start sharing on start configurable (handy for troubleshooting)
Made quit when ICS quits configurable (handy for troubleshooting)
Added option to reconnect data connection when it drops
v0.6
Maintenance update, no new features added. The sole difference is that I rebuilt WMWifiRouter using a different widget set. The executable dropped 14-fold in size from 1.25mb to 93kb. This results in the application loading faster, consuming less storage, as well as less memory when running. This widget set is also lighter on the CPU, though I do not think that will be noticeable.
v0.5
Just a small maintenance update. In short, the app has simple become more responsive / usable:
App should be more responsive and load faster
'Loading' indicator is now used
Screen Toggle is disabled, as with further testing it causes too many problems
v0.4
Back to basics, all 'hacked files' removed. The name of your WiFi interface _should_ no longer matter.
New way to get around the 10 minute time out problem
Screen Toggle function added. Turns the screen off without disconnecting WiFi
WLAN state is recorded on start and restored on exit. So if you had WLAN turned on before you started WMWifiRouter, it will be turned on again after WMWifiRouter is done cleaning up after itself
More beers drank while making this version than during any other version!
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:
Remove any old WMWifiRouter files you have
Follow the installation instructions
Installation:
Download the new zip HERE.
Unpack the zip file on your PC somewhere
Copy the WMWifiRouter.exe files to your mobile device
Usage:
Make sure you have an Ad-Hoc WiFi network configured. If not, follow TalynOne's instructions in the start of this thread.
Run WMWifiRouter.exe
Wait. WMWifiRouter does it's best to start ICS and initiate the connection, but this can take a few seconds. If the "ICS Status" label at the top if the WMWifiRouter screen says "Connected!", all should be well.
Usage Notes:
WMWifiRouter does it's best to launch ICS and initiate the connection, but I have noticed once or twice it didn't actually connect. When this happens, just task-switch to ICS and click "Connect" manually.
As a different hack is now used to prevent the 10-minute timeout problem, no hacked DLL's are used anymore, and your normal ICS tool is used. This does however lead to the ICS program screen saying you should "check your usb-cable" instead of it saying "connected". Don't worry about it
If your phone has a hardware WLAN switch (HTC Mogul), put this in the ON position before starting WMWifiRouter
Sets the IP of your WiFi to 192.168.0.1, which may break operation of regular USB cable Internet Sharing. If you have trouble getting regular USB Internet Sharing to work, read the FAQ titled "Help, when I go back to the non hacked version of Internet Sharing to tether via USB, it no longer works!", in TalynOne's tutorial for a possible fix.
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:
A Windows Mobile device with a working version of the Internet Sharing application (introduced in Windows Mobile 5 AKU3).
The ishare_over_wifi_usb_edition_v0.2.zip archive attached to the bottom of this post.
A hacked "intshare.dll" that's been modified to share you connection via WiFi through the USB selection in the "Internet Sharing" application, for the WiFi radio on your mobile device. Look at FAQ below for a list of included hacked .dlls, and the known mobile devices that they are for.
A client device that supports Ad Hoc WiFi networks.
Setup Summary
Setup an Ad Hoc WiFi connection on your mobile device
Set a static IP address on your WiFi device of "192.168.0.1" with a subnetmask of "255.255.255.0".
Setup an Ad Hoc WiFi connection on your client device
Download/uncompress the contents of ishare_over_wifi_usb_edition_v0.2.zip to a folder on your mobile device (eg. \Program Files\WiFiShare).
Copy the correct hacked "intshare.dll" into the same folder as you created in the above step (so it's in the same folder as "intshrui.exe").
Connect Summary
Make sure the Wifi radio is off.
Run the new "intshrui.exe", make sure USB is selected from the list, and press "Connect" (left softkey).
Turn your Wifi radio on.
Connect with your Ad Hoc client device (Laptop, PSP, etc...) and enjoy the INTARWEB!
Optional Steps
Setup a shortcut to the new "intshrui.exe" from the archive.
Setup a shortcut to the Wi-Fi control panel item.
Setup and create a shortcut to the included Mortscript ("Share&KeepSharingViaUSB.mscr").
Apply the workaround to overcome the 10 minute connection timeout after connecting with the Internet Sharing app.
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:
Manually creating a shortcut link to it ("21#ctlpnl cplmain.cpl,17").
Going to the "Wi-Fi Settings Shortcut" folder in the .zip package and installing the "Network Cards ShortCut.cab".
Setting up an Ad Hoc WiFi connection on your mobile device
Make sure your WiFi radio is on.
Go to Start->Settings->"Connections" tab.
Select "Wi-Fi" applet.
On the "Wireless" tab, select "Add New...".
Pic
Type any network name you would like for your Ad Hoc network (eg. WMobileAdHoc)
Make sure the "This is a device-to-device (ad-hoc) connection" option is checked.
Pic
Select the "Next" button.
On the "Configure Network Authentication" screen, select "Open" for the Authentication type, and "Disabled" for Data Encryption. For the purposes of testing, lets verify the connection works without encryption, if it does, you can modify your Ad Hoc connection properties later to enable the encryption mode of your choice.
Pic
Select the "Next" button.
Select "Finish" on the final screen.
Pic
Configuring a static IP address on your WiFi device
Go to Start->Settings->"Connections" tab.
Select the "Wi-Fi" applet.
On the "Network Adapters" tab, select your WiFi device (for the HTC Mogul this is the item listed as "IEEE 802.11b/g Compatible Wi-Fi Adapter").
Pic
On the "IP Address" tab, select the "Use specific IP address" radio button. For the IP address enter the value "192.168.0.9" with a Subnet mask of "255.255.255.0".
Pic
OK the dialog.
Connecting to your Ad Hoc WiFi connection on your mobile device
Make sure your WiFi radio is on.
Go to Start->Settings->"Connections" tab.
On the "Wireless" tab, to avoid automatically connecting to other infrastructure WiFi networks in the area make sure, under the "Network to access:" section, to select the "Only computer-to-computer" option.
If you only have one Ad Hoc network defined, Windows Mobile should now attempt to automatically connect to it. If you have multiple Ad Hoc networks defined, or to manually connect to your Ad Hoc connection, in the list of the available connections, tap-and-hold the just added network, and select "Connect" from the context menu.
Pic
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
From the attached zip file copy the files "intshrui.exe", "ipnat.dll", and optionally "Share&KeepSharingViaUSB.mscr" to a new folder on your device (eg. \Program Files\WiFiShare).
Copy the hacked "intshare.dll" for your WiFi device from the "hacked_dlls" folder in zip file, into the folder you created in the previous step. Read the FAQ question "Which WiFi radios have you included a hacked intshare.dll" below to figure out which hacked .dll you should use.
Create a shortcut to "intshrui.exe" on your start menu for easy future access.
Connecting & Sharing the Internet via Wifi
At this point you should have already setup your Ad Hoc WiFi connection, and set a static IP address for your WiFi device. If you haven't already, do so now.
Make sure the WiFi radio is off.
Start the new "intshrui.exe" Internet Sharing application.
Make sure "USB" is selected (NOT Bluetooth PAN!)
Press the "Connect" button (left softkey).
Turn the WiFi radio on.
Ignore the fact that the satus displays "Check USB cable connection". This is normal.
Pic
At this point you can connect your client machine to your Ad Hoc network, and it should receive an IP address from the DHCP service running as part of the "Internet Sharing" application. You are now ready to enjoy the glories of the Internet!
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:
Make sure "Internet Sharing" is active and connected, but the status message still says "Check USB cable connection".
Pic
Go to Start->Settings->"Connections" tab.
Select the "Wi-Fi" applet.
On the "Network Adapters" tab, select your WiFi device (for the HTC Mogul this is the item listed as "IEEE 802.11b/g Compatible Wi-Fi Adapter").
Pic
At this point we need to change something about the IP configuration that won't matter/affect anything, such as the alternate WINS address. It needs to be different from the current configuration or else the settings won't apply, which is needed for this workaround. On the "Name Servers" tab, select the "Alt Wins" entry and enter an arbitrary, unused, IP address value such as "192.168.0.253".
Pic
OK the dialog.
Go back to the "Internet Sharing" application and the status should now display as "Connected"! The timeout should no be disabled for this connection session.
Pic
I've tested this many times and have been on the Internet for more than 2 hours without a disconnection in this state! If you get disconnected for any other reason you will have to reapply the workaround again. Remember to change the IP address to a different value so that the change applies, alternating between "192.168.0.253" and "192.168.0.254" should work fine. It just needs to be different value from the immediate previous setting. I've tried many different things to get the status to change to "Connected" via other methods, this is the only one I so far found to work.
"Share&KeepSharingViaUSB.mscr" Mortscript
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?module=download&action=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:
My connection seems flaky/slow, how can I fix it?
If you have Bluetooth radio is on, try turning it off. On some devices, such as the HTC Mogul, the antenna for the WiFi and Bluetooth devices are shared, and WiFi performance can be greatly degraded when both are on. I've personally experienced a situation where I've been connected to a regular WiFi network connection, and when transferring files, the transfer speed was terribly slow. Turning off Bluetooth greatly sped up the file transfers.
Don't place your mobile device too close to the device you're connecting to. If the devices are too close your connectivity could get flaky.
Upping the power level of the WiFi device may help (at the sacrifice of battery power drain). On the HTC Mogul this can be done by going to Start->Settings->"Connections" tab and selecting the "Wireless LAN" applet, then on the "Power Mode" tab, slide the Power Save Mode slider all the way to the left.
You stay connected via WiFi, but Internet Sharing gets disconnected every 10 minutes
Make sure you're using the 10 minute disconnect workaround documented above. Also, you can try the included Mortscript (Share&KeepSharingViaUSB.mscr), or better yet, use Chainfire's WMWifiRouter application.
Help, when I go back to the non hacked version of Internet Sharing to tether via USB, it no longer works!
For some reason the IP address of your virtual USB ethernet device gets blanked out sometimes, to fix this:
Go to Start->Settings->Connections Tab->Wi-Fi applet
On the Network Adapters tab, choose "Remote NDIS Host"
Set the IP to 192.168.0.2
Set the Subnet Mask to 255.255.255.0
This doesn't work, what else can I try?
Read the FAQ "My device is not in the list and/or I don't know what the device name for my WiFi device is, how do I find out?" to make sure that a hacked .dll exists for your device and is copied into the same folder as "intshrui.exe". If one doesn't exist you can request one be made by posting in this thread, with the WiFi identifier of your device (please provide the name of your device too). You can also create your own hacked .dll by reading the FAQ "How did you hack intshare.dll?".
Try Chainfire's applicaton, available at the top of the thread HERE
Try fluxist's methods HERE (try the non hacked .dll method first)
FAQ:
How is this different from fluxist's hack?:
It redirects USB instead of Bluetooth for sharing the Internet Connection, and works of an independent copy of intshrui.exe, so none of your original files/functionality gets effected. By redirecting the USB functionlity, instead of Bluetooth, you don't have to deal with the Bluetooth visibility prompt, and your Bluetooth radio doesn't get turned on by the Internet Sharing application. On some devices, such as the HTC Mogul, the antenna for the WiFi and Bluetooth devices are shared, and WiFi performance can be greatly degraded when both are on. I've personally experienced a situation where I've been connected to a regular WiFi network connection, and when transferring files, the transfer speed was terribly slow. Turning off Bluetooth greatly sped up the file transfers. Also the method allows for the 10 minute timeout elimination workaround described above. More information is located in the FAQ "How did you hack intshare.dll?".
Why would I want to share my phone's data connection over WiFi, as opposed to over Blueooth or USB?
There are many reasons, including:
With 3G technologies, such as EVDO, phone data speeds can easily exceed what Bluetooth supports (Bluetooth v1.2 - 1 Mbit/s, Bluetooth v2.0+EDR - 3 MBit/s). This is not counting the overhead taken by the protocol itself.
The ability to share with multiple clients. I tested with my laptop and a Dell Axim X50V connected to the Ad Hoc network, and both were able to use the shared connection on the Windows Mobile device at the same time just fine!
WiFi data communication can be encrypted with industry standard encryption, Bluetooth sharing is not.
WiFi range tends to be typically much longer than most Bluetooth devices.
You may want to share your data connection with a device that does not have Bluetooth PAN or USB Host connectivity, but can connect to Ad Hoc WiFi devices, such as an iPOD Touch.
By using this will I be charged by my phone carrier?:
Generally, this will incur the same charges as using the Internet on your phone. If you have an unlimited data plan, you should be fine. You are responsible for any charges you may incur due to lack of sufficient testing.
Can secure my WiFi connection ?
Sure, when setting up your Ad Hoc connection just enable an encryption method (such as WEP or WPA). Make sure the encryption method you choose is supported on both your Windows Mobile and client device.
Which devices support Ad Hoc networks?
Almost every device that supports normal Wifi networks, including the Sony PSP, Apple iPhone, and Apple iPod Touch.
I have a SmartPhone, how do I set my IP Address?
I don't have a SmartPhone, but luckily PocketPC Expert Menneisyss does, and has found a solution. Since I don't have a SmartPhone I'm going to plagiarize his solution for you here:
Download/install the IP profile Manager CAB file HERE (mirrored it HERE), which makes it possible to fill in the IP addresses on MS Smartphone (Windows Mobile Standard) devices as well. That is, with this tool, you can use MS Smartphone models having Wi-Fi support like the HTC Dash / s620 and Vox / s710. A poster reported success with the HTC Dash / s620. With the Vox, I haven’t managed to make internet sharing work, but you may have better luck.
After installing and starting the application, you’ll need to select your WiFi networking device (as can be seen in the following screenshot, it’s "TNETW12511" on the HTC Vox; if your model has the default TIACXWLN1, then, no such dialog will be presented):
Pic
You'll then need to select Options / Add Profile; there, just fill in the two numbers (IP:192.168.0.9 / Subnet Mask:255.255.255.0), making sure you also give the profile a name so that it is saved and becomes selectable:
Pic
Then you can select the new profile:
Pic
And restart the device as prompted:
Pic
After restart, follow the exact same procedure as on the Pocket PC.
How did you hack intshare.dll?
I took fluxist's hacked .dlls, and using a HEX editor replaced every instance of the string "RNDISFN1" (which refers to the USB device) with the WiFi identifier. If the string was too long and encroached into the "BTPAN1" string, then I moved the "BTPAN1" string over. I have no idea if this breaks the functionality of using the "Blueooth PAN" entry in the Internet Sharing app for sharing over WiFi, I haven't tested it, and you should never use it regardless. The top three occurrences of the WLAN identifier (TNETW12511 for the Mogul) are related to my USB hack, the last (fourth) occurrence of the WLAN identifier is a left over from fluxist's Bluetooth hack.
This hack is different from a fluxist's registry change .dll hack. In my hacked .dll I replaced EVERY reference to the USB device (RNDISFN1), to the WiFi device in question (TNETW12511 for the Kaiser/Mogul). So if you just perform a registry change with the original version of the intshare.dll, the "Status" messages the "Internet Sharing" app looks for/displays are related to the USB device. In my hacked version, the "Status" messages the app looks for/displays are related to the actual WiFi device. So changing WiFi IP address properties, for the 10 minute workaround, while running the non hacked version will have no effect, because the non hacked .dll version is monitoring the USB device, not the WiFi device.
For which WiFi radios have you included a hacked version of intshare.dll?
TIACXWLN1
-Artemis / HTC P3300
-Pocket Loox 718/720
-Hermes / HTC TyTN / XDA trion / MDA Vario II / VPA Compact III / SPV M3100 / Dopod CHT 9000 / Dopod 838 Pro
-Athena / x7500
TNETW12511
-HTC Titan / Sprint Mogul / Verizon XV6800 / P4000
-HTC TyTN II / Kaiser / AT&T Tilt / 8925 / P4550
-Elf / HTC Touch
-HTC Vox
TNETWLN1
-Universal / Qtek 4040 / XDA-IV / SPV M5000 / MDA-IV / i-mate 2005
-HTC Wizard / Qtek 9100 / i-mate K-JAM / MDA Vario / O2 XDA Mini S / SPV M3000 / Cingular 8125 / T-Mobile MDA / Dopod 838 / VPA compact II
WLAN11g1
-Terralogic Toughnote DA05-M Ruggedised PDA
SWLD25SP1
-E-ten Glofiish X500
-Samsung SGH-i600
GSPI86861
-Sharp EM-ONE
CheetahSDN1
-O2 XDA Flame
CF8385PN1
-O2 Atom LIFE
My device is not in the list and/or I don't know what the device name for my WiFi device is, how do I find out?
Go to Start->Settings->"Connections" tab.
Select the "Wi-Fi" applet.
On the "Network Adapters" tab, make note of the name of your WiFi device (for the HTC Mogul this is the item listed as "IEEE 802.11b/g Compatible Wi-Fi Adapter").
Using a registry editor, search the registry using the name you noted in the previous step. The second occurrence (it's slightly different from the first, it has a suffix "1" after the registry key name, and also has a "Wireless" value) will be something like this:
Code:
[HKEY_LOCAL_MACHINE\Comm\[b]TNETW12511[/b]]
"DisplayName"="IEEE 802.11b/g Compatible Wi-Fi Adapter"
"Group"="NDIS"
"ImagePath"="TNETW1251.dll"
"Wireless"=dword:00000001
Look up the name of the subkey, which is [HKEY_LOCAL_MACHINE\Comm\TNETW12511]. Of this, you’ll only need the last subkey name component (TNETW12511).
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/archive/2007/04/17/why-did-we-remove-bluetooth-dun.aspx
The new dial-up network model of the WM5 AKU3:
http://www.pocketpcmag.com/blogs/index.php?blog=3&p=1415&more=1&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/index.php?blog=3&p=588&more=1
Dial-up Networking Through Bluetooth Under WM5 AKU3 / WM6:
http://www.pocketpcmag.com/blogs/index.php?blog=3&p=2121&more=1&c=1&tb=1&pb=1
Unrestricted BT PAN server with the MS BT stack:
http://www.pocketpcmag.com/blogs/index.php?blog=3&p=2230&more=1&c=1&tb=1&pb=1
Links for developers/hackers :
Sample for using Internet Sharing API:
http://groups.google.com/group/micr...4aaa543efc216f/a9c637f89b0575b6?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/article 007/radiodevices.htm
802.11 WLAN WiFi : Power Mini FAQ - Windows CE:
http://blogs.msdn.com/cenet/archive/2006/12/14/802-11-wlan-wifi-power-mini-faq-windows-ce.aspx
WiFi toggling fix:
http://forums.sbsh.net/index.php?showtopic=17139&pid=175405&mode=threaded&start=
New Windows Mobile 6 State and Notifications Broker State Values:
http://www.pluralsight.com/blogs/jimw/archive/2007/04/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/archive/wce/evaluate/sharece.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
Added hacked dll for "CheetahSDN1" (O2 XDA Flame)
Added hacked dll for "CF8385PN1" (O2 Atom LIFE)
Changed IP address in hacked intshare.dlls from 192.168.0.1 to 192.168.0.9 to prevent possible conflicts.
Changed "Share&KeepSharingViaUSB" Mortscript.
Added "StopSharingViaUSB" Mortscript.
v0.1
Initial Release
WOW!!
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.
Great, congrats, will frontpage this!
Awesome, thanks.
wow...thanks a million
don't dare read it now, but wow...thanks...speechless
another wow
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.
great tutorial, my only question is when would you use this. When you have a laptop with no wireless card?
Ack, I just realized my poor topic title. No, if you wanted to use Internet Sharing with a USB cable, just use the one built into your Windows Mobile, no hacks needed.
This is for sharing via WiFi, the USB cable doesn't even have to be connected for this hack.
MWillis561, which WiFi Radio does the Athena use (so I can document it)?
We us TIACXWLN1
specv said:
great tutorial, my only question is when would you use this. When you have a laptop with no wireless card?
Click to expand...
Click to collapse
On the contrary. When you have a non-BT PAN-capable client still able to communicate over Wi-Fi P2P networks - for example, a Symbian or a Windows Mobile phone. I've used both (Symbian: NOkia N95; Windows Mobile: a lot of different clients) in this config; they all worked great. Check out my related articles.
This is ideal for anyone with a mac running an older operating system. (i.e. 10.3)
I've spent a few hours to hack together an app that does all these things without needing any of the hack DLL's or scripts (it does all the registry changes at the right times, enable/disable WLAN at the needed times etc).
There's just one thing I can't seem to get around, and that's the 10 minute timeout thing. Just doing things manually, I can't get the 10 minute disconnect workaround to work as described (and if I can't even do that, how am I going to get it to work programmatically? ). My cable stays in 'disconnected' state. Help?
Chainfire said:
I've spent a few hours to hack together an app that does all these things without needing any of the hack DLL's or scripts (it does all the registry changes at the right times, enable/disable WLAN at the needed times etc).
There's just one thing I can't seem to get around, and that's the 10 minute timeout thing. Just doing things manually, I can't get the 10 minute disconnect workaround to work as described (and if I can't even do that, how am I going to get it to work programmatically? ). My cable stays in 'disconnected' state. Help?
Click to expand...
Click to collapse
Try doing it manually WITH the hacked .dll for the Kaiser, see if that helps.
TalynOne said:
Try doing it manually WITH the hacked .dll for the Kaiser, see if that helps.
Click to expand...
Click to collapse
Still no go!
I think I have duplicated what your 10 min fix does though, in my app. I've uploaded it to http://www.jongma.org/WMWifiRouter/WMWifiRouter.zip.
It would be great if you (or someone else) could give it a go and see how (if) it works for you, including the timeout.
Usage is simple, put the EXE on the phone. All you need to have is that ad-hoc connection set up. Run the EXE, it will do some registry modifications, turn of WLAN and start up IS. Put IS on USB and connect, the EXE should turn WiFi back on including the reconfiguration. One note though, once you disconnect in IS you have to really close IS and restart the EXE as well.
Thanks.
Ok, for the Timeout hack to work it has to be running the hacked version of the .dll, you can not simply get away with registry changes. The hacked dll does more than just set the registry. When starting your app stand alone it started the non hacked "Internet Sharing" app, which never applied the Timeout workaround properly. When starting my hacked version first, getting a valid Internet AND AdHoc connection first, and then executing your .exe it worked half the time. It seems your .exe, every other time, set the WiFi adapter to DHCP mode.
Change it so it runs the hacked version, doesn't perform any registry changes on the Internet Sharing Private/Public interface keys (since the hacked .dll already does this), and changes the ALT WINS address to a new value from its current value, make sure you don't set the WiFI adapter to DHCP at any point.
Great job! Looks like we're getting close.
TalynOne said:
Ok, for the Timeout hack to work it has to be running the hacked version of the .dll, you can not simply get away with registry changes. The hacked dll does more than just set the registry. When starting your app stand alone it started the non hacked "Internet Sharing" app, which never applied the Timeout workaround properly. When starting my hacked version first, getting a valid Internet AND AdHoc connection first, and then executing your .exe it worked half the time. It seems your .exe, every other time, set the WiFi adapter to DHCP mode.
Change it so it runs the hacked version, doesn't perform any registry changes on the Internet Sharing Private/Public interface keys (since the hacked .dll already does this), and changes the ALT WINS address to a new value from its current value, make sure you don't set the WiFI adapter to DHCP at any point.
Great job! Looks like we're getting close.
Click to expand...
Click to collapse
Same link. Updated the EXE so that it looks for intshrui in the local folder first. If it finds that it will not perform the ICS registry hacks.
You mention however that the hacked DLL's do more, I thought the only thing changed about it was the interface names? I don't see why that would be of influence (as that can be fixed through reg, as obviously with all the normal files / no hacks, I can use the app and it just works for me).
The changes applied are indeed to the WINS adapter, I do not touch DHCP. Though what you may be seeing is at the moment you disconnect, the app restores the default registry settings for the wireless adaptor, which has DHCP enabled. Furthermore I'm not entirely sure I actually have to change any value. I think the control panel application simply doesn't "apply" if there weren't any changes, force the driver to rebind the adaptor with IOCTL messages like I do now, would probably work with or without modifications.

Watch Downloaded Video on your BA from your PC streamed over WiFi

Ever thought that you could watch downloaded Video on your BA from your PC, streamed over WiFi, well now you can.
Before you start you will need a PDA with a good media player, Wireless network (WiFi), connection between your PDA and a PC, and the ability to set up a network share. The instructions below are for a Blueangel device but I am sure a smart person could adapt them for any other WM6 device.
Using Windows Mobile 6 I have Xplode’s (which includes lots of other guys work) version running at the moment on my Blueangel device.
http://forum.xda-developers.com/showthread.php?t=342142 This port of WM6 runs extremely fast on a XDA I have had for years.
I use CorePlayer http://coreplayer.com/ which seems to be the best media player going around, it plays 512x384 (AVI, DIVX) files at 29.97fps off the SD card flawlessly so the ovious next step is to stream them over WiFi. The resolution and format of video I mention is the type of format you will download most quality video off the internet. (Yes I know that my device only has a 320x240 screen, but the point is to play most downloaded video without having to convert it in any way, while within WiFi range!)
I have installed the network sharing capabilities found in cabs.rar, NetPlug.cab http://www.bigmike.it/download/cabs.rar By LGSilva
I then created a share on my home PC, (actually it already existed for my mediagate) and placed the video files downloaded into that sub directory. They are just the straight AVI files downloaded using Azureus http://azureus.sourceforge.net/ , you can use any torrent download program I am sure most of you have one by now.
I then mapped the network drive on my Blueangel to the share on the home PC, this was very easy to do, from the Settings-Connections-Network Plugin.
The rest is childs play, start CorePlayer, Open a file by browsing through Network (as opposed to My Device, or Storage Card).
Here is where my questions start, can people who have some knowledge please reply back with how well this works for them. For me video playback is about 95% Great, it video plays for about a minute then pauses for a few seconds then keeps playing. Obviously I am searching for the holy grail of 100% with pauses or dropped frames, and Super high quality. I suspect the limiting factor is the WiFi network, If I could just find a way to speed it up by 10% it would be perfect. I don’t use any encryption, and I have found that with some video and if I hold my hand still I can play video with no pause (tested over about 15minutes).
Thanks Justin. Oh and PS. If you do use this and it works please donate to Xplode below so we can keep future development of the BA WM6 going, he becoming a rare bread.
https://www.paypal.com/cgi-bin/webs...ency_code=EUR&bn=PP-DonationsBF&charset=UTF-8
Free888 said:
Ever thought that you could watch downloaded Video on your BA from your PC, streamed over WiFi, well now you can.
Thanks Justin. Oh and PS. If you do use this and it works please donate to Xplode below so we can keep future development of the BA WM6 going, he becoming a rare bread.
https://www.paypal.com/cgi-bin/webs...ency_code=EUR&bn=PP-DonationsBF&charset=UTF-8
Click to expand...
Click to collapse
What I would like to know is how you manage to start and keep WiFi running on your BA. I have asked numerous times on these boards and no one seems to know what the secret is.
I think it was xplode himself who said that the unit was buggy. Which is a pity as for people over 50, the screen seems to be an ideal size to actually look at and press buttons on.
Personally I havent even been able to load his ROM but when I have had other ROMs working, the WiFi connection was NBG. Sometimes it works, sometimes it doesn't and even when it does, it sometimes reports that it isn't running! Even worse, there seems to be no way of scanning for available networks and then choosing the one you want. You seem to have to hope that it decides to connect to yours as opposed to some other.
As for donations, I wouldn't mind donating if people responded to messages and the unit could be got working properly. I would particularly like to try VoIP on this 400 MHz unit to see if it is any better than my 190 MHz Wizard
If you are having problems with Wifi, installing Xplodes ROM, or getting replies to your posts then I would suggest doing a bit more research and searching.
I personally have had a good experience with WiFi on my BA when using 2003SE, Helmi's ROM, and now Xplode's. (lets not focus on the little issue about having to turn it on twice, or soft re-set if that's too hard).
Too set up WiFi do the following Settings-Connections-Network Cards-[Add New...] type in your SID name (the name of your own wireless LAN, if you don't know this then you can't connect) [Next] Choose your Authentication type and Data Encryption type. These settings MUST match your WiFi set up. (Auth-Open and Encrypt-Disabled is a good start but I would not recommend leaving it like that unless you have other forms of security) Hit [Next] then Finish and your done. All you need to do now is turn it on (twice).
Too turn on
Settings-Connections-Comm Manager-[hit the wifi button]
then Settings-Connections-Wireless LAN (Turn on Wireless LAN)
If there are some people out there who have had positive experiences with WiFi under WM6 then please post and let us know, especially if you have tried the video streaming challenge.
I am still trying to work out how to improve the speed by a few percent.
Why make all this effort? Go to http://www.orb.com and sign up. It's free. Then you can stream anything (audio, video, photos, etc) from your desktop to your windows mobile device no matter where you are (on the LAN or outside the house from the internet) No messing around necessary.
MJB
Fair question mbial,
There is lots of ways to do this, The obvious one I was expecting to hear was "Why not compress the files" and yes when I do that it works perfectly. It would probably work well using the software you recommend if I compressed the files too, as that would suffer the same bandwidth limitations as my WiFi if not worse. (However I would be concerned with opening up access to all my media to the internet, even if it was fairly secure).
Unfortunately I can't access the site you mentioned as my work has blocked it, so I can't comment on that further.
My Goal was to open up all of the Video content that is currently on my PC hard disk, to be able to be played on my BA. I currently watch this on the PC, or on my LCD TV via a media gate http://www.mediagateusa.com/ I just thought it would be cool to be able to do when the kids and wife are using the TV's I can still watch Video on my BA.
The answer may not even be faster WiFi, it may be new hardware WiFi router, different WiFi configuraton, different Media Player, or settings, maybe its not possible I just wanted to see if anyone else had tried this. It is soooo close to working perfectly its frustrating.
Free888 -
Trust me and check out orb...it transcodes the media on the fly to the appropriate resolution for your device so there's no need to ever compress anything. It performs better, utilizes less bandwidth, and is completely secure. (Not like I work for them, its simply a great free tool.)
MJB
Cool, I will give it a go at home over the weekend and let you know how I went.
Thanks.
mbial said:
Why make all this effort? Go to http://www.orb.com and sign up. It's free. Then you can stream anything (audio, video, photos, etc) from your desktop to your windows mobile device no matter where you are (on the LAN or outside the house from the internet) No messing around necessary.
MJB
Click to expand...
Click to collapse
I like fre88 idea, its safe and free, I know what I am doing and not depending on any other network / application.
mbial said:
Free888 -
Trust me and check out orb...it transcodes the media on the fly to the appropriate resolution for your device so there's no need to ever compress anything. It performs better, utilizes less bandwidth, and is completely secure. (Not like I work for them, its simply a great free tool.)
MJB
Click to expand...
Click to collapse
i agree..i use it for a view years and it's great
www.orb.com
greating stef
Completely baffled by what is going on but it seems to be working!
Free888 said:
Too set up WiFi do the following Settings-Connections-Network Cards-[Add New...] type in your SID name (the name of your own wireless LAN, if you don't know this then you can't connect) [Next] Choose your Authentication type and Data Encryption type. These settings MUST match your WiFi set up. (Auth-Open and Encrypt-Disabled is a good start but I would not recommend leaving it like that unless you have other forms of security) Hit [Next] then Finish and your done. All you need to do now is turn it on (twice).
Too turn on
Settings-Connections-Comm Manager-[hit the wifi button]
then Settings-Connections-Wireless LAN (Turn on Wireless LAN)
If there are some people out there who have had positive experiences with WiFi under WM6 then please post and let us know, especially if you have tried the video streaming challenge.
I am still trying to work out how to improve the speed by a few percent.
Click to expand...
Click to collapse
No, I had never tried these tricks! What I had done was to try to turn on WiFi in Comm Mgr and seen it not turn on. But as soon as I tried your method of turning it on in Settings Connections Wireless LAN, it turned on immediately (using the 5.60.00WWE ROM)
Then I installed an SJPhone VoIP software and hey presto, it seems to work immediately. Trouble routing the sound through the normal ports but I am sure I can work them out. Meanwhile I am trying to use my Wizard headset and trying to work out the delay and echos. As far as both our problems are concerned, cant you increase the speed of this BA by installing Battery Status software and increasing the clock speed? Everyone increases the speed on the Wizard from 190 MHz to somewhere around 225-240 MHz so perhaps if we did this the echos would disappear and the sound would be a bit louder?
This really does seem to be a much more advanced unit than the Wizard: Why are they not more in use? It is larger but thinner than more 'modern' versions
Free888 said:
If you are having problems with Wifi, installing Xplodes ROM, or getting replies to your posts then I would suggest doing a bit more research and searching.
Click to expand...
Click to collapse
This statement goes with all issues and will never change. It is the same all over the place. Fortunately it only appears to be extremely abused as we see the negative more than the positive.
I personally have had a good experience with WiFi on my BA when using 2003SE, Helmi's ROM, and now Xplode's. (lets not focus on the little issue about having to turn it on twice, or soft re-set if that's too hard).
Click to expand...
Click to collapse
I am not sure why, but with the 1938 build from PDAViet my wireless works better than ever, since the upgrade from 2003SE. It turns on with one click and even reconnects with no clicks after a soft boot. The only bug left is that if you let the BA turn off it cannot reconnect after you power it back on. You have to turn off wifi and then turn it back on. 2 clicks. I can live with this flaw.
Too set up WiFi do the following Settings-Connections-Network Cards-[Add New...] type in your SID name (the name of your own wireless LAN, if you don't know this then you can't connect)
Click to expand...
Click to collapse
This couldn't be more opposite of my experiences if you used a mirror. I have NEVER entered my SSID into the BA, and it always finds my access point, and any others in the area I happen to be in at the time. It asks me if I want to connect and if required asks for a key. It literally works flawlessly in this regard.
[Next] Choose your Authentication type and Data Encryption type. These settings MUST match your WiFi set up. (Auth-Open and Encrypt-Disabled is a good start but I would not recommend leaving it like that unless you have other forms of security) Hit [Next] then Finish and your done. All you need to do now is turn it on (twice).
Too turn on
Settings-Connections-Comm Manager-[hit the wifi button]
then Settings-Connections-Wireless LAN (Turn on Wireless LAN)
If there are some people out there who have had positive experiences with WiFi under WM6 then please post and let us know, especially if you have tried the video streaming challenge.
I am still trying to work out how to improve the speed by a few percent.
Click to expand...
Click to collapse
As for wifi speed improvements, the only thing I have found that may help is adjusting the power mode to best performance.
Anyone know what happened to the Wireless strength meter ???
I've just noticed that the wireless strength meter isn't working in Xplode's 6.00.0000 build ( not that I can say it was worked when I first installed it ). Anyone know what's up with that ? Is there a fix out there ?
My wireless signal strength meter definitely worked when I first installed Xplodes ROM, but after a couple of days it stoped working and has not returned.

Some (strange???) behaviours on shift

Hallo everybody!
First of all let me thamk al the people that provided us hacks 'n triks to better ****f experience: you are all great!
Now comes the difficult part of my (first) post.
I succesfully "liberated" WM on SnapVue side and even after SP1 on Vista everything seems to work fine, except for some things I'm about to ask you.
1. Is there a reason why audio is always muted on Vista side after each reboot/hybernate? It's not a big problem to make some click here and there, but I would like to know if any other user has the same issue.
2. I'm realizing that "USBTools" works only with power plug inserted. Anyone has tried to solve this problem? (Pleas note: I've read that it can be solved by changing the energy settings on Vista, putting them on "Ok, guy: eat my battery", but it really drains battery power).
3. Problems with modem under Vista. I used to surf the web using WM/SnapVue as a USB modem, but this does'nt seem to work anymore (even if WM is connected to 3G and perfectly "surfing on PIE). So my question is: how do I make Vista use my SIM as a modem?
4. From FAQ there still doesn't seem to be a solution to storage card. Any new on this? By the way: is it normal that having no file in "My Document" folder in WM I only have 4 Mb of free space for documents (it means that I have more or less 32 Mb's of Documents used... without a document in it). I tryed to discover which folder was so memory-eater with MemMaid, and I only discovered that "Windows" is 100 and more Mb's heavy...
Thank you for any hint you can give me on this
I'm really grateful to this forum for fixing all my post-SP1 issues. I recognise your point 3. Some top chaps on this forum regognised that the shift has to left in high performance power setting for the modem to stay 100% reliable. you can also create additional power settings, based on the high performance setting, and then you can edit all of the options to be the same as balanced and power saver, giving you modem reliability and battery life.
2. The above should fix this too, although I also disable the modem from control to ensure a 100% reliable connection.
Thanks to the chaps who came up with these solutions.
Some updates (or better: new questions).
Internet connection in Vista now goes through WM side, and I'm still waiting for a solution to that. But the point is: whyt can't I sync my files while surfing? I mean: I'm correctly connected to WM as I'm surfing (if I "disconnect" using USBTools internet connection disappears), but in Sync Center my "device" is disconnected and so I can't syn infos. Should I usually turn off modem in order to get sync?
Thank everybody!!!

Keeping on wifi connection while on standby

My D2 will automatically disconnect the wifi connection when it goes in standby. My old cruise would always keep the connection alive, so that it would be available immediately after turning it on. Is there a fix for this?
A google search reveals!!
http://forum.xda-developers.com/archive/index.php/t-368241.html
Edit: although that worked on my XDA Orbit 2 (Touch cruise / polaris) it dont seem to work on my Diamond 2
I found this key in the registry:
HKLM\Comm\TNETW12511\Parms\HTCKeepWifiOnWhenUnattended
and changed it from 0 to 1, but that didn't work. After a restart the value was automatically changed back to 0.
Looking around on the HD forum it seems that HD has the same behaviour. People changed that using a program called HD Tweak. I guess we need D2 Tweak...
i would also like to see a solution for this
I have experienced this problem also. If you have push internet scheduled and the phone is on standby, it retrieves the data via data connection/3G as opposed to your WiFi.
Additionally, if you take your phone out of standby, it takes a few seconds for the phone to re-establish the WiFi connection. If you are too quick to access the internet or update weather - again it will start to do this through the data connection.
Does anyone know how to resolve this?
did you try Advanced Configuration Tool? You can enable/disable data connections, set them to always on and enable WiFi on standby.
tomkarb said:
did you try Advanced Configuration Tool? You can enable/disable data connections, set them to always on and enable WiFi on standby.
Click to expand...
Click to collapse
Does it exist for D2 too already?
Yeah got it and it works on D2, the enable WiFi option is there
You could also go to Settings -> More -> Connections -> Wi-Fi -> Wireless networks -> Menu -> Advanced, there you can change how long the Wi-Fi radio should be on if not connected to a wireless network.
Unfortunately, www.touchxperience.com is down, so I can't download it now.
helinus said:
You could also go to Settings -> More -> Connections -> Wi-Fi -> Wireless networks -> Menu -> Advanced, there you can change how long the Wi-Fi radio should be on if not connected to a wireless network.
Click to expand...
Click to collapse
Thanks for the tip. This doesn't solve my problem, but it's good to know.
I found a 3.3 cab elsewhere. What option exactly did you change to keep wifi on on standby? The only logical one I found is Network >Turn off wi-fi if no activity. I changed that from yes to no, but that didn't help...
I know how to do it but it requires some code to accomplish - I actually tested this yesterday on my TD2 (the advanced config trick does not work with TD2). Unfortunately I do not have the TD2 with me right now ... Perhaps I'll muck with it a bit later anyways, else you'll have to wait 'til I have the TD2 in hand again Monday or Tuesday.
It takes a ****load of power to do this though, and I'm not sure if it works in true suspend... it works for unattended mode though.
Well, I found the option in advanced config 3.3, hidden under "More options". But indeed it doesn't work. Wifi still disconnects on standby and starts reconnecting after standby. If you have a solution Chainfire, I'd be happy!
Tomkarb, can you confirm that the Advanced Config trick really works for you?
Isn't there anyone that has a solution? The Schapps advanced config thing just doesn't work
The solution is in here:
http://forum.xda-developers.com/showthread.php?t=524490
Thanks! That works indeed!
Code:
[HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms]
"HTCKeepWifiOnWhenUnattended"=dword:00000001
I never found that out, because I always soft reset immediately afterwards, thinking that was necessairy for the change to become effective. The soft reset wiped the change away though.
I've made a cab that changes the registry value to 1. It also copies the cab to the installationdir and adds a shortcut to it in the start menu. So you just have to run it from the start menu after each soft reset/restart (if you need wifi on standby). It only works when you execute it when wifi is off. Turn it on after installation.
There's a great freeware that i use called WkTask, which is a launcher, among other things, and it has the option of turning off the screen, but not putting the phone into standby. Disable the automatic power off and turn off the screen, this should solve your problem. However, i'm pretty sure your battery will drain a whole lot faster with the device never entering standby and the wifi on.
For added functionality, create a shortcut in the windows directory called 'long_power.lnk', and point it at the same file that WkTask uses (you'll see the path when you add it to the launcher, its a 'command call' btw). Then you can press and hold the power button to turn the screen off instead of powering off the phone (which is something i never do, does anyone?)
Hope that helps.
Thanks for the tip. I don't use wifi very often, only sometimes to remote control my pc. So most of the times I want it to go in standby and save as much power as possible with wifi off.
BTW, another solution for some of you may be to use a different ROM. I'm using Topaz Essentials 1.6 ROM (TESS1.6) from chef Aman now, and this ROM doesn't have the wifi turning off problem.
deechte said:
Thanks! That works indeed!
Code:
[HKEY_LOCAL_MACHINE\Comm\TNETW12511\Parms]
"HTCKeepWifiOnWhenUnattended"=dword:00000001
I never found that out, because I always soft reset immediately afterwards, thinking that was necessairy for the change to become effective. The soft reset wiped the change away though.
I've made a cab that changes the registry value to 1. It also copies the cab to the installationdir and adds a shortcut to it in the start menu. So you just have to run it from the start menu after each soft reset/restart (if you need wifi on standby). It only works when you execute it when wifi is off. Turn it on after installation.
Click to expand...
Click to collapse
Does not work on my HD2

Turn off Data Connection when idle

I'd like my phone to use the data connection to download weather info etc., but I'd also like it to turn it off when idle to save power. Is there an app to do this?
thanks
Click on the 3G icon on the top bar, then when the notification screen opens click on the 3G icon again, that opens the Comm Mgr screen, turn off the data connection.
OR, are you wanting an app that will do it automatically after XX min?
It should automatically disconnect after usage. I find my data connection active for like 23 hours and such. Big battery hog when it isn't even being used.
On my Fuze, there was a registry edit which would set your END key to disconnect a data connection while on the homescreen in the default position. Worked really well except it doesn't work on my new AT&T Pure for some reason.
A single tap would work exactly like the END key currently does. Pretty nice.
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\Phone]
"Flags2"=dword:0000000A
Flags2: "Enables a disconnect button for GPRS connections to appear in the connectivity list. Also enables End key to disconnect GPRS."
[EDIT]
Actually it may still work. I just found that further down in my app.reg of my Custom folder, I had it set again, to 16.
[EDIT2]
Yup. Changing the value to A (A=10) works like a champ. It doesn't affect any normal End key functions either.
Alternatively, if you have TD2 Tools (which you should, great program), then under the Power tab, there is an option to 'Auto D/C Data Connection'. At least there is in 2a, v 2.0.3552.42948.
Yes, I want an app to disconnect the data connection after a few mins/secs. It should save power.
I will try the TD2 tools, I already had it but never thought about looking if it had this option built in.
Thanks to you all!
EDIT: It worked, it disconnects after a few minutes now. Does anybody know how to disable wake device when receiving SMS? The option is turned off, but still the device wakes itself.
arrow224 said:
Alternatively, if you have TD2 Tools (which you should, great program), then under the Power tab, there is an option to 'Auto D/C Data Connection'. At least there is in 2a, v 2.0.3552.42948.
Click to expand...
Click to collapse
player911 said:
It should automatically disconnect after usage. I find my data connection active for like 23 hours and such. Big battery hog when it isn't even being used.
On my Fuze, there was a registry edit which would set your END key to disconnect a data connection while on the homescreen in the default position. Worked really well except it doesn't work on my new AT&T Pure for some reason.
A single tap would work exactly like the END key currently does. Pretty nice.
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\Phone]
"Flags2"=dword:0000000A
Flags2: "Enables a disconnect button for GPRS connections to appear in the connectivity list. Also enables End key to disconnect GPRS."
[EDIT]
Actually it may still work. I just found that further down in my app.reg of my Custom folder, I had it set again, to 16.
[EDIT2]
Yup. Changing the value to A (A=10) works like a champ. It doesn't affect any normal End key functions either.
Click to expand...
Click to collapse
Are both working on a TD2? I mean either the registry tweak or the TD2 Tool?
I personally prefer the reg tweak, however I don't understand the content of your EDIT note: "changing WHAT to 16"?? and your EDIT2 note : "changing the value to A" is in hex or dec? And do you mean that pressing the END hardware key will disconnect data connection now?
Hi
The data connection being on does not drain the battery. You have a network connection to the cell all the time otherwise you wouldn't receive phone calls, the data connection symbol just means your phone also has an IP address, that doesn't take any power.
If anything the connection remaining on saves power as each time you need a connection one doesn't have be created. Creating a connection uses more CPU cycles and radio power talking to the cell to open a network connection and then more to drop it.
The network operators also want the connection to remain on as it is less load on their networks than having them continually created then dropped.
More info here: http://blogs.msdn.com/windowsmobile/archive/2006/07/14/666203.aspx
Regards
Phil
you just need to modify these two entries (was written here many times)
Hkey_local_machine\Comm\ConnMgr\Planner\Settings
1. Change in CacheTime DWORD Data to 15 (Base is Dec value)
2. Change in SuspendResume the value to GPRS_bye_if_device_off
Make a soft reset.
The data connection should turn off after 15 sec if idle. It should also turn
off after you press the red key, or turn off the screen.
Try it.
Both solutions (reg mod and TD2 Tools) work most of the time, they are in fact the same. However I noticed 2 curious behaviours in which the timeout is not respected.
1) When I update weather via DataConnection, it does not autodisconnect after the preset time...it will when device goes in standby mode.
2) Data Connection stays on until Opera is open (even if not used).Once closed, timeout starts, and it's not that bad after all.
Can anyone confirm?
I used the TD2 tools, and i'm not experiencing these issues.
PhilipL said:
Hi
The data connection being on does not drain the battery. You have a network connection to the cell all the time otherwise you wouldn't receive phone calls, the data connection symbol just means your phone also has an IP address, that doesn't take any power.
If anything the connection remaining on saves power as each time you need a connection one doesn't have be created. Creating a connection uses more CPU cycles and radio power talking to the cell to open a network connection and then more to drop it.
The network operators also want the connection to remain on as it is less load on their networks than having them continually created then dropped.
More info here: http://blogs.msdn.com/windowsmobile/archive/2006/07/14/666203.aspx
Regards
Phil
Click to expand...
Click to collapse
This is good advice. Has anyone every experienced more battery drain if the the data connection is "left open"?
In any case, even if you "disconnect" data every time, if an app wants to access the internet, doesn't wm reconnect automatically again? (unless you use modaco "nodata" app or similar to inhibit it)
Didn't notice more battery drain with a data connection left open and you're right: if an app needs connection then it will automatically be opened. In my case I want auto disconnect because, even though I have 400 monthly prepaid connection hours, which is enormous for a phone, it annoys me to waste them while topaz is in my pocket.
Wow, thaks for the great tip Phil!
I have a prepaid 150MB limit, so it shouldn't bother me leaving it on. The 400 monthly hours sualc mentioned is indeed more of a problem.
BumAround said:
Are both working on a TD2? I mean either the registry tweak or the TD2 Tool?
I personally prefer the reg tweak, however I don't understand the content of your EDIT note: "changing WHAT to 16"?? and your EDIT2 note : "changing the value to A" is in hex or dec? And do you mean that pressing the END hardware key will disconnect data connection now?
Click to expand...
Click to collapse
The problem mentioned above, about auto-disconnecting when programs are being used... this is why I program my reg edit to manual disconnect.
@BumAround: Set the value to "0000000A" (which is hex). "16" was my default value, which was also Hex.
This will do 2 things. It creates a "Disconnect" button from the PopUp Connection window and also allows the END key to disconnect only while at the Today screen in it's default position.
For example, if you are browsing Opera and press the END key... it will only take you back to the Today screen and won't touch your data connection. If your at the default position (the Clock tab on both Manila and Titanium), pressing END again will stop the data transmission.
It is a very good solution to the OP's problem by allowing you to disconnect the data connection easily, at will, and without the need for extra programs.
player911 said:
The problem mentioned above, about auto-disconnecting when programs are being used... this is why I program my reg edit to manual disconnect.
@BumAround: Set the value to "0000000A" (which is hex). "16" was my default value, which was also Hex.
This will do 2 things. It creates a "Disconnect" button from the PopUp Connection window and also allows the END key to disconnect only while at the Today screen in it's default position.
For example, if you are browsing Opera and press the END key... it will only take you back to the Today screen and won't touch your data connection. If your at the default position (the Clock tab on both Manila and Titanium), pressing END again will stop the data transmission.
It is a very good solution to the OP's problem by allowing you to disconnect the data connection easily, at will, and without the need for extra programs.
Click to expand...
Click to collapse
Wow! Cool! You mean pressing END (hardware) key twice, once to bring the phone to the Today main screen, and one more time to disconnect data connection at will? Sweet!
Hi Sualc, the same "problem" for me updating weather (using option for data connection inTD2 Tools)
Not sure
PhilipL said:
Hi
The data connection being on does not drain the battery. You have a network connection to the cell all the time otherwise you wouldn't receive phone calls, the data connection symbol just means your phone also has an IP address, that doesn't take any power.
If anything the connection remaining on saves power as each time you need a connection one doesn't have be created. Creating a connection uses more CPU cycles and radio power talking to the cell to open a network connection and then more to drop it.
The network operators also want the connection to remain on as it is less load on their networks than having them continually created then dropped.
Regards
Phil
Click to expand...
Click to collapse
Not sure about this... and forgive me if I shouldn't be commenting because I'm referencing a cdma HTC touch pro 2, but I think this aspect is common.
My understanding is that the arrows up in the status bar should show white when a data connection is active and transferring data, but should turn gray when the connection is connected but not actively transmitting data. On my TP2, the data connection always shows the connection active and transmitting (the arrows stay white and never turn gray). I'm thinking if this is happening, one must surely be eating battery that isn't necessary.
On a cdma phone, the GPRS registry setting that is mentioned in this thread won't work because, although it will make the data connection automatically disconnect after an active data session, and you can change how long that time is with the CacheTime registry setting, unfortunately, on my HTC touch pro 2 Sprint cdma phone, you can't answer incoming calls when a data connection is active using these settings. I have to change the GPRS setting to #777 instead to be able to answer incoming calls when a data connection is active.... and with the #777 registry setting, I then loose the automatic time out and turning off of the data connection, so it stays on and showing active unless I turn it off manually and even then it comes on by it's self so often it's not even worth turning it off manually.
If any of you tech wizards can find a way for me to both be able to answer incoming calls when the is an active data connection, and also have the data connection time out and turn off automatically when not being used, I'd love to see it, because it sure seems to me I use more battery when I'm not turning off my data connection a lot manually, but it gets old always having to turn it off too!

Resources