Im trying to use a bluetooth usb dngle which is advertised as suitable for raspberry pi. The dongle is recognised by the computer but will not work with bluez and blueman
Dongle
Bluegiga BLED112 usb bluetooth dongle running factory default “usbcdc” firmware
computer
Packard Bell EasyNote TK36/SJV52_MV, BIOS V1.13 04/26/2011
debian buster kernel 4.19.0-1. LXDE
I have the exact same experience on an Asus x550ca running Stretch kernel 4.9 LXDE
I've installed the non free firmware bundle which contains drivers for the Intel 8051 chip in the dongle.
I have followed advice from loads of forums and tried both workarounds in the debian bluetooth wiki,
all without success
The computer finds dongle. Dongle has own bluetooth stack. Will run Jeff Rowberg's python scanner script on github as root. See terminal output below
But blueman wont find the dongle.
It says bluez wont start, please insert a dongle
Ive tried stopping and restarting Pulseaudio and bluetoothd, no luck
This is a link to the mfrs guide to using dongle with a raspberry pi
https://docs-emea.rs-online.com/webdocs ... 2eb651.pdf
My questions:
Is the problem with blueman because the dongle is busy with its built in software?
what do I have to do to make blueman recognise it?
Can I ever expect the dongle to work with a bluetooth speaker?
Here's terminal infos:
Code: Select all
root@debian:/home/mel# service bluetooth start
root@debian:/home/mel# service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: inactive (dead)
Docs: man:bluetoothd(8)
mel@debian:~$ sudo blueman-manager
[sudo] password for mel:
_________
Load (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:60)
['Services', 'PulseAudioProfile']
_________
__load_plugin (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.manager.Services.Services'>
_________
__load_plugin (/usr/lib/python3/dist-packages/blueman/main/PluginManager.py:133)
loading <class 'blueman.plugins.manager.PulseAudioProfile.PulseAudioProfile'>
_________
pa_context_event (/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:341)
1
/usr/bin/blueman-manager:67: DeprecationWarning: Gtk.Window.get_has_resize_grip is deprecated
if self.window.get_has_resize_grip():
blueman-manager version 2.0.6 starting
_________
pa_context_event (/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:341)
2
_________
on_bluez_name_owner_changed (/usr/bin/blueman-manager:96)
org.bluez owner changed to
/usr/bin/blueman-manager:100: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "parent" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
d = Gtk.MessageDialog(self.window, type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.CLOSE)
/usr/bin/blueman-manager:100: PyGTKDeprecationWarning: The keyword(s) "type" have been deprecated in favor of "message_type" respectively. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
d = Gtk.MessageDialog(self.window, type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.CLOSE)
_________
pa_context_event (/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:341)
3
_________
pa_context_event (/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:341)
4
_________
on_pa_ready (/usr/lib/python3/dist-packages/blueman/plugins/manager/PulseAudioProfile.py:29)
connected
_________
<lambda> (/usr/lib/python3/dist-packages/blueman/main/PulseAudioUtils.py:353)
1
Code: Select all
root@debian:/home/mel# lsusb
Bus 003 Device 003: ID 064e:a219 Suyin Corp. 1.3M WebCam (notebook emachines E730, Acer sub-brand)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 2458:0001 [This is the dongle]
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@debian:/home/mel# lsmod
Module Size Used by
ctr 16384 6
ccm 20480 9
fuse 90112 5
appletalk 28672 0
psnap 16384 1 appletalk
llc 16384 1 psnap
ax25 49152 0
acer_wmi 20480 0
wmi_bmof 16384 0
mxm_wmi 16384 0
sparse_keymap 16384 1 acer_wmi
uvcvideo 81920 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 20480 1 uvcvideo
videobuf2_common 36864 2 uvcvideo,videobuf2_v4l2
videodev 135168 3 uvcvideo,videobuf2_common,videobuf2_v4l2
evdev 20480 14
media 28672 2 uvcvideo,videodev
coretemp 16384 0
joydev 20480 0
serio_raw 16384 0
pcspkr 16384 0
cdc_acm 28672 0 [this is the driver]
root@debian:/home/mel# ls /dev/ttyA*
/dev/ttyACM0
mel@debian:~$ sudo dmesg | grep ttyACM
[ 11.888558] cdc_acm 5-2:1.0: ttyACM0: USB ACM device
mel@debian:~$ sudo dmesg |grep -i blue
[ 3.694228] usb 5-2: Manufacturer: Bluegiga
root@debian:/home/mel# hcitool scan
Device is not available: No such device
Code: Select all
mel@debian:~$ sudo ./bled112_scanner.py -h
[sudo] password for mel:
Usage: bled112_scanner.py [options]
Bluetooth Smart Scanner script for Bluegiga BLED112 v2013-03-30
Options:
-h, --help show this help message and exit
Serial Port Options:
-p PORT, --port=PORT
Serial port device name (default /dev/ttyACM0)
-b BAUD, --baud=BAUD
Serial port baud rate (default 115200)
Scan Options:
-i INTERVAL, --interval=INTERVAL
Scan interval width in units of 0.625ms (default 200)
-w WINDOW, --window=WINDOW
Scan window width in units of 0.625ms (default 200)
-a, --active Perform active scan (default passive)
NOTE: active scans result in a 'scan response' request
being sent to the slave device, which should send a
follow-up scan response packet. This will result in
increased power consumption on the slave device.
Filter Options:
-u UUID, --uuid=UUID
Service UUID(s) to match
-m ADDRESS, --mac=ADDRESS
MAC address(es) to match
-r RSSI, --rssi=RSSI
RSSI minimum filter (-110 to -20), omit to disable
Output Options:
-q, --quiet Quiet mode (suppress initial scan parameter display)
-f, --friendly Friendly mode (output in human-readable format)
-d FIELDS, --display=FIELDS
Display fields and order (default 'trpsabd')
t = Unix time, with milliseconds
r = RSSI measurement (signed integer)
p = Packet type (0 = normal, 4 = scan response)
s = Sender MAC address (hexadecimal)
a = Address type (0 = public, 1 = random)
b = Bonding status (255 = no bond, else bond handle)
d = Advertisement data payload (hexadecimal)
Examples:
bled112_scanner.py
Default options, passive scan, display all devices
bled112_scanner.py -p /dev/ttyUSB0 -d sd
Use ttyUSB0, display only sender MAC address and ad data payload
bled112_scanner.py -u 1809 -u 180D
Display only devices advertising Health Thermometer service (0x1809)
or the Heart Rate service (0x180D)
bled112_scanner.py -m 00:07:80 -m 08:57:82:bb:27:37
Display only devices with a Bluetooth address (MAC) starting with the
Bluegiga OUI (00:07:80), or exactly matching 08:57:82:bb:27:37
Sample Output Explanation:
1364699494.574 -57 0 000780814494 0 255 02010603030918
't' (Unix time): 1364699464.574, 1364699591.128, etc.
'r' (RSSI value): -57, -80, -92, etc.
'p' (Packet type): 0 (advertisement), 4 (scan response)
's' (Sender MAC): 000780535BB4, 000780814494, etc.
'a' (Address type): 0 (public), 1 (random)
'b' (Bond status): 255 (no bond), 0 to 15 if bonded
'd' (Data payload): 02010603030918, etc.
See BT4.0 Core Spec for details about ad packet format
This is the scanner script when run as user
Code: Select all
mel@debian:~$ ./bled112_scanner.py
================================================================
BLED112 Scanner for Python v2013-04-07
================================================================
Serial port: /dev/ttyACM0
Baud rate: 115200
Scan interval: 200 (250.00 ms)
Scan window: 200 (250.00 ms)
Scan type: Passive
UUID filters: None
MAC filter(s): None
RSSI filter: None
Display fields: - Time
- RSSI
- Packet type
- Sender MAC
- Address type
- Bond status
- Payload data
Friendly mode: Disabled
----------------------------------------------------------------
Starting scan for BLE advertisements...
================================================================
Port error (name='/dev/ttyACM0', baud='115200'): [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
================================================================
Code: Select all
mel@debian:~$ sudo ./bled112_scanner.py
[sudo] password for mel:
================================================================
BLED112 Scanner for Python v2013-04-07
================================================================
Serial port: /dev/ttyACM0
Baud rate: 115200
Scan interval: 200 (250.00 ms)
Scan window: 200 (250.00 ms)
Scan type: Passive
UUID filters: None
MAC filter(s): None
RSSI filter: None
Display fields: - Time
- RSSI
- Packet type
- Sender MAC
- Address type
- Bond status
- Payload data
Friendly mode: Disabled
----------------------------------------------------------------
Starting scan for BLE advertisements...
1549311330.520 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311330.685 -88 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311330.698 -88 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311330.883 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311330.957 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311331.062 -90 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311331.227 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311331.250 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311331.333 -91 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311331.427 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311331.499 -91 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311331.612 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311331.787 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311331.975 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311332.038 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311332.163 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311332.315 -91 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311332.347 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311332.531 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311332.584 -91 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311332.717 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311332.862 -88 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311332.904 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311333.089 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311333.131 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311333.273 -86 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311333.397 -91 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311333.458 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311333.633 -86 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311333.666 -92 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311333.779 -93 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311333.814 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311333.917 -90 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311333.948 -87 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311334.000 -86 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311334.183 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311334.216 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311334.369 -86 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311334.461 -93 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311334.485 -91 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311334.557 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311334.733 -91 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311334.734 -86 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311334.757 -88 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311334.920 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311335.024 -88 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311335.108 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311335.293 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311335.294 -85 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311335.469 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311335.663 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311335.818 -91 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311335.842 -88 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311335.843 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311336.027 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311336.111 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311336.214 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311336.376 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311336.398 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311336.582 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311336.635 -92 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311336.657 -89 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311336.769 -82 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311336.907 -93 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311336.921 -86 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311336.942 -86 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311337.126 -83 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311337.190 -84 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311337.313 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311337.447 -92 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311337.471 -89 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311337.493 -83 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311337.676 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311337.741 -89 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311337.853 -82 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311337.995 -93 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311338.017 -87 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311338.038 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311338.221 -82 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311338.283 -85 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311338.407 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311338.560 -88 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311338.585 -82 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311338.779 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311338.832 -87 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311338.955 -83 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311339.100 -87 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311339.144 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311339.330 -82 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311339.505 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311339.641 -89 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311339.685 -83 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311339.878 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311339.923 -87 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311340.055 -83 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311340.188 -85 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311340.240 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311340.271 -92 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
1549311340.424 -82 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311340.466 -85 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311340.608 -85 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311340.737 -89 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311340.791 -84 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311340.974 -87 0 18EE691CA41C 0 255 02011A0BFF4C000906030000000000
1549311341.008 -89 0 68366914D00E 1 255 02011A0AFF4C00100503182D7EAA
1549311341.080 -92 0 6EB7D37D526F 1 255 02011A0AFF4C0010050718A03A3E
Many thanks
Mel