Re: [PATCH] gatt api V2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chao Jie,


> I take some time delved in shared/* files, although I cannot take a look at code line
> one by one in short time,, the whole stack appear clear to me help work on this.
> When I use the btgatt-client tool to connect LE device today, I get a problem as belows:
> ./btgatt-client -i hci0 -d DA:3E:9D:65:75:BE
> Connecting to device ... Failed to connect: Operation now in progress.
> I used bluetoothctrl to connect the LE device , it's ok.
> I compared btgatt-client l2cap connect process to setup socket parameter with bluetoothd
> did, the process of setting socket configuration seems to be the same.
> What details did I forget to do to result in this problem? Did you encounter on this issue?
>

Make sure to stop bluetoothd if you haven't. You might have a race for
the connection there. If that doesn't help, you probably need to debug
things a bit further.


> Maybe the mail title does not include "signed write" key word, can you tell me about
> which month in that discussion came out ?
>

Looks like the subject was: "[PATCH v3 1/4] src/shared/att: Introduce
struct bt_att." We basically talked about the need for bt_att to
somehow obtain the CSRK (through bt_att_new maybe?) and internally
keep the local+remote sign counters to be able to calculate the
authentication signature. Basically, the authentication signature
should get calculated by bt_att given all the data that it needs.


> I agree that there are too many dependency on GArrtib now, it's a difficult migration
> work. You said probing interface for GATT that is not very clear to me. For my understanding,
> although plugin won't perform service discovery any more, they can tranverse the service_list
> in the bt_gatt_client structure. So for plugins, they only need the bt_gatt_client structure
> created once device connected.
>

Yes, exactly. We will probably have device a ready callback in
device.c (look at bt_gatt_client_set_ready_handler), which will be
called once all discovery has been completed. From there, device.c can
just probe each profile/plugin based on the discovered services. The
plugins would have access to the bt_gatt_client instance so that they
can iterate through services, characteristics, etc. Basically
bt_gatt_client acts as the client attribute cache.


Thanks,
Arman
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux