Bluetooth: No Usable Devices

Status
Niet open voor verdere reacties.

vapesob

Nieuwe gebruiker
Lid geworden
10 mei 2022
Berichten
1
I am at my whits end here. I have scoured the Internet and found lots of posts about this error but none of them help me. Let me just mention that I have 40+ years of operating system and software dev experience but am a total noob with the Raspberry Pi so be gentle.

I can pair and trust my device (a data collection instrument) but cannot connect to it. I get the "no usable services on this device" message. I can connect and communicate with it through Windows. It appears as a serial (COMM) port in x8spedersapk Windows and works fine.

Per posts on the Internet, I have added the "-C" option to the ExecStart line and "add SP" in the ExecStartPost line of the "bluetooth.service" file (see below). This is a brand new Pi 4 with a clean and fully updated install of Raspbian GNU/Linux 10 (buster).

I have included the file along with the log from the connect command in bluetoothctl function. As shown in the file, it appears to connect for a few seconds and then disconnects again.


Log of bluetooth connect command

[bluetooth]# devices
Device 00:07:80:A0:82:D4 BCAT-2015080054

[bluetooth]# info 00:07:80:A0:82:D4
Device 00:07:80:A0:82:D4 (public)
Name: BCAT-2015080054
Alias: BCAT-2015080054
Class: 0x00001f00
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v0047pF000d0400

[bluetooth]# connect 00:07:80:A0:82:D4
Attempting to connect to 00:07:80:A0:82:D4
[CHG] Device 00:07:80:A0:82:D4 Connected: yes
[CHG] Device 00:07:80:A0:82:D4 ServicesResolved: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 00:07:80:A0:82:D4 ServicesResolved: no
[CHG] Device 00:07:80:A0:82:D4 Connected: no



Contents of bluez.service file
[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth

[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib/bluetooth/bluetoothd -C
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1
ProtectHome=true
ProtectSystem=full
ExecStartPost=/usr/bin/sdptool add SP

[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service
 
Laatst bewerkt:
This is a Dutch forum. Can you edit your post and post your message in the Dutch language.
Please use the normal font, and place
Code:
-tags around your settings.

Thanks.
 
We do not handle English questions. That's why this topic is closed
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan