Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp140823iob; Tue, 17 May 2022 21:37:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuZJP5h4BBMz0w7/oCAYMybNLMp1tpFkwCOLaLL+WM4d2gV4DjfjcEGVLXehcZKV77Rmmx X-Received: by 2002:a05:6a00:1152:b0:4be:ab79:fcfa with SMTP id b18-20020a056a00115200b004beab79fcfamr25723989pfm.3.1652848639388; Tue, 17 May 2022 21:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652848639; cv=none; d=google.com; s=arc-20160816; b=wZGZZ4mIC4kqXqj2wfHv8rIfnnNWbaLQhVaUzLG2TH0Phm4ADtbouQAq6BtNoqfZTb 0oS37tbMVDQtHdpwZT50pdhAr5NYR9Tz3kgdK54R5tsywN9W6VFB0ir0V64xYYm7rPGE UfDu5tQT3XRPRTaLFnNmcWMA9ew8Do+l4u3QZ22E8mT5BF7Fj5g1uumkTAiHyiT+zdgF R0T0Oy58H7o8jc9ULP3Q6r0slfGwEWFP1cmGeLYzjysQwCc+ctBZpBhp6Ik/ZX04JXxm 4KBq0yPvMeGzx/TLVJFeaT9gWwbo9qXbILhXxd9GXLHAeq9EmFfMVikJg6Sg8J/OO24x XkSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Vjo3Yw0FgcE6G1TF8DPJ8lZRhmH/FZWFwMVGl6Ulef0=; b=BRyfoKdz16YnE/1H89h0H+R+1TIM3a6ueZTd8ygfFDtXlBMGymUn2+bxy05obxeEbw 0nRKGu0fJaeTwGclCm5q1OcLI7CL6GWEpfLMNwic+8yAhRt9pqQXUBmUbRFc2VbDw+f/ ONHW+0lwGNSW0c2KYvCdAXL8RfLqXbFO/OmyPNoQOV5jOhuvbHirXI/it2175FPvzNjo M+8IVxHyxq9M2buQJJeHJ8WNdCmPvzeyuEDsZKTpfblyds5bBWDTPUx/B2Tzy1dDku3A 0nOTBs2qkTjuV/A8WfsFXOYHgUiL2SZhOkxHG+NJggnzZ6Jbuiuw04QwIMHc9gnIwWlK 25Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=JxbN600Z; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g10-20020a63b14a000000b003c1bf04df79si1195354pgp.137.2022.05.17.21.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:37:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=JxbN600Z; spf=softfail (google.com: domain of transitioning linux-bluetooth-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ECC219859E; Tue, 17 May 2022 20:54:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbiEQV3m (ORCPT + 99 others); Tue, 17 May 2022 17:29:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiEQV3l (ORCPT ); Tue, 17 May 2022 17:29:41 -0400 X-Greylist: delayed 301 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 17 May 2022 14:29:39 PDT Received: from nmtao201.oxsus-vadesecure.net (mta-201a.oxsus-vadesecure.net [51.81.229.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75FF151E55 for ; Tue, 17 May 2022 14:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; bh=Vjo3Yw0FgcE6G1TF8DPJ8lZRhmH/FZWFwMVGl6 Ulef0=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-subscribe:list-post: list-owner:list-archive; q=dns/txt; s=dk12062016; t=1652822677; x=1653427477; b=JxbN600ZsUCFm5vVVRYp7oCV1KpntPP7nbasp+YP693/9et+IWhJoVP h5hhoMFiuXzuaG8ah1plSoVRIrhb6C/pXzDFXX/5I0UKTKl/QX1rswmISZoHwVYh/aWB/af XYT/XGKmmpF5+tz5Bc4d9xWaB004+G1XEE5czn01WxIBLRNyw0XiN9IB+pLQlKgX2TzRvww 5He3T6IQSSlAIku5b9McJ6mrgOv67IPccLKAtFwwxWM4QUUd82PhjV8BqHSkM5TSVluVr+Z 9pcBwsFhX5dSHwhcPND+yAEzHlovMoyPHTWyUAWEWWHSwn34ta9+Ya3FylhgVHgnoz1ydlA f1w== Received: from [192.168.1.152] ([104.185.76.86]) by smtp.oxsus-vadesecure.net ESMTP oxsus2nmtao01p with ngmta id 80eda1ad-16f00177ca0807e1; Tue, 17 May 2022 21:24:37 +0000 Message-ID: Date: Tue, 17 May 2022 17:24:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: Battery1 vs. GATT reporting Content-Language: en-US From: Ed Beroset To: Sonny Sasaka Cc: BlueZ 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: <5a1c1826-92a9-f949-9f40-473416ab82b9@mindspring.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: oxsus-vadesecure.net; auth=pass smtp.auth=beroset@mindspring.com smtp.mailfrom=beroset@mindspring.com; X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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