Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5373525ybi; Sun, 7 Jul 2019 03:51:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6gBMgUfOmgz/SpM5M3nUOkdshDYRPQagb8ATX0lZyVhf1+qC4HYPNxoT8aYvkdQ4ENlc/ X-Received: by 2002:a65:5344:: with SMTP id w4mr16119161pgr.326.1562496663368; Sun, 07 Jul 2019 03:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562496663; cv=none; d=google.com; s=arc-20160816; b=fp4Q9WY0s19Q6/yodJPUUxHJXzlDs/erhOW2Nw7elXzfskTTjPLHjUIhPLFbVUWJo3 3XwgORuzy7HHvYBMnIq9/sQiLvtdQyocWkePnf6N4r1SvXWQut3N3q5DM+Yv0nkE6raP b6lG1U7evrsMm29vNEvCTT7BGQmrsDn7XTVGfblWvV3OZta6DeBUyw6WUTCH0/1w9OlZ wjx3uXuCedBZAataVz35Usn5LVfkzCYPQMMTbIHUWX3IgTyzc+r1ldhTk9M1RoPYV9kw 0eBD9zRSKIF3VINFjUbKP2j/dqGBt8Vi+y2tEDl8nImtliZHv17CMtpWpxGMqu0kIYlz 3e2w== 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:mime-version:user-agent:date:message-id:subject :from:to:dkim-signature; bh=Oh1fXZhfyWzYcrolrM6zx/Cbtp1OXwYWyNc6+cIPkqo=; b=jJDtWBeZf0eUKq3d87tA8k9DVEGy78OAN4sKtyQls7XxBHUOmOQRp1f7E3fU556wKK Qbqx1XFmbVujSrHPk3Qmc98M8NNNjozr5Curp8nbwnWybPJS+xvR4r/u8VTd/0svxA/d Qe4RVl40asx/DVCZ2VlUCWPSeM0VgP0LD2jIEmIk+/fY6k7ROWmOQdjVq+hiHoQ83kRM oQsM4U0IFkHjt01veU6h53iC/EMKecwFiAdnEZIu6IR+MByIDhebhUbtKvCRTfg5k/rD sp6eSuJl0T2DrB2l2cPZfHilqBXqNoNKfnD55vvzekE/ubvJ8aRgA3GJfNc1VaO5CfIs w/fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OHh6+Pk3; 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 j18si16055806pfe.235.2019.07.07.03.50.28; Sun, 07 Jul 2019 03:51:03 -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=OHh6+Pk3; 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 S1727356AbfGGKPA (ORCPT + 99 others); Sun, 7 Jul 2019 06:15:00 -0400 Received: from mail-lf1-f44.google.com ([209.85.167.44]:33109 "EHLO mail-lf1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbfGGKPA (ORCPT ); Sun, 7 Jul 2019 06:15:00 -0400 Received: by mail-lf1-f44.google.com with SMTP id x3so3017907lfc.0 for ; Sun, 07 Jul 2019 03:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Oh1fXZhfyWzYcrolrM6zx/Cbtp1OXwYWyNc6+cIPkqo=; b=OHh6+Pk3IoyCuAjYzQ5zUo1dJAUWi35AlcG9gYkJRsXagg4pzjKP9ZXoTj811u0B8T hzQnPb5U49zvdhUgLVhziF+/WpOGwKb8afbsyn7LMpr0cc4l+JO6kKXYmHEBuOHhGxE9 ztJuhFtDLkVrzLIbzCePArGVO/kYdvdYVPGeWex6lekRC0cL6T1nLiN5cdau8+4sgIFx 2KT+vSIGYJJZ0L3nvHqPezaxcc5GlmYm1hY23iEp1eMCms2X6ZtoJggK4QwPX9b2kh31 e608wX9DJEmVKaJFpg9UmuNCTSPJ/CHIyENv8zDcGV/evPOAkVWy5wEZjdC+wwubwrPK mm+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=Oh1fXZhfyWzYcrolrM6zx/Cbtp1OXwYWyNc6+cIPkqo=; b=mOEwV3K0yGwoVMbgps1NPktR5P2nA6wvB4flScTRYUxAST12akBI/WcH00fp9ja4a8 99yREX0zugcJmSGdqotK1Df2rxHyi/upqrsAkx/R2u6QHpMOkQcaMsqGljzs2RQoKvs/ Ul1dGP1DZgQ39h1HgQs6G7Ku82e5wwzra/9ncxCGtvbwWcCqkhMeuQ5/NHEO/+CiJLRP sUEcWdEpWcVzDFN4uDY/ajJBjUY+x4UF97beiCUY9O/t81n75tf47N7niMQM6ZrJk/H/ I9czJ3K4A+kEtuKACg8UX7dC4OYSRlGy+/jTSKWHzgTicuhEC5hVZPtFyhqTsjp4LLE1 0s5w== X-Gm-Message-State: APjAAAUKbtyxUCdNPYc9h9EZhYAgKHC7N40STwWb9LoX8HR45h4L31Ji f42ZwJvJcbM37/nMPqdTWoc= X-Received: by 2002:a05:6512:244:: with SMTP id b4mr6434231lfo.114.1562494497241; Sun, 07 Jul 2019 03:14:57 -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 x18sm2240495lfe.42.2019.07.07.03.14.55 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jul 2019 03:14:56 -0700 (PDT) To: linux-bluetooth@vger.kernel.org From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: bluetoothctl: list-attributes doesn't list services from example-gatt-server Message-ID: Date: Sun, 7 Jul 2019 12:14:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, I have 2 notebooks with Bluetooth running bluez 5.30. I called them: 1) "elitebook" with controller 20:16:B9:D8:A9:3B 2) "matebook" with controller 38:BA:F8:3F:7C:A7 Normally, when I check elitebook from matebook I get this: [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: Vendor specific (00005005-0000-1000-8000-0002ee000001) Modalias: usb:v1D6Bp0246d0532 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? [elitebook]# menu gatt Menu gatt: Available commands: ------------------- list-attributes [dev] List attributes select-attribute Select attribute attribute-info [attribute/UUID] Select attribute read [offset] Read attribute value write [offset] Write attribute value acquire-write Acquire Write file descriptor release-write Release Write file descriptor acquire-notify Acquire Notify file descriptor release-notify Release Notify file descriptor notify Notify attribute value register-application [UUID ...] Register profile to connect unregister-application Unregister profile register-service Register application service. unregister-service Unregister application service register-includes Register as Included service in. unregister-includes Unregister Included service. register-characteristic Register application characteristic unregister-characteristic Unregister application characteristic register-descriptor Register application descriptor unregister-descriptor Unregister application descriptor back Return to main menu version Display version quit Quit program exit Quit program help Display help about this program export Print evironment variables [elitebook]# list-attributes [elitebook]# list-attributes 20:16:B9:D8:A9:3B