Enabling both normal wifi and wifi hotspot to get RSSI values of wi-fi hotspots - Networking

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.

Related

[Q] Wifi on - power consumption too high

I've noticed that the Note uses way too much power when I'm using the phone with Wifi-on vs when using it with 3G on, like 2 times more power.
I wonder if it's the wifi chip used in the Note or my wifi router at home (Tp-link 1043ND 300mbs N class router, 11b/g/n auto channel, auto 20/40mhz)
Same with stock rom, cassie's and rocket rom.
B/c of this I've started using the 3G access even at home, but I'd prefer to use wifi.
Anyone can fill in on this matter?
have same router, but I doubt it's cause of it.
With my dell streak I would lose around 3% battery overnight with wifi on, with the gnote I lose around 10%.
Really sucks.
I got this program, wifi TX power, but still din make test to see if can it works on the gnote to reduce wifi antenna battery usage.
some router seem to have problem in battery drain for wifi. 2wire have this problem too . best way is disable wifi when you are not using?
I've noticed something, don't know if it helps though. After connecting to a wifi router, go into settings --> wireless and networking --> wifi settings (the tab where you view the available wifi networks).
On stock 2.3.6 KK5 even if i am connected to a router it keeps scanning continuously for other wifi hotspots (look for the little circle on the right). I found no option to disable auto scanning. I have notify for open networks disabled. I don't see the same effect on my X10.
Any ideas if that causes the drain?
Edit: I've emailed samsung about the above mentioned in this post. Hopefully they will clear this up.

Note 2 not automatically switching to stronger WIFI signal?

Ok this may be kind of a long post but I'll first address what I think is the issue.
My note 2 doesn't appear to be automatically switching to stronger available wifi signals unless I manually toggle the wifi off then back on again. It will then connect to the stronger signal.
The reason why this has become an issue is because I bought a Diamond WR300n wifi range extender. I'm using it as a reapter. I want to have better wifi signal in my garage where I spend a lot of time. My current wifi signal drops off pretty much near the garage when using my phone. My laptop still gets decent wifi reception when I'm in the garage though.
I went through the fairly basic setup for the extender and got it working. I confirmed this by plugging in the ethernet port from the extender directly to my laptop and its receiving a signal just fine, browsing the internet etc.
So i put this extender in my garage, it connected normally and I confirmed it was working using my laptop again. Everything appeared to be working fine. The extender has the same SSID as my main wireless router (uverse 78wireblahblah).
The issue is when I'm inside my house I'm connected to the main wireless router because this is obviously the strongest signal. When I walk out of my house the signal diminishes as I approach my garage. I can walk into my garage and my wifi signal is pretty much gone even though there is this repeater putting out a working wifi signal with the same SSID as my main router.
Weird right, one would think it would automatically switch and connect to the repeater in the garage, but it doesn't.
Now if I manually turn off wifi and turn it back on while in the garage, bam, very strong signal and I'm connected. There really is two issues though, 1. my note 2 is not automatically switching over to the stronger signal (both the repeater and main wireless router have the same SSID) in the garage and 2. sometimes it connects to that stronger signal in the garage from the repeater (only after i manually toggle wifi off and on) but the internet doesn't work. I'm actually connected to my network because I can access my "Yamaha receiver app" that lets me turn up volume etc on my receiver but I don't have internet access etc. This is usually the case but after awhile it just seems to start working and I have full internet access.
I know this is only semi phone related but I figured since alot of guys on here are very savvy with this tech stuff, maybe someone could help.
Again
1. why won't my note 2 automatically switch over to that stronger wifi signal which should be the same in the garage.
2. why does it sometimes only connect to the network but doesn't allow outside internet access.
Should I try the "wifi jumper" app that supposedly auto switches to best wifi signal (i thought our phones do this anyways)?
Not sure if this is the right place to post this so please move if need be =)
Thoughts?
Stay on what Samsung preset.
Basically I owned a nexus s, it does have automatically jump to higher signal router or access point in android 4.1+.
So basically the WiFi just jumping from my router to access point and from access point to router and I ended up getting no WiFi signal. I have to switch off my access point (extender) to get my WiFi working again...
And note 2 won't give me this problem.
Accidentally sent from my Samsung Galaxy Note 2
If you'd ask me, just buy wifi jumper, you won't regret it!
It works perfectly fine with my 4 routers, all with different SSID. It's nice to have the best signal available wherever you are in the house. Wifi jumper gives me the best results I have had since trying a few different apps like it. The owner just finished rewriting the code for connecting to different routers with same SSID, so it should be the perfect solution in your situation!
And no, I'm not affiliated with it in any way, just a happy user :thumbup:
Edit: oops, old thread
thegipper said:
Ok this may be kind of a long post but I'll first address what I think is the issue.
My note 2 doesn't appear to be automatically switching to stronger available wifi signals unless I manually toggle the wifi off then back on again. It will then connect to the stronger signal.
The reason why this has become an issue is because I bought a Diamond WR300n wifi range extender. I'm using it as a reapter. I want to have better wifi signal in my garage where I spend a lot of time. My current wifi signal drops off pretty much near the garage when using my phone. My laptop still gets decent wifi reception when I'm in the garage though.
I went through the fairly basic setup for the extender and got it working. I confirmed this by plugging in the ethernet port from the extender directly to my laptop and its receiving a signal just fine, browsing the internet etc.
So i put this extender in my garage, it connected normally and I confirmed it was working using my laptop again. Everything appeared to be working fine. The extender has the same SSID as my main wireless router (uverse 78wireblahblah).
The issue is when I'm inside my house I'm connected to the main wireless router because this is obviously the strongest signal. When I walk out of my house the signal diminishes as I approach my garage. I can walk into my garage and my wifi signal is pretty much gone even though there is this repeater putting out a working wifi signal with the same SSID as my main router.
Weird right, one would think it would automatically switch and connect to the repeater in the garage, but it doesn't.
Now if I manually turn off wifi and turn it back on while in the garage, bam, very strong signal and I'm connected. There really is two issues though, 1. my note 2 is not automatically switching over to the stronger signal (both the repeater and main wireless router have the same SSID) in the garage and 2. sometimes it connects to that stronger signal in the garage from the repeater (only after i manually toggle wifi off and on) but the internet doesn't work. I'm actually connected to my network because I can access my "Yamaha receiver app" that lets me turn up volume etc on my receiver but I don't have internet access etc. This is usually the case but after awhile it just seems to start working and I have full internet access.
I know this is only semi phone related but I figured since alot of guys on here are very savvy with this tech stuff, maybe someone could help.
Again
1. why won't my note 2 automatically switch over to that stronger wifi signal which should be the same in the garage.
2. why does it sometimes only connect to the network but doesn't allow outside internet access.
Should I try the "wifi jumper" app that supposedly auto switches to best wifi signal (i thought our phones do this anyways)?
Not sure if this is the right place to post this so please move if need be =)
Thoughts?
Click to expand...
Click to collapse
wifi jumper is a good idea
luega said:
wifi jumper is a good idea
Click to expand...
Click to collapse
Yeah, Wifi Jumper is probably the way to go. In an ideal world, the WiFi stack would roam properly in all cases, but sometimes you're just not quite far enough for it to roam. This is even an issue with the PC also, but most manufacturers allow you to configure the roaming behavior of the driver to your tastes (max range or max speed).

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 ?

