[Q] wifi battery drain with eduroam (TTLS or PEAP) - HD2 Android Q&A, Help & Troubleshooting and Genera

My system: HD2 with several ICS 4.0.4 SD version starting from Windows Mobile 6.5
As soon as I add the eduroam wifi network with TTLS or PEAP authentification I got battery drain of 60-70 mA in standby. This is not only when connected to eduroam but also when connected to other wifi networks. Battery is fine with wifi in standby as long as eduroam is not set up in my wifi network list.
Could anyone confirm this behaviour? It might be related to the encryption and access control through TTLS or PEAP!? It does not happen if I only add WPA networks.
Thanx for contributions to this thread.

huepfer said:
My system: HD2 with several ICS 4.0.4 SD version starting from Windows Mobile 6.5
As soon as I add the eduroam wifi network with TTLS or PEAP authentification I got battery drain of 60-70 mA in standby. This is not only when connected to eduroam but also when connected to other wifi networks. Battery is fine with wifi in standby as long as eduroam is not set up in my wifi network list.
Could anyone confirm this behaviour? It might be related to the encryption and access control through TTLS or PEAP!? It does not happen if I only add WPA networks.
Thanx for contributions to this thread.
Click to expand...
Click to collapse
whats eduroam? is it a program?
cause it seems like its keeping the wifi connection open constantly due to some sort of data transmition.

elesbb said:
whats eduroam? is it a program?
cause it seems like its keeping the wifi connection open constantly due to some sort of data transmition.
Click to expand...
Click to collapse
Eduroam is a network of hotspots in Universities in The Netherlands. So with your universities login details you can log on to the wifi network at your own as well as other universities across the country.
This is a very nice idea, but I think the way the security (TTLS + PEAP) works, drains our phones battery..

bever86 said:
Eduroam is a network of hotspots in Universities in The Netherlands. So with your universities login details you can log on to the wifi network at your own as well as other universities across the country.
This is a very nice idea, but I think the way the security (TTLS + PEAP) works, drains our phones battery..
Click to expand...
Click to collapse
THanks for the lesson unfortunately i live in USA so i was clueless as to what that was. And the way it seems it just seems like thats how the network works OP. I would just tell android to shut wifi off when the screen turns off while on these networks, unless you require getting push notifications via WiFi then you cant. But it seems like your phone is pefectly normal

currently trying this version:
[2.Jun.2012][MAGLDR/SD] NexusHD2-ICS-4.0.4-CM9-HWA-SD V2.2
Drain is between 60 and 130 mA while connected to eduroam. Good news is that it goes down to normal (5-7 mA) when I leave eduroam range and connect to WPA networks.
It seems to be related to eduroam connection but the latest ICS version at least reduces drain when eduroam is out of range.

I can confirm that being connected to eduroam really eats up your battery. Better than nothing I guess.

Hi there,
I am also using eduroam at the RUG but never experienced any problems.
Maybe try NexusHD2-ICS-4.0.4., works well for me.
Cheers

Is this issue fixed yet? I'm experiencing the same problem. At my home WIFI network I have no problems, but at two other WIFI networks my battery drains insanely fast. However, the security at home and at one of the other networks (were it drains my battery) are identical (WPA2, AES)...
Also see http://forum.xda-developers.com/showthread.php?p=30137863#post30137863.

My best guess is that the eduroam network constantly keeps asking your password, like it continuously keeps logging in while you are not even on your phone. And that would be perfect for security of course, but not for your battery.

Related

WiFi data transfer problem

