How do I make WiFi Direct use 5Ghz? - Android Q&A, Help & Troubleshooting

I'm part of an FTC robotics team, and our control system uses WiFi Direct with 2 phones to communicate between the robot's phone and the driver station phone. We often have issues with the connection dropping out during matches at the big competitions, do to a ton of other teams all using WiFi Direct at the same time and crowding up the 2.4 GHz band. (At the bigger events, there are over 1,000 devices using 2.4Ghz!!!) Is there any way to force WIFI Direct to use the 5 Ghz band on the Galaxy S5 (or Nexus 5)?

QwertyChouskie said:
I'm part of an FTC robotics team, and our control system uses WiFi Direct with 2 phones to communicate between the robot's phone and the driver station phone. We often have issues with the connection dropping out during matches at the big competitions, do to a ton of other teams all using WiFi Direct at the same time and crowding up the 2.4 GHz band. (At the bigger events, there are over 1,000 devices using 2.4Ghz!!!) Is there any way to force WIFI Direct to use the 5 Ghz band on the Galaxy S5 (or Nexus 5)?
Click to expand...
Click to collapse
A year late, but here is the answer for other people.
Androids WiFi Direct will work in 5Ghz or 2.4Ghz, but for new groups, it apparently defaults to 2.4Ghz, unless you are already connected to a 5Ghz AP.
So repeat for both phones:
Stop the FTC apps (Press the Multi-Task button and then hit the X on the FTC apps)
Settings - WiFi -> Advanced -> WiFi Direct
Press and hold on all the Wifi Direct Connections and Groups on both phones. Tell them to Disconnect and/or Forget.
Now use the WiFi settings to connect both phones to a 5Ghz Access Point.
Redo the WiFi Direct pairing process (The FTC 4 app will seek out its similarly named *-RC automatically if you start both apps).

KelleyCook said:
A year late, but here is the answer for other people.
Androids WiFi Direct will work in 5Ghz or 2.4Ghz, but for new groups, it apparently defaults to 2.4Ghz, unless you are already connected to a 5Ghz AP.
So repeat for both phones:
Stop the FTC apps (Press the Multi-Task button and then hit the X on the FTC apps)
Settings - WiFi -> Advanced -> WiFi Direct
Press and hold on all the Wifi Direct Connections and Groups on both phones. Tell them to Disconnect and/or Forget.
Now use the WiFi settings to connect both phones to a 5Ghz Access Point.
Redo the WiFi Direct pairing process (The FTC 4 app will seek out its similarly named *-RC automatically if you start both apps).
Click to expand...
Click to collapse
OMG! YOU DID IT! THANK YOU! THANK YOU! THANK YOU!
I just stumbled onto this answer, and I've been searching FOR. EVER. On how to make PDANet - which now uses wifi direct - connect to other phones, my FireTV and my Chromecast, at 5Ghz. This did the trick!

KelleyCook said:
A year late, but here is the answer for other people.
Androids WiFi Direct will work in 5Ghz or 2.4Ghz, but for new groups, it apparently defaults to 2.4Ghz, unless you are already connected to a 5Ghz AP.
So repeat for both phones:
Stop the FTC apps (Press the Multi-Task button and then hit the X on the FTC apps)
Settings - WiFi -> Advanced -> WiFi Direct
Press and hold on all the Wifi Direct Connections and Groups on both phones. Tell them to Disconnect and/or Forget.
Now use the WiFi settings to connect both phones to a 5Ghz Access Point.
Redo the WiFi Direct pairing process (The FTC 4 app will seek out its similarly named *-RC automatically if you start both apps).
Click to expand...
Click to collapse
That worked for me.
Ty ;3

KelleyCook said:
A year late, but here is the answer for other people.
Androids WiFi Direct will work in 5Ghz or 2.4Ghz, but for new groups, it apparently defaults to 2.4Ghz, unless you are already connected to a 5Ghz AP.
So repeat for both phones:
Stop the FTC apps (Press the Multi-Task button and then hit the X on the FTC apps)
Settings - WiFi -> Advanced -> WiFi Direct
Press and hold on all the Wifi Direct Connections and Groups on both phones. Tell them to Disconnect and/or Forget.
Now use the WiFi settings to connect both phones to a 5Ghz Access Point.
Redo the WiFi Direct pairing process (The FTC 4 app will seek out its similarly named *-RC automatically if you start both apps).
Click to expand...
Click to collapse
My pdanet by default use 5ghz wifi direct. I trying to force it to use 2.4ghz because my other device does not support 5ghz. This method work by connecting to 2.4ghz wifi first and directly activate pdanet wifi direct. But it will use 5ghz again after turn it off. Is there any permanent way to use a specific band?