[Q] Locking onto a wifi network

I'm running a rooted GS5 and I'm using it to link to a wifi controller on a drone. However, because the drone doesn't provide internet, the wifi manager auto-connects to my wireless SSID and severs the connection with my drone. How can I "lock" onto the drone's SSID? In the older GSX there was an advanced setting in wifi settings to not allow auto switching of wireless networks. Where is that functionality in the GS5?
There may be an advanced wifi option to do so, but I haven't looked.
Your objective could be done with Tasker and iptables. But I'm going to make the assumption that if that didn't occur to you already, that you don't use those programs and there is a learning curve to scripting. So, just grab an app to do this e.g. Wifi prioritizer.
Done
.
.
Lack of option - that is correct - there is no option to disable scanning. The only reliably sensible option left to you is to forget your home wifi network before connecting to the drone and then establishing a connection with the drone.
That's pretty much it - of course on rooted device you could write scripts to engage/disengage a specific network - but to be honest I'd call that an overkill.

[Q] Location accuracy improved when wifi is on

This is more a curiosity than anything else, but I've noticed that location accuracy is improved when wifi is toggled on in Android, even if you are not connected to a wifi network. I have an android service that collects location information on an interval using LocationManager with the LocationListener provider set to NETWORK_PROVIDER.
When the wifi radio is activated on my test device but not connected to any wifi network, the accuracy is ~ 30 - 70 meters. This is relying on the cell network only, having verified that the device is not auto-connecting to some available wifi network. However, as soon as I toggle the wifi off the accuracy drops to about 1000 meters. Does anyone have any idea why that is even though the network being used is the same? I've heard that you have access to some location database that improves accuracy when you are on a wifi network, but I'm not on any wifi network in this scenario. Is the FusedLocationAPI any better?
Have a look at this https://en.m.wikipedia.org/wiki/Wi-Fi_positioning_system
You don't need to be on the network at all, just being in range to get the SSID and BSSID is good enough.
Sent from my XT1254
But just to confirm, the device needs to have the wifi radio enabled (even if connected via the cell radio) in order to use this info?
Ideally yes but newer versions of Android collect location data even when you're WiFi radio is off. If you look in your advanced WiFi settings you'll probably see an option for scanning networks when WiFi is off. I believe this is an opt out setting by default.
Sent from my XT1254
You don't have to be connected, you just need the mac address of the wifi router which is stored in the online wifi db.
But you still have to be online via cell radio in order to be able to access the db
--------
Nexus 5 MPZ44Q (M preview 1), rooted + TWRP 2.8.6.1
G Watch R 5.1.1 LDZ22D, stock

Categories

Resources