I have a ZyXEL P-2602HW-D1A Wireless router. I have tried all combinations of security, even NO SECURITY WHATSOEVER, and still the device won't transfer data.
Not working;
Firmware: 1.5, Build: CR817
Wifi Router: ZyXEL P-2602HW-D1A
Security: Tried All; WPA2, WPA, WEP & None.
Problem: Connect under all conditions but no data is sent
Please help.
Have you tried another WiFi access point to check the devices WiFi module actually functions?
No, I haven't tried that yet, but don't really see the point... I've connected effortlessly to the same WiFi network with my HTC Touch Diamond.
jbelman said:
Have you tried another WiFi access point to check the devices WiFi module actually functions?
Click to expand...
Click to collapse
For some reason my N800 wouldn't connect to MY ZyXEL P-2602HW-D1A unless I set the device (N800) to disable any kind of wifi powersaving features it had.
On another note, how did you get your hands on the device so early? I'm guessing you are using a Cybercity internet connection? (I'm in copenhagen myself)
edit: I actually came to that solution when i noticed I could connect to OTHER accespoints, but not the Zyxel ones.
Same problem here in France with a Freebox as router
I've noticed under the router's WLAN client list that the device does not have a "Host Name". Would that present a problem?
It is assigned an IP address by the router without any problems, though.
Also the device seems to lose connection and reconnect constantly (every 5-10 seconds).
I done some digging around in the router settings and found an "AnyIP" feature. Would that possibly help?
There are a number of issues floating around. Support for WPA2 seems iffy and some people can just change to WPA or WEP and all work fine.
There are however a number of people (such as me) who can get a connection perfectly, it shows connection OK, they get an IP from the DHCP server etc, they can even browse a page for a few seconds... but after that no data is sent and everything times out. This is happening on any security from none through to WPA2.
I have seen no solution to this anywhere and believe me I have looked. Some people have given up and got a new router, but this is not a solution.
Can someone confirm that this has been recognised as a fault with the magic and is being investigated, rather then assuming it's a user or router error. There are far too many instances of this across many brands of router for it not to be an issue with the HTC Magic.
zyborg said:
No, I haven't tried that yet, but don't really see the point... I've connected effortlessly to the same WiFi network with my HTC Touch Diamond.
Click to expand...
Click to collapse
What I mean is have you tested the device on ANY other AP except the ZyXEL?
No, but since I'm by far the only one having this issue (try searching the web; see my last post), I didn't feel it was necessary. Just want some input from xda-dev that might solve the problem, if any.
jbelman said:
What I mean is have you tested the device on ANY other AP except the ZyXEL?
Click to expand...
Click to collapse
I've had exactly the same problem earlier with the N800 on the zyxel. Exactly how you describe it.
Did you find out if you could turn off any powersaving features on the HTC?
same problem here
in france with a freebox
I don't exaclty know what router is in the box
but I have excalty the same
I set on never the wifi sleep(powersaving) mode.
i found it in setting wifi menu button then advanced and "never"
but the problem is still here
zyborg said:
There are however a number of people (such as me) who can get a connection perfectly, it shows connection OK, they get an IP from the DHCP server etc, they can even browse a page for a few seconds... but after that no data is sent and everything times out. This is happening on any security from none through to WPA2.
Click to expand...
Click to collapse
I have the exact same problem on mine. I just hope it is not a hardware issue...
Could be DHCP lease time problem. Did anyone of you tried to set up Magic with Static IP?
Yes, I tried that also - didn't help one bit.
TheRookie said:
Could be DHCP lease time problem. Did anyone of you tried to set up Magic with Static IP?
Click to expand...
Click to collapse
I also have this problem. Im in Denmark with a Zyxel P660HW-p1.
Another user of Cybercity in Denmark with the same problem.
ZyXEL P-660HW-D1
The android is the only device that doesn't work. I have tried with Iphone and laptops.
I've tried to change the settings on the router to no avail.
Enable 802.11g+ mode [on/off]
RTS/CTS Threshold [2432/4096]
RTS/CTS Threshold [2432/4096]
Max. Frame Burst [600/1800]
The device shows up in the device list with no hostname, the HTC Magic gets the right ip address (using the program WhatIsMyIp to view it)
I had the same problem before, when I set my TP-LINK draft N router with WEP security my HD can see it, connect to it (but speed was slow tho), and my HTC Magic just keep saying its not in range. However, when I set it to open security it works, so I recognise its probably the security setting... so I changed that to WPA2 and then it works.
In my case, I see different device have different tolerance to some settings (in my case, draft N + WEP is OK with laptop, HTC HD, but not Magic), so its still worthwhile to try a few different settings, and try a public wireless access point also to double confirm?
Power save?
I have Zyxel (P-2602R-D1A) router.
I had exactly the same problem with my HTC Vox (winmo)... but that was solved by boosting the WiFi in the phone.
WiFi -> Best performance
So Im guessing magic is in some WiFi "power save" mode...
I dont know how this works, but I thought maybe you could change some WiFi settings behind the hood - that is if the hardware is capable of it.
Zyxel (P-2602R-D1A) router
I am having the same issue with this router as the other posters. The phone connects perfectly and reports an excellent signal, but barely sends or receives any data. I have used a terminal emulator to ping the router and it reports an 82% packet loss. This must be a big problem for many Danish users as it is the standard wifi router provided by two of the major ISP's.
same issue here with my vodafone uk magic.
wifi connects and i can browse for a few seconds then get a connection error and can't browse until i re-start wifi on the magic...
i've actually given up using wifi at home now due to this.
router is a talktalk supplied Huawei Echolife HG520b using 128 bit WEP
i can connect fine via wifi at the office so i don't think it's an issue with the handset, just with certain routers or router configs...
this issue has been reported on the vodafone uk forums but as yet no solution.
http://forum.vodafone.co.uk/index.php?showtopic=31937

Possible Solution for WiFi Calling App Battery Drain

I have tried several of the Team Whiskey roms (Nero 2,3, & 5; currently on Bionix-V) as well as the official 2.2 rom and had the same problem in all of them - the WiFi Calling app was draining my battery at a rate of roughly 7%/hour. Then I noticed when I brought the phone to my mom's house, it was only losing about 2%/hour. The difference between our wireless networks is that her's is 802.11g only, where as mine supports 802.11n. So I changed the settings on my router to G-only, and now the battery is only losing 2%/hour at my house as well! I don't know why, but it seems the WiFi Calling app only severely drains the phone's battery on 802.11n networks!
Of course, in the absence of a true fix for this issue, I would prefer to force the phone to use G-only rather than change my entire network, but I have not been able to figure out how to do that. Fortunately, my router supports an additional guest network. Setting the guest network's encryption to WEP supports G-only, while my remaining clients can still connect to the main WPA network with true N speeds.
I would love to hear from other people to determine if an 802.11n network is truly the source of the WiFi Calling app battery drain issue. If it is, maybe a clever developer out there can determine how to fix it!
I only broadcast G signal as mine isn't capable of N and no one uses B and it still saps my battery like the IRS on my wallet.
Bionix-v has wifi calling? Didn't know that, and its also not shown in titanium backup.
Sent from my SGH-T959
Over on Eugene373 site, in the macnut rom for the vibrant, is a zip to remove WiFi calling, and it helps. It removes the associated lib files from the phone, and negates the proper lines in the build.prop by replacing it with a modded one. I integrate this fix into my own build, and it helps battery a whole lot. Granted, if you use WiFi calling, then this is void as it will remove it.
http://eb-productions.proboards.com/index.cgi?board=samsungsgs&action=display&thread=126
WiFi calling is an add-on app... the download link is on the same post as the Bionix-V link
JohnH1326 said:
WiFi calling is an add-on app... the download link is on the same post as the Bionix-V link
Click to expand...
Click to collapse
Yeah that's what I'm saying, I haven't installed wifi calling and still I get the same rate of drain on my bionix-v.
Sent from my SGH-T959
Hmm... I wonder if the battery drain is related to just being connected to an 802.11n network. Do you have your wifi on, and, if so, are you connected to an N network? Does turning the wifi off (or connecting to a G network) significantly reduce the battery drain?
JohnH1326 said:
Hmm... I wonder if the battery drain is related to just being connected to an 802.11n network. Do you have your wifi on, and, if so, are you connected to an N network? Does turning the wifi off (or connecting to a G network) significantly reduce the battery drain?
Click to expand...
Click to collapse
its possible,I didnt have an N network to test on when I had my vibrant,but with my fascinate it definitely dies faster when connected to N vs being connected to G.
For what it's worth, I had this problem on my Nexus One as well.
JohnH1326 said:
WiFi calling is an add-on app... the download link is on the same post as the Bionix-V link
Click to expand...
Click to collapse
Does the wifi calling app works with other rom besides Bionix?
I simply hated it and deleted it using Root Manager
was interested in it because the reception dropped near my house. It said invalid sim when I did the 2.2 update and the guy at t-mobile said a master reset would resolve it. Still have that issue after the master reset.

