Active Topics

 


Reply
Thread Tools
Posts: 9 | Thanked: 1 time | Joined on Dec 2007
#1
Hi,

I flashed my N800 to OS 2008 last night. After that everything worked fine until I tried to us hcitool to scan for a bluetooth device. There was just no hcitool. Bluez-utils are installed and the connection by using the gui works fine too but I really need hcitool and rfcomm which isn't there neither.

I googled a while but there was nothing like that so I'm asking here. Is it a common problem on OS 2008? I saw a few post about people working with hcitool on OS 2008 because of I'm a little bit confused why there isn't a hcitool on my device.

Does anybody know how to fix this? On 2007 everything worked well. I really hope some of you got an answer.

toti
 
Posts: 86 | Thanked: 362 times | Joined on Dec 2007 @ Paris / France
#2
Hi,

Same problem here (on a n810).
bluez-utils package does not include any binary (except hcid).
I've found another bluez-utils package at http://www.mulliner.org/nokia770/, but don't install it, because it seems to break bluetooth (i couldn't use my BT keyboard after trying it, but maybe it justs need to be configured again).
Anyways if you really need it you can unpack this package and just extract the binaries. "hcitool scan" works but is really slow and fails to get device name.

I'm also interested in a real (and clean) answer to this problem.

Eric
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#3
This is known problem, there are no binaries for this inside bluez-utils anymore. All is done via d-bus now, see
http://lists.maemo.org/pipermail/mae...er/013507.html for one solution.It also quite easy to use bluez over d-bus from python, see http://wiki.bluez.org/
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2007-12-28 at 21:13.
 
Posts: 91 | Thanked: 4 times | Joined on Dec 2007
#4
Is there any way to debug a bluetooth dun connection? I am interested in why my Nokia E60 cannot be used with DUN.
 
brendan's Avatar
Posts: 531 | Thanked: 79 times | Joined on Oct 2006 @ This side of insane, that side of genius
#5
i had put together this little script to power up the bluetooth device and setup everything to wardrive with a GPS and Kismet. you could even open a mapping app like maemo mapper and track your position in that while kismet recorded. now that hciconfig and gpsd are not installed in OS2008, how would one go about accomplishing this?

the dbus-bluez-scan doesnt start up the bluetooth device on the tablet. i utterly hate having to open the control panel to start the bluetooth device, when the action can be done via command prompt. now that hcitool and hciconfig are no longer available the following post is completely useless...

http://www.internettablettalk.com/fo...ead.php?t=9577

sorry if i am hijacking your thread...
__________________
Nokia n800
OS 2008
Pharos iGPS 360-BT
ElmScan 5 BlueTooth
BlackBerry Bold (9000)
AT&T Wireless
 

The Following User Says Thank You to brendan For This Useful Post:
Posts: 91 | Thanked: 4 times | Joined on Dec 2007
#6
probably the only way is to port your script to python or use glib with c and the new bluez d-bus API. That is probably also the reason why the older phones do not work with Nokia N8x0 and OS2008. I tried the dbus-send examples for service discovery that seems to work although the DUN is still not working for my phone :-((((
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#7
Originally Posted by brendan View Post
the dbus-bluez-scan doesnt start up the bluetooth device on the tablet. i utterly hate having to open the control panel to start the bluetooth device, when the action can be done via command prompt. now that hcitool and hciconfig are no longer available the following post is completely useless...
to switch bt off and on is easy over dbus
dbus-bluez-adapter-mode script:
Code:
#!/bin/sh
#
dbus_method(){
local dest=$1
shift
DBUS_REPLY=$(dbus-send 2>&1 --system --type=method_call --print-reply --dest="$dest" $* )
}

dbus_result(){
    echo $DBUS_REPLY | cut -d ' ' -f 7- | tr -d \"
}

err(){
echo >&2 $*
}

mode_get(){
if dbus_method org.bluez /org/bluez/hci0 org.bluez.Adapter.GetMode  ; then
    echo $(dbus_result)
else
    err ${DBUS_REPLY}
fi
}
mode_set(){
dbus_method org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:$1 || err ${DBUS_REPLY}
}

if [ "$1" != "" ] ; then
mode_set $1
fi
mode_get
call it like
Code:
dbus-bluez-adapter-mode off
dbus-bluez-adapter-mode connectable
or just
Code:
dbus-bluez-adapter-mode
to get current mode. For more details see http://wiki.bluez.org/wiki/Adapter
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following 2 Users Say Thank You to fanoush For This Useful Post:
brendan's Avatar
Posts: 531 | Thanked: 79 times | Joined on Oct 2006 @ This side of insane, that side of genius
#8
ok i can power up the bluetooth device. one down more to go.

now how would i create a connection between my GPS and n800? hcitool cc <btaddr> would do it before. is there more dbus scripting to do that? at this point what has been provided above is above my level of expertise.

once the connection has been created, you have to hand the connection to gpsd via a device (hci0). what would the device be called when using the dbus method? would it still be hci0? is it different because of the dbus method?

again, the dbus-bluez-adapter-mode script is above my head, so please take it easy on me.
__________________
Nokia n800
OS 2008
Pharos iGPS 360-BT
ElmScan 5 BlueTooth
BlackBerry Bold (9000)
AT&T Wireless
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#9
Yes it is still hci0.

Don't know much about gpsd but according to this page http://gpsd.berlios.de/bt.html gpsd wants rfcomm port so it looks same like with kbdd and hcitool is not needed. How exactly you did it in OS2007 with hcitool?
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
brendan's Avatar
Posts: 531 | Thanked: 79 times | Joined on Oct 2006 @ This side of insane, that side of genius
#10
#! /bin/ash
hciconfig hci0 up
hcitool cc <your:bt:gps:id:here>
gpsd hci0
kismet
kill `ps -ef |grep gpsd |grep -v grep |awk '{print $1}'`
hciconfig hci0 down

i did have to edit the /etc/default/rfcomm.conf and /etc/bluetooth/hcid.conf or some such files.
__________________
Nokia n800
OS 2008
Pharos iGPS 360-BT
ElmScan 5 BlueTooth
BlackBerry Bold (9000)
AT&T Wireless

Last edited by brendan; 2007-12-29 at 20:34.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:37.