Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7841975ybi; Tue, 9 Jul 2019 05:16:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd9yLuzXSS0vqxk+KZMugTFa6pWAj6H/Wuw1bDyYEDSAVQe56iSe/JIWL4Bgv0DDJWDHcK X-Received: by 2002:a63:34c3:: with SMTP id b186mr30042832pga.294.1562674583430; Tue, 09 Jul 2019 05:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562674583; cv=none; d=google.com; s=arc-20160816; b=m4kEyW5T7okzplMWE5nmFDRM54WaAvEXvv5/BbXni33gD0cJiAIqr32Pfz02CtE4Vt ydxWc5HKcaJmws6UaIBLabs+sFLydDSJX55lwbSnbOnL371WFIKYryCUzkQSfZYek3Fv 9Of7yfU66uC9vVbv+GEUnEtRIOX+ux6Ar9Kw0LekCuk1tCqcEyTmeRKTWcfsZc6gMjhb uioTykOa23EjYZlPXKko217ZiJ+35HC3F0yGUiPcsMr/fV7aF31mQ//AYwq7bwvlCij2 GWaYNDjqfoMNzJjpFmiaBbysFcg701Thn92G6Iffza/0Z5mt+c9IV2AJWc6ZZbKyMqHa isjQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:to:from:subject:dkim-signature; bh=vogCuJAB6KE5xKRg3WODS+hWFr72Sp+76GmzsjR59X4=; b=q3wniVlHLmT6SCwxMoKHzGK/1Bo9XMZWruvxrQD7yRJ3g1VLSuIUaKhldbvuCDrBaZ h/UY5Js3UaYTeERejdmajWe/6LKleIhOFK3Z1RsD6N1epSrCgJKmRAz2qJkJxe33FyxT PbObE2gIw6sHESfeTmVfTVQAgkOPZBRheFjtCLqtliznBXBayoBPIDwDEvV8GFRKkbmi V3YBpzssPToBIOwUcVP/sasmAyX/BYTFYxBQanMTuoSKI6lkT9QrPAuu/QmtW3TfZBEf mb3ocP0EZW6K07RdU4NX9+Lm+8fBR8MRrqbJVCBNjAwCPfumF3fGqWLnA/x209VDBe52 ryZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nd6wiijh; 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 h12si22459400pgr.325.2019.07.09.05.15.56; Tue, 09 Jul 2019 05:16:23 -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=Nd6wiijh; 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 S1726091AbfGIMOM (ORCPT + 99 others); Tue, 9 Jul 2019 08:14:12 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:35890 "EHLO mail-lj1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbfGIMOL (ORCPT ); Tue, 9 Jul 2019 08:14:11 -0400 Received: by mail-lj1-f178.google.com with SMTP id i21so19347543ljj.3 for ; Tue, 09 Jul 2019 05:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=vogCuJAB6KE5xKRg3WODS+hWFr72Sp+76GmzsjR59X4=; b=Nd6wiijhZDj3EreZVnB0jFGjfjlgv9aRByBPU2Bi62GmblXWrX7reM7R2TiMKrX74t uc6Gb5rInOVrqvA6qoX0wjg+qVMRPI8HJbF6s7S2GK45A3GAbz5iyL0pLkhjR8xaBQDL f7g4zf577eMGufsoqZjvyTqOh7+FOTq6oYjTnmj6omeML1U0s4p39XSHK3oMa1+s8VtF WubYnpqcGwgQ9TTP35bW/ztDBik+n6VY9Yd7oiO1ny8R29tQFOfOq2EQe77qX+Ul6EiM gNBtAGQrTx9bktO7cRnk1DXtjHeeRNYwb5abHsHTQuj+sS1gn4BmWWhIpKgRZRqrSNfZ Sr2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vogCuJAB6KE5xKRg3WODS+hWFr72Sp+76GmzsjR59X4=; b=isKLn1tPFvaLwQYqI9WzCrVy9Tp8oHBmPCSosRVeKHqovDJU5R+IWeJVIOZf5kwJHC SxiWhtHHou1phTm2ubp5t9WSTEH44/IENXo6nBsLbgAkONTCX0APBKl2ucfqRlfb71tO G4bcQ+UyXVKCRuth7a0p/gidhB1uMA7YWBlD+NRi89xg5QKmcoBXRspmXVR3Z7DbK1bv +i8mUZFqLBIpFw2doXFo9dJjKWmUW8P2Ixn+qr2SvRmUmXX0k2v3U4y5cRTQjjv3rZsn ku+FOZhdi5ggK6MeLyITF2xHDC8M3Lslq9DyyWurffBKpCLTskkzx9sjc65Ba+gOZLPf 9giw== X-Gm-Message-State: APjAAAUl8DLUvbYtSkaU9eTh28RjXRUK2bpK4BfZHvQBPiqW2NOBjlqF i16hCusPotJXigzDzA2kh/A= X-Received: by 2002:a2e:814e:: with SMTP id t14mr14088869ljg.167.1562674449689; Tue, 09 Jul 2019 05:14:09 -0700 (PDT) Received: from elitebook.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.googlemail.com with ESMTPSA id h1sm2889017lfj.21.2019.07.09.05.14.08 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 05:14:08 -0700 (PDT) Subject: Re: bluetoothctl: list-attributes doesn't list services from example-gatt-server From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= To: linux-bluetooth@vger.kernel.org References: Message-ID: Date: Tue, 9 Jul 2019 14:14:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 07.07.2019 12:14, Rafał Miłecki 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 Target (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?