Wifi Connection Drops

Hello all,
I use a campus-wide wifi network (MAC registered, since the WPA2 Enterprise network requires the phone to keep inputting my password for credentials) while I'm at school, and sometimes the wifi network will drop and not reconnect.
For example, after a random period of standby time, when I turn on the phone and look at it, the wifi will still be happily connected with a proper DHCP-requested IP address, but all efforts at using ping or the Internet browser and so on will time-out.
As far as I can tell, calling reassociate() on the connection is not very effective, as I've tried applications that monitor the connection and try to reassociate().
The problem most often occurs when I leave campus and then come back on.
If I cycle wifi on and off, then the wireless will work again. However, this is annoying since sometimes push Gmail will not get sent in on time. This is also problematic for Voice, since that requires data, and if the phone thinks wifi works, it will not bother connecting to 3G/data to get Voice messages.
Any thoughts? Log-looking suggestions? I'm open to anything! Does anyone have this problem too? (I think my personal wifi router drops similarly so.)
InfX and I looked at the sleep states of the wifi and CPU performance in thread http://forum.xda-developers.com/showthread.php?t=950655 , but that seemed inconclusive (although it is slimly possible I am not building the kernel correctly).
Thanks muchly,
Jeff
Edit: I am using rafpigna's kernel on a Sense (imilka's mytouch 4g) build.

Constantly receiving WiFi traffic - unstoppable

