maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Data connection ( internet) (https://talk.maemo.org/showthread.php?t=79184)

JK0d3r 2011-10-18 05:48

Data connection ( internet)
 
Hello everyone. I have a few "problems" with my providers data connection ( Internet )
I have Foreca and Mail for exchange setup, working without any problem.
The problem is that is i use my provider data connection, it does connect, Foreca is updating weather etc. but after a while, the connection is somehow closed, and wont reactivate again if needed ( After 4 hours when Foreca should update weather )

I Assume that it enters in some sort of idle state, that it turns off.
If anyone else encounter this problem also, are there any fixes ?

Best regards,
Sebastian Bota

Mike Fila 2011-10-18 06:41

Re: Data connection ( internet)
 
i assume it does connect when you start micro b? go into settings ..internet ...connections ..chose the connection you want to keep alive ...edit ..next until you see advanced then there willl be 3 tabs under one you will see power savings

you will use a lot more of your battery if you turn it off

JK0d3r 2011-10-18 06:48

Re: Data connection ( internet)
 
Quote:

Originally Posted by Mike Fila (Post 1110289)
i assume it does connect when you start micro b? go into settings ..internet ...connections ..chose the connection you want to keep alive ...edit ..next until you see advanced then there willl be 3 tabs under one you will see power savings

you will use a lot more of your battery if you turn it off

For a wireless netowrk i have the settings you say. But for my operator ( Orange ) i hanve only Proxy and IP Addresse, in the advanced tab, Nothign about powersave or something like that...

reinob 2011-10-18 06:57

Re: Data connection ( internet)
 
@JK9d3r,

The problem may be that if for some time the N900 doesn't use the connection actively, the provider might be closing it.

I had a similar issue (Germany, blau.de provider using E-Plus network), where sometimes I would stop receiving mail. I had the polling interval set at 1h. I changed it to 30min and I've never had the problem again.

A possible solution might be to have a script pinging something every 10min or so, but I haven't bother to write one (since it now WORKSFORME :)

JK0d3r 2011-10-18 06:59

Re: Data connection ( internet)
 
Quote:

Originally Posted by reinob (Post 1110294)
@JK9d3r,

The problem may be that if for some time the N900 doesn't use the connection actively, the provider might be closing it.

I had a similar issue (Germany, blau.de provider using E-Plus network), where sometimes I would stop receiving mail. I had the polling interval set at 1h. I changed it to 30min and I've never had the problem again.

A possible solution might be to have a script pinging something every 10min or so, but I haven't bother to write one (since it now WORKSFORME :)

Thank you, a script might be a good solution after all ;), i just have to check somehow, what is the interval when the provider closes the connection
so i can ping something just before the connection is closed :)

Thank you !

Chrisboff 2011-10-18 13:58

Re: Data connection ( internet)
 
My solution to this is to set my n900 to automatically connect to any network after a time interval and use auto disconnect to disconnect after a period of time. For my setup it connects for 5mins each half hour which saves battery too.

nicholes 2011-10-18 14:36

Re: Data connection ( internet)
 
also you can install an application called "alarmed" and set it to automatically connect to internet when ever you want. (user defined time like alarm does)

reinob 2011-10-19 13:30

Re: Data connection ( internet)
 
Quote:

Originally Posted by JK0d3r (Post 1110295)
Thank you, a script might be a good solution after all ;), i just have to check somehow, what is the interval when the provider closes the connection
so i can ping something just before the connection is closed :)

Thank you !

Not sure if this would work (I think each application has to support this), but
the keepalive kernel parameter is, by default, set to 7200s (2 hours).

So doing (as root)
# cat 600 > /proc/sys/net/ipv4/tcp_keepalive_time

should do the keepalive thing every 10min.

I will try setting my IMAP polling interval to something longer (1 hour) with keepalive at 1200 (20min), and see what happens.

JK0d3r 2011-10-25 09:34

Re: Data connection ( internet)
 
Quote:

Originally Posted by reinob (Post 1110893)
Not sure if this would work (I think each application has to support this), but
the keepalive kernel parameter is, by default, set to 7200s (2 hours).

So doing (as root)
# cat 600 > /proc/sys/net/ipv4/tcp_keepalive_time

should do the keepalive thing every 10min.

I will try setting my IMAP polling interval to something longer (1 hour) with keepalive at 1200 (20min), and see what happens.

Cool solution, i will also try this.

RDK 2012-09-22 03:56

Re: Data connection ( internet)
 
Did the keep alive work? I could do with it for my 3G carrier.


All times are GMT. The time now is 05:00.

vBulletin® Version 3.8.8