Active Topics

 


Reply
Thread Tools
Posts: 543 | Thanked: 151 times | Joined on Feb 2010 @ Germany
#1
Dear Community,

I have two questions / ideas regarding the Bluetooth functions of the N900.

1. Idea how the N900 would start BT automatically once I leave my house:

My idea would be a small script / (cronjob?) which is starting the BT function once the WLAN connection is disconnected (out of range). That way the N900 would connect automatically to my handsfree car kit and I wouldn't have to enable it each time by hand. Anyone got an idea how to create such a script?

2. Is there a possibility to connect automatically to BT devices?

I have the problem that my N900 is connecting not always automatically to my handsfree car kit, I have to connect it by hand then which can be quite annoying while I drive. Is there any possibility to "force" aways a automatic connect once it is seeing my handsfree car kit in range?

My handsfree car kit is a Kenwood BT60 which is evening reading the phone contacts of the N900. Also "BT Audio" is working without any problems.
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#2
Originally Posted by Crogge View Post
Dear Community,

I have two questions / ideas regarding the Bluetooth functions of the N900.

1. Idea how the N900 would start BT automatically once I leave my house:

My idea would be a small script / (cronjob?) which is starting the BT function once the WLAN connection is disconnected (out of range). That way the N900 would connect automatically to my handsfree car kit and I wouldn't have to enable it each time by hand. Anyone got an idea how to create such a script?
I'm currently writing exactly this type of app, see here: http://wiki.maemo.org/Proximus
 

The Following 2 Users Say Thank You to lardman For This Useful Post:
Posts: 123 | Thanked: 99 times | Joined on Sep 2010 @ Russia
#3
1. /etc/network/if-post-down.d/10_enable_bt:
Code:
#!/bin/sh
if [ "$ICD_CONNECTION_ID" == "GUID_OF_CONNECTION" ]; then
   phone-control --bton
fi
exit 0
/etc/network/if-up.d/10_disable_bt:
Code:
#!/bin/sh
if [ "$ICD_CONNECTION_ID" == "GUID_OF_CONNECTION" ]; then
   phone-control --btoff
fi
exit 0
GUID you can see in output of
Code:
gconftool-2 -R /system/osso/connectivity/IAP
 
Reply

Tags
bluetooth, script


 
Forum Jump


All times are GMT. The time now is 04:02.