SliTaz SliTaz Forum

You are not logged in.

#1 2012-10-21 11:49:17

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Biuetooth connection - something is wrong

I can not make Biuetooth connection.

Has read and has repeated http://doc.slitaz.org/en:guides:bluetooth

Packets are installed:

blueman-1.10.tazpkg

bluez-4.96.tazpkg

bluez-dev-4.96.tazpkg

python-pybluez-0.18.tazpkg

usbutils.tazpkg

My file rfcomm.conf:

rfcomm0 {

#    # Automatically bind the device at startup

    bind yes;

#

#    # Bluetooth address of the device

    device 00:0D:B5:30:D3:E5;

#

#    # RFCOMM channel for the connection

    channel    1;

#

#    # Description of the connection

    comment "GlobalSat BT-338 BT-GPS-30D3E5";

}

--------------------------------------------------

Search of local BT-device:

--------------------------

root@slitaz:~# hcitool dev

Devices:

    hci0    00:15:83:3D:0A:57

root@slitaz:~# hci0 piscan

/bin/sh: hci0: not found

root@slitaz:~# hcitool scan

Scanning ...

    00:0D:B5:30:D3:E5    BT-GPS-30D3E5

root@slitaz:~# hciconfig hci0 piscan

1 variant of connection:

------------------------

root@slitaz:~# bluez-simple-agent

Traceback (most recent call last):

  File "/usr/bin/bluez-simple-agent", line 8, in <module>

    import dbus.mainloop.glib

  File "/usr/lib/python2.7/site-packages/dbus/mainloop/glib.py", line 29, in <module>

    from _dbus_glib_bindings import DBusGMainLoop, gthreads_init

ImportError: /usr/lib/libdbus-glib-1.so.2: undefined symbol: g_mutex_unlock

2 variant of connection:

------------------------

root@slitaz:~# bluez-simple-agent hci0 00:0D:B5:30:D3:E5

Traceback (most recent call last):

  File "/usr/bin/bluez-simple-agent", line 8, in <module>

    import dbus.mainloop.glib

  File "/usr/lib/python2.7/site-packages/dbus/mainloop/glib.py", line 29, in <module>

    from _dbus_glib_bindings import DBusGMainLoop, gthreads_init

ImportError: /usr/lib/libdbus-glib-1.so.2: undefined symbol: g_mutex_unlock

root@slitaz:~#

Something is wrong in/usr/lib/libdbus-glib-1.so.2 ?

Offline

#2 2012-10-22 12:10:57

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Biuetooth connection - something is wrong

According to guide I installed bluez, auto-installed dependency linux-bluetooth.

Started bluetoothd and modprobe btusb.

[c]# hcitool dev
Devices:
#[/c]
I.e. empty.

Difference between two commands lsusb:

[c]Bus 002 Device 003: ID 0c10:0000[/c]
Install blueman, not run, garbage in terminal. Install python-pybluez manually (I think, this is depend should install automatically), blueman-manager GUI started with empty main pane.

Started hardinfo (Menu→System→System Information)

In the Devices→USB Devices I see Bluetooth Device:

[c]Device Information
    Product         Bluetooth Device
    Manufacturer    Bluetooth Device
Port #0
    Speed           12,00Mbit/s
    Max Current     50mA
Misc
    USB Version     1,00
    Revision        20,00
    Class           0xb77ffb14
    Vendor          0xc10
    ProductID       0x0
    Bus             2
    Level           1[/c]
In the lshw (I've compiled & packed it) I see under Computer→Motherboard→Host bridge→USB controller→UHCI Host Controller [1D6B:1]→Keyboard:

Keyboard

[c]/0/100/1d/1/1[/c]

product: Bluetooth Device [C10:0]

vendor: Bluetooth Device [C10]

bus info: usb@2:1

version: 20.05

capabilities:

    USB 1.1

configuration:

    driver: btusb

    maxpower: 50mA

    speed: 12Mbit/s

Why keyboard? I don't know…

By the way here list of all Bluetooth related packages on the mirror. And linux-bluetooth package have several modules:

[*]/lib/modules/2.6.37-slitaz/kernel/net/bluetooth/rfcomm/rfcomm.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/net/bluetooth/l2cap.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/net/bluetooth/sco.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/net/bluetooth/bluetooth.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/drivers/bluetooth/btsdio.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/drivers/bluetooth/bcm203x.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/drivers/bluetooth/btusb.ko.gz

[*]/lib/modules/2.6.37-slitaz/kernel/drivers/bluetooth/hci_uart.ko.gz

From the manual:

And load the module required by your local bluetooth device, this is very likely btusb:

[c]# modprobe btusb[/c]

Why if not?? I modprobed all these modules, but no luck.

Offline

#3 2012-10-22 14:28:57

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Biuetooth connection - something is wrong

For my device it's bluetooth not btusb - so modprobe bluetooth as root then start bluetoothd

Offline

#4 2012-10-27 23:05:33

sklimkin
Member
Registered: 2012-10-08
Posts: 99

Re: Biuetooth connection - something is wrong

I repeaat

---------

root@slitaz:~# modprobe bluetooth

root@slitaz:~# bluetoothd

root@slitaz:~# hcitool scan

Scanning ...

    00:0D:B5:30:D3:E5    BT-GPS-30D3E5

root@slitaz:~# bluez-simple-agent hci0 00:0D:B5:30:D3:E5

Traceback (most recent call last):

  File "/usr/bin/bluez-simple-agent", line 8, in <module>

    import dbus.mainloop.glib

  File "/usr/lib/python2.7/site-packages/dbus/mainloop/glib.py", line 29, in <module>

    from _dbus_glib_bindings import DBusGMainLoop, gthreads_init

ImportError: /usr/lib/libdbus-glib-1.so.2: undefined symbol: g_mutex_unlock

root@slitaz:~#

And Bluetooth-Manager ("Blueman") NOT started.

What is wrong?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]