Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1280132pxb; Thu, 4 Feb 2021 09:02:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz10wrnYi/OSnbzcP9RNDEW4I/L1IwMjbCAU65z5MuED1DF/v5Ruxj0XxuFyQPYOEoOS04C X-Received: by 2002:a17:906:6d44:: with SMTP id a4mr7108ejt.453.1612458021962; Thu, 04 Feb 2021 09:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612458021; cv=none; d=google.com; s=arc-20160816; b=BjQ0fmwFY9W29aEBjpaR5QlpGrCkkZ+sz871XejqscIHiIB9PV1Gdqip4zdP7An0nZ 6RyiqLZfnYKCkqEyRHY4e1I7ZeyG/ubB/FWP5xyhNBbhG9Kxsglmrg9q9bzblC5Ti7xH i5vj0je0YGlN5H4aft5eM+PqxcKZflspw15FKEHdzb9zZrX30XX5k8n/Pp0fawTd6DfG OlFXPnWQZmwVx3N/leNFi+xEstmElQuA9+QAaZ0m9dsuyGqROHucjbc1+akxw2XBp57k R6UUjawNbYy7/LCLp5eiJXtqekKeky1urNkU4VeJC43SuYVyeX3lG1Vj7VsZwMJbSatI srWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AtuZOhMi4hQjT2dJo5KrrumoG23OPJ3RaM+8xUkroQQ=; b=bIFT4LdFX9DoGD/kDR/evATKQ3RS0PtLXrN3W3KC3hMWP1gW/fE6bDi+OgMBCMQMGs RXLfh1/4P0QFEl0xdcCEyDpF+soPHnoquRzJwp8xXjTblFXNKCDiDxHf/4fs6JbpM60G nGP6x6VhTL3hhELKDW7r5Ol32YxgFtx6M3nb+HsyZo0HfLLslypwXdY1TOwWyTr05ZHc Q+N3jzMjxGzpfKgkobEzHdwyh6vW/lWPpt44kXb/+lFF/joGMWCxXB3nplYpTeiCJZlM 0sxn0r/g7cp7nyvc3XTQ5NqnwpwkXzsjNCTEhGDfD085v2iQa9ti+rxyCaBpfjMB7pfZ P+AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n1TOOG00; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si3260405ejw.738.2021.02.04.08.59.40; Thu, 04 Feb 2021 09:00:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n1TOOG00; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237213AbhBDQ5d (ORCPT + 99 others); Thu, 4 Feb 2021 11:57:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238202AbhBDQxK (ORCPT ); Thu, 4 Feb 2021 11:53:10 -0500 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBAEC06178A for ; Thu, 4 Feb 2021 08:52:30 -0800 (PST) Received: by mail-oi1-x231.google.com with SMTP id m13so4356600oig.8 for ; Thu, 04 Feb 2021 08:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AtuZOhMi4hQjT2dJo5KrrumoG23OPJ3RaM+8xUkroQQ=; b=n1TOOG006NIj0Y3TcJdHbFv2dD1K9E2nJ7AOOKK1divBndlQQHW5V35LuRHXJnsg2X LOa3mx6EGZqj05cj9pZmKkYIN7lvQiFqIcM4zo4y7wzFnqsWPB/ka0bRMhErBy2MjBHF o1wp8hcxOC77B2GFKL5fRECi/MymMzHXuDom7ymj4gXBt62iPEwpTmkV759QovGa3m4u h7p9bAtfth10oXf/TsUt3qlWKS2nQ7N7fUIQpB68QW077ENlmqvbCzWs1ozzRT5cAo8n BpTS1TARxapzJN3iJaZFxNOs6OGcgjxgYMWMiZnMs5RZrYpCl/1L2hIRNQWg3h52VkqV B0sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AtuZOhMi4hQjT2dJo5KrrumoG23OPJ3RaM+8xUkroQQ=; b=KYRFHZxjApj3HoH3HxvPgySSH5khhs28YxfvFbh6AW//cmyQkCNT1INdvXpT0Xx/3E wKFiHvsIFgNZ7AWuZewNVujuGmpC+zyXF9HRYkXcY7r6DKVCuwLoHIqw/6aOlJ7VqnkJ LPoWeLQ1w/Z64QNYYCErcs0kr3Rfom2g1d0l0keGDI27Cl+P5YAUUSdIvhHLrS/9kCPE OH3KH/hawRyHYp0YhVNzdA7su1f/t9i/Q6lCpjUNIkpxpVtOO1a24IHIC25vyKjF/Rn9 XN0l5dQbHNBlSTPoTUR2LGzQxglYx1dDuM3fFuuCLESP8es6fJTaMygMo5YuEXjTK1DP 7K0A== X-Gm-Message-State: AOAM531G+/sue02VAoZxM8+hB21QN9AJjSnCXssGhOMVmAf3GE/jPFIE 9anEtKhMta2275MeLDpOQqpeVywQwxYuAQB5SGk= X-Received: by 2002:aca:c693:: with SMTP id w141mr248126oif.58.1612457549740; Thu, 04 Feb 2021 08:52:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 4 Feb 2021 08:52:19 -0800 Message-ID: Subject: Re: How to disable cache? To: Kenny Bian Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Kenny, On Wed, Feb 3, 2021 at 9:20 PM Kenny Bian wrote: > > Hello, > > In "/etc/bluetooth/main.conf", there seems a way to disable the cache: > [GATT] > Cache = no > > What does exactly the "disable cache" mean? It means the > "/var/lib/bluetooth/[MAC_ADDRESS]/cache" folder won't be created? That means it won't cache any GATT attribute found when discovering, the cache folder has other information as well. > We tried to disable the cache by changing the > "/etc/bluetooth/main.conf". It seems the > "/var/lib/bluetooth/[MAC_ADDRESS]/cache" folder is still created even > if it was deleted. > However, we noticed that the "[Attributes]" section in > "/var/lib/bluetooth/[MAC_ADDRESS]/cache/[iPHONE_MAC]" file is gone. > Does it mean the "disable cache" is working? Does it mean the handles > used between the bluetooth and the mobile app won't be cached? Yes, that is the result of not caching anything. -- Luiz Augusto von Dentz