1 |
On 04/23/14 19:59, covici@××××××××××.com wrote: |
2 |
> William Kenworthy <billk@×××××××××.au> wrote: |
3 |
> |
4 |
>> The bluez-5 stack is causing me some problems. It will pair but then |
5 |
>> says its not paired so wont connect. Googling shows lots of problems |
6 |
>> with many saying it suddenly starts working and they don't know what |
7 |
>> happened! |
8 |
>> |
9 |
>> The BT dongle worked fine under bluez-3 and 4. The other end is an |
10 |
>> arduino which needs to be connected via an rfcomm channel (for serial |
11 |
>> comms) and the hardware on both ends has been working for literally years. |
12 |
>> |
13 |
>> After upgrading to bluez-5 it stopped working. |
14 |
>> |
15 |
>> I used bluetoothctl to pair it and info shows it paired and trusted, but |
16 |
>> I cant connect to it: |
17 |
>> |
18 |
>> [bluetooth]# info 00:11:03:17:01:12 |
19 |
>> Device 00:11:03:17:01:12 |
20 |
>> Name: anubis |
21 |
>> Alias: anubis |
22 |
>> Class: 0x001f00 |
23 |
>> Paired: yes |
24 |
>> Trusted: yes |
25 |
>> Blocked: no |
26 |
>> Connected: no |
27 |
>> LegacyPairing: yes |
28 |
>> UUID: Serial Port |
29 |
>> (00001101-0000-1000-8000-00805f9b34fb) |
30 |
>> [bluetooth]# connect 00:11:03:17:01:12 |
31 |
>> Attempting to connect to 00:11:03:17:01:12 |
32 |
>> [CHG] Device 00:11:03:17:01:12 Connected: yes |
33 |
>> Failed to connect: org.bluez.Error.NotAvailable |
34 |
>> [CHG] Device 00:11:03:17:01:12 Connected: no |
35 |
>> [bluetooth]# |
36 |
>> |
37 |
>> |
38 |
>> What am I missing/misunderstanding? |
39 |
> |
40 |
> Make sure you have at least 5.14, below that mine did not work at all. |
41 |
> Try the connect from blutoothctl and seewhat it says. Also, you have to |
42 |
> put the device up before you do anything, such as hciconfig hci0 up |
43 |
> whereas before you did not have to do this. |
44 |
> |
45 |
|
46 |
Hi John, the above is bluez 5.15, and the messages above including from |
47 |
the connect command are using bluetoothctl ... |
48 |
|
49 |
Had a play with hcitool and and I cant get a connect with that either. |
50 |
Tried updating bluez to 5.17 and still nothing. |
51 |
|
52 |
BillK |