Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp641702ybi; Wed, 17 Jul 2019 02:36:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqziTG40fLwDI20+AQZPW2a+u8vndhfJDMM5L7pQaM3eahqx9QMS3/w5tC8wGCSvRO5I/O0n X-Received: by 2002:a17:90a:20a2:: with SMTP id f31mr42456778pjg.90.1563356191804; Wed, 17 Jul 2019 02:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563356191; cv=none; d=google.com; s=arc-20160816; b=DsLtmV93p5fj3jrZD/T8qzOQj8+p/L+iZciw1Vj2Rqgh8JaBO63LCfLRF/q4nPj3YP lAWlcFg/oZ7icYZvyruK7Y1vf2SoNz29hevqbNkSPlyFruJCg4REgIQdIREb6vUr0xB2 HdXWh1CTQ5WD01zL8L/DNWvl3EEUdLMc5DKYKBY4QkxFHHAhhjmrMTTsOKP2vqLhnN3o Ax5j3XiPic3NppOo7URK3qFamlIVOeje6hgCWi+Y27/QuB224kuqg3wfwgKQo/fXLthl RCZIETUbzgwfMF8gM0j6SRKZl318ogq/XcvwSp+XNs761UOwgkb+54M2r+B7LiXpCcEa XDgg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SLD6MlZPAe/x0wDV+rwAx3kLgKZLRVt04PdNzaINfJ8=; b=eZC8tJCSAEgaQg4wR3T0QRg80RwBtcYIclAOoYUzPVHUUd25nqETND1fbILOgvR7QD 7l0WKjbGAwNOoEkMsp0skEfH2vPVrE+DcaZXqh8YWzfAB88/yGUAPGmp+BZ0YhP+Mhh7 K4ZxzX9Ey+OwIYTnwlBSDaRydfo5/r0TNG16ckg9uQ3ySu28XmIH9AI2vE3iMD1Fcbdo pUnl52PkVn53zodqfCyiG2etGKTypUzTGrbCyk2wGtR1/lDYyx/TZ+Jw8StD/6BeDaDG AD2/rdIWLCQOcNacngNr+dJkT0VgrNxx/wz6RvZghy6rFsaUiFnHVNgwQgvI6NVFDwdQ IdUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bIgRbG9b; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si20563357pls.436.2019.07.17.02.36.15; Wed, 17 Jul 2019 02:36:31 -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=@gmail.com header.s=20161025 header.b=bIgRbG9b; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725912AbfGQJfz (ORCPT + 99 others); Wed, 17 Jul 2019 05:35:55 -0400 Received: from mail-yw1-f52.google.com ([209.85.161.52]:43914 "EHLO mail-yw1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbfGQJfz (ORCPT ); Wed, 17 Jul 2019 05:35:55 -0400 Received: by mail-yw1-f52.google.com with SMTP id n205so10318623ywb.10 for ; Wed, 17 Jul 2019 02:35:55 -0700 (PDT) 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:content-transfer-encoding; bh=SLD6MlZPAe/x0wDV+rwAx3kLgKZLRVt04PdNzaINfJ8=; b=bIgRbG9bZyrTF6vL9T821fZxNlDa+SMoEl7f00W4Y9d7SAqskkjM1f/0bHwi3XNxiN x4Jebp4V44K3+oXAoAS1kv8G8fkXAJGlHILit+6Jc4KQJldJKKBRAUoL+f8fMjrlNXLm PCh+LgpSa1evu7fBa13BdYdfZrnIMOQNvvA5XAgY6/UQ+xBCSL8E2x8e/4IlIznHROaH otVxiwUKqRsSbmZH/xoYBht2KyHmwzUyRup0UGZaGc5yRxwSpX8wP/quW1em5G6vX9C9 k0rQiY1zGugSk1pTP/4pZ3XZLJfn2PzPk4DS3TvzbqTC28/ywxo6rsS40oC2aom6MnWl T+Rw== 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:content-transfer-encoding; bh=SLD6MlZPAe/x0wDV+rwAx3kLgKZLRVt04PdNzaINfJ8=; b=QLPuAW6TVbJExvko3EjdJ/Mwyd0GMOUNJrljcqa/X1/bGFS88biMo0v6oaDOk7BWQt gRXELHawXbEFwac4SASEpVxecTZGXB1rj2y8Wxr8P1tRkpEfQ5CuBiVHwMHXSsZA3OSg hc2B5Gfho7S+BW96grK+JJIBu7vdwinko2vR8tRTtskkee+/gL3AsUAw4WRarlYSzYOs IfwhvW95wx3Grs1MZfDMt1EXoApxDuOaIr142OJyNjWRBqeRYzTSTIhNJxUXREzndnI+ muOE2sBH4TXqVrILLwaf2+H/Zqmw0OgPvIRg1gyzlyUUnLoOGbeQ7bg7UKGlDY30//7U +Siw== X-Gm-Message-State: APjAAAUsE0ZIdNmt1O9ad7AkQpnwOHSjk3mTACU07TaRypAlj+wwdx6s 14t2Bcgy3iLiU+I2c0IHdv52vYof3tmppAPJ4LUWug== X-Received: by 2002:a81:a511:: with SMTP id u17mr24170398ywg.54.1563356154495; Wed, 17 Jul 2019 02:35:54 -0700 (PDT) MIME-Version: 1.0 References: <16286916.LhmCvT1dVb@ix> In-Reply-To: <16286916.LhmCvT1dVb@ix> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Date: Wed, 17 Jul 2019 11:35:43 +0200 Message-ID: Subject: Re: bluetoothctl: list-attributes doesn't list services from example-gatt-server To: Szymon Janc Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Wed, 17 Jul 2019 at 11:26, Szymon Janc wrote: > 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. > > > > > > After that I got: > > > > > > [elitebook]# info 20:16:B9:D8:A9:3B > > > Device 20:16:B9:D8:A9:3B (public) > > > > > > Name: elitebook > > > Alias: elitebook > > > Class: 0x001c010c > > > Icon: computer > > > Paired: yes > > > Trusted: yes > > > Blocked: no > > > Connected: yes > > > LegacyPairing: no > > > UUID: IrMC Sync > > > (00001104-0000-1000-8000-00805f9b34fb) UUID: OBEX Object Push > > > (00001105-0000-1000-8000-00805f9b34fb) UUID: OBEX File Transfer > > > (00001106-0000-1000-8000-00805f9b34fb) UUID: Headset > > > (00001108-0000-1000-8000-00805f9b34fb) UUID: Audio Source > > > (0000110a-0000-1000-8000-00805f9b34fb) UUID: Audio Sink > > > (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Targ= et > > > (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control > > > (0000110e-0000-1000-8000-00805f9b34fb) UUID: Headset AG > > > (00001112-0000-1000-8000-00805f9b34fb) UUID: Phonebook Access Server > > > (0000112f-0000-1000-8000-00805f9b34fb) UUID: Message Access Server > > > (00001132-0000-1000-8000-00805f9b34fb) UUID: Message Notification Se= .. > > > (00001133-0000-1000-8000-00805f9b34fb) UUID: PnP Information > > > (00001200-0000-1000-8000-00805f9b34fb) UUID: Heart Rate > > > (0000180d-0000-1000-8000-00805f9b34fb) UUID: Battery Service > > > (0000180f-0000-1000-8000-00805f9b34fb) UUID: Vendor specific > > > (00005005-0000-1000-8000-0002ee000001) UUID: Vendor specific > > > (12345678-1234-5678-1234-56789abcdef0) Modalias: usb:v1D6Bp0246d0532 > > > > > > That seems all correct for now. Test example-gatt-server registers > > > Heart Rate, Battery & Test services. All of them appeared as expected= . > > > > > > My problem is that I can't list GATT attributes. I don't any output. > > > Is there anything I'm doing incorrectly? > > > > I decided to test nRF Connect Android app. It showed something > > interesting about my bluetooth devices. It nicely displays & parses > > advertising data. > > > > Logitech M590 advertises: > > 0x01 Flags > > 0x03 Complete List of 16-bit Service Class UUIDs > > 0x09 Complete Local Name > > 0x0A Tx Power Level > > 0x19 Appearance > > > > BlueZ on "elitebook" advertises: > > 0xFF Manufacturer Specific Data > > or to say precisely: > > 0x1BFF750042040180AE78BDBC0B7E307ABDBC0B7E2F01000000000000 > > > > 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.. Sorry for that typo, that was meant to be 5.50. --=20 Rafa=C5=82