![]() |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Hello everybody. Just to let you know that I've updated my script (more like the whole instructions). Now, the script only runs when a connection is active and it closes itself after the device is disconnected (instead of running at boot and staying like that). If you had already used my script, please re-read the whole instructions, a couple of things besides the script are different. Please see back here post #107 or click here http://talk.maemo.org/showpost.php?p...&postcount=107
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Thanks for the script! :D
hey Azstunt can you help me with the install? I just finish installing VIM and Rootfs how do I install the script? |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
thanks :D
123456789732 |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
I've merged the scripts from azstunt and calvin_42 since they both have great features - I like the visual notification for starting connection monitoring and ending a connection. if-up was a good choice too.
Seems to work quite well - but not when switching connections. For best results disconnect from a connection before connecting to another one. Instructions for install pretty much as azstunt says. Read the comments... /usr/local/bin/autodisconnect: Code:
#!/bin/sh Code:
#!/bin/sh Code:
#!/bin/sh |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
I have got the above script working successfully.
How do I get email to automaticaly connect to network, its set to auto update? |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
|
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Thanks I had just set mine up to
connection any search 5mins email to update 5mins as you say seems to work, I will see how it goes. |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Hey mclarson!
Thanks for the merge! The script begins to be pretty clean now. I will use it in the application. I've got a few questions : 1) Why have you chosen to keep the 2 while instructions ? -> See my script with only 1 while 2) Why have you chosen to read the RX instead of the TX value ? 3) Number of bytes to ignore for each time period : where does it come from in fact ? Broadcast ? I ask because in my tests on my device, neither the 3G nor the WLAN connexion have generated transmitted packets when I was connected with no activity. But in my case I read TX value and not the RX value. Thanks! |
Re: Connect to Internet on demand & disconnect automatically, particularly for GPRS?
Quote:
Quote:
Quote:
I would expect there to be a much bigger difference between idle and busy RX than idle and busy TX. More samples should be more accurate. It would take fewer TX packets to affect the measurement considerably. For a bulk download relativey tiny ACKS would be sent, ie tiny sample, but would have lots of rx, ie big sample. My *idle* connection does about 2k per minute - there /must/ be tx in there but I've not checked what that traffic is. I'd be intersted to see how well your tx method works. |
All times are GMT. The time now is 22:23. |
vBulletin® Version 3.8.8