Reply
Thread Tools
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#1
Hi, I'm developing an application (phone a a GPS tracker device and send data automatically to webserver) in Python for my N900 and I want to know the following questions (related to Python programming):

- how can I produce a simple beep sound?

a system beep is not installed & apt-get doesn't have it.

- how can I detect if the cellphone dataconnection is enabled or not? If not, how can I enable it or switch from LAN connection to cellphone dataconnection?

There must be somesort of dbus/system command for it, I think.

Does somebody know the sollution? That would be great!
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#2
I found a part of the solution:

Disable WLAN:
Code:
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
Enable GPRS:
Code:
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:IAP_ID uint32:0
But how do I detect if GPRS is already enabled or not?
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#3
with the beep you could just find a system beep like sounds and play that file?
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#4
Originally Posted by digitalvoid View Post
I found a part of the solution:

Disable WLAN:
Code:
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true
Enable GPRS:
Code:
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:IAP_ID uint32:0
But how do I detect if GPRS is already enabled or not?
You can try python-conic the python binding for libconic.
There is an example "test_automatic_events.py".

nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
juise-'s Avatar
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#5
Originally Posted by digitalvoid View Post
- how can I produce a simple beep sound?
Saw this while browsing around, haven't tried it though.

http://wiki.maemo.org/PyMaemo/UI_tut...ound_utilities
 

The Following User Says Thank You to juise- For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:25.