maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Solved] How do I spot which application is causing my N900 to connect to the internet? (https://talk.maemo.org/showthread.php?t=60983)

eitama 2010-08-24 09:46

[Solved] How do I spot which application is causing my N900 to connect to the internet?
 
Hey guys,

Edit : Solved - I was expecting a bahvior which is different from the designed one. If one select Auto Connect to any connection type or gprs or wifi, the phone will connect at the set interval below, regardless of internet requirement.
This means that the phone will connect even if no app needs internet.

I have my network connectibity set to Auto Connect to Any COnnection, I like it this way, and using auto disconnect to close those connections when not needed.
The problem is, every 5 minutes or so, my phone connects to 3g internet if there is no wifi. Some app is causing it to connect.

I have tried using tcpdump in if-up.d/ but the cap was empty.
I verified my tcpdump is working by browsing some site manually, and that did appear in the pcap file.

Any ideas?

Thanks,
Eitam.

mr_xzibit 2010-08-24 09:52

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
in settings . internet connection. do you have it to auto connect?just a guess?

stickymick 2010-08-24 10:31

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by mr_xzibit (Post 796672)
in settings . internet connection. do you have it to auto connect?just a guess?

The OP does say that he has it set up that way.

First off, check the most obvious apps, ForecaWeather, OMWeather, RSS accounts (if any are set up), Desktop news widgets etc.
Next go through your apps. Check the ones that were last updated, as sometimes they will revert to default settings after an update. Then check any positioning mapping apps that you've got installed.

It's just a case of going through everything to find the culprit.

As an afterthought, why hasn't Nokia caught on to this and changed the connection request to say something like "Suchanapp is requesting a data connection"
It's something that's always bugged me. :confused:

eitama 2010-08-24 10:50

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by stickymick (Post 796705)
The OP does say that he has it set up that way.

First off, check the most obvious apps, ForecaWeather, OMWeather, RSS accounts (if any are set up), Desktop news widgets etc.
Next go through your apps. Check the ones that were last updated, as sometimes they will revert to default settings after an update. Then check any positioning mapping apps that you've got installed.

It's just a case of going through everything to find the culprit.

As an afterthought, why hasn't Nokia caught on to this and changed the connection request to say something like "Suchanapp is requesting a data connection"
It's something that's always bugged me. :confused:

I don't have any :
  • Foreca, OMWeather, RSS Accounts
  • IM Accounts are disabled
  • No Desktop news apps.
  • No Positioning apps running and actulaly not even installed

I tried looking at top, ps, practically starring at them, using diffs, i'm going crazy!!!!

And yes, just give me the process ID and i'll be happy ):

ste-phan 2010-08-24 12:10

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Assuming it auto-connects when an known WiFi network is found:

In that case I would install a firmware on my (Wifi) router that allows me to see the outgoing traffic. (for example: Tomato)

-check internal ip assigned to N900
-check to which internet ip this internal ip address establishes a connection whenever it does "it" again.

From identifying the destination you may find the related program.

Besides, I noticed that N900 keeps a connection to IBM lotus life. There is a thread about it somewhere but nobody knows why it does that. :eek:

handaxe 2010-08-24 12:10

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Investigate the programme “netstat”. It will show all tcp or udp port activity....

eitama 2010-08-24 12:14

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
@ste-phan and handaxe
Iv'e tried both tcpdump on the phone and netstat -a on the phone.
Tcpdump showed no traffic - this can be reasonable only if it starts too late, which I don't believe is the case.

netstat -a only showed connections to my PC (ssh) and connections to localhost, i.e. source = dest = n900.

I have ddwrt on my wifi router, and the model is linksys wrt54g2, sadly tomato doesn't fit it...

I'll try and run tcpdump on ddwrt, though I don't know if I can.
Sniffing and looking for tcp / udp sessions so far didn't reveal any info at all...

Quote:

Besides, I noticed that N900 keeps a connection to IBM lotus life
Is this a tcp connection? does it remain Established for long? or just a sec?

nicolai 2010-08-24 12:25

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Isn't it contradictory to configure autoconnect and install autodisconnect ?

As far as I understand autoconnect, it means to automatically
connect if a network (GPRS and/or WIFI) is available and
not only if a connection is requested.

regards
Nicolai

eitama 2010-08-24 12:31

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
Quote:

Originally Posted by nicolai (Post 796802)
Isn't it contradictory to configure autoconnect and install autodisconnect ?

As far as I understand autoconnect, it means to automatically
connect if a network (GPRS and/or WIFI) is available and
not only if a connection is requested.

regards
Nicolai

You think? why would the phone maintain a connection if it's not needed! it's just a battery drain!
To me it sounds like :
- If phone needs internet, autoconnect will connect via wifi or gprs/3g
- If the internet is idle, autodisconnect will drop the connection.
- Sounds perfect to me. If you think autoconnect just brings up a connection cause there is none at the moment then this is probably my problem.

gabby131 2010-08-24 12:35

Re: [Help Needed] How do I spot which application is causing my N900 to connect to the internet?
 
i hope this helps.

you said you set the connection to "any connection" option

there should be a search interval below, that allows your device to connect and browse available connections every 5, 10, 20mins or Never.

may switch that search interval option to "Never" so it wont browse for available connections.


All times are GMT. The time now is 07:17.

vBulletin® Version 3.8.8