The Following 2 Users Say Thank You to aleksandyr For This Useful Post: | ||
|
2008-01-29
, 09:37
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#2
|
|
2008-01-29
, 10:00
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#3
|
|
2008-01-29
, 10:27
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#4
|
|
2008-01-29
, 17:45
|
Posts: 474 |
Thanked: 30 times |
Joined on Jan 2006
|
#5
|
|
2008-01-29
, 19:04
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#6
|
|
2008-01-29
, 21:22
|
Posts: 474 |
Thanked: 30 times |
Joined on Jan 2006
|
#7
|
|
2008-01-30
, 08:52
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#8
|
The Following User Says Thank You to pycage For This Useful Post: | ||
|
2008-02-01
, 13:07
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#9
|
|
2008-02-01
, 14:02
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#10
|
not too worried about memory/CPU since we'll spend 99% of our time sleeping.
Thanks to fanoush, starting/stopping BTPAN can be put in to a script.
http://www.internettablettalk.com/fo...ad.php?t=12666
(a few quick mods get you DHCP autoconf.)
Named dummy IAPs work fine in OS2008 to allow BTPAN-based connectivity.
Try: gconftool -s -t string /system/osso/connectivity/IAP/Bluetooth-PAN/type DUMMY
python-conic would make it very easy to monitor connection events, such as connecting to a particular named IAP, and disconnecting.
The phone's MAC address is stored in GConf.
See: https://garage.maemo.org/svn/pymaemo...c/trunk/tests/ for the elusive python-conic examples
Getting the phone's BT address is a matter of:
gconftool -g /system/osso/connectivity/BT/preferred
Putting this all together, it shouldn't be too hard to put together a python script that, assuming it gets run at startup, lets you use a Bluetooth-PAN connection just like any other.
The monitor would need to do the following:
Conic events:
Connect - if name matches Bluetooth-PAN, connect. Fire DBUS popups to report connection status. If BTPAN connection fails, call a disconnect.
Disconnect - if we're connected, attempt to disconnect from BTPAN.
I'm not going to touch the issues around loss of signal to the phone.
I'll try to get some reference scripts together when it's not 1AM