Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4504940iog; Tue, 21 Jun 2022 23:16:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uiUij56qH4bw9jp4gi12z0ZeflIesc961LsuhhRWN/1MMD4Ikru5SYGlK6XaRWTlopNmlU X-Received: by 2002:a17:907:80ca:b0:70f:77fd:cfbd with SMTP id io10-20020a17090780ca00b0070f77fdcfbdmr1579769ejc.82.1655878569453; Tue, 21 Jun 2022 23:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655878569; cv=none; d=google.com; s=arc-20160816; b=0AnDQ93K0qLWDtj2ZDNpHGELCqnYVE/ThYfJew7E8qP32oLOq3sE/i52GExggUu2b7 pBi9gLrWSkj6SNliELTf4/hEJeSAVPqwjo+lOgwW653rE7xu6avzPyRzc6jm6aFoS+8i EBFmTfuJPlgvQtTNhzRzcyvKgxcG9hUAaNgj9R44GxNXg03QHqIbWbbE64fV6QphCMQ7 SihLqpytV9Kfnj8egrDMPMuFPYOL55NWa7I5+ICT2LuOLzeocfjElfrE9pKe+U94nG9u nEjMrdtaRujkxuK5OEZ98BVZgE5Jh68SfWw349hhtvYC+8EvdOd/pbt/yJK8H0W6uejS 1kHg== 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=ZIgFc+BqRDl+KgYqLxVhkBlszhIdkNhAiyBTvU8dTJg=; b=Y9xTKiDRv8qBElp9s82XQBq7PfD1R3Amf9j9X2i2DqTz9Y1s5F6mT+lunllrvGle4V 6ViWdzsO3WxjlcOnrTubol6GuUy1kWU9+FOz755voGtkqXVMXSQEfIU9g1yAJzIz6lJP ey6YTglYqJAkAFSUz7pZa9MCjOUDOlFaBUXSX+Ik+uOil2Lw2bAZtN/mCut4V6rGC+UR vMGNKcTh++xqWL+yBhKYOSVRbUdgHqi84ZxPgsG/6MiV5yxB5xUFzsi34HfVkVXoA4x4 2p98tkNQ6G3rxq93WEy01PEE5ecbcUo9NmP03mNFbVZ3l3v2HsUIcBXcRqz6rByb6UpM dOZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ls4CAEC5; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs32-20020a1709072d2000b0070950fa092fsi2458869ejc.290.2022.06.21.23.15.25; Tue, 21 Jun 2022 23:16:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ls4CAEC5; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229657AbiFVGO1 (ORCPT + 99 others); Wed, 22 Jun 2022 02:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351041AbiFVGNk (ORCPT ); Wed, 22 Jun 2022 02:13:40 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635F111F for ; Tue, 21 Jun 2022 23:13:39 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id c2so26076470lfk.0 for ; Tue, 21 Jun 2022 23:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZIgFc+BqRDl+KgYqLxVhkBlszhIdkNhAiyBTvU8dTJg=; b=ls4CAEC5d3in7jph9bo5MK4MBj/1kJfu4vOQiWUbA4P1gpKXt2AdXca8FrWWA82roP z48FHTL9CC8oIQRlhdKVfotIr+Y9jVIHx262vGUmZEKyIQ2CGjXTZx8sQYY3rPw6D2BQ 77fGO/w0Rgal3JmDBmdIR8XLCyGQJWFjeCEhIRZBOTF88yzRiTAqFbcqKmlLS+vkNIX2 FHhaiqxr3zyHhUinVWAGA0VvpHYmj1lD8q7Gkdca8QOL0JCrXv0OGSrTPMhGmMdHwSfm 1qsa7VNQwgurKHP1ooCLWqks+f/NjCLK7PdHZVYDHH6+EFc8WV+OvQ1FzPtuZnf0c+HF bwEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZIgFc+BqRDl+KgYqLxVhkBlszhIdkNhAiyBTvU8dTJg=; b=LodHvuOCMH7Rrv6D7vNDMzaoAiBTjRPi7wdxkuqTr6BEIdA7uPwgOmWsq4TIRrbMg8 0ulO57GVn/mDOgsVjORaX3N2RJo7mi05maPSQYyqcxK7dHAji+oKBjOv2hZfagP1KQz3 46K8iX4PG1lP1MDnqv8xIQKV+JRH+HVhvr9M+KpSGhb/BWqW0HRIgGrGMMJ4Wjqz/Wvy qg61CB9vskN3fPZjTcR/cHNRQkxwrPeE7BnimuboJ91d0954MyMPKYHK19raWhdKOSVf HjGLrFIifFovFbNq/CBeCuzlb1PJ/697LQwVuBYqghFjcvF3H5u5r5ewplS5xlNtgurI dtQA== X-Gm-Message-State: AJIora9wEj/Adj9PcfTMHvtRrJYvD0irV5Dd8Nk1La1teuCpxJfHN0/v Y0ngrsorbfeOW78zSkfRYL1YnrYH0qZjt+MLW6+OHycTbB4Mqw== X-Received: by 2002:a05:6512:3ca4:b0:47f:6e53:fb4 with SMTP id h36-20020a0565123ca400b0047f6e530fb4mr1194201lfv.57.1655878417593; Tue, 21 Jun 2022 23:13:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Tue, 21 Jun 2022 23:13:26 -0700 Message-ID: Subject: Re: Is there an attribute for the name field in bluetoothctl? To: John Klug Cc: Linux-Bluetooth MailingList Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi John, On Tue, Jun 21, 2022 at 4:57 PM John Klug wrote: > > The value from gatttool does not match the prompt ([CC2650 SensorTag]# ) > > 2A00 is "SensorTag 2.0" > > This was defined by TI and is in their documentation with the value gatttool presents. > > How do I get the value "SensorTag 2.0" with bluetoothctl for the UUID 2A00? Perhaps the name CC2650 SensorTag comes from the advertising? Anyway, bluetoothd will read the name and update it on device information e.g. info
> > John Klug > > > > > > From: Luiz Augusto von Dentz > Sent: Tuesday, June 21, 2022 6:40 PM > To: John Klug > Cc: Linux-Bluetooth MailingList > Subject: Re: Is there an attribute for the name field in bluetoothctl? > > Hi John, > > On Tue, Jun 21, 2022 at 4:05 PM John Klug wrote: > > > > Gatttool Example: > > > > [CC:78:AB:7E:87:07][LE]> char-read-uuid 2a00 > > handle: 0x0003 value: 53 65 6e 73 6f 72 54 61 67 20 32 2e 30 > > [CC:78:AB:7E:87:07][LE]> char-read-uuid 00002a00-0000-1000-8000-00805f9b34fb > > handle: 0x0003 value: 53 65 6e 73 6f 72 54 61 67 20 32 2e 30 > > > > From Bluetoothctl: > > > > [CC2650 SensorTag]# attribute-info 2a00 > > Attribute 2a00 not available > > [CC2650 SensorTag]# attribute-info 00002a00-0000-1000-8000-00805f9b34fb > > Attribute 00002a00-0000-1000-8000-00805f9b34fb not available > > Certain attributes are controlled by the daemon so they are not > exposed over D-Bus, this is not unique to BlueZ since I remember > saying that on iOS it also don't allow applications to access some > attributes directly. > > Anyway the name is actually parsed and you can even see it on your > prompt and you can also give it an alias with set-alias command. > > > John Klug > > > > -- > Luiz Augusto von Dentz -- Luiz Augusto von Dentz