Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1900113ybi; Thu, 18 Jul 2019 00:01:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3lnkG8KFL0IRJR2g5fhbCt6+Ricwl/0j4JZxgZIDkxuHzDZ6jDPK7cyQAh/M12DqXvETL X-Received: by 2002:a63:7245:: with SMTP id c5mr31744859pgn.11.1563433295317; Thu, 18 Jul 2019 00:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563433295; cv=none; d=google.com; s=arc-20160816; b=BT23qB++tpyNxw8W3rI/hSIn9kvoMCnB4agcqisUx6JmAL+7JnNmddN20AkQjTAS2N pJxv3DI/x9Ws2T4GMqSAnBHXEALO3iet3kQ/O+q+w1qkvXuA+mv0Hffjx2nHgMThdWeJ wgNkqg8WL63bknC0ZfIRNkqCHYHWfX6fkeyaN8HA5yNLTjg6jIDmdV5mbiyM5nhqtNOH wrcHFYNL1wxux91IqzVw190MUD767JmQVnhncCI68q4JrAJMq9QMLQwZbCgmV9lxqwYv iuochOqGhsd5x4GT4hMw6dvVeyscrtMwrk32MMniWRcTzI8qL6nPQj193aSIeRTDVHkn 2o4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=dGxY0lboZcKzqkPUreqNjAwx1aSMJbFVJrytYGXt7XI=; b=NTCGImngO73tnUEK3vNn/SY2nWa5+8D3QzRL9f16dpaDtXjdrMwCazrkVZJ1NNcf+h vYFJes24XQa/AZJTnAayHMJfFg4HydcTdUUW06HRyfIUimhj2fjrTaYURoqpuyOqrKPe K/hwtG2AKHoPwvpWgjoJoxXJplUeXn6gYAXRVBVzb0mn5DLRps9lcBM6furfgGf0P/Ar tyVpRsHOqN8Ym4nAlTaPJwN9UkT0q3clVlEINgyOUBjiLI9DXhC2LhjIBNmmtPpAUdNl rjI6LX0j+uzA+aUYdOQ4KdIuy/gElsligOIAXfHQhsKhgng3cKAJtWt/w/DtmpQaJFIh NCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JN7zpI6y; 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 h8si1653094plt.16.2019.07.18.00.01.05; Thu, 18 Jul 2019 00:01:35 -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=JN7zpI6y; 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 S1726386AbfGRHAh (ORCPT + 99 others); Thu, 18 Jul 2019 03:00:37 -0400 Received: from mail-yw1-f49.google.com ([209.85.161.49]:40576 "EHLO mail-yw1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbfGRHAh (ORCPT ); Thu, 18 Jul 2019 03:00:37 -0400 Received: by mail-yw1-f49.google.com with SMTP id b143so11842167ywb.7 for ; Thu, 18 Jul 2019 00:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dGxY0lboZcKzqkPUreqNjAwx1aSMJbFVJrytYGXt7XI=; b=JN7zpI6y2xKLCGrQta3WrBIqYkrLF640L49S+dubvJd9pz8WQrRxOnu/rAnKxXyAYt hWmUcHGgi0FQBfN3GqrUC02TrRn6pcTVRx9VKfXy/Hi6XCPLQdLq8WdiB19yyqzIJy6M 2cVC+XNTGJYx6MQWP0vCSkz4SUHwz8g76mr7q/1hJ0dsaF1GByv7EWZQSgcs1QSCGugp v7gfrX28pEsHi8OpD2YMupStDX3YV4O8gz9Wx9SYWv4V3NcQM0nY/253cNXZZ/GobySR /+/iybFz5h++40dEj3Qm6kRu3GqOg609vZftCH/72Cq24T9jBqyeNa8yZEtZARZ6RuJr BWOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dGxY0lboZcKzqkPUreqNjAwx1aSMJbFVJrytYGXt7XI=; b=GhdZTf+3obgsdFkwyxDYBlj4Xug2dvrhwcgi11VWaEUAtBEw+nJY2Ai9vRezfDxJYe 9KziaOk3qVjR1Vs1SSH2Jc9D5OVZ5ky4uMlZD4OBLQ7MurROvqAulBBg9+2pnQzwh1IF 1qDAlWe7/DOPHKAsISYOdZQvia8y7EkHhbFp2Q5eLKERwBenjaGTr87sUSIWQI0Z1w1S a/s253huq+drOG+Su6MTqDwHl1WaM7qgqCt9+DwY+d4LiujENcU/CRGo4QzJpEFaVq12 e7AXlzPRglNavfwy/bApqJANObGao7YcUS5fnO39kkC2wkpzgcyfEQuMI9ebXNKN9ILN I8oA== X-Gm-Message-State: APjAAAXUuMS26wxCXL5av6icFjj2mZ772iXzo0gHsa1FHD5QYM4kBESt YGO8e6yNNI29QZX+lYhpcRj4SPBNbpfy423u9vdhz4P1 X-Received: by 2002:a81:2843:: with SMTP id o64mr25151430ywo.113.1563433236022; Thu, 18 Jul 2019 00:00:36 -0700 (PDT) MIME-Version: 1.0 From: Barry Byford <31baz66@gmail.com> Date: Thu, 18 Jul 2019 08:00:24 +0100 Message-ID: Subject: DBus LEAdvertisement and Python To: Bluez mailing list 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 Hello, The Python examples provided in the test directory of the BlueZ repository use the python-dbus library. Looking at the documentation of that library it does start by raising concerns and offering alternatives. I have been looking at some of the alternatives and am having difficultly getting them to work with BlueZ. I have been focusing on the org.bluez.LEAdvertisement1 interface. Looking at the documentation, it says the service, interface and object details are: Service org.bluez Interface org.bluez.LEAdvertisement1 Object path freely definable I am not being successful at publishing to the org.bluez service. It is also not where the current examples publish to. Looking at the GattProfile1 documentation, it has service and object as application dependant. Service Interface org.bluez.GattProfile1 Object path Should the documentation of Service on LEAdvertisement1 be freely definable also? I have created the LEAdvertisement1 interface so that it has an ObjectManager and is introspectable. When I pass the object to RegisterAdvertisement on the org.bluez.LEAdvertisingManager1 interface it accepts it (does not give an error) but does not register the data and I see no advertisement appear. Is there somewhere I can find a more detailed description of what needs to be on the org.bluez.LEAdvertisement1 interface that will work with RegisterAdvertisement? For reference, I have put below what I am currently putting on the org.bluez.LEAdvertisement1 interface. Thanks, Barry $ busctl call ukBaz.bluezero /ukBaz/bluezero/advertisement1 org.freedesktop.DBus.ObjectManager GetManagedObjects a{oa{sa{sv}}} 1 "/ukBaz/bluezero/advertisement1" 5 "org.freedesktop.DBus.Properties" 0 "org.freedesktop.DBus.Introspectable" 0 "org.freedesktop.DBus.Peer" 0 "org.freedesktop.DBus.ObjectManager" 0 "org.bluez.LEAdvertisement1" 6 "Type" s "broadcast" "ServiceUUIDs" as 0 "ManufacturerData" a{sv} 0 "SolicitUUIDs" as 0 "ServiceData" a{sv} 1 "FEAA" ay 18 16 8 3 117 107 66 97 122 46 103 105 116 104 117 98 46 105 111 "IncludeTxPower" b false $ busctl call ukBaz.bluezero /ukBaz/bluezero/advertisement1 org.freedesktop.DBus.Properties GetAll s org.bluez.LEAdvertisement1 a{sv} 6 "Type" s "broadcast" "ServiceUUIDs" as 0 "ManufacturerData" a{sv} 0 "SolicitUUIDs" as 0 "ServiceData" a{sv} 1 "FEAA" ay 18 16 8 3 117 107 66 97 122 46 103 105 116 104 117 98 46 105 111 "IncludeTxPower" b false $ busctl call ukBaz.bluezero /ukBaz/bluezero/advertisement1 org.freedesktop.DBus.Introspectable Introspect s "\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n"