faiz5200 said:
My pdanet by default use 5ghz wifi direct. I trying to force it to use 2.4ghz because my other device does not support 5ghz. This method work by connecting to 2.4ghz wifi first and directly activate pdanet wifi direct. But it will use 5ghz again after turn it off. Is there any permanent way to use a specific band?
Click to expand...
Click to collapse
I also have that problem. I tried this and it works. Try this fix here https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-switch-wifi-band-2-4-5ghz-t3877093

faiz5200 said:
My pdanet by default use 5ghz wifi direct. I trying to force it to use 2.4ghz because my other device does not support 5ghz. This method work by connecting to 2.4ghz wifi first and directly activate pdanet wifi direct. But it will use 5ghz again after turn it off. Is there any permanent way to use a specific band?
Click to expand...
Click to collapse
I have the same problem now and you're the only light i found in the whole internet talking about this.

Related

[REQ] How to disable 802.11n WiFi

Following on from my investigations on why the SGS2 takes *so" long to re-establish a WiFi connection, it now seems part of the problem is a major delay in obtaining an IP address.
In another thread (I forget which one) it was suggested that slow WiFi could be caused by a router not being able to cope with 802.11b, g & n traffic at the same time, which got me thinking - what if I disable the n part of the WiFi on the phone to revert it to 802.11g - would this make acquisition time on an older router faster?
So - does anyone know which file / script etc. could be altered to keep WiFi enabled, but ONLY at 802.11g; not utilising 802.11n?
stuclark said:
Following on from my investigations on why the SGS2 takes *so" long to re-establish a WiFi connection, it now seems part of the problem is a major delay in obtaining an IP address.
In another thread (I forget which one) it was suggested that slow WiFi could be caused by a router not being able to cope with 802.11b, g & n traffic at the same time, which got me thinking - what if I disable the n part of the WiFi on the phone to revert it to 802.11g - would this make acquisition time on an older router faster?
So - does anyone know which file / script etc. could be altered to keep WiFi enabled, but ONLY at 802.11g; not utilising 802.11n?
Click to expand...
Click to collapse
Just a guess, but is likely a build.prop tweak
Is this a frequent problem ? Has never happend here
Sent from my GT-I9100 using XDA App
As I've said in my post on the general forum, I get a horrible delay every time I ask the phone to connect WiFi.
I've got the WiFi sleep policy set to "when screen turns off" to save battery power; and using the same router as on my SGS (hell, i can sit the phones next to each other to try this) I get the following:
Waking the SGS up from a sleep results in a delay of 1 or 2 seconds before WiFi connects.
Doing the same with the SGS2 results in a delay of up to 1 minute before WiFi will connect. (sometimes it can be seen to give up trying to acquire an IP address, then try again)
...so yes, may be a router issue, but clearly there's something different between the 2.3.3. on the SGS versus the 2.3.3 on the SGS2 as well.
You could just disable n mode on your router if you think mixed mode is slowing it down. Most new routers will let you choose which wifi modes to broadcast via their web interface. The best option would be to only use n if all your devices support n.
Sent from my GT-I9100
Router only supports g. I'm suspecting the phone looks to n first, hence my interest in disabling it.
stuclark said:
As I've said in my post on the general forum, I get a horrible delay every time I ask the phone to connect WiFi.
I've got the WiFi sleep policy set to "when screen turns off" to save battery power; and using the same router as on my SGS (hell, i can sit the phones next to each other to try this) I get the following:
Waking the SGS up from a sleep results in a delay of 1 or 2 seconds before WiFi connects.
Doing the same with the SGS2 results in a delay of up to 1 minute before WiFi will connect. (sometimes it can be seen to give up trying to acquire an IP address, then try again)
...so yes, may be a router issue, but clearly there's something different between the 2.3.3. on the SGS versus the 2.3.3 on the SGS2 as well.
Click to expand...
Click to collapse
quick side note, wifi sleep policy set to NEVER saves you much more battery power because when it switches over to 3g, 3g uses way more power than just leaving it on wifi. counter intuitive but true.
Have you tried hard coding an IP address on the S2?
And by Hard coding, he means manually setting a Static IP address and now allowing the DHCP to provide you an IP address each time. Although the IP will most likely be the same while using DHCP, it has to request and authenticate each time. Setting a Static IP address eliminates the process of "Asking" for a IP address each time.
when the phone scans and finds the ssid, as part of that scan it checks if the router supports b/g/n then will try to connect at the highest speed. If the router isnt n compatible it wont even try.
I don't want to give the phone a static IP as I regularly visit three or four different wireless networks and they don't all use the same IP range.
I do know how DHCP works, this isn't a newbie question.
It seems definite now, watching the phone, that it tries to connect once (presumably on n), fails, then re-connects (quickly) on g.
Of course, I'll be changing the router eventually; I'm just interested in what's going on first
stuclark said:
I don't want to give the phone a static IP as I regularly visit three or four different wireless networks and they don't all use the same IP range.
I do know how DHCP works, this isn't a newbie question.
It seems definite now, watching the phone, that it tries to connect once (presumably on n), fails, then re-connects (quickly) on g.
Of course, I'll be changing the router eventually; I'm just interested in what's going on first
Click to expand...
Click to collapse
Understand about leaving it set for DHCP. Trying a fixed IP as a test may tell you if DHCP is part of the delay. If the b/g/n search is that slow it would be useful if it could be configured more precisely.
Have you tried it using another router using only g? If n is available it connects quickly? Seems like others would have mentioned this if it is something with the phone as g-only networks are still common.
I too am interested in disabling 802.11n. wpa_supplicant keeps hanging on some wifi networks and I suspect it may be because of n.

