Thread (4 messages) flat view 4 messages, 2 authors, 2015-08-17

Re: [BlueZ RFC] src/device: gatt database persistence

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2015-08-13 07:51:47

Hi Jakub,

On Wed, Aug 12, 2015 at 9:36 PM, Jakub Pawlowski [off-list ref] wrote:
This patch changes how gatt database for paired devices is stored between
restarts of bluetoothd. Right now only definition of services is stored.
After applying this patch whole gatt database will be stored/restored.

Storing whole database can have big impact on reconnection time for paired
devices, because full discovery can take up to 10 seconds.
There is a TODO for this but it seems that the documentation under
doc/settings-storage.txt outdated. I believe the preferred way to
store is a binary format under cache so the attributes can be
persisted even if the device info is not stored which is the same
design we use for SDP records, note that the code will perform a Read
By Group Type regardless if the database is empty or not to validate
the services on every connection so we need to update the cache every
time an attribute changes.


-- 
Luiz Augusto von Dentz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help