Is there a way to cycle WiFi off and on? - Nexus One Q&A, Help & Troubleshooting

I connect to an ad-hoc network at my parents place and when I leave it seems to stay connected even though, obviously, it is now the only device in range. If I disable and re-enable wifi, that clears it but I want a quicker way.
Ideally I'd like a program that can just do this when run. I could then call it with something like Setting Profiles but even some script that I could run with GScript would be fine
Any ideas?

Related

Turning data connection ON?

I'd like to know if there is a way to turn the data connection ON from the Communications Manager. I scoured the forum for tweaks but I couldn't seem to find anything related to that. Yes, I know the battery runs dry really fast, but I'd still like to be able to turn EDGE on whenever I want to, instead of having to rely on programs to autoconnect or go deeper into the Connection Settings. Can anyone help me out?
Use the Setting option on the TFL. The bottom has a data button.

Wifi always requires manual connect???

Hey guys I tried searching but came up empty handed here.
Whenever I put my nook in standby (push power button or it automatically does it with inactivity) the wifi connection turns off. I've got it set to do that in spare parts so that it only stays "awake" while charging and not while idle.
The problem is it doesn't do that. Regardless of if it's charging or not, whenever I wake it up, even though wifi is enabled in the settings, it doesn't search on connect to my network. I have to go into Setting -> Wireless and as soon as I go into that menu, it finally connects automatically. It won't do it unless I go to that menu.
I'm rooted with the 1.0.1 Autonoonter btw.
Mine was doing something similiar. For me, it kept hanging up on obtaining an IP. I used an app called Wifi Static (free in the market) to set up a static IP and haven't had any problems since. Wifi seems to shut itself off way less often and when it does, it only takes 1-2 seconds to auto reconnect. Don't know if it will help you or not, but it's worth a try.
Have you done any modification of the wifi settings at all? Like the ad-hoc supplicant mod?
Quilombo said:
Have you done any modification of the wifi settings at all? Like the ad-hoc supplicant mod?
Click to expand...
Click to collapse
I have not.
I have the problem but it only happens with certain routers others work just fine . . . weird!
I have exactly the same problem. It started with the upgrade to 1.1. Affects stock or adhoc supplicant.Very annoying. Yet to find a fix

Tasker Location/Wifi Near Actions not working too well...Pls Help...

Hey,
Love Tasker, like love it...but, some of the things I'd like to do, the major ones, just aren't working out....it's probably me not setting them correctly, don't know...
So I need something simple really...
- Come home, turn wifi on, connect, turn mobile data off (would prefer to turn to GSM from WCDMA Auto but not sure if you can without root...)
- Leave home, wifi off, mobile data on...simple in theory...
Have tried locale based (gps) profiles, wifi near, cell locale...to not much avail...if just swaps back and fro, doesn't know whats going on. So I'm just seeing if anyone has been able to do this easily and efficiently...
Cheers.
I recently raised this myself. Basically the issue is that Google no longer allow apps to turn WiFi on or off. As such, that kind of profile won't work.

[Q] Wifi and 4g at the same time

I have been searching for a way to do this for months. I have a gopro that has WiFi to broadcast the picture to my phone. The problem is that it turns off the data on my phone so I receive no messages and can do nothing with data. I have root, and am willing to test apps, but i need to be able to use both local wifi for the video and 4G/3G for internet usage. Thanks for anybody to help me out.
-Nagas
I don't get it? Anything that uses data, normally uses WiFi too. Either or.
And no...the two can't be on at the same time.
---------- Post added at 11:51 PM ---------- Previous post was at 11:50 PM ----------
Oh...so you mean the WiFi has no internet connected. I get it.
Sorry though....never heard of such a thing as you're asking. Perhaps someone else has.
Good luck!
I'm confused. Why can't you tether the GoPro to your phone using the hotspot? Still connected through wifi but you don't lose data.
nhizzat said:
I'm confused. Why can't you tether the GoPro to your phone using the hotspot? Still connected through wifi but you don't lose data.
Click to expand...
Click to collapse
The Gopro acts like a seperate wireless accesspoint. With that said, the Gopro does not connect to a wireless network when I am traveling in a car. My phone does not have a hotspot option. I have a modified version on my phone. So when i connect to the camera it completely disconnects from everything. I do have root though. But if it is just not possible then so be it.
Thanks for Everybody's help
Nagas
vagh_nagas said:
I have been searching for a way to do this for months. I have a gopro that has WiFi to broadcast the picture to my phone. The problem is that it turns off the data on my phone so I receive no messages and can do nothing with data. I have root, and am willing to test apps, but i need to be able to use both local wifi for the video and 4G/3G for internet usage. Thanks for anybody to help me out.
-Nagas
Click to expand...
Click to collapse
something like this?
http://www.xda-developers.com/andro...s-mobile-data-wifi-for-faster-internet-speed/
1ad_m12 said:
something like this?
http://www.xda-developers.com/andro...s-mobile-data-wifi-for-faster-internet-speed/
Click to expand...
Click to collapse
Yes much like that, but i need it for all data not just downloading files. if it can do it for one application, it should be able to do it for all of them. or at least select ones. I do have root so i would be able to select which apps have and do not have the access to 4G all the time.
Any thoughts are appreciated.
-Nagas
Well if you have tasker you can have a profile for when you're connected with your gopro and a task that disconnects, polls for messages, then reconnects. You could poll for a minute every 10 minutes as to not obstruct work flow. Or even longer if you want. I think what you want to happen is a limitation of android itself and for good reason. You'd burn through your battery on accident all the time if you could do that natively. Or run up your data.
At any rate I'd go with tasker. There's so much you can do with that it's ridiculous.
1ad_m12 said:
Well if you have tasker you can have a profile for when you're connected with your gopro and a task that disconnects, polls for messages, then reconnects. You could poll for a minute every 10 minutes as to not obstruct work flow. Or even longer if you want. I think what you want to happen is a limitation of android itself and for good reason. You'd burn through your battery on accident all the time if you could do that natively. Or run up your data.
At any rate I'd go with tasker. There's so much you can do with that it's ridiculous.
Click to expand...
Click to collapse
How would I do that. I am Very new with scripts.
vagh_nagas said:
How would I do that. I am Very new with scripts.
Click to expand...
Click to collapse
Tasker is an automation application found on the Play Store for about $3.00... In my opinion it is worth far more than that. It does have a bit of a learning curve but the benefits of what it can do are amazing. https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
You can use scripts in it but I was suggesting something different. Using Tasker you should be able to set up a profile for whenever you are tethered to your GoPro so that every so often Tasker will automatically turn off WiFi for a length of time of your choosing and then reactivate WiFi and the connection to your GoPro. This process could be set on a loop every time you connect to your GoPro; this way you won't miss any pending notifications that are trying to be pushed through without having to manually disable and re enable WiFi. You would only have to take note of when it would disable the WiFi so that your pictures can be transferred through to your phone properly.
New Profile= State> Net> Wifi Connected> Your GoPro's SSID or MAC address
Task Actions= Task> Wait> 10min (or however long you figure is a good time between cycles)
Net> WiFi> Set off
Task> Wait> 1min (or however long you want it to poll for notifications)
Net> WiFi> Set on
I know this isn't a perfect solution to your problem but it should, in theory, work.
1ad_m12 said:
Tasker is an automation application found on the Play Store for about $3.00... In my opinion it is worth far more than that. It does have a bit of a learning curve but the benefits of what it can do are amazing.
You can use scripts in it but I was suggesting something different. Using Tasker you should be able to set up a profile for whenever you are tethered to your GoPro so that every so often Tasker will automatically turn off WiFi for a length of time of your choosing and then reactivate WiFi and the connection to your GoPro. This process could be set on a loop every time you connect to your GoPro; this way you won't miss any pending notifications that are trying to be pushed through without having to manually disable and re enable WiFi. You would only have to take note of when it would disable the WiFi so that your pictures can be transferred through to your phone properly.
New Profile= State> Net> Wifi Connected> Your GoPro's SSID or MAC address
Task Actions= Task> Wait> 10min (or however long you figure is a good time between cycles)
Net> WiFi> Set off
Task> Wait> 1min (or however long you want it to poll for notifications)
Net> WiFi> Set on
I know this isn't a perfect solution to your problem but it should, in theory, work.
Click to expand...
Click to collapse
You know what, That worked perfectly. until the app tried to auto reconnect. then my phone seemed to get stuck in a loop. it kept turning the wifi on then off then on then off. it was strange. I am attempting to find a setting for it to auto reconnect and turn it off but there has been no luck so far. Thanks for your help so far.

How to Schedule Auto Sync when device is sleeping and Wifi Off ?

I have been looking for internet all these days, everywhere to autosync my device when device is sleeping and wifi is off but couldnt find any working solution as yet.
Tasker should turn on wifi, auto sync then turn auto sync off and wifi. I tried all that I could, but not working.
Anyone can help me with this over here ?
I do have a working autosync profile but for me in order to get it to work, I needed synker and secure settings, because Taskers WiFi action does not always work. If you would like me to share it with you, let me know.
It also takes other things into account as well.
I do have secure settings already. Do share how you do it given your device is sleeping and even WiFi is turned off
OK you can download my profile here, since it would be better, rather than explaining it.
https://drive.google.com/file/d/0B8M8tLEXhDNZQU9XMkV2Qm1RREk/view?usp=drivesdk
I need synker with this ?
Thats correct. But you can try taskers sync option.
Hi, I tried this profile, unfortunately its turning on my data when I am home and Wifi is available. Though I am not sure if its turning on my Wifi while its turned off, I would want to ensure my data stays off. What are the changes I need to make ?
If you wish to remove the mobile data aspect of it altogether you will need to delete, all actions from 9 to 15, then add stop and add end if at then end of the task.
Also it does check to see if wifi is off first and if it is, it will switch it on.
My WiFi is on, but I ensure when screen is off, Wifi stays disabled. And for some reason its not turning back the WiFi when screen is Off. Dont know why
Unfortunately I am in the same boat at the moment, and I have not found anything to resolve this.
I also started my own thread some time ago about it, but I haven't had anyone give me an answer to solve it nor suggest what could cause it.
@ProudRed
UPDATE: I think I might know what the problem is, I have added wake device command at the beginning of my task,via plugin called secure settings > actions > wake device. I will find out tomorrow if this actually works.
I can confirm that adding the plugin > secure settings > actions > Wake device, solves the problem for me. Apparently you shouldn't need this if you adhere to this page http://tasker.dinglisch.net/userguide/en/androidpowermanagement.html
But for some reason it still does not work for me even if I whitelist tasker and it's plugins from 3rd party battery saving apps like amplify or powernap.
The issue I am having is with connecting the wifi, its getting connected but gets disconnected after 5-10 seconds. I have even tried ensuring that screen keeps on for 2 minutes, even after that Wifi is getting disconnected. Can I have an working profile from you without the mobile data part ? May be I am doing something wrong.

Categories

Resources