Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp113475iob; Tue, 17 May 2022 20:40:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMX90JK/H+y8UcglpKLtZc6c643plpdkPU5D/+dNm13wbnu6hQH/mvi+SRRUuHjDxyhIVo X-Received: by 2002:a63:3541:0:b0:3f5:dc5a:2f80 with SMTP id c62-20020a633541000000b003f5dc5a2f80mr3709062pga.262.1652845206575; Tue, 17 May 2022 20:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652845206; cv=none; d=google.com; s=arc-20160816; b=lPke1LaX/Fo5hxxpjS2zCLtHYF1Z0O/+lAD6WWuAQumr7ZasGMVM7iWl6LoH9yqaJt Yo5C9b7A/Rj1wElQACMxu6PCkgLj2otPzsBMvYfbtsnDkz0k3+owIpgtqool5xzXWD90 ycc7UlyoKqXBvGvZ3ir0WkEjguO8IkkPSlvYD8syw6jIHxuNQfRNGX9qhVPdHQYx0ph7 V2g8PCJy2RVIwZvL7azGCUbnRF7D2OkqmO8cnDM7uHCBobkyXQgd1NG6nRz39CW6d7Rx Kj400eim1tTzP9Zw2rUaPCAfot8ZFRotFeoH5LX3sMIdu/11Xt0QkY+u0jEdLk8jSsae pvPQ== 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=8r9FLg6Ulw4ZMRwdMmm9YktNls1yBqN/+uy4HOs01Dg=; b=QIkeQSZapdroM4U4Spmyw419Qx6lKlpI2PJF/E4fukKHqwykwiF/we+og0H2T9poFd tz2mzvEfmQZpdiT1Yu/neFwzau26DnRjd63dSZ1F1oC25ANDu1OBwEBo4yRft5YWA/8L L6zSksQ73JaN4hZPluKDD00mNbI+jDDMxjdSmPCRIK7zPb3udlK6s+ZMhdyTCfjZsJFi W4fdM+cg88I3OrhDrMrhkaTRXN3pt4BZt6yU7fNJ98qs7G0a+pPd2d5oF6SMI9OuiNUi rukmNxyaHmTQqIwdGl+oDp6JttJCqR6ST7juviVPeSOBDoIbioMEmwv6Y1eLCfnMPMIb dg+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HW37OyG9; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u41-20020a056a0009a900b0050d973da6f7si1774654pfg.328.2022.05.17.20.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HW37OyG9; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DEEB87628E; Tue, 17 May 2022 20:28:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbiEQV3c (ORCPT + 99 others); Tue, 17 May 2022 17:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiEQV3a (ORCPT ); Tue, 17 May 2022 17:29:30 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A4E51E55 for ; Tue, 17 May 2022 14:29:29 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id i19so108995eja.11 for ; Tue, 17 May 2022 14:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8r9FLg6Ulw4ZMRwdMmm9YktNls1yBqN/+uy4HOs01Dg=; b=HW37OyG9lLsh4ynJltyrU99FpZSTIPb3VtYYR14r5hlIp/Sn4fF15iumwpTddHQgEG AAdN7XtzcbEkGpVIbkk/DeWdNrZMIOkOCQiIbCIvXM4Anp5fR2OQ7zjnZl/PrYWA9st8 BNUVGSceaVZOWZHP7dCYMB7Wdao4lFdS6eULU= 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=8r9FLg6Ulw4ZMRwdMmm9YktNls1yBqN/+uy4HOs01Dg=; b=7Hd5hivP7uzl/JfJUPBqJjh9ax51yNd721W50+vdWe4n3knw6LUBCnmehXhz0/laCY kqu1+hgD4/rMufQfOPALSLjyJLz5ASlM7uBKEt9ylSf1grp1+VOw7CYjWwFtRNHC/VR5 0ef5gsXyS+TSRQiZLcOJ3A0HQGc4F2LLhVuV9qgiDlpLjPIrRNFXgLGXbCgwbk130F2r ehz6FoQ8seuNkFqDBVedaOkrwrg/uVchaGdx1y8kTz2W9aIYGucT44mc32IfcAVlUQRf b3kmi74MrqJQIFjYLt2NSQtkxOLGnFUi7uUpVSXcNyuHuAkvsMJLPaiYsENWFtjeEuej jqYQ== X-Gm-Message-State: AOAM531Qmw/WWbF8vHUFH34s85H9CKpqG8kQFF4Zu9DiNcA4y42fKSqM jj5hbzcLRcAMkBca18tBfAwM+ig1G7f3ZQ== X-Received: by 2002:a17:907:6e88:b0:6fa:888d:74a7 with SMTP id sh8-20020a1709076e8800b006fa888d74a7mr21461920ejc.335.1652822967513; Tue, 17 May 2022 14:29:27 -0700 (PDT) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id el9-20020a170907284900b006f3ef214e55sm135851ejc.187.2022.05.17.14.29.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 May 2022 14:29:27 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id g6so193640ejw.1 for ; Tue, 17 May 2022 14:29:27 -0700 (PDT) X-Received: by 2002:a17:906:dc8d:b0:6f4:75da:2fc8 with SMTP id cs13-20020a170906dc8d00b006f475da2fc8mr21307709ejc.7.1652822966540; Tue, 17 May 2022 14:29:26 -0700 (PDT) MIME-Version: 1.0 References: <72122fe6-8c8b-d26e-9c1d-75462052b503@mindspring.com> <307e7ee7-b973-4d15-03fd-31cc6087163b@mindspring.com> <5a1c1826-92a9-f949-9f40-473416ab82b9@mindspring.com> In-Reply-To: From: Sonny Sasaka Date: Tue, 17 May 2022 14:29:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Battery1 vs. GATT reporting To: Ed Beroset Cc: BlueZ Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thanks for circling back, I appreciate it! On Tue, May 17, 2022 at 2:24 PM Ed Beroset wrote: > > On 3/2/22 10:33, Ed Beroset wrote: > > On 3/1/22 11:01, Ed Beroset wrote: > >> On 3/1/22 10:43, Sonny Sasaka wrote: > >>> Hi Ed, > >>> > >>> What I do is call `gatt.select-attribute` on the characteristic called > >>> "Battery Level", but it is not shown in your case. So maybe this is > >>> the bug that you are encountering. What is the exact version of your > >>> BlueZ (commit sha if possible)? Could you also try tip of tree to see > >>> if this is already fixed? > >> > >> Hi Sonny, > >> > >> I'm sorry, I should have noted that this is with the tip of tree, > >> commit bf09e1f048. Thanks for your help with this! > > > > I am trying this from a different computer today and I find that now the > > Battery Service and Battery Level characteristic are showing up, even on > > the same devices I was reading the other day. Not sure what's going on, > > but I am investigating further. At the moment, it seems more likely > > that the problem is either with my devices or with my software. I just > > wanted to report back to avoid having you all waste your time. When I > > figure this out, I'll send another update. Thanks for the help so far. > > OK, it's been a while, but the problem was eventually tracked not to > BlueZ but a Qt component I was using. Essentially, changes in BlueZ > were being tracked by changes in Qt, but there was a problem with the Qt > implementation starting with BlueZ version 5.55. No change required in > BlueZ, and already fixed in Qt, but I thought I'd circle back around and > let you all know the resolution. > > https://bugreports.qt.io/browse/QTBUG-70222 > > Ed