PDA

View Full Version : Integrating PAN Bluetooth into the Connection Manager


phi
01-14-2007, 06:43 PM
so after all the pains of getting the PAN Bluetooth profile on my T-mobile Dash to share its internet connection to my N770 (http://www.internettablettalk.com/forums/showthread.php?t=3402), I've been reading

http://maemo.org/maemowiki/BluetoothNetworkingAndConnectionManager

to try to connect right when I select the DEFAULT Dummy AP on my connection selection. However its not working.

Right now, I have to select the dummy AP, then open Xterm, and run an "./up" script on my root folder and to disconnect, I have to run the "./down" script when i disconnect.

So I tried to do everything via the How-To and that didn't work. So I tried replacing


Nokia770-26:/# cat /usr/bin/dbus-script
#!/bin/sh
[ "$3" = "com.nokia.icd" ] || exit 0
[ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /usr/local/bin/btconnect.script
[ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /usr/local/bin/btdisconnect.script


with

Nokia770-26:/# cat /usr/bin/dbus-script
#!/bin/sh
[ "$3" = "com.nokia.icd" ] || exit 0
[ "$5" != "DEFAULT" -o "$7" != "CONNECTED" ] || /up
[ "$5" != "DEFAULT" -o "$7" != "IDLE" ] || /down

and that doesn't want to work. Anyone have any pointers?

aflegg
01-15-2007, 04:31 AM
Where in the filesystem are your "up" and "down" scripts? I find it hard to believe they're in the root directory (/up). More likely you'll want something like '/usr/local/bin/up' or '/home/user/up'.

Go to the directory where "./up" works and type "pwd" in xterm. That will give you what you need to precede "/up" in your script.

HTH,

Andrew

phi
01-15-2007, 10:39 AM
/ $ pwd
/
/ $ ls -l up*
-rwxr-xr-x 1 root root 862 Nov 2 11:33 up
/ $




looks like its in the root

aflegg
01-15-2007, 11:32 AM
Damn, sorry - can't help then ;-)

A PATH issue perhaps?

phi
01-15-2007, 01:02 PM
the original path was

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

I changed it to be

PATH=/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

Does that work? (it didn't for me)

I guess no one has gotten this working yet besides the author of the original wiki