I want an android phone to have both 'normal wi-fi' and 'portable
hotspot' turned on at the same time, so that I will be able to get the RSSI values of wireless networks as well as involve in an hotspot connection.
Scenario:
- 4 rooted android phones in CyanogenMod (2-Nexus One, 2-Galaxy S2; consider A,B,C,D).
- Kernel version 2.3.3 in all the phones
- Portable wi-fi hot spot enabled in all the phones.
I wrote an application to find the RSSI values of available wireless signals. But as the phones (A,B,C,D) are using wi-fi hot spot, the normal wifi does not turn on. Either wi-fi hot spot can be on, or normal wi-fi can be on.
i.e. If each phone(A,B, C and D) have a wifi hotspot created (AH, BH, CH, DH), then I am not able to use my application, as normal wifi connection needs to be turned on to find the wireless networks.
So I want the phones to scan available wireless networks with
portable wi-fi hot spot enabled. Is there a way to do this.?
Thanks in advance for your help.
PS: As I am new to this forum, if this is not the right place for this post, kindly move it to the appropriate section.
As far as I know its not physically possible to have hardware run in two modes at once. You would need two wifi chips to do this.
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 ?
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
i cant see why you would choose 5ghz over 2.4ghz maybe thats the reason for your problem
5Ghz allows for faster throughput (more bandwidth available) - uses 80 mhz channels vs 20 mhz on the 2.4ghz.
I noticed the slow connection too. Seems if you open wifi settings, it connects immediately.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
Did you try changing the channel in your router?
Haven't tried changing the channel. Will report back after I get home after work.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
I can say that problem is with ROM.
It has very slow auto connection time.
To connect faster I am using:
- drop down notification menu - tap wifi menu where its possible to choose wifi's from that setting - just wait, as soon as it turns on wifi and actually starts to scan area it will auto connect faster than when you just turn on wifi and wait.
I confirm this behavior on XT1575 as well. It takes quite a long time to connect when i enable WiFi.
But if I enter the WiFi settings, it connects instantly.
And i think it's like this since Android 6. I don't recall having this issue on Android 5.
I can't say I've noticed any problems connecting to WiFi networks at home.
I'm running 6.0 stock (Feb 2016 security update) rooted to hell and back.
I have access to five different WiFi networks at home, and am registered to all five for convenience.
I use an app called Best WiFi to auto-connect to the strongest signal whenever my current signal drops below a user-configurable strength threshold.
Perhaps that's the reason I'm not feeling this issue?
https://play.google.com/store/apps/details?id=com.pintacdesign.bestwifi&hl=en
I've been using this app for years, since Android 4.0, and across four or five different devices now.
Edit - Before the inevitable questions. I live in a basement and have my own personal WiFi network down there. Upstairs, we have two network piping out of the office (2.4 GHz and an associated 5 GHz link). For the far side of the home, we have a WiFi extender that mirrors and extends those two signals coming from the office (2.4 GHz-Ext and 5 GHz-Ext).
My report:
Whether connecting to 2.4 Ghz (20/40 Mhz) or 5 Ghz (20/40/80 Mhz) the connectspeed is between 5-15 seconds if singlepressing on the wifitoggle. If longpressed it takes about 2-3 seconds. Either this is a problem with the rom or this is the intended behaviour in Marshmallow. But this was not the behaviour in Lollipop as far as I remember. Of course you could argue this a nonissue since longpressing the wifitoggle is the solution. However I would like singlepressing to behave the same since I use Gravitybox to hide the statusbar when pressing 2-state tiles.
Yeah this is a huge pain in the ass. I set up a WiFi shortcut on my home screen so I would start using WiFI more to save battery, but it takes so long for it to finally connect. I also have Tasker turn WiFi on in the morning when my alarm goes off, and it takes so long. It took a few seconds in Lollipop, and now it takes 10+ seconds in Marshmallow. It's ridiculous. Anyway there is no real fix except going into the settings or tapping the drop-down toggle multiple times, as others stated.
I notice the same thing too. Wifi takes long to connect on boot. When I go to connect wifi off, it always shows the routers in the previous area before showing what's in the current area. I turn wifi off when leaving home. I'll connect to a public router, but will still show my home router before showing any around me. I had a Galaxy S5 before and wifi connected right away.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
First off, I am not sure if the OP is turning wifi on first when arriving at home and then seeing the delay, or if Wifi is already ON when you arrive home (EDIT: just reread OP and it appears you are turning it ON - see below), but I leave Wifi ON all the time and do not see any delay when I get home (I pull into my garage and my apps are already updating via my home wifi before I park my car).
There are various steps involved in "getting onto wifi" that don't just involve the client device (authentication to the access point; getting an available IP address from your AP or a separate router, and the stability/software quality of those devices, for example). but you may want to consider a few things to speed up the process at home regardless if Wifi is on, or you turn it on first:
1) go into "Saved Networks" in your wireless settings and "forget" any networks you don't need
2) make sure the device on your network issuing IP addresses (DHCP server software built into your router or AP, whichever you use - also make sure only ONE of the them is acting as DHCP server) has enough available IP's in its pool - better yet, assign the same IP to your MotoX's MAC address (set up a static IP in your routers LAN/DHCP settings if it has them so your MotoX gets the same IP every time)
3) while I agree with another poster about avoiding the 2.4 GHz for Wifi (congestion and more interference), even many 802.11n client radios today don't support 5GHz so keep that in mind if you shut down 2.4GHz in your home completely
4) Use WPA2 with PSK for authentication AND make sure your home SSID is being broadcast (not hidden, which they really aren't anyway with the right tools - A strong WPA2 PSK password is better security even if the world can see your SSID.
4) If you do turn Wifi On and Off, consider leaving it ON and see if that helps your connection time (I suspect it will If you are concerned about battery drain, you can disable wifi during sleep in wireless settings, but I don't have a battery issue with Wifi on 24/7. The Wifi radio beaconing for SSID's or even staying connected to an SSID in the background, when you're not using Wifi, is a very minimal power drain compared to having your screen brightness higher than you need (you can however turn off the annoying wifi network notification setting).
Hope this helps.
For those with this delay, are you running xposed with gravitybox? Tried disabling gravitybox? It maybe GB that's introducing the delay. Need feedback from those running stock.
If stock exhibits similar behavior then it's probably characteristic of the quick toggles in the moto x. The delay appears to be in the actual wifi connection phase, not acquiring ip. As once it actually connects, IP acquisition is almost instant. Toggling wifi off then on directly through settings is very fast, maybe 3-4 seconds.
I have a moto g lte (xt1045) on cm13 which takes about 5 seconds to connect after toggling wifi off then back on. The moto x takes a good 15 seconds.
ech1253 said:
First off, I am not sure if the OP is turning wifi on first when arriving at home and then seeing the delay, or if Wifi is already ON when you arrive home (EDIT: just reread OP and it appears you are turning it ON - see below), but I leave Wifi ON all the time and do not see any delay when I get home (I pull into my garage and my apps are already updating via my home wifi before I park my car).
There are various steps involved in "getting onto wifi" that don't just involve the client device (authentication to the access point; getting an available IP address from your AP or a separate router, and the stability/software quality of those devices, for example). but you may want to consider a few things to speed up the process at home regardless if Wifi is on, or you turn it on first:
1) go into "Saved Networks" in your wireless settings and "forget" any networks you don't need
2) make sure the device on your network issuing IP addresses (DHCP server software built into your router or AP, whichever you use - also make sure only ONE of the them is acting as DHCP server) has enough available IP's in its pool - better yet, assign the same IP to your MotoX's MAC address (set up a static IP in your routers LAN/DHCP settings if it has them so your MotoX gets the same IP every time)
3) while I agree with another poster about avoiding the 2.4 GHz for Wifi (congestion and more interference), even many 802.11n client radios today don't support 5GHz so keep that in mind if you shut down 2.4GHz in your home completely
4) Use WPA2 with PSK for authentication AND make sure your home SSID is being broadcast (not hidden, which they really aren't anyway with the right tools - A strong WPA2 PSK password is better security even if the world can see your SSID.
4) If you do turn Wifi On and Off, consider leaving it ON and see if that helps your connection time (I suspect it will If you are concerned about battery drain, you can disable wifi during sleep in wireless settings, but I don't have a battery issue with Wifi on 24/7. The Wifi radio beaconing for SSID's or even staying connected to an SSID in the background, when you're not using Wifi, is a very minimal power drain compared to having your screen brightness higher than you need (you can however turn off the annoying wifi network notification setting).
Hope this helps.
Click to expand...
Click to collapse
gpz1100 said:
For those with this delay, are you running xposed with gravitybox? Tried disabling gravitybox? It maybe GB that's introducing the delay. Need feedback from those running stock.
If stock exhibits similar behavior then it's probably characteristic of the quick toggles in the moto x. The delay appears to be in the actual wifi connection phase, not acquiring ip. As once it actually connects, IP acquisition is almost instant. Toggling wifi off then on directly through settings is very fast, maybe 3-4 seconds.
I have a moto g lte (xt1045) on cm13 which takes about 5 seconds to connect after toggling wifi off then back on. The moto x takes a good 15 seconds.
Click to expand...
Click to collapse
@ech1253: I've checked everything you suggested and you are right, having wifi on will make it connect almost instantly.
@gpz1100: I'm running xposed with gravitybox. Disabling gravitybox didn't change anything. I'd rather not uninstall xposed and/or go back to stock so if someone on stock without xposed could chime in that would be helpful.
It does it on stock android 6 for me and on a custom rom as well. Since day 1 with the moto x but at least wifi works just a long delay that no other android flagship from suffers from. :S
hexxor93 said:
It does it on stock android 6 for me and on a custom rom as well. Since day 1 with the moto x but at least wifi works just a long delay that no other android flagship from suffers from. :S
Click to expand...
Click to collapse
That's...not encouraging
Hopefully it's a softwarebug.
Hi,
I have 2 problems.
1. Phone with 4G and WiFi enabled. Smart network switch is enabled. And there is 2 WiFi available. The phone is initially connected to WiFi A (5 GHz), which has similar strength as of B (2.4 GHz) and both are 5 bars. Then I move to another spot when A has 1-2 bars and B has 4 bars. The phone will remain connected to A and won't switch to B. I think there used to a setting to avoid WiFi with poor signal. But I can't find it any more. What could I do to make it auto-switch to B when A drops to 2 bars?
2. Tablet with WiFi only and no option for smart network switch. I have a set it up to auto connect to an open WiFi at a place and it works. However, when I leave that place, it will remains connected to it, even though it can no longer be found (miles away now). The WiFi tab should show it has 1 bar signal and it's connected. I have to manually connect to another WiFi. How could I fix this?
Thanks
Try WiFi Manager from Kostya Vasilyev at both problems. i believe it will help you
Hi all,
Nexus 6p on 8.1.0 here.
Baseband 3.85
Phone looses both WiFi and cellular for a second, regains cellular and reconnects to WiFi every minute or so.
Only happens with home WiFi.
So far tried:
- Changing WiFi bands from 2.4 to 5hz and both
- Fixating a specific unpopulated channel on both bands
- Granting a static IP to the device
- Resetting network settings
All other devices on the network are fine.
Any suggestions? It is driving me crazy