lwfinger / rtl8723bs_bt

Bluetooth Code for RTL8723bs
71 stars 35 forks source link

Paired Devices Connect then Disconnect immediately #22

Closed madivak closed 7 years ago

madivak commented 7 years ago

Hi, i compiled the driver got the Bluetooth runnning on my device. I can scan, discover and pair with other devices. But for some reason i cant do a connect to those devices even after pairing with them.

[bluetooth]# pair 15:05:25:11:08:E8
Attempting to pair with 15:05:25:11:08:E8
[CHG] Device 15:05:25:11:08:E8 Connected: yes
[CHG] Device 15:05:25:11:08:E8 Modalias: bluetooth:v0039p157Ed0206
[CHG] Device 15:05:25:11:08:E8 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 0000112e-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 15:05:25:11:08:E8 Paired: yes
Pairing successful
[CHG] Device 15:05:25:11:08:E8 Connected: no

[bluetooth]# paired-devices 
Device 74:04:2B:4E:4D:31 Lenovo K3 Note
Device 15:05:25:11:08:E8 Bluedio

[bluetooth]# connect 15:05:25:11:08:E8 
Attempting to connect to 15:05:25:11:08:E8
Failed to connect: org.bluez.Error.Failed

[bluetooth]# info 15:05:25:11:08:E8 
Device 15:05:25:11:08:E8
        Name: Bluedio
        Alias: Bluedio
        Class: 0x240404
        Icon: audio-card
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)
        UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Client   (0000112e-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        Modalias: bluetooth:v0039p157Ed0206

I can't understand why it is not connected, is this an issue from the driver or the dependencies from the application side. If someone could please point out what am missing i would really appreciate.

madivak commented 7 years ago

Managed to get this working, will write the steps I took to solve this later on today.

madivak commented 7 years ago

I connected with my phone using this command, and was able to send files to it.

sudo rfcomm connect [bluetooth host device] [Target bluetooth device MAC] [channel] e.g sudo rfcomm connect hci0 83:23:26:15:54:46 2