This is driving me insane!
When I have WiFi enabled at the office, my Samsung Galaxy Note (stock ICS, rooted) constantly receives incoming data and I haven't got a clue which setting, app or service is causing this.
SystemPanel registers a nonstop stream of incoming traffic at 8 to 10 Kbps.
TrafficStats shows an accumulation of Received data under Total WiFi, but can't seem to link it a particular app or service: after resetting the data, no processes appear but the incoming data keeps on growing.
All sync options are off, I've tried to kill every running app or service (one by one, all at once), I've tried to block all traffic using Droidwall. As soon as WiFi is enabled, the incoming stream is unstoppable. When switching to 3G, there's no incoming traffic.
But to make matters even more mysterious, I do not have this problem with my WiFi connection at home.
It only occurs at the office, only on WiFi and (as far as I know) only on my phone.
Any ideas?
This is simply because your wifi antenna still "hears" the data going trough the wireless network on wich you are connecter. Event if your phone doesn't asks for any data at the moment the traffic there is on the network will still be counted by the wifi chip on your phone.
It will be the same on any public network or if you have another phone or a computer connecter on the same wireless router and generating traffic.
Thanks for replying, John!
That sounds very plausible, but then I still have to figure out why only my phone is registering this traffic - maybe it's an ICS thing or brand specific?
And I'll try to 'reproduce' it at home by connecting a laptop at the same time.
I think that the above is correct. That may be default behavior.
Sent from my XT862 using xda app-developers app
Well, I've tried to connect several devices at once on my home WiFi network, but it did not reproduce the incoming traffic problem I experience at work.
There were a few incoming bytes registered, not nearly as much as the constant stream of 10 Kbps at the office network...
Your works wifi may be set up like that. Who Knows?
Sent from my XT862 using xda app-developers app
MrObvious said:
Your works wifi may be set up like that. Who Knows?
Click to expand...
Click to collapse
Well, our it-department certainly does not.
You're probably right that this is normal behavior. I'll just have to figure out which drains less battery under these circumstances, WiFi or 3G. Thanks anyway for replying.
I'm on the mobile app, but if you have GSM then just switch to 2g until you use it.
Sent from my xt862 using xda app-developers app
Djezpur said:
Well, I've tried to connect several devices at once on my home WiFi network, but it did not reproduce the incoming traffic problem I experience at work.
There were a few incoming bytes registered, not nearly as much as the constant stream of 10 Kbps at the office network...
Click to expand...
Click to collapse
About this, it is simply that at your office there is traffic on the network (download/upload) while at home simply having devices connected doesn't generate traffic or almost none. Start several dl on several devices (phone laptop) (guess 2-3 is enough, maybe even one but not sure, not en expert after all ) then you should notice signifficant traffic on your phone, I guess!
So interesting I find this thread because I have the exact same problem!!!!
How I noticed it...when I am at home I drop 1% battery on Wifi per hour. 10hours = 10% (sometimes less).
I go to work on the Wifi, I DONT USE ANYTHING ON THE PHONE and the battery is DRAINING LIKE CRAZY!!! 5%/h or more!!!
( I am in airplane mode in both place)
So I was thinking, WTF with this work wifi, i am not doing anything at all on it. Then I look at my wifi icon I have a constant RECEIVE icon. And I bet my phone does not go to sleep or something.
So why in the world my work wifi is draining my battery and the one at home is not. I will check tonight but I dont think I have traffic like this. I am registering 5-6kbytes/s for nothing. The explanation given above is hands-waving. I do not agree with it fully. YEs sure there are several pings and beacon emitted back and forth but i do not think it is enough to cause 5-6kbytes/sec . The wifi is not in Monitor mode and it only receives the packets destined to my phone.
This is madness!!!! BTW When I had a different kernel on back on ICS this behavior stopped. I will try to monitor again.
kalinusa said:
So interesting I find this thread because I have the exact same problem!!!!
(...)
This is madness!!!! BTW When I had a different kernel on back on ICS this behavior stopped. I will try to monitor again.
Click to expand...
Click to collapse
Hey kalinusa, did you find a solution to this problem?
I'm currently on the SpeedMod kernel, but that does not seem to make a difference to the 'office WiFi behavior' (so I keep my phone on mobile data).
I don't want to speak out of my ass, because I haven't a clue how the app works.
As far as I can guess SSH tunnel may help you. I would hope someone else could tell me I'm right, but I'm probably wrong.
I have had this same problem with two of my devices. The first is a Samsung Captivate with the last AOKP ICS build. The second is a Google Nexus 7 with AOKP's first Jelly Bean build (it happened when I had stock as well).
This only happens when I'm connected to WiFi at my university. The down arrow on the WiFi icon is ALWAYS on and it drains the battery. At home, I don't have these problems.
I emailed my university's IT department but I'm not sure if there's anything they can do. Anyone have any suggestions? Thanks.
I have exactly the same problem, but I think I found the reason which is causing it. I think that some of the routers are capable of the multicast over the wifi and then we can get a constant wifi traffic. I tested it at home, where I have enabled multicast over wifi and my phone wifi receiving the data all the time, even if it is in sleep. Now I'm in the office where we do not have such capable router with multicast over wifi and my phone wifi behavior is as expected. When I will be at home I will test it again with my router and with disabled multicast over wifi and hopefully it will solve this issue.
danielo said:
I have exactly the same problem, but I think I found the reason which is causing it. I think that some of the routers are capable of the multicast over the wifi and then we can get a constant wifi traffic. I tested it at home, where I have enabled multicast over wifi and my phone wifi receiving the data all the time, even if it is in sleep. Now I'm in the office where we do not have such capable router with multicast over wifi and my phone wifi behavior is as expected. When I will be at home I will test it again with my router and with disabled multicast over wifi and hopefully it will solve this issue.
Click to expand...
Click to collapse
More than multicasts it could be broadcasts, what are you reaceiving. For example if you don't use WINS server in Windows domain, all computers use broadcast to get IP address for a computer name (if you dont use DNS name, but that's another story). At home, where aren't many computers, there are very few broadcasts. But somewhere, where a large amount of computers is on the same network (not splitted to broadcast domais), number of broadcasts would dramatically increase
btw. if you connect a PC to the same network as your phone and stop ALL running applications (mainly instant messangers, web browsers, e-mail clients) you should see the same network bandwidth in use as on your cell phone.
More than multicasts it could be broadcasts, what are you reaceiving. For example if you don't use WINS server in Windows domain, all computers use broadcast to get IP address for a computer name (if you dont use DNS name, but that's another story). At home, where aren't many computers, there are very few broadcasts. But somewhere, where a large amount of computers is on the same network (not splitted to broadcast domais), number of broadcasts would dramatically increase
Click to expand...
Click to collapse
Interesting. Roughly how many devices would need to be on the same network, to see that kind of traffic load?
-- Sent from my TouchPad using Communities
post-mortem said:
Interesting. Roughly how many devices would need to be on the same network, to see that kind of traffic load?
-- Sent from my TouchPad using Communities
Click to expand...
Click to collapse
It depends on what you consier as network load. If you start a network monitor like Wireshark or MS Network monitor and even if there is one computer on the network, you wil see "some" traffic (from time to time a few network packets). To generate constant network load, you'll need a few dozens of computers. And it always depends on how the network is designed and what applications the computers run. If all computers connect to a server, the network load will be a lot lower than if the computers share resources among them.
Or you can design your network in such way, that you divide computers into segments, where computers can communicate only with computers in its segment (or with some distant servers). This way the network load will dramatically decrease, as computers from different segments would not interfere.
I currently only have one computer connected to my home network atm via wifi, and it keeps a constant broadcast going to my phone for some unknown reason. I thought it was my dlna server, so I shut that off, and it is still broadcasting _something_... Its causing quite a battery drain, and unfortunately I cant seem to find the root of the issue. I've trolled through my router settings -- multicasting isnt on -- so Im at a loss. =\
Spz0 said:
I currently only have one computer connected to my home network atm via wifi, and it keeps a constant broadcast going to my phone for some unknown reason. I thought it was my dlna server, so I shut that off, and it is still broadcasting _something_... Its causing quite a battery drain, and unfortunately I cant seem to find the root of the issue. I've trolled through my router settings -- multicasting isnt on -- so Im at a loss. =\
Click to expand...
Click to collapse
It can be caused also with the Media servers which runs on PC, also DHCP etc. It is not easy to eliminate all broadcast traffic and sadly our phones react at all that multicast packets.

will android switch to a better wifi if available?

Heyho, i currently have access to my wifi as well as to my neighbors network as my wifi gets weak while i am in the garden. I feel like android isnt awitching to my neighbors wifi automatically. Only when my wifi is completely gone, android will look for a new one.
I thought about making a task with tasker which looks for another wifi as soon as the current wifi strength goes below 25%.
Or is/should android do that aleady on its own?
Thanks
In wifi -> Advanced settings there's an option to avoid poor connection. I have no idea what it actually does, but give it a try.
I did the test with my router, which supports 2 frequencies.
Assuming both networks are saved in the phone, it connect automatically to the one with better signal or look for an alternative if signal is lost.
Thats what I mean, it will connect to the other WiFi if the connection is lost. But if the connection is crippled (bad) enough to not handle a music stream, but still "availabe" it will not switch to the other WiFi eventhough that other WiFi has 100% signal strength ?
I activated the "use wlan only if good strength available".. lets see how this works
I have multiple APs in my house and the only way I've ever got it to switch is by toggling wifi off and on (or loosing the first signal completely). This is an Android issue IINM, my GS2 and my N4 both have this issue.
I tried the "do not use weak WiFi".. didnt work.
zakazak said:
I tried the "do not use weak WiFi".. didnt work.
Click to expand...
Click to collapse
It has never worked for me either. Didn't work on my GSM GNex or with the N4.
I think it's how most WiFi clients work, otherwise if you were in the middle of 2 equal signals, it would spend more time disconnecting and reconnecting creating a DOS attack on the 2 AP's and leaving you with no data.
As for 2 home wireless routers, use the same SSID and authentication settings for both, and put one on channel 1 and the other on channel 11.
Make one a AP only (no router, no firewall, no dhcp server) and connect it to a client wired port on the first one. You can roam between them like people in large offices do.
or I try to make a tasker profile
if wifi strenght below 20% and another wifi is available with more than 30%, connect to that one.. then wait 5 minutes ?

Categories

Resources