Bluetooth problems


Forum: Networking
Topic: Bluetooth problems
started by: Onyarian

Posted by Onyarian on Jan. 23 2007,16:17
Hi,

My laptop is a Compaq armada 1700 (96 Mb ram, 266 Mhz), and I have a  Conceptronic Bluetooth pcmcia.  I want to connect the laptop with my PDA HP 2210 to transfer files, and with my movil S55 to connect the net via GPRS. My DSL version is the newest 3.2 in frugal installation.

When I load bluez-utils.unc and try to use the command #insmod bluez the output is:

insmod: /lib/modules/2.4.26/kernel/net/bluetooth/bluez.o is not owned by root
insmod: bluez: no module by that name found

I try to use with sudo and the output is the same, in a root window also.

So I can't go more away from here.

What can I do?

Thanks,

Onyarian

P.D.: Robert, very good job with this version, I can surf the net with a wifi pcmcia and wep with the internal madwifi without problems (I have to try now with wap encriptation). Thanks.

Posted by Juanito on Jan. 24 2007,14:42
I got the bluetooth modules in the bluez-utils.unc from the Knoppix 3.4 CD rather than compile them myself - maybe the modules need to be 'owned" by user= dsl but I did not see this problem on my setup...
Posted by Onyarian on Jan. 25 2007,16:41
well, the permissions of bluez.o is:

-rw-r--r--    1 dsl      staff       49132 Jan  6 03:43 bluez.o
drwxrwsr-x    2 dsl      staff        2048 Jan  6 20:24 bnep
drwxrwsr-x    2 dsl      staff        2048 Jan  6 20:24 cmtp
-rw-r--r--    1 dsl      staff       26008 Jan  6 03:43 l2cap.o
drwxrwsr-x    2 dsl      staff        2048 Jan  6 20:24 rfcomm
-rw-r--r--    1 dsl      staff       15376 Jan  6 03:43 sco.o

so I change his user and group to root:

-rw-r--r--    1 root     root        49132 Jan 25 16:57 bluez.o
drwxrwsr-x    2 dsl      staff        2048 Jan  6 20:24 bnep
drwxrwsr-x    2 dsl      staff        2048 Jan  6 20:24 cmtp
-rw-r--r--    1 dsl      staff       26008 Jan  6 03:43 l2cap.o
drwxrwsr-x    2 dsl      staff        2048 Jan  6 20:24 rfcomm
-rw-r--r--    1 dsl      staff       15376 Jan  6 03:43 sco.o

#insmod bluez
Using /lib/modules/2.4.26/kernel/net/bluetooth/bluez.o
/lib/modules/2.4.26/kernel/net/bluetooth/bluez.o: create_module: Operation not permitted

but with sudo:

#sudo insmod bluez
Using /lib/modules/2.4.26/kernel/net/bluetooth/bluez.o

it's OK

the next step with insmod hci_usb it's the same, so perhaps I have to change the user and group of all the files, no problem.

My bluetooth device is a pcmcia card, so I think that a don't have to use hci_usb, do you know witch? (hci_uart or hci_vhci or bluecard_cs or other)

thanks.

Posted by ^thehatsrule^ on Jan. 26 2007,00:01
Onyarian: the # means that it should be executed with super-user privileges, which I think you didn't and so you had to use sudo.
Posted by Juanito on Jan. 26 2007,05:42
According to Google:

(The four drivers below are for PCMCIA Bluetooth devices:
<M> HCI DTL1 (PC Card) driver
<M> HCI BT3C (PC Card) driver
<M> HCI BlueCard (PC Card) driver
<M> HCI UART (PC Card) device driver

This is for the 2.6.x kernel but I seem to remember at least one of these being present in the modules I copied from the Knoppix CD - you could try them one by one and see what happens.

Posted by Onyarian on Jan. 26 2007,22:41
Hi, Juanito

I am making some progress...

I have proved bt3c, bluecard, and hci_uart and only with hci_uart have I some responses:

#insmod bluez
#insmod hci_uart
#insmod l2cap
#insmod rfcomm
#hcid
#hciattach /dev/ttyS0 any 57600
#hciconfig hci0 up
Can't init device hci0: Connection timed out (110)
#hciconfig
hci0:   Type: UART
         BD Adress: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
         DOWN
         RX bytes:0 acl:0 sco:0 events:0 errors:0
         TX bytes:12 acl:0 sco:0 commands:3 errors:0

and now I don't know how to continue, seems like hci0 not identify the pcmcia and don't comes up

I am looking some manuals but now I am a litle lost...

Posted by ^thehatsrule^ on Jan. 27 2007,03:27
I think _cs (cardbus?) are related to pcmcia, so maybe loading bluecard_cs might help you out.
Posted by Onyarian on Jan. 27 2007,20:29
^thehatsrule^ with bluecard_cs there are no response

In this page says that for Conceptronic CBT100C the driver is hci_uart, but I have do a lot experiments without connection

< Bluetooth hardware support >

in dmseg I see that the bluetooth pcmcia is recognized as ttyS17, so with
#hciattach /dev/ttyS17 any 57600
seems ok
but after this with
#hciconfig hci0 up
Can't init device hci0: Connection timed out (110)
#hciconfig
hci0:   Type: UART
        BD Adress: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
        DOWN
        RX bytes:0 acl:0 sco:0 events:0 errors:0
        TX bytes:12 acl:0 sco:0 commands:3 errors:0

I have a USB bluetooth dongle too (Conceptronic CBT56) and connects perfect, I have connected with my pocket_pc without problems

So..., perhaps I have to forgot my pcmcia card and utilize the USB dongle  :(

(Juanito, thanks for the bluetooth howto's, if the pcmcia don't work I want to continue your notes with the USB).

Posted by Onyarian on Jan. 29 2007,16:55
Finaly I got it!!!!!! :D

all the secuence is:

#insmod bluez
#insmod hci_uart
#insmod hci_vhci
#insmod sco
#insmod l2cap
#insmod rfcomm
#hcid
#hciattach -s 57600 /dev/ttyS17 bcsp
#hciconfig hci0 up
#hciconfig
hci0: Type: UART
BD Adress: 00:10:60:AA:52:DE ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1674 acl:7 sco:0 events:33 errors:0
TX bytes:870 acl:6 sco:0 commands:24 errors:0

the hciattach command has a different form and the trick is to put 'bcsp' at the end, because the CBT100C  is a little special.

Wahooooooooo!!

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.