Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp631691ybi; Wed, 17 Jul 2019 02:26:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxa84nO8tW2kUVOW+USdlFE2p7SOPQ6fgyTulT9hOI/ZR60zcY1r/dhyT6G7mqThNIGdTR X-Received: by 2002:a17:902:e210:: with SMTP id ce16mr42317682plb.335.1563355593962; Wed, 17 Jul 2019 02:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563355593; cv=none; d=google.com; s=arc-20160816; b=oAft9zS6mPvKOlJLzBORWQLP3L/9n5+nbqVohcRrQkSMfllgPVM4+XGx0s3AjCGMNh 0iB5nVOVQW3Vi3jUIj6A6qtUXFXptlEqGvBzJTBGotsArt8cY2HpV/ot+/7MofXXb/92 zsmGUt7s1zJONrDQZdh1YO17z6l/8ybLtqVeAx5tO9mysPms53kN9slBagWhESrzjVUw jZQ9JEUTM3rNHLkrxVlMFTqLnNDmgHJUUlL0Ym5rQa6M0LdpS9PszYO/p5jLEk6Ou0q/ CZxsGm+vqr2WqtQQrJaD13ebnUn8lLNQa4VykKAttL/+icNTTYifdi/hhQg99/xkifwK Pxqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=EKfthPEQeRtjy8fRdyEEF4k2CR1tHydze9NEwECC2Po=; b=w/gRLsIRuhWTyfnW+RzhoiUkBNSeb5Sv4u4Bw7ZmVPfYI3CAp2KxIQi7uVAmXKj02B HYJrprj8F0/VJu0mTx6v8B4QZZ1rPF3Jk1RopBOOu7NcIuFd86jQUhlGGVWxESH2XCyk 4Vz6cprHOe6fbrLVVKxPX6N2wLosJMoFn7bSk8jWVsoA3OgNhfjGr448LVca+Ve2+5+c oaQPbh5NgxR6NQDiyOgAiv/OPyLc0X0TA0RTZObW10vmVDw9vmPDi3GK/WcruM5rBOJk 81La6ZTzU9DweFoLwrH75NP4jJ5W1sWkDpIMJmTQ9FYuHgg0DwbyN+6bF45rvFJo9cuU R3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=l3lq6ZFf; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si21866980pld.102.2019.07.17.02.26.08; Wed, 17 Jul 2019 02:26:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=l3lq6ZFf; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725932AbfGQJ0G (ORCPT + 99 others); Wed, 17 Jul 2019 05:26:06 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:40713 "EHLO mail-lj1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfGQJ0G (ORCPT ); Wed, 17 Jul 2019 05:26:06 -0400 Received: by mail-lj1-f171.google.com with SMTP id m8so22877737lji.7 for ; Wed, 17 Jul 2019 02:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version:content-transfer-encoding; bh=EKfthPEQeRtjy8fRdyEEF4k2CR1tHydze9NEwECC2Po=; b=l3lq6ZFfKFTRJuleWANfivElFdlT+IkwuP/Z85aPgjuxLZMG5QS9IsiI7VH6Bht5Rt YTm5dN8rFmMmVcc+9zUHBuNUZqbCk6c+Ch3JIcw6lghGhOv71+3ut8AG3/5Cj7sA0E+c OCnIwjX6NJJVTfy2TKhel1OiygzuaIRFjb2xtuIfSljmOcH3OI0O9ZRYqe3ZaeMNTO4/ MDCdIcKDDF/brToQxRYzOOsY03swFMxQG3R7szFDnHCA5QoPXbrbYAz+guLpKx2qwx+Z 3nNI8v9QyGgLP4DRmoBYqDmVKoAdbWIeoOcTqOIu7nu7213w1c84FFWhiUflFTuuxMTW RKTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version:content-transfer-encoding; bh=EKfthPEQeRtjy8fRdyEEF4k2CR1tHydze9NEwECC2Po=; b=kpe0w98V38SnvqW8QMteWK+jQG6O6q+pwORL7e8QwPOgvOp+Sv0a7WxIsFa/MUqVXE Yks/t0fZ4q9Fnwql+e4joGh5Zd0Ja7k/EQW2sXTX+sReH9sKh7Kj0jP8yr9QqnzrMEiR ZrchPKPExHqXCITJs/P8R01gRICUx4JDSfz2ijr4H3eXuwmT55Ijb8ioEUFpGttb0vYS wjwVI43ecezOzweY9G+Hp3r1YYYunxOEy3PwKvNM9p6iMt9XER6u1noDSQSCyDHgvW+3 KA38JN3v3rn2TrwHQ49cFQbw1w6KXW/am3WTFmXM9q00hUKj3oGMUjRfajUzKqwS02Lz NRhQ== X-Gm-Message-State: APjAAAVbBb9yGWLJT/UZltsrJ/81mKBmla+Ezsue8Eo1ZOYRSodEV20B 12FY9wQGDF5x2zQidTLsY1WG6a79IeA= X-Received: by 2002:a2e:b047:: with SMTP id d7mr20816651ljl.8.1563355563756; Wed, 17 Jul 2019 02:26:03 -0700 (PDT) Received: from ix.localnet ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id g5sm4383554ljj.69.2019.07.17.02.26.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 02:26:03 -0700 (PDT) From: Szymon Janc To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: linux-bluetooth@vger.kernel.org Subject: Re: bluetoothctl: list-attributes doesn't list services from example-gatt-server Date: Wed, 17 Jul 2019 11:26:01 +0200 Message-ID: <16286916.LhmCvT1dVb@ix> Organization: CODECOUP In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Rafa=C5=82, On Tuesday, 9 July 2019 14:14:07 CEST Rafa=C5=82 Mi=C5=82ecki wrote: > On 07.07.2019 12:14, Rafa=C5=82 Mi=C5=82ecki wrote: > > I decided to test GATT. On elitebook I started: > > ./test/example-gatt-server > > and waited to let matebook refresh all info. > >=20 > > After that I got: > >=20 > > [elitebook]# info 20:16:B9:D8:A9:3B > > Device 20:16:B9:D8:A9:3B (public) > >=20 > > Name: elitebook > > Alias: elitebook > > Class: 0x001c010c > > Icon: computer > > Paired: yes > > Trusted: yes > > Blocked: no > > Connected: yes > > LegacyPairing: no > > UUID: IrMC Sync =20 > > (00001104-0000-1000-8000-00805f9b34fb) UUID: OBEX Object Push = =20 > > (00001105-0000-1000-8000-00805f9b34fb) UUID: OBEX File Transfer = =20 > > (00001106-0000-1000-8000-00805f9b34fb) UUID: Headset = =20 > > (00001108-0000-1000-8000-00805f9b34fb) UUID: Audio Source = =20 > > (0000110a-0000-1000-8000-00805f9b34fb) UUID: Audio Sink = =20 > > (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target > > (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control = =20 > > (0000110e-0000-1000-8000-00805f9b34fb) UUID: Headset AG = =20 > > (00001112-0000-1000-8000-00805f9b34fb) UUID: Phonebook Access Server = =20 > > (0000112f-0000-1000-8000-00805f9b34fb) UUID: Message Access Server = =20 > > (00001132-0000-1000-8000-00805f9b34fb) UUID: Message Notification Se.. > > (00001133-0000-1000-8000-00805f9b34fb) UUID: PnP Information = =20 > > (00001200-0000-1000-8000-00805f9b34fb) UUID: Heart Rate = =20 > > (0000180d-0000-1000-8000-00805f9b34fb) UUID: Battery Service = =20 > > (0000180f-0000-1000-8000-00805f9b34fb) UUID: Vendor specific = =20 > > (00005005-0000-1000-8000-0002ee000001) UUID: Vendor specific = =20 > > (12345678-1234-5678-1234-56789abcdef0) Modalias: usb:v1D6Bp0246d0532 > >=20 > > That seems all correct for now. Test example-gatt-server registers > > Heart Rate, Battery & Test services. All of them appeared as expected. > >=20 > > My problem is that I can't list GATT attributes. I don't any output. > > Is there anything I'm doing incorrectly? >=20 > I decided to test nRF Connect Android app. It showed something > interesting about my bluetooth devices. It nicely displays & parses > advertising data. >=20 > Logitech M590 advertises: > 0x01 Flags > 0x03 Complete List of 16-bit Service Class UUIDs > 0x09 Complete Local Name > 0x0A Tx Power Level > 0x19 Appearance >=20 > BlueZ on "elitebook" advertises: > 0xFF Manufacturer Specific Data > or to say precisely: > 0x1BFF750042040180AE78BDBC0B7E307ABDBC0B7E2F01000000000000 >=20 > Any idea/hint why BlueZ 5.30 on my "elitebook" notebook doesn't > advertise more data? Just to be sure, are you using 5.30? If so, update to 5.50.. =2D-=20 pozdrawiam Szymon Janc