On PantherX Desktop Bluetooth is enabled by default from Beta 6.
Management
Troubleshooting
Unable to connect to Bluetooth Device
If you’re unable to connect to a new or existing Bluetooth device, there are several things you can try:
Suggestion 1:
Restart the Bluetooth service.
Switch to root and restart the service:
su - root
herd restart bluetooth
Double-check the service is running:
$ herd status bluetooth
Status of bluetooth:
It is started. # <---- look for this
Running value is 836.
It is enabled.
Provides (bluetooth).
Requires (dbus-system udev).
Conflicts with ().
Will be respawned.
If the service has restarted successfully, the Bluetooth icon should re-appear on your desktop.
Suggestion 2:
If that did not work and the device is already paired:
- On your Desktop, right-click on the Bluetooth icon in the lower right corner
- Select “Devices”
- Find your paired device in the list and remove it
- (Optional) Follow Suggestion 1
- Try to connect again
Development
Test Bluetooth LE Service Discovery
Download nRF Connect
(Nordic Semiconductor ASA) on your mobile phone.
Once you’re in the app, add a new service (Devices / Advertiser):
These steps describe the Android version of nRF Connect. The iOS release has significant differences.
- Press the red “+”
- You should see a prompt: “New advertising packet”
- Display name can be whatever;
Heart Monitor
- ADD RECORD:
- Service Data (The data we’ll be sending; a heart beat measurement)
- UUID or service name:
2A37
(0x2A37) source
- Data (HEX): 0x
4C
- ADD RECORD:
- Service Name (The type of service; heart monitor)
- UUID
180D
(0x180D) source
- Confirm with OK and activate
Confirm it’s working
from Desktop
On your desktop, open a Terminal:
- Run
bluetoothctl
- Start a scan with
scan on
(just type this in the terminal)
- Look out for the values you’re advertising
$ bluetoothctl
Agent registered
[MX Anywhere 2S]
# scan on
Discovery started
[CHG] Controller 94:E6:F7:0A:43:F7 Discovering: yes
[NEW] Device 25:06:D7:1A:1D:34 25-06-D7-1A-1D-34
[NEW] Device 62:C5:A0:8D:1E:0C 62-C5-A0-8D-1E-0C
[CHG] Device 4B:1A:0F:BF:02:84 ManufacturerData Key: 0x004c
[CHG] Device 4B:1A:0F:BF:02:84 ManufacturerData Value:
0f 05 80 35 64 d3 c6 10 03 6e 0e bb ...5d....n..
[NEW] Device 3A:76:AA:3B:43:29 3A-76-AA-3B-43-29
If you’re getting an error about how bluetoothctl
wasn’t found, it might not be in your profile. Install it with:
and try the previous steps again.
with a 2nd phone
Download nRF Connect
(Nordic Semiconductor ASA) on your 2nd mobile phone.
Once you’re in the app, look for “Scanner” and “Scan”:
- Look for your device; in our case “Heart Monitor”
- This name is set automatically from the above service definitions
- Services should correctly list “Heart Rate”
See also