Hi Luiz On Fri, 1 Apr 2022 at 22:50, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote: > > Hi Adam, > > On Fri, Apr 1, 2022 at 1:12 PM Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > Hi Luiz > > > > On Mon, 28 Mar 2022 at 17:37, Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > Hi Luiz > > > > > > On Wed, 23 Mar 2022 at 19:57, Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > Hi Luiz > > > > > > > > Thanks for having the patience with me on this.... > > > > > > > > On Wed, 23 Mar 2022 at 19:46, Luiz Augusto von Dentz > > > > <luiz.dentz@xxxxxxxxx> wrote: > > > > > > > > > > Hi Adam, > > > > > > > > > > On Wed, Mar 23, 2022 at 7:46 AM Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > On Wed, 23 Mar 2022 at 13:36, Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > > > Hi Luiz > > > > > > > > > > > > > > On Wed, 23 Mar 2022 at 09:11, Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > > > > > Hi Luiz > > > > > > > > > > > > > > > > Good that you clearly know more about this than me!... > > > > > > > > > > > > > > > > On Tue, 22 Mar 2022 at 23:44, Luiz Augusto von Dentz > > > > > > > > <luiz.dentz@xxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > Hi Adam, > > > > > > > > > > > > > > > > > > On Tue, Mar 22, 2022 at 4:35 PM Luiz Augusto von Dentz > > > > > > > > > <luiz.dentz@xxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > Hi Adam, > > > > > > > > > > > > > > > > > > > > On Tue, Mar 22, 2022 at 4:09 PM Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > > > Thanks Luiz > > > > > > > > > > > > > > > > > > > > > > On Tue, 22 Mar 2022 at 21:35, Luiz Augusto von Dentz > > > > > > > > > > > <luiz.dentz@xxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > > > > > Hi Adam, > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Mar 22, 2022 at 3:40 AM Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Luiz > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, 22 Mar 2022 at 07:55, Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Luiz > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, 22 Mar 2022 at 00:44, Luiz Augusto von Dentz > > > > > > > > > > > > > > <luiz.dentz@xxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Adam, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Mar 21, 2022 at 4:03 PM Adam Pigg <adam@xxxxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > A bit of background, I write a linux desktop/mobile app called > > > > > > > > > > > > > > > > Amazfish which interfaces with several watches over BLE using their > > > > > > > > > > > > > > > > GATT services. To do this, I use the bluez dbus api (technically a > > > > > > > > > > > > > > > > thin wrapper around it I wrote called qble > > > > > > > > > > > > > > > > https://github.com/piggz/qble) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > All has been good so far, I support several generations of > > > > > > > > > > > > > > > > Huami/Amazfit watches, as well as the open source Pinetime and > > > > > > > > > > > > > > > > Bangle.js. For the Amazfit watches, i have implementations for older > > > > > > > > > > > > > > > > devies such as the Bip, and newer ones such as the GTS. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Much of the reverse engineering comes from the Android Gadget Bridge > > > > > > > > > > > > > > > > project, which supports many more devices. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My community of users donated to buy me a newer device called a GTR2, > > > > > > > > > > > > > > > > which, according to the GB devs uses the same protocol as the slightly > > > > > > > > > > > > > > > > older GTS, and the packet captures I have from Android would support > > > > > > > > > > > > > > > > this. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > But this is where my trouble starts with Bluez, my existing > > > > > > > > > > > > > > > > implementation doesnt work at all. Normally, after a connection, I > > > > > > > > > > > > > > > > would wait for the ServicesResolved signal, which happens pretty fast > > > > > > > > > > > > > > > > on all other devices, but on the GTR2, it takes about 30 seconds, by > > > > > > > > > > > > > > > > which time, the watch has disconnected. (i get a disconnected signal > > > > > > > > > > > > > > > > immediately after the ServicesResolved signal) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > To rule out my code, I have tried several things: > > > > > > > > > > > > > > > > Gatttool > > > > > > > > > > > > > > > > With gattool, i can connect, get the services, enable a notification, > > > > > > > > > > > > > > > > write a value and get the expected results seemingly fine > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Python-gatt (using the bluez dbus api) > > > > > > > > > > > > > > > > Im unable to iterate the services, like my app, it takes 30 seconds to > > > > > > > > > > > > > > > > get the signal and then swiftly disconnects > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Gattlib (https://github.com/labapart/gattlib) > > > > > > > > > > > > > > > > Gattlib is interesting as it appears to have "borrowed" much of its > > > > > > > > > > > > > > > > code directly from bluez. When built against the system bluez, if the > > > > > > > > > > > > > > > > version is > 5.42, it will use the dbus api. When I do this, again im > > > > > > > > > > > > > > > > unable to list services on the watch. However, if I edit the build to > > > > > > > > > > > > > > > > force it to use its internal gatt implementation, which appears to be > > > > > > > > > > > > > > > > the same one used by gatttool, then, it IS able to interrogate the > > > > > > > > > > > > > > > > watch. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have attached 3 files > > > > > > > > > > > > > > > > 1. test python program which should print services, and associated btmon > > > > > > > > > > > > > > > > 2. btmon output while using gatttool > > > > > > > > > > > > > > > > 3. btmon output running gattlib discover example > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Note, other than discovery, I havnt been able to get gattlib to > > > > > > > > > > > > > > > > read/write/notify! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > It seems as though I may be triggering a bug in the bluez dbus api? > > > > > > > > > > > > > > > > Can anyone suggest anything? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > What version are you using? I would first try with the latest to see > > > > > > > > > > > > > > > if that something already fixed. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Im using 5.63 already, which is the latest tag (on opensuse tumbleweed) > > > > > > > > > > > > > > > > > > > > > > > > > > > > I'll also try bluetoothctl and attach logs using that, though I > > > > > > > > > > > > > > suspect it will behave the same as the python library and my own > > > > > > > > > > > > > > library. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Attached is the output of btmon while using bluetoothctl > > > > > > > > > > > > > > > > > > > > > > > > > > bluetoothctl behaves the same as my lib and python, it is unable to > > > > > > > > > > > > > list services, and after a while, emits the ServicesResolved and > > > > > > > > > > > > > disconnected messages at the same time. Im sure it should be able to > > > > > > > > > > > > > list the services immediately after connect just like gatttool can. > > > > > > > > > > > > > > > > > > > > > > > > Looks like there is multiple rounds of MTU Exchange, not sure if that > > > > > > > > > > > > is actually a problem but the spec does say it shall only be sent once > > > > > > > > > > > > per client: > > > > > > > > > > > > > > > > > > > > > > > > BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 3, Part F > > > > > > > > > > > > page 1424: > > > > > > > > > > > > > > > > > > > > > > > > This request shall only be sent once during a connection by the client. > > > > > > > > > > > > > > > > > > > > > > > > There is also no response to frame #30: > > > > > > > > > > > > < ACL Data TX: Handle 3585 flags 0x00 dlen 7 > > > > > > > > > > > > > > > > > > > > > > > > #30 [hci0] 26.641557 > > > > > > > > > > > > ATT: Read Request (0x0a) len 2 > > > > > > > > > > > > Handle: 0x0018 > > > > > > > > > > > > > > > > > > > > > > > > So after 30 seconds (ATT timeout) without receiving any response it disconnects: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > So, the verdict is that the watch isnt acting to spec right? > > > > > > > > > > > > > > > > > > > > > > Why does gatttool work ok, is it a completely different implementation? > > > > > > > > > > > > > > > > > > > > > > I understand if wouldnt be to spec, but would it be possible to make > > > > > > > > > > > bluez more resilient to devices not acting to spec? Android and iOS > > > > > > > > > > > work just fine in this regard, so could bluez handle mis-behaving > > > > > > > > > > > devices more flexibly? > > > > > > > > > > > > > > > > > > > > That I can't really explain, perhaps it is timing related, something > > > > > > > > > > with Exchange MTU since it appears to stop the device from responding > > > > > > > > > > when it happens a second time. > > > > > > > > > > > > > > > > > > > > > Do you have any suggestions for things I could try? I looked for > > > > > > > > > > > similar lines in the working gatttool log, and it doesnt have anything > > > > > > > > > > > like that, seems to send flags 0x00 dlen 9 (instead of 7?) ... how is > > > > > > > > > > > it behaving differently? > > > > > > > > > > > > > > > > > > > > Not sure really, does Android/iOS Exchange the MTU? Maybe we need a > > > > > > > > > > timer to start it later or perhaps the problem first response to > > > > > > > > > > exchange MTU does actually use the final_mtu which makes the watch to > > > > > > > > > > trigger yet another exchange to have both rx and tx MTU the same so > > > > > > > > > > try with the following change: > > > > > > > > > > > > > > > > > > > > diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c > > > > > > > > > > index 2adb4afbf..d326782bf 100644 > > > > > > > > > > --- a/src/shared/gatt-server.c > > > > > > > > > > +++ b/src/shared/gatt-server.c > > > > > > > > > > @@ -1499,7 +1499,7 @@ static void exchange_mtu_cb(struct bt_att_chan > > > > > > > > > > *chan, uint8_t opcode, > > > > > > > > > > final_mtu = MAX(MIN(client_rx_mtu, server->mtu), BT_ATT_DEFAULT_LE_MTU); > > > > > > > > > > > > > > > > > > > > /* Respond with the server MTU */ > > > > > > > > > > - put_le16(server->mtu, rsp_pdu); > > > > > > > > > > + put_le16(final_mtu, rsp_pdu); > > > > > > > > > > bt_att_chan_send_rsp(chan, BT_ATT_OP_MTU_RSP, rsp_pdu, 2); > > > > > > > > > > > > > > > > > > > > /* Set MTU to be the minimum */ > > > > > > > > > > > > > > > > > > Hmm Im not sure if this will work since the peripheral seems to > > > > > > > > > respond different values 252 vs 247, also the spec does say that: > > > > > > > > > > > > > > > > > > 'The Server Rx MTU parameter shall be set to the *maximum size* of the > > > > > > > > > Attribute protocol PDU that the server can receive. > > > > > > > > > The server and client shall set ATT_MTU to the *minimum of the Client Rx MTU > > > > > > > > > and the Server Rx MTU*. The size is the same to ensure that a client can > > > > > > > > > correctly detect the final packet of a long attribute read.' > > > > > > > > > > > > > > > > > > So my interpretation is that the minimum is calculated after the > > > > > > > > > Exchange is complete so it doesn't require the Server MTU to be > > > > > > > > > limited by the Client MTU, anyway if Android and iOS does apply the > > > > > > > > > minimum logic before responding we can do the same. > > > > > > > > > > > > > > > > > > > > > > > > > Maybe it will help if I attach an android packet capture.... > > > > > > > > > > > > > > > > The attachedhttps://marc.info/?l=linux-bluetooth&m=164799909020040&w=2 > > > > > > > > log can be opened in Wireshark, and to my untrained eye, it looks like > > > > > > > > the MTU negotiation is at packets 451 and 452, and 247 is used? > > > > > > > > > > > > > > > > Ill try and get the proposed patch built and see how it behaves > > > > > > > > > > > > > > Attached if the btmon and bluetoothctl. It doesnt seem to be there quite yet. > > > > > > > > > > > > > > There was one point before i applied the patch where bluetoothctl > > > > > > > seemed to list the attributes quickly, but i havnt been able to > > > > > > > reproduce that again with or without the patch. > > > > > > > > > > > > > > > > > > > For completeness, also attached the output of my program and btmon > > > > > > > > > > > > My program should connect, wait for resolved signal, then read a char, > > > > > > enable some notifications, and do a write. You can see the 30 second > > > > > > wait between connect, resolved, and quickly followed by a disconnect. > > > > > > > > > > > > > > > < ACL Data TX: Handle 3585 flags 0x00 dlen 7 > > > > > > > > > > #22 [hci0] 12.507730 > > > > > ATT: Exchange MTU Request (0x02) len 2 > > > > > Client RX MTU: 517 > > > > > > ACL Data RX: Handle 3585 flags 0x02 dlen 7 #23 [hci0] 12.556081 > > > > > ATT: Exchange MTU Request (0x02) len 2 > > > > > Client RX MTU: 247 > > > > > < ACL Data TX: Handle 3585 flags 0x00 dlen 7 > > > > > > > > > > #24 [hci0] 12.556256 > > > > > ATT: Exchange MTU Response (0x03) len 2 > > > > > Server RX MTU: 247 > > > > > > ACL Data RX: Handle 3585 flags 0x02 dlen 7 #27 [hci0] 12.655972 > > > > > ATT: Exchange MTU Response (0x03) len 2 > > > > > Server RX MTU: 252 > > > > > > > > > > So we are now responding with 247 and the peripheral responds with 252 > > > > > to our request :/, so we would need to probably delay our request or > > > > > something, that said we are the central so I really which we don't > > > > > have to do it since that would penalize well behaving devices, could > > > > > we perhaps inform the vendor about these issues? I'd considered this > > > > > to be really bad behavior from the remote side since they are not > > > > > following the spec in many respects as even their MTU changes from > > > > > request to response and it does multiple rounds of Exchange MTU and > > > > > stop responding while doing it. > > > > > > > > > > > > > I can certainly look into how to contact Huami/Amazfit ... I wouldnt > > > > count on a response though! > > > > > > > > I see you looked at the android log already. > > > > > > > > Do you have an idea for a patch I could try out? Im deep in this now > > > > anyway, and over-wrote my system bluez :D > > > > > > > > Its strange how they have messed up this generation of device as all > > > > the older ones work fine, and I imagine they must just build on the > > > > old code base. > > > > > > > > > > I have submitted a support request to Amazfit, describing the issue > > > and linking to the details in the ML... maybe they will read it! > > > > > > Do you think there is anything I can try to make bluez work in the > > > mean time, even just on my own device? > > > > > I had another go at making this work before attempting to write my own > > gatt lib (!) and i seem to have got it to work, though I dont know if > > it will be acceptable to bluez, or if there is another way. > > > > Probably easiest with the diff: > > diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c > > index ea3249be9..701677e0a 100644 > > --- a/profiles/gap/gas.c > > +++ b/profiles/gap/gas.c > > @@ -142,8 +142,8 @@ static void read_appearance_cb(bool success, > > uint8_t att_ecode, > > > > static void handle_appearance(struct gas *gas, uint16_t value_handle) > > { > > - if (!bt_gatt_client_read_value(gas->client, value_handle, > > - read_appearance_cb, gas, NULL)) > > + //if (!bt_gatt_client_read_value(gas->client, value_handle, > > + // read_appearance_cb, gas, NULL)) > > DBG("Failed to send request to read appearance"); > > Does disabling the read make it work? Does it stop the second MTU exchange? > > > } > > > > diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c > > index 776e5ce2b..ac0fac1fc 100644 > > --- a/src/shared/gatt-server.c > > +++ b/src/shared/gatt-server.c > > @@ -1498,7 +1498,8 @@ static void exchange_mtu_cb(struct bt_att_chan > > *chan, uint8_t opcode, > > final_mtu = MAX(MIN(client_rx_mtu, server->mtu), BT_ATT_DEFAULT_LE_MTU); > > > > /* Respond with the server MTU */ > > - put_le16(server->mtu, rsp_pdu); > > + //put_le16(server->mtu, rsp_pdu); > > + put_le16(final_mtu, rsp_pdu); > > bt_att_chan_send_rsp(chan, BT_ATT_OP_MTU_RSP, rsp_pdu, 2); > > > > /* Set MTU to be the minimum */ > > > > I was running bluetoothd with -n -d, and noticed that the read to the > > appearance was failing, so, I commented it out. The read to the name > > works ok and happens just prior to reading the appearance. > > > > I gather it only reads the appearance if the char exists, so, i dont > > know why that fail, however I dont see 2a01 in the list of > > services/characteristics, which is the appearance one right? > > #define GATT_CHARAC_APPEARANCE 0x2A01 > > You don't see it on bluetoothd logs or over D-Bus? The latter may not > contain all the attributes since some are claimed. > Gathered some logs this morning, see attached. So, 2A01 is listed in the bluetoothd debug output, so, I guess its a fault that it cant be read? It is not listed in the output of bluetoothctl list-attributes (also attached) so I could not read the value using that tool. Without any other changes, my own lib/app was able to connect to the watch and start reading data seemingly fine, though I did get an unexpected disconnected after reading a large amount of step/activity data, but that may be unrelated, read/write and notify were all working. Could some quirk be used to get around this issue? > > Any thoughts? > > > > Cheers > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > < HCI Command: Disconnect (0x01|0x0006) plen 3 > > > > > > > > > > > > > > > > > > > > > > > > #48 [hci0] 58.673128 > > > > > > > > > > > > Handle: 3585 > > > > > > > > > > > > Reason: Remote User Terminated Connection (0x13) > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > Luiz Augusto von Dentz > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > Luiz Augusto von Dentz > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Luiz Augusto von Dentz > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > Luiz Augusto von Dentz > > > > > > > > > > > > > > > > > > > > -- > > > > > Luiz Augusto von Dentz > > > > -- > Luiz Augusto von Dentz
Bluetoothctl: piggz@adam-laptop ~ $ bluetoothctl Agent registered [bluetooth]# connect CD:1B:C3:94:5B:77 Attempting to connect to CD:1B:C3:94:5B:77 [CHG] Device CD:1B:C3:94:5B:77 Connected: yes Connection successful [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001 00001801-0000-1000-8000-00805f9b34fb Generic Attribute Profile [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001/char0002 00002a05-0000-1000-8000-00805f9b34fb Service Changed [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001/char0002/desc0004 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028 0000180a-0000-1000-8000-00805f9b34fb Device Information [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0029 00002a25-0000-1000-8000-00805f9b34fb Serial Number String [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002b 00002a27-0000-1000-8000-00805f9b34fb Hardware Revision String [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002d 00002a28-0000-1000-8000-00805f9b34fb Software Revision String [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002f 00002a23-0000-1000-8000-00805f9b34fb System ID [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0031 00002a50-0000-1000-8000-00805f9b34fb PnP ID [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0033 00000014-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0033/desc0035 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038 00001530-0000-3512-2118-0009af100700 Vendor specific [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char0039 00001531-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char0039/desc003b 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char003c 00001532-0000-3512-2118-0009af100700 Vendor specific [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040 0000fee0-0000-1000-8000-00805f9b34fb Anhui Huami Information Technology Co., Ltd. [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0041 00002a2b-0000-1000-8000-00805f9b34fb Current Time [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0041/desc0043 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0044 00002a04-0000-1000-8000-00805f9b34fb Peripheral Preferred Connection Parameters [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0044/desc0046 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0047 00000001-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0047/desc0049 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004a 00000002-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004a/desc004c 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004d 00000003-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004d/desc004f 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0050 00000004-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0050/desc0052 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0053 00000005-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0053/desc0055 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0056 00000006-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0056/desc0058 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0059 00000007-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0059/desc005b 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char005f 00000010-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char005f/desc0061 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0062 0000000e-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0062/desc0064 00002901-0000-1000-8000-00805f9b34fb Characteristic User Description [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0065 00000020-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0065/desc0067 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0068 00000016-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0068/desc006a 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char006b 00000017-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char006b/desc006d 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070 0000fee1-0000-1000-8000-00805f9b34fb Anhui Huami Information Technology Co., Ltd. [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0071 00000009-0000-3512-2118-0009af100700 Vendor specific [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0071/desc0073 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0074 0000fedd-0000-1000-8000-00805f9b34fb Jawbone [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0076 0000fede-0000-1000-8000-00805f9b34fb Coin, Inc. [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0078 0000fedf-0000-1000-8000-00805f9b34fb Design SHIFT [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007a 0000fed0-0000-1000-8000-00805f9b34fb Apple, Inc. [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007c 0000fed1-0000-1000-8000-00805f9b34fb Apple, Inc. [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007e 0000fed2-0000-1000-8000-00805f9b34fb Apple, Inc. [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0080 0000fed3-0000-1000-8000-00805f9b34fb Apple, Inc. [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084 0000180d-0000-1000-8000-00805f9b34fb Heart Rate [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0085 00002a37-0000-1000-8000-00805f9b34fb Heart Rate Measurement [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0085/desc0087 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0088 00002a39-0000-1000-8000-00805f9b34fb Heart Rate Control Point [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c 00001811-0000-1000-8000-00805f9b34fb Alert Notification Service [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008d 00002a46-0000-1000-8000-00805f9b34fb New Alert [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008f 00002a44-0000-1000-8000-00805f9b34fb Alert Notification Control Point [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008f/desc0091 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0094 00001802-0000-1000-8000-00805f9b34fb Immediate Alert [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0094/char0095 00002a06-0000-1000-8000-00805f9b34fb Alert Level [NEW] Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099 00003802-0000-1000-8000-00805f9b34fb Unknown [NEW] Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099/char009a 00004a02-0000-1000-8000-00805f9b34fb Unknown [NEW] Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099/char009a/desc009c 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration [CHG] Device CD:1B:C3:94:5B:77 ServicesResolved: yes [CHG] Device CD:1B:C3:94:5B:77 Paired: yes [CHG] Device CD:1B:C3:94:5B:77 ServicesResolved: no [CHG] Device CD:1B:C3:94:5B:77 Connected: no [CHG] Controller DC:53:60:51:00:C6 Powered: no [CHG] Controller DC:53:60:51:00:C6 Discovering: no Agent unregistered ---------- Btmon: piggz@adam-laptop ~ $ sudo btmon Bluetooth monitor ver 5.63 = Note: Linux version 5.16.15-1-default (x86_64) 0.071909 = Note: Bluetooth subsystem version 2.22 0.071917 = New Index: DC:53:60:51:00:C6 (Primary,USB,hci0) [hci0] 0.071919 = Open Index: DC:53:60:51:00:C6 [hci0] 0.071920 = Index Info: DC:53:60:51:00:C6 (Intel Corp.) [hci0] 0.071922 @ MGMT Open: bluetoothd (privileged) version 1.21 {0x0001} 0.071924 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 #1 [hci0] 5.554956 Type: Passive (0x00) Interval: 60.000 msec (0x0060) Window: 60.000 msec (0x0060) Own address type: Public (0x00) Filter policy: Accept all advertisement (0x00) > HCI Event: Command Complete (0x0e) plen 4 #2 [hci0] 5.672957 LE Set Scan Parameters (0x08|0x000b) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 #3 [hci0] 5.673031 Scanning: Enabled (0x01) Filter duplicates: Enabled (0x01) > HCI Event: Command Complete (0x0e) plen 4 #4 [hci0] 5.673943 LE Set Scan Enable (0x08|0x000c) ncmd 2 Status: Success (0x00) > HCI Event: LE Meta Event (0x3e) plen 40 #5 [hci0] 5.823989 LE Advertising Report (0x02) Num reports: 1 Event type: Scannable undirected - ADV_SCAN_IND (0x02) Address type: Random (0x01) Address: 73:BC:BB:C2:C1:11 (Resolvable) Data length: 28 16-bit Service UUIDs (complete): 1 entry Google (0xfe9f) Service Data (UUID 0xfe9f): 0000000000000000000000000000000000000000 RSSI: -79 dBm (0xb1) > HCI Event: LE Meta Event (0x3e) plen 43 #6 [hci0] 6.393001 LE Advertising Report (0x02) Num reports: 1 Event type: Connectable undirected - ADV_IND (0x00) Address type: Random (0x01) Address: CD:1B:C3:94:5B:77 (Static) Data length: 31 Flags: 0x02 LE General Discoverable Mode Company: Anhui Huami Information Technology Co., Ltd. (343) Data: 02ffffffffffffffffffffffffffffffff03cd1bc3945b77 RSSI: -59 dBm (0xc5) < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 #7 [hci0] 6.393109 Scanning: Disabled (0x00) Filter duplicates: Disabled (0x00) > HCI Event: LE Meta Event (0x3e) plen 20 #8 [hci0] 6.403041 LE Advertising Report (0x02) Num reports: 1 Event type: Non connectable undirected - ADV_NONCONN_IND (0x03) Address type: Random (0x01) Address: C5:10:64:0D:50:4A (Static) Data length: 8 Company: Apple, Inc. (76) Type: Unknown (18) Data: 0001 RSSI: -71 dBm (0xb9) > HCI Event: Command Complete (0x0e) plen 4 #9 [hci0] 6.403953 LE Set Scan Enable (0x08|0x000c) ncmd 2 Status: Success (0x00) < HCI Command: LE Create Connection (0x08|0x000d) plen 25 #10 [hci0] 6.404039 Scan interval: 60.000 msec (0x0060) Scan window: 60.000 msec (0x0060) Filter policy: Accept list is not used (0x00) Peer address type: Random (0x01) Peer address: CD:1B:C3:94:5B:77 (Static) Own address type: Public (0x00) Min connection interval: 30.00 msec (0x0018) Max connection interval: 50.00 msec (0x0028) Connection latency: 0 (0x0000) Supervision timeout: 420 msec (0x002a) Min connection length: 0.000 msec (0x0000) Max connection length: 0.000 msec (0x0000) > HCI Event: Command Status (0x0f) plen 4 #11 [hci0] 6.404959 LE Create Connection (0x08|0x000d) ncmd 2 Status: Success (0x00) > HCI Event: LE Meta Event (0x3e) plen 19 #12 [hci0] 7.246016 LE Connection Complete (0x01) Status: Success (0x00) Handle: 3585 Role: Central (0x00) Peer address type: Random (0x01) Peer address: CD:1B:C3:94:5B:77 (Static) Connection interval: 50.00 msec (0x0028) Connection latency: 0 (0x0000) Supervision timeout: 420 msec (0x002a) Central clock accuracy: 0x00 @ MGMT Event: Device Connected (0x000b) plen 44 {0x0001} [hci0] 7.246124 LE Address: CD:1B:C3:94:5B:77 (Static) Flags: 0x00000008 Connection Locally Initiated Data length: 31 Flags: 0x02 LE General Discoverable Mode Company: Anhui Huami Information Technology Co., Ltd. (343) Data: 02ffffffffffffffffffffffffffffffff03cd1bc3945b77 < HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2 #13 [hci0] 7.246321 Handle: 3585 > HCI Event: Command Status (0x0f) plen 4 #14 [hci0] 7.246939 LE Read Remote Used Features (0x08|0x0016) ncmd 1 Status: Success (0x00) > HCI Event: LE Meta Event (0x3e) plen 12 #15 [hci0] 7.256967 LE Read Remote Used Features (0x04) Status: Success (0x00) Handle: 3585 Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 LE Encryption < HCI Command: LE Start Encryption (0x08|0x0019) plen 28 #16 [hci0] 7.257078 Handle: 3585 Random number: 0xdb9e4a1d99763254 Encrypted diversifier: 0xe783 Long term key: c5b2108775aa3ea40219fffed1172f59 > HCI Event: Command Status (0x0f) plen 4 #17 [hci0] 7.257950 LE Start Encryption (0x08|0x0019) ncmd 1 Status: Success (0x00) > HCI Event: Encryption Change (0x08) plen 4 #18 [hci0] 7.706014 Status: Success (0x00) Handle: 3585 Encryption: Enabled with AES-CCM (0x01) < ACL Data TX: Handle 3585 flags 0x00 dlen 7 #19 [hci0] 7.737373 ATT: Exchange MTU Request (0x02) len 2 Client RX MTU: 517 > ACL Data RX: Handle 3585 flags 0x02 dlen 7 #20 [hci0] 7.755716 ATT: Exchange MTU Request (0x02) len 2 Client RX MTU: 247 < ACL Data TX: Handle 3585 flags 0x00 dlen 7 #21 [hci0] 7.756422 ATT: Exchange MTU Response (0x03) len 2 Server RX MTU: 247 > HCI Event: Number of Completed Packets (0x13) plen 5 #22 [hci0] 7.756936 Num handles: 1 Handle: 3585 Count: 1 > HCI Event: Number of Completed Packets (0x13) plen 5 #23 [hci0] 7.806972 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 7 #24 [hci0] 7.855784 ATT: Exchange MTU Response (0x03) len 2 Server RX MTU: 252 < ACL Data TX: Handle 3585 flags 0x00 dlen 7 #25 [hci0] 7.856454 ATT: Read Request (0x0a) len 2 Handle: 0x0032 > HCI Event: Number of Completed Packets (0x13) plen 5 #26 [hci0] 7.906136 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 12 #27 [hci0] 7.955840 ATT: Read Response (0x0b) len 7 Value: 01570140000101 < ACL Data TX: Handle 3585 flags 0x00 dlen 7 #28 [hci0] 7.956301 ATT: Read Request (0x0a) len 2 Handle: 0x0016 > HCI Event: Number of Completed Packets (0x13) plen 5 #29 [hci0] 8.006029 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 19 #30 [hci0] 8.055802 ATT: Read Response (0x0b) len 14 Value: 416d617a66697420475452203200 < ACL Data TX: Handle 3585 flags 0x00 dlen 11 #31 [hci0] 8.056627 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0001-0xffff Attribute type: Server Supported Features (0x2b3a) > HCI Event: Number of Completed Packets (0x13) plen 5 #32 [hci0] 8.105969 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 9 #33 [hci0] 8.155796 ATT: Error Response (0x01) len 4 Read By Type Request (0x08) Handle: 0x0001 Error: Attribute Not Found (0x0a) < ACL Data TX: Handle 3585 flags 0x00 dlen 11 #34 [hci0] 8.156152 ATT: Read By Group Type Request (0x10) len 6 Handle range: 0x0001-0xffff Attribute group type: Primary Service (0x2800) > HCI Event: Number of Completed Packets (0x13) plen 5 #35 [hci0] 8.206189 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 24 #36 [hci0] 8.255774 ATT: Read By Group Type Response (0x11) len 19 Attribute data length: 6 Attribute group list: 3 entries Handle range: 0x0001-0x0004 UUID: Generic Attribute Profile (0x1801) Handle range: 0x0014-0x0018 UUID: Generic Access Profile (0x1800) Handle range: 0x0028-0x0035 UUID: Device Information (0x180a) < ACL Data TX: Handle 3585 flags 0x00 dlen 11 #37 [hci0] 8.256136 ATT: Read By Group Type Request (0x10) len 6 Handle range: 0x0036-0xffff Attribute group type: Primary Service (0x2800) > HCI Event: Number of Completed Packets (0x13) plen 5 #38 [hci0] 8.306159 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 26 #39 [hci0] 8.355992 ATT: Read By Group Type Response (0x11) len 21 Attribute data length: 20 Attribute group list: 1 entry Handle range: 0x0038-0x003d UUID: Vendor specific (00001530-0000-3512-2118-0009af100700) < ACL Data TX: Handle 3585 flags 0x00 dlen 11 #40 [hci0] 8.356424 ATT: Read By Group Type Request (0x10) len 6 Handle range: 0x003e-0xffff Attribute group type: Primary Service (0x2800) > HCI Event: Number of Completed Packets (0x13) plen 5 #41 [hci0] 8.405942 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 27 #42 [hci0] 8.455825 > ACL Data RX: Handle 3585 flags 0x01 dlen 15 #43 [hci0] 8.456671 ATT: Read By Group Type Response (0x11) len 37 Attribute data length: 6 Attribute group list: 6 entries Handle range: 0x0040-0x006d UUID: Anhui Huami Information Technology Co., Ltd. (0xfee0) Handle range: 0x0070-0x0081 UUID: Anhui Huami Information Technology Co., Ltd. (0xfee1) Handle range: 0x0084-0x0089 UUID: Heart Rate (0x180d) Handle range: 0x008c-0x0091 UUID: Alert Notification Service (0x1811) Handle range: 0x0094-0x0096 UUID: Immediate Alert (0x1802) Handle range: 0x0099-0x009c UUID: Unknown (0x3802) < ACL Data TX: Handle 3585 flags 0x00 dlen 11 #44 [hci0] 8.456936 ATT: Read By Group Type Request (0x10) len 6 Handle range: 0x009d-0xffff Attribute group type: Primary Service (0x2800) > HCI Event: Number of Completed Packets (0x13) plen 5 #45 [hci0] 8.506032 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 9 #46 [hci0] 8.555667 ATT: Error Response (0x01) len 4 Read By Group Type Request (0x10) Handle: 0x009d Error: Attribute Not Found (0x0a) < ACL Data TX: Handle 3585 flags 0x00 dlen 9 #47 [hci0] 8.597592 ATT: Write Request (0x12) len 4 Handle: 0x0004 Data: 0200 > HCI Event: Number of Completed Packets (0x13) plen 5 #48 [hci0] 8.605932 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 5 #49 [hci0] 8.655563 ATT: Write Response (0x13) len 0 > ACL Data RX: Handle 3585 flags 0x02 dlen 11 #50 [hci0] 11.287516 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0001-0xffff Attribute type: Characteristic (0x2803) < ACL Data TX: Handle 3585 flags 0x00 dlen 27 #51 [hci0] 11.288352 < ACL Data TX: Handle 3585 flags 0x01 dlen 27 #52 [hci0] 11.288383 < ACL Data TX: Handle 3585 flags 0x01 dlen 8 #53 [hci0] 11.288393 ATT: Read By Type Response (0x09) len 57 Attribute data length: 7 Attribute data list: 8 entries Handle: 0x0002 Value: 020300002a Handle: 0x0004 Value: 020500012a Handle: 0x0006 Value: 020700a62a Handle: 0x0009 Value: 200a00052a Handle: 0x000c Value: 0a0d00292b Handle: 0x000e Value: 020f002a2b Handle: 0x0010 Value: 0211003a2b Handle: 0x0013 Value: 021400502a > HCI Event: Number of Completed Packets (0x13) plen 5 #54 [hci0] 11.305948 Num handles: 1 Handle: 3585 Count: 1 > HCI Event: Number of Completed Packets (0x13) plen 5 #55 [hci0] 11.306942 Num handles: 1 Handle: 3585 Count: 1 > HCI Event: Number of Completed Packets (0x13) plen 5 #56 [hci0] 11.307935 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 11 #57 [hci0] 11.355838 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0014-0xffff Attribute type: Characteristic (0x2803) < ACL Data TX: Handle 3585 flags 0x00 dlen 9 #58 [hci0] 11.356663 ATT: Error Response (0x01) len 4 Read By Type Request (0x08) Handle: 0x0014 Error: Attribute Not Found (0x0a) > HCI Event: Number of Completed Packets (0x13) plen 5 #59 [hci0] 11.406156 Num handles: 1 Handle: 3585 Count: 1 > ACL Data RX: Handle 3585 flags 0x02 dlen 11 #60 [hci0] 11.455775 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0001-0xffff Attribute type: Device Name (0x2a00) < ACL Data TX: Handle 3585 flags 0x00 dlen 18 #61 [hci0] 11.456514 ATT: Read By Type Response (0x09) len 13 Attribute data length: 12 Attribute data list: 1 entry Handle: 0x0003 Value: 426c75655a20352e3633 > HCI Event: Number of Completed Packets (0x13) plen 5 #62 [hci0] 11.505953 Num handles: 1 Handle: 3585 Count: 1 ---------- Bluetoothd: bluetoothd[8809]: src/agent.c:agent_ref() 0x55f63ef92e30: ref=1 bluetoothd[8809]: src/agent.c:register_agent() agent :1.3789 bluetoothd[8809]: src/device.c:device_connect_le() Connection attempt to: CD:1B:C3:94:5B:77 bluetoothd[8809]: src/adapter.c:connected_callback() hci0 device CD:1B:C3:94:5B:77 connected eir_len 31 bluetoothd[8809]: attrib/gattrib.c:g_attrib_ref() 0x55f63ef91620: g_attrib_ref=1 bluetoothd[8809]: src/device.c:load_gatt_db() Restoring CD:1B:C3:94:5B:77 gatt database from file bluetoothd[8809]: src/device.c:load_service() loading service: 0x0001, end: 0x0004, uuid: 00001801-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0014, end: 0x0018, uuid: 00001800-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0028, end: 0x0035, uuid: 0000180a-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0038, end: 0x003d, uuid: 00001530-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_service() loading service: 0x0040, end: 0x006d, uuid: 0000fee0-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0070, end: 0x0081, uuid: 0000fee1-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0084, end: 0x0089, uuid: 0000180d-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x008c, end: 0x0091, uuid: 00001811-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0094, end: 0x0096, uuid: 00001802-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_service() loading service: 0x0099, end: 0x009c, uuid: 00003802-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0002, value handle: 0x0003, properties 0x0022 value: uuid: 00002a05-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0004, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0015, value handle: 0x0016, properties 0x0002 value: uuid: 00002a00-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0017, value handle: 0x0018, properties 0x0002 value: uuid: 00002a01-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0029, value handle: 0x002a, properties 0x0002 value: uuid: 00002a25-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x002b, value handle: 0x002c, properties 0x0002 value: uuid: 00002a27-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x002d, value handle: 0x002e, properties 0x0002 value: uuid: 00002a28-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x002f, value handle: 0x0030, properties 0x0002 value: uuid: 00002a23-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0031, value handle: 0x0032, properties 0x0002 value: uuid: 00002a50-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0033, value handle: 0x0034, properties 0x0014 value: uuid: 00000014-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0035, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0039, value handle: 0x003a, properties 0x0018 value: uuid: 00001531-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x003b, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x003c, value handle: 0x003d, properties 0x0004 value: uuid: 00001532-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0041, value handle: 0x0042, properties 0x001a value: uuid: 00002a2b-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0043, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0044, value handle: 0x0045, properties 0x001a value: uuid: 00002a04-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0046, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0047, value handle: 0x0048, properties 0x0014 value: uuid: 00000001-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0049, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x004a, value handle: 0x004b, properties 0x0010 value: uuid: 00000002-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x004c, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x004d, value handle: 0x004e, properties 0x0014 value: uuid: 00000003-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x004f, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0050, value handle: 0x0051, properties 0x0014 value: uuid: 00000004-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0052, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0053, value handle: 0x0054, properties 0x0010 value: uuid: 00000005-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0055, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0056, value handle: 0x0057, properties 0x0012 value: uuid: 00000006-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0058, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0059, value handle: 0x005a, properties 0x0012 value: uuid: 00000007-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x005b, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x005f, value handle: 0x0060, properties 0x0010 value: uuid: 00000010-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0061, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0062, value handle: 0x0063, properties 0x0008 value: uuid: 0000000e-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0064, value: 0x0000, value uuid: 00002901-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0065, value handle: 0x0066, properties 0x0016 value: uuid: 00000020-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0067, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0068, value handle: 0x0069, properties 0x0014 value: uuid: 00000016-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x006a, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x006b, value handle: 0x006c, properties 0x0014 value: uuid: 00000017-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x006d, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0071, value handle: 0x0072, properties 0x0016 value: uuid: 00000009-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0073, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0074, value handle: 0x0075, properties 0x0008 value: uuid: 0000fedd-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0076, value handle: 0x0077, properties 0x0002 value: uuid: 0000fede-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0078, value handle: 0x0079, properties 0x0002 value: uuid: 0000fedf-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x007a, value handle: 0x007b, properties 0x000a value: uuid: 0000fed0-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x007c, value handle: 0x007d, properties 0x000a value: uuid: 0000fed1-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x007e, value handle: 0x007f, properties 0x0002 value: uuid: 0000fed2-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0080, value handle: 0x0081, properties 0x000a value: uuid: 0000fed3-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0085, value handle: 0x0086, properties 0x0010 value: uuid: 00002a37-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0087, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0088, value handle: 0x0089, properties 0x000a value: uuid: 00002a39-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x008d, value handle: 0x008e, properties 0x000a value: uuid: 00002a46-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x008f, value handle: 0x0090, properties 0x001a value: uuid: 00002a44-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x0091, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x0095, value handle: 0x0096, properties 0x0004 value: uuid: 00002a06-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_chrc() loading characteristic handle: 0x009a, value handle: 0x009b, properties 0x001a value: uuid: 00004a02-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:load_desc() loading descriptor handle: 0x009c, value: 0x0000, value uuid: 00002902-0000-1000-8000-00805f9b34fb bluetoothd[8809]: profiles/deviceinfo/deviceinfo.c:deviceinfo_accept() deviceinfo profile accept (CD:1B:C3:94:5B:77) bluetoothd[8809]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a25-0000-1000-8000-00805f9b34fb bluetoothd[8809]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a27-0000-1000-8000-00805f9b34fb bluetoothd[8809]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a28-0000-1000-8000-00805f9b34fb bluetoothd[8809]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00002a23-0000-1000-8000-00805f9b34fb bluetoothd[8809]: profiles/deviceinfo/deviceinfo.c:handle_characteristic() Unsupported characteristic: 00000014-0000-3512-2118-0009af100700 bluetoothd[8809]: src/service.c:change_state() 0x55f63ef66280: device CD:1B:C3:94:5B:77 profile deviceinfo state changed: disconnected -> connected (0) bluetoothd[8809]: profiles/gap/gas.c:gap_accept() GAP profile accept (CD:1B:C3:94:5B:77) bluetoothd[8809]: profiles/gap/gas.c:handle_appearance() Failed to send request to read appearance bluetoothd[8809]: src/service.c:change_state() 0x55f63ef693d0: device CD:1B:C3:94:5B:77 profile gap-profile state changed: disconnected -> connected (0) bluetoothd[8809]: src/gatt-client.c:btd_gatt_client_connected() Device connected. bluetoothd[8809]: src/device.c:gatt_debug() (chan 0x55f63ef770c0) ATT PDU received: 0x02 bluetoothd[8809]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 247 bluetoothd[8809]: src/device.c:gatt_debug() MTU exchange complete, with MTU: 252 bluetoothd[8809]: profiles/gap/gas.c:read_device_name_cb() GAP Device Name: Amazfit GTR 2 bluetoothd[8809]: src/device.c:gatt_debug() Primary services found: 10 bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0001, end: 0x0004, uuid: 00001801-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0014, end: 0x0018, uuid: 00001800-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0028, end: 0x0035, uuid: 0000180a-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0038, end: 0x003d, uuid: 00001530-0000-3512-2118-0009af100700 bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0040, end: 0x006d, uuid: 0000fee0-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0070, end: 0x0081, uuid: 0000fee1-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0084, end: 0x0089, uuid: 0000180d-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x008c, end: 0x0091, uuid: 00001811-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0094, end: 0x0096, uuid: 00001802-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_debug() start: 0x0099, end: 0x009c, uuid: 00003802-0000-1000-8000-00805f9b34fb bluetoothd[8809]: src/device.c:gatt_client_ready_cb() status: success, error: 10 bluetoothd[8809]: src/gatt-client.c:btd_gatt_client_ready() GATT client ready bluetoothd[8809]: src/gatt-client.c:create_services() Exporting objects for GATT services: CD:1B:C3:94:5B:77 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001/char0002 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001/char0002/desc0004 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0029 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002b bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002d bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002f bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0031 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0033 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0033/desc0035 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char0039 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char0039/desc003b bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char003c bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0041 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0041/desc0043 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0044 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0044/desc0046 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0047 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0047/desc0049 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004a bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004a/desc004c bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004d bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004d/desc004f bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0050 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0050/desc0052 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0053 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0053/desc0055 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0056 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0056/desc0058 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0059 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0059/desc005b bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char005f bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char005f/desc0061 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0062 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0062/desc0064 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0065 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0065/desc0067 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0068 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0068/desc006a bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char006b bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char006b/desc006d bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0071 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0071/desc0073 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0074 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0076 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0078 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007a bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007c bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007e bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0080 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0085 bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0085/desc0087 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0088 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008d bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008f bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008f/desc0091 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0094 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0094/char0095 bluetoothd[8809]: src/gatt-client.c:service_create() Exported GATT service: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099 bluetoothd[8809]: src/gatt-client.c:characteristic_create() Exported GATT characteristic: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099/char009a bluetoothd[8809]: src/gatt-client.c:descriptor_create() Exported GATT characteristic descriptor: /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099/char009a/desc009c bluetoothd[8809]: src/gatt-client.c:btd_gatt_client_ready() Features 0x00 bluetoothd[8809]: src/gatt-client.c:btd_gatt_client_ready() Update Features 0x00 bluetoothd[8809]: src/device.c:device_svc_resolved() /org/bluez/hci0/dev_CD_1B_C3_94_5B_77 err 0 bluetoothd[8809]: src/device.c:gatt_debug() Registered handler for "Service Changed": 1 bluetoothd[8809]: src/device.c:gatt_debug() (chan 0x55f63ef770c0) ATT PDU received: 0x08 bluetoothd[8809]: src/device.c:gatt_debug() Read By Type - start: 0x0001 end: 0xffff bluetoothd[8809]: src/device.c:gatt_debug() (chan 0x55f63ef770c0) ATT PDU received: 0x08 bluetoothd[8809]: src/device.c:gatt_debug() Read By Type - start: 0x0014 end: 0xffff bluetoothd[8809]: src/device.c:gatt_debug() (chan 0x55f63ef770c0) ATT PDU received: 0x08 bluetoothd[8809]: src/device.c:gatt_debug() Read By Type - start: 0x0001 end: 0xffff bluetoothd[8809]: src/gatt-database.c:gap_device_name_read_cb() GAP Device Name read request ---------- list-attributes [Amazfit GTR 2]# list-attributes Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001 00001801-0000-1000-8000-00805f9b34fb Generic Attribute Profile Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001/char0002 00002a05-0000-1000-8000-00805f9b34fb Service Changed Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0001/char0002/desc0004 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028 0000180a-0000-1000-8000-00805f9b34fb Device Information Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0029 00002a25-0000-1000-8000-00805f9b34fb Serial Number String Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002b 00002a27-0000-1000-8000-00805f9b34fb Hardware Revision String Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002d 00002a28-0000-1000-8000-00805f9b34fb Software Revision String Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char002f 00002a23-0000-1000-8000-00805f9b34fb System ID Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0031 00002a50-0000-1000-8000-00805f9b34fb PnP ID Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0033 00000014-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0028/char0033/desc0035 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038 00001530-0000-3512-2118-0009af100700 Vendor specific Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char0039 00001531-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char0039/desc003b 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0038/char003c 00001532-0000-3512-2118-0009af100700 Vendor specific Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040 0000fee0-0000-1000-8000-00805f9b34fb Anhui Huami Information Technology Co., Ltd. Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0041 00002a2b-0000-1000-8000-00805f9b34fb Current Time Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0041/desc0043 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0044 00002a04-0000-1000-8000-00805f9b34fb Peripheral Preferred Connection Parameters Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0044/desc0046 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0047 00000001-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0047/desc0049 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004a 00000002-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004a/desc004c 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004d 00000003-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char004d/desc004f 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0050 00000004-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0050/desc0052 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0053 00000005-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0053/desc0055 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0056 00000006-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0056/desc0058 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0059 00000007-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0059/desc005b 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char005f 00000010-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char005f/desc0061 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0062 0000000e-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0062/desc0064 00002901-0000-1000-8000-00805f9b34fb Characteristic User Description Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0065 00000020-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0065/desc0067 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0068 00000016-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char0068/desc006a 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char006b 00000017-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0040/char006b/desc006d 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070 0000fee1-0000-1000-8000-00805f9b34fb Anhui Huami Information Technology Co., Ltd. Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0071 00000009-0000-3512-2118-0009af100700 Vendor specific Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0071/desc0073 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0074 0000fedd-0000-1000-8000-00805f9b34fb Jawbone Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0076 0000fede-0000-1000-8000-00805f9b34fb Coin, Inc. Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0078 0000fedf-0000-1000-8000-00805f9b34fb Design SHIFT Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007a 0000fed0-0000-1000-8000-00805f9b34fb Apple, Inc. Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007c 0000fed1-0000-1000-8000-00805f9b34fb Apple, Inc. Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char007e 0000fed2-0000-1000-8000-00805f9b34fb Apple, Inc. Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0070/char0080 0000fed3-0000-1000-8000-00805f9b34fb Apple, Inc. Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084 0000180d-0000-1000-8000-00805f9b34fb Heart Rate Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0085 00002a37-0000-1000-8000-00805f9b34fb Heart Rate Measurement Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0085/desc0087 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0084/char0088 00002a39-0000-1000-8000-00805f9b34fb Heart Rate Control Point Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c 00001811-0000-1000-8000-00805f9b34fb Alert Notification Service Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008d 00002a46-0000-1000-8000-00805f9b34fb New Alert Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008f 00002a44-0000-1000-8000-00805f9b34fb Alert Notification Control Point Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service008c/char008f/desc0091 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0094 00001802-0000-1000-8000-00805f9b34fb Immediate Alert Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0094/char0095 00002a06-0000-1000-8000-00805f9b34fb Alert Level Primary Service (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099 00003802-0000-1000-8000-00805f9b34fb Unknown Characteristic (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099/char009a 00004a02-0000-1000-8000-00805f9b34fb Unknown Descriptor (Handle 0x0000) /org/bluez/hci0/dev_CD_1B_C3_94_5B_77/service0099/char009a/desc009c 00002902-0000-1000-8000-00805f9b34fb Client Characteristic Configuration