[Q] Wireless N on SGS2?

Hi guys, anyone can help me out here with regards to connecting our SGS2 to Wireless N network? I have tried changing my radio frequency setting and even resorted to using WEP authentication instead of WPA, but I just can't get the phone to connect via N network, it always connects via G instead. But under the same settings, I am able to connect my acer laptop and my wife's iphone4 to the N network.
Is there any specific settings I need to configure on my router? I am using a Prolink H5004N adsl2+ modem with wireless N router. The modem is compliant to IEEE 802.11n standards, not draft-n and should work with the SGS2?
wind79 said:
Hi guys, anyone can help me out here with regards to connecting our SGS2 to Wireless N network? I have tried changing my radio frequency setting and even resorted to using WEP authentication instead of WPA, but I just can't get the phone to connect via N network, it always connects via G instead. But under the same settings, I am able to connect my acer laptop and my wife's iphone4 to the N network.
Is there any specific settings I need to configure on my router? I am using a Prolink H5004N adsl2+ modem with wireless N router. The modem is compliant to IEEE 802.11n standards, not draft-n and should work with the SGS2?
Click to expand...
Click to collapse
Not sure, but I think that it will connect if your N-network are in the 2.4 GHz frequency area, but not in the 5.0 GHz
mljjlm said:
Not sure, but I think that it will connect if your N-network are in the 2.4 GHz frequency area, but not in the 5.0 GHz
Click to expand...
Click to collapse
Yup, tried that too, but still connects to G only. I have also tried configuring router to accept only N networks instead of G/N, but then the SGS2 will not even see the SSID when its performing a wireless scan.
wind79 said:
connecting our SGS2 to Wireless N network?
Click to expand...
Click to collapse
Ive got the same issue. Router Asus RT-N16 (b/g/n, 2.4GHz). Playing with different router firmwares, settings and so on - no luck so far.
Check the "advanced" settings by pressing the menu button in the wireless and make sure nothing wierd is set in there.
Otherwise, as long as the router is set to N only on the 2.4ghz band, it should at _least_ see the SSID.
That modem supports WPS, try pressing the WPS button on the back of the modem and then use the "WPS button connection" option in the wi-fi settings menu on the SGS2.
Remember the single-channel 802.11n 2.4ghz such as the SGS2 supports will only max out at 72mbps anyway so there's not a huge improvement over the 54mbps that 11g will give you, although 11n is more efficient.
grey77 said:
Ive got the same issue. Router Asus RT-N16 (b/g/n, 2.4GHz). Playing with different router firmwares, settings and so on - no luck so far.
Click to expand...
Click to collapse
I've got the same unit and it works fine with it, that said I'm running a recent build of the Tomato firmware on mine. I don't think I even powered it up fully with the original firmware...
knightnz said:
Check the "advanced" settings by pressing the menu button in the wireless and make sure nothing wierd is set in there.
Otherwise, as long as the router is set to N only on the 2.4ghz band, it should at _least_ see the SSID.
Click to expand...
Click to collapse
thx for fast reply
SGS2 can see SSID, but fails to connect until I force RT-N16 (with custom firmware, RT-N16-1.9.2.7-rtn-r3121) down to "Use 802.11 G only".
Never had any problems with other 802.11 N powered devices.
only wpa2-aes or no encryption are N-standard
wind79 said:
Hi guys, anyone can help me out here with regards to connecting our SGS2 to Wireless N network? I have tried changing my radio frequency setting and even resorted to using WEP authentication instead of WPA, but I just can't get the phone to connect via N network, it always connects via G instead. But under the same settings, I am able to connect my acer laptop and my wife's iphone4 to the N network.
Click to expand...
Click to collapse
wireless N only officially supports either WPA2-AES encryption or no encryption. Devices with drivers that more closely comply to the spec will not connect to WEP or WPA.
I hope you fixed the issue. I stumbled across this thread while asking the same question; maybe someone else will benefit by having this thread wrapped-up also. No haters, egos, persons, etc please. It's been necessary already to block a few of you.

