I see nothing on the bluetooth devices in my cellphone or computer. Here's the output of my raspberry pi:
pi@raspberrypi:~ $ sudo service bluetooth status ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-06-27 01:27:58 UTC; 4min 10s ago Docs: man:bluetoothd(8) Main PID: 443 (bluetoothd) Status: "Running" CGroup: /system.slice/bluetooth.service └─443 /usr/lib/bluetooth/bluetoothd Jun 27 01:27:58 raspberrypi systemd: Starting Bluetooth service... Jun 27 01:27:58 raspberrypi bluetoothd: Bluetooth daemon 5.43 Jun 27 01:27:58 raspberrypi systemd: Started Bluetooth service. Jun 27 01:27:58 raspberrypi bluetoothd: Starting SDP server Jun 27 01:27:59 raspberrypi bluetoothd: Bluetooth management interface 1.14 initialized Jun 27 01:27:59 raspberrypi bluetoothd: Failed to obtain handles for "Service Changed" characteristic Jun 27 01:27:59 raspberrypi bluetoothd: Sap driver initialization failed. Jun 27 01:27:59 raspberrypi bluetoothd: sap-server: Operation not permitted (1)
I also tried running
rfcomm on the terminal but it returns immediately.
I also tried:
pi@raspberrypi:~ $ /usr/bin/rfcomm watch hci0 1 getty rfcomm0 115200 vt100 -a pi Waiting for connection on channel 1
but I still see nothing on the bluetooth devices. I waited 10 minutes and nothing appears.
I found a video which tells me to add a
-C in front of the bluetooth service and also do this:
sudo bluetoothctl power on pairable on discoverable on agent on default-agent trust
Now I can connect to the raspberry pi but it stays connected for 1 second and then disconnects
I tried pairing from my PC to the raspberry, and then from the raspberyr to PC. Both ways it pairs, then the two paires devices disconnect. It only connect for 2 seconds.