maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Tethermon: Monitor tethered connections from the status area (https://talk.maemo.org/showthread.php?t=42912)

philipl 2010-02-01 01:32

[Announce] Tethermon: Monitor tethered connections from the status area
 
Hi all,

As we all know, the N900 is a pretty neat device, but one deficiency it has with respect to Nokia's Symbian phones is that it doesn't provide any visual feedback when a tethered data connection is in use.

I noticed this early on, but after Jan Zbytovský commented on the bluetooth-dun page that there was no way to tell if it was in use, I decided to take a look at whether it was possible to write a suitable monitoring applet.

And it turns out that it is possible, by poking at various semi-documented DBus interfaces, and so I've stuck my initial attempt into extras-devel.

It's able to detect that a data connection has been started, stopped or suspended (eg: if you answer a call while using gprs/edge). The mechanism for detecting that a data connection is not tethered (being used by the phone itself) is not perfect but should work for anyone who doesn't have more than one APN.

In this initial version, the plugin always shows an icon (dimmed when no connection is in use) but I think it's preferable to show no icon at all when there's no connection, so I'll probably take it out in the next iteration.

Here's the package page:

http://maemo.org/packages/view/tethermon

Feedback is always welcome.

Enjoy!

william_riker 2010-02-01 21:57

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
Hi Philip,
now I red your article about this problem with tray-icon. I was very pleased that you want solve this. And I'm very happy that SW for Meamo is flexible and developing :D.
IMHO (if it possible) make option to stop/start DUN (?in tray menu?) and show tray icon only when BT is ON.
Sorry if is it stupid suggestion, I don't know exatly the possibilities.
J.

silvernight84 2010-02-02 15:03

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
Hey it works fine, but after phone restart, there's no icon anymore...

philipl 2010-02-03 16:27

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
Quote:

Originally Posted by silvernight84 (Post 506959)
Hey it works fine, but after phone restart, there's no icon anymore...

Indeed. Seems like a bug in the python loader. I guess that until this gets fixed, my plugin isn't going to be much use :-/

philipl 2010-02-03 16:29

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
Quote:

Originally Posted by william_riker (Post 505876)
Hi Philip,
now I red your article about this problem with tray-icon. I was very pleased that you want solve this. And I'm very happy that SW for Meamo is flexible and developing :D.
IMHO (if it possible) make option to stop/start DUN (?in tray menu?) and show tray icon only when BT is ON.
Sorry if is it stupid suggestion, I don't know exatly the possibilities.
J.

So, I do plan to make the icon only appear when tethering is in use. As for controlling bluetooth-dun, it's conceivable, but a bit tricky as only root can start or stop services. I'll need to think about that one.

qwerty12 2010-02-03 21:23

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
Why it doesn't start after a reboot:
Quote:

Traceback (most recent call last):
File "/usr/lib/hildon-desktop/tethermon.py", line 59, in __init__
proxy = bus.get_object('com.nokia.icd', '/com/nokia/icd')
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 244, in get_object
follow_name_owner_changes=follow_name_owner_change s)
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 241, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 183, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 281, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name com.nokia.icd was not provided by any .service files
The applet is evidently starting too early as killall hildon-status-menu works afterwards.

I also second the request for having no icon in the status area when the tablet is not tethering - it wastes valuable title space.

philipl 2010-02-09 18:21

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
good catch. I'll have to try and cope with that.

gykiss 2011-01-12 08:31

Re: [Announce] Tethermon: Monitor tethered connections from the status area
 
Hi Philip,

Have you found any solution to start your application after restart? I'd like to use this, if that would work...


All times are GMT. The time now is 14:21.

vBulletin® Version 3.8.8