Incompatible with Asus N66U Router

I am not able to connect my Transformer Prime with my new Asus N66U router. I tried all channels and security settings and it only connected when to the router with open system setting. I am able to connect it to my old Netgear WDR3700 in good speed without any problems. Does anyone run into similar situation?
I have the rt-n66u router as well and never had a problem. Are you sure you are using the right encryption settings, Do other devices connect, have you updated the router's firmware? There was a new update just today.
http://support.asus.com/download.as...T-N66U (VER.B1)&os=&hashedid=PZkFHlMrGWzVROxT
have you ensured your router has the latest firmware?
I have the N56u model and no issues.
Yes, I have the latest firmware. My Galaxy Nexus connects just fine. The Transformers Prime actually see the router with strong signal. It just refuses to connect to it. BTW I set the router using WPA-PSK.
Is your prime running the latest update? Or, have you tried DD-WRT?
I have the latest firmware in both devices. However, my Prime is the first batch and may suffers from wifi issues. I may have to try Tomato or Dd-wrt firmware.
Sent from my Galaxy Nexus using Tapatalk 2
Some routers let you disable the broadcasting of the network name (SSID). Computers/network cards that conform correctly with the 802.11 specification will refuse to connect. Have you checked the settings for both 2.4 and 5GHz? - of course the router should not allow disabling of the SSID!
odd. Try wiping the data. Small pin hole in back of router. Reset it. Then 192.168.1.1. go in there and reenter your SSID etc on wireless.
For ****s and giggles. Pump up your 80mw Tx power of wireless to around 160mw. I been running 160mw tx power for awhile and have not and any problems. This baby can go all the way up to 500mw. Of course that is U.S. FCC range limit. With 500mw you can see your wireless from few blocks away.
If your prime is connecting to your other wireless router. Then has to do with some setting in on the RTN66U. Hopefully the wipe will clear any setting in the firmware.
Forgot to mention. Your prime will only connect to the 2.4ghz. It won't connect to the 5ghz wireless.
Did that already. My Transformer does see the 2.4 Ghz SSID with very strong signal. It just keeps reconnecting and fails to connect again eventually. My Galaxy Nexus can connect in a very good speed. Change back to my old Netgear WDR3700 and my transformer connects to it right away. It seems to me that the problem is the security encryption as connection is established right away in open system. However, it just refuse to connect on whatever setting I tried.
ariesting said:
Did that already. My Transformer does see the 2.4 Ghz SSID with very strong signal. It just keeps reconnecting and fails to connect again eventually. My Galaxy Nexus can connect in a very good speed. Change back to my old Netgear WDR3700 and my transformer connects to it right away. It seems to me that the problem is the security encryption as connection is established right away in open system. However, it just refuse to connect on whatever setting I tried.
Click to expand...
Click to collapse
What are the WiFi standards on the Router set to?
Sometimes when a router is set to b/g/n (all combined) it can lead to issues.
I generally keep mine at b/g (no n) on the 2.4 Mhz band, since my n devices run on my router's 5 Ghz band anyway. Try that out.
I tried "auto", "legacy" and "n only" with or without "b and g protection" but still could not connect to the router in any combinations. Will like to know the feedback from anyone who put Tomato on N66U.
If you have kept the same SSID as your old router did you delete the old network settings for that SSID in your TP? Also try a new SSID on the router.
If the router supports WiFi Multimedia (WMM) try disabling it and re-enable it after a connection has been made.
I presume you would know if you had enabled an allowed devices table -MAC addresses. The only other thing I can think of is the size of the "hello I'm here" beacon that the router transmits is too long for the TP and I think that would only be an issue with a very long SSID
Yes, I do keep the old SSID. However, I did forget the network and reconnect to it again in Transformer. My SSID is less than 10 characters. It seems to me that the Transformer is not able to get an IP nor pass the authentication stage.
ariesting said:
Did that already. My Transformer does see the 2.4 Ghz SSID with very strong signal. It just keeps reconnecting and fails to connect again eventually. My Galaxy Nexus can connect in a very good speed. Change back to my old Netgear WDR3700 and my transformer connects to it right away. It seems to me that the problem is the security encryption as connection is established right away in open system. However, it just refuse to connect on whatever setting I tried.
Click to expand...
Click to collapse
Well. Go under advanced settings and then Wireless.
Wireless -General tab.
Frequency click (2.4ghz).
Your SSID (name).
Hide SSID = (No)
Wireless Mode put in (N Only).
Control Channel (1).
Channel Bandwidth (20mhz).
Authentication Method (WPA2-Personal).
WPA Encryption (AES).
Enter your WPA Pre-Shared Key (password for SSID).
Network Key Rotation Interval to (0).
Wireless -Professional Tab
Frequency (2.4ghz)
Enable Radio (yes)
Date to Enable Radio (Check all days)
Set AP Isolatd (No)
Multicast Rate (Disable)
RTS (2347)
DTIM (3)
Beacon (100)
Enable TX burst (Enable)
Enable Wireless Multi (Disable)
Enable WMM (Enable)
Tx Power adjustment (80)
Try those settings. See what happens.
Will try it as soon as I get back home. Thanks.
I am finally able to get my Transformer connecting to my RT-N66U router by changing the SSID to a new one. The speed and range are not better to my old Netgear WDR3700 though. Thanks for all the help anyway.
ariesting said:
I am finally able to get my Transformer connecting to my RT-N66U router by changing the SSID to a new one. The speed and range are not better to my old Netgear WDR3700 though. Thanks for all the help anyway.
Click to expand...
Click to collapse
Good to hear!
I've had the occasional connectivity problem with mine, on certain routers I can get connection but no online connectivity.
some routers use a nonstandard DHCP range (i think it may the ones that utilise 192.168.1.x) anyway, if you encounter this it's simple to correct once you know you simply define a manual ip on the prime for that connection and voila! :>
ariesting said:
I am finally able to get my Transformer connecting to my RT-N66U router by changing the SSID to a new one. The speed and range are not better to my old Netgear WDR3700 though. Thanks for all the help anyway.
Click to expand...
Click to collapse
Cool. Glad you got it working.
Well you can always try and pump your TX power adjustment from the default 80 to 160 or more. I was able to increase my range. I think the max is like 500mw the chip is rated at. However, I havent tried that high. I don't want to burn out my chip. Plus heat increases dramatically at those higher mw's. You would have to toss a little laptop cooler underneath it. (run via the routers usb port there).
My connection problem happens again. Just in case someone has similar issue, I solve the problem by exchanging a new one from store.
ariesting said:
I am not able to connect my Transformer Prime with my new Asus N66U router. I tried all channels and security settings and it only connected when to the router with open system setting. I am able to connect it to my old Netgear WDR3700 in good speed without any problems. Does anyone run into similar situation?
Click to expand...
Click to collapse
I have the n66u too and have no issues.

[Q] wifi band configuration

I was quite surprised to see there is no configuration to choose 2.4ghz or 5ghz, on top of this I cant find a way to view the current band in use. Why make a dual band phone where 5ghz is effectively disabled?
I then read that the option used to exist in 4.0 but was removed in 4.1 and someone made this app.
http://forum.xda-developers.com/showthread.php?t=1891970
Now this app works, I can now use 5ghz which more than doubles my wireless speed, great right?
Well its ok but it resets to 2.4ghz everytime wifi is turned on again, so the setting doesnt stick. So basically everytime I use wifi I have to open the app and select 5ghz. Even the app itself doesnt report what band is in use, it just allows you to select the band to use.
Is there a way to (a) easily see what band is in use and (b) set 5ghz as the default.
Thread moved to porper forum.
I have tried giving 5ghz its own wireless ssid so seperate from 2.4ghz but then its much slower. It seems when the ssid is shared, it uses some kind of parallel mode where both can be used at the same time.
So what I want is when 2.4ghz and 5ghz share the same ssid and the phone connects to 5ghz. (preferably via an option on the phone).

Disable WiFi connectivity test ("Connected, No Internet")

I'm using a Pixel 2, with the latest updates, and I'm constantly getting issues when roaming WiFi within my house.
I have 3 AP's from Mikrotik, properly configured, and I don't have no issues at all with other devices like my iPad or Surface Pro/Book, etc.
But once in a while, my Pixel get's stuck in the state "Connected, No Internet" and it keeps retrying... until after a couple of minutes (5 or more) it properly connects...
Is there a way to disable this?
Another thing that I've noticed is that often the device only connects to the WiFi (switching from LTE) only when I unlock it or wake up the device. Have anyone noticed something similar with Pixel 2 or other devices? Any recommendations?
Cheers,
anthonws.
Hey, I don't own a Pixel but a Note9 but would certainly try to help you.
Do you have 2.4 Ghz router or do you connect to a 5 GHz SSID? If yes to the former, have you tested different channels. Interference in some rare cases can cause unstable internet. You can use the Wifi Analyzer app on the play store to test.
I had fixed a similar problem on my older S7e by assigning static IP to it. Try this as well. Static IP can be configured on your router as well as on your device itself.
Android do has options to set Wifi Aggressiveness. See if you have set Wifi Aggressive Mode (it connects to Mobile data even if Wifi is slightly unstable). There's also two more options (in developer options) that are worth checking: Wifi safe mode and Wifi power saving mode.
I understand that these options are hard to find and that's what made me initiate this guide. Do have a look.
Sent from my SM-N960F using Tapatalk
Paras Lehana said:
Hey, I don't own a Pixel but a Note9 but would certainly try to help you.
Do you have 2.4 Ghz router or do you connect to a 5 GHz SSID? If yes to the former, have you tested different channels. Interference in some rare cases can cause unstable internet. You can use the Wifi Analyzer app on the play store to test.
I had fixed a similar problem on my older S7e by assigning static IP to it. Try this as well. Static IP can be configured on your router as well as on your device itself.
Android do has options to set Wifi Aggressiveness. See if you have set Wifi Aggressive Mode (it connects to Mobile data even if Wifi is slightly unstable). There's also two more options (in developer options) that are worth checking: Wifi safe mode and Wifi power saving mode.
I understand that these options are hard to find and that's what made me initiate this guide. Do have a look.
Sent from my SM-N960F using Tapatalk
Click to expand...
Click to collapse
Hi,
Thanks for the reply. My WiFi is properly tuned. No channel overlapping. I'm using 5Ghz band only, same SSID and different channels, and bespoke antenna gains to reduce signal overlap.
None of those options are available in Google Pixel 2. No Power Save Mode and no Safe Mode. Only the option to have Mobile connectivity in background for Fast Switching.
My ask is more towards on how to disable the connectivity check from Android. Nothing else. I know I have Internet access. I know my AP's are all working properly. It's just something with Android...
anthonws

Categories

Resources