Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp645480ybi; Wed, 17 Jul 2019 02:40:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTqKqCeTyqALA/R+KDxdKzeC0WCdoXDcPtOQGB0Ej81WED207M4xrXoSNIuY0aMbNXCoHU X-Received: by 2002:a17:902:e613:: with SMTP id cm19mr39347136plb.299.1563356413803; Wed, 17 Jul 2019 02:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563356413; cv=none; d=google.com; s=arc-20160816; b=JI+pN4SpXwaDwlfb+XFiW2PQiDpGYeXvghIae1xGwzv4i3G9P9H0zP1kghESIJexTO OEpCZcrAeErko3czNLd+g24jtO67Mlj2MGocH5YwuyP5W2kE7MLuxHAkhojnYSwsWn90 urKfMVJ2BZ4n0TYygk3x9xQXeG9jgP6dKErGYsl13OLXPTE559Ydv7hSZuqOJE7tx2NM sCBeyJQK03iU1IeDZ/ep7gTqo5i+IKxPFER/niTv0WrQTnhXr7YcHmuxjsH/VDvjt4LZ 2RPeewjDllNLj9pEV/IJI2wujC/eVri5puIDk+7Ow30cX4IT+ml6B+32ci05o3A/l4d1 eOQw== 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=5NuU1oZ+pYLE3e4fZm4g8S6uFETmTfninuSzeFp/9QQ=; b=00i4pUbcYKHkVcXqzfbXJEolQ46pPZVvV5/kJI1TtFoBS9IXWOA0umI+B3eyEkHtfR ncfJSTc78AhipOsckJxUTQjEtv7PPGhDoUch4CU+YopmYuCKKzaNYFle1+o5BqM8rT7x mYCrwVb9gI1ICTtNnPXIAoxUvBbgKeIJ5eYOxtnRlgMcb2rb9I2SVqsc1v3UMHEO0cD3 v+BM+qyHE9LeyPsGf6JbmXsJJWi1ycObf49IUFJ8qOm7QXvTLiYMO0O3pXcPUcbsX3B9 iTFN5fSGflZwIn3YfRDrWWkkuiFGYB4QTcUztqZ6ZkdQOzqRTUsL4mMr5ZRH/XqBKEw6 b0hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JZrjvKPx; 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 w10si21060000plq.403.2019.07.17.02.39.58; Wed, 17 Jul 2019 02:40:13 -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=JZrjvKPx; 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 S1726251AbfGQJi0 (ORCPT + 99 others); Wed, 17 Jul 2019 05:38:26 -0400 Received: from mail-lf1-f42.google.com ([209.85.167.42]:38863 "EHLO mail-lf1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbfGQJi0 (ORCPT ); Wed, 17 Jul 2019 05:38:26 -0400 Received: by mail-lf1-f42.google.com with SMTP id h28so15909816lfj.5 for ; Wed, 17 Jul 2019 02:38:24 -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=5NuU1oZ+pYLE3e4fZm4g8S6uFETmTfninuSzeFp/9QQ=; b=JZrjvKPxZHIm7+yEWF3h1XvnzHhT8wuoP2Qy9dZOxzR6QlKsLKm7qJFqyJ7PpFsBQs jlvVrnbb5jlVzE8LWn2bOMUcMZVaLO3/ONYLeLVkmoTMppcbNwWyBbiJgTokmv+edjNj Z1VZ66TTvodZJvnxss/1crSdXJfDkDdJcCAdvDZM0iAQ2gSSztfthtsS022tCXhFx0P0 DeO0yMvtvhmI9+crUUq0czyKMcuqo3Mrs1RB4QgbjBZWuI05CXLAJrrDXE331sUaiWsF QckXN3lpwPBPLHFa3Tw1PvcTsE1koPjpmpxRmkGPhXHgrqbtLI+Dlakced6vNn11t34t P+0Q== 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=5NuU1oZ+pYLE3e4fZm4g8S6uFETmTfninuSzeFp/9QQ=; b=IlR6cwnddLDXiahk0tAFdev+UENGi20VhoE+53VbcQxHxVDAwZjKrZxjehWWpaPuL1 BOlxv2m0tZgSEg5Muf5uzyFU0CE99s3i7DLIYhdrSwxcws6LyCRIFxb64i6/KrMT9q3u EYyrcDBl1X3caNfVJ5GTi1w5wJDLP68xheFEPWlct4/bFQq581TQUPLRrNDnIEhCACnQ 24jXZpogGI+J+J5ZbuJgNJosD/z1WCdwvwvrVUVDwAYcecCFBvZMSVXcx9BR1CqNNWS1 6flbUWFBjqGJAXA0KPwtKtgyCUysbSQRGV9doyLU2PK+canl82c4TNgmB79cOD8BdFz4 l6tQ== X-Gm-Message-State: APjAAAXtwCfMzyReCC5sY07buNNCrZo+5ZK6MpG1P+24y+H4E4i1qL4N YudLGDlUI6xN68qfWd3uqyryomQR X-Received: by 2002:ac2:465e:: with SMTP id s30mr3304584lfo.19.1563356303558; Wed, 17 Jul 2019 02:38:23 -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 h129sm3333933lfd.74.2019.07.17.02.38.22 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 02:38:22 -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: <84f01445-74e2-5632-225a-02c369c53c07@gmail.com> Date: Wed, 17 Jul 2019 11:38:21 +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 09.07.2019 14:14, Rafał Miłecki wrote: > 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? I've discovered I also need to run test/example-advertisement. Then I can see my notebook advertise UUIDs and characteristics. It seems that test/example-gatt-server is insufficient on its own.