Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5291661ybe; Tue, 10 Sep 2019 01:10:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwdTL9llN3sx2sQqSshSpn8I27RM44ObVZX+AAAOTgzpuDzSAqEnC/A9ewxwjdbYdjN7kD X-Received: by 2002:a50:884c:: with SMTP id c12mr28727621edc.134.1568103037068; Tue, 10 Sep 2019 01:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568103037; cv=none; d=google.com; s=arc-20160816; b=TWLvT6fkwvFguSD44K/a0HhyS6VVM7i+yCxa9MuTsKB06/Wt3N1omE60YpwwRXm9ao 9FKT5Yedt73hltfL6UQ2L0pHD7g8x3/G5XpcoedHlgWJLQdoLCJ0LL3QnE+b9VKKl6tS Ex7bEnISvEZ1LX9iDO6BbCEQvNLGJSQgQ4sZ13yjWSwjG+WdhfymjPSOatgEyT0uWeEU rQqg80zdq/40j84SIKUhGa6ifJCusnJvzpvl1fv0+T36N3ivM39Oao4IfBtLDiHNWTCN EDfiYwLH9U462iW2NlZfQyXKj2ixn3DtyjQfiiPCGM045jUeVYtbLAWHtV6UDfZ+fWDL Epvw== 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=m+KwRik4gBy1au0sPkyf3szvTSQct26/R0UizV9BM78=; b=A2OKzPa6jG9D8OgTmZgYmr+QlxJhGRJMyBnLyrSyRga35/C8Hk1qUnQKP0JOaoDjg1 +n+f9epAva2WSTdiRz4WKDWTsIhJRoyjWH4IfE1f/62uJw1fPilDyZeSWgoTaNlaQAVo J3VNXrmz1NvgbogAouOEs/KlKvEzlGBPTKoDpIkrruO8kW6ipUben14IAjzRo+KqO0LM ZpKKxw+rLq5VvPK0nL7JJ/sdqO8TKbvqUfMFInjg1WIE9utoEgVDVXB0U3hTnmsJ9YEn Q5vKKW1AYGoQd5BwS9U/olrN9sYgvzFL38NOf0/SL95AAhNmYCI5QCdZz3HTLxcgKvL2 jSbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="PkTtLZ/g"; 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 7si1436182ejz.151.2019.09.10.01.10.01; Tue, 10 Sep 2019 01:10:37 -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="PkTtLZ/g"; 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 S2405086AbfIIOHx (ORCPT + 99 others); Mon, 9 Sep 2019 10:07:53 -0400 Received: from mail-yb1-f174.google.com ([209.85.219.174]:41409 "EHLO mail-yb1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405094AbfIIOHx (ORCPT ); Mon, 9 Sep 2019 10:07:53 -0400 Received: by mail-yb1-f174.google.com with SMTP id x4so986625ybo.8 for ; Mon, 09 Sep 2019 07:07:53 -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=m+KwRik4gBy1au0sPkyf3szvTSQct26/R0UizV9BM78=; b=PkTtLZ/giPH+bPOdQ51srxUQa9uSudYVBt/tMQmf3VqIILGLSmt+3sksFth5aW9ujp fL+8LMi/MUgiPhcSoDBdnySgoNx2ryV6Ey610TzhUsxMz1ATxVSmcAnJueQ4TltFo4yg AH5GDo+6y3j7L+J97ljxfMPbgJ3T+W4+YrppPA4bdJHiWXxG1SKzeR0IeHsphosQycFG OCBb8UHKuf3L93GVn9LWyEWobDnZ+cM1t7Arh//md+IBeTYZr1gZzPoqCGkUwPHGCRnS 7EwH36/JMN/pWxIHK+Ldfj1IqSEQUHo24HpMLJe1uMR4jfXB0gimctdENnUmAS3Ztnhi V/og== 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=m+KwRik4gBy1au0sPkyf3szvTSQct26/R0UizV9BM78=; b=uGSScKyW5//ZcvLp8RIzz5XzWwQ7kcOV55HHEPnioY/0pZl9AC9fv1BU6tESNO1ark T9O8Tm5SMnMz4c8xRk8tGFtktd4t96OFd10QHuKbe3S2++K5DjjN2LWfozq0QX9A4IbQ Ifgoh4kOis3Mdtn+AHJ5FPDtiaKcddncjM3CI4Cfxxj4nQH7D2l+bbWCw470rbzIUTBA 1Uj3UMqEPlxKbOxBAy9Glh7Y2zi3C7d/AdMMEpAXn+/oozWFtuNrQV79ldFPuJyh7T5P Z7PfE/ngFY5C3HldgYpMLSU8RiiqHBAuzbLZieg5Gi4gfBbZ0P1u1D/T4BXlhtfRDoI+ mHag== X-Gm-Message-State: APjAAAXWQGbsgyJ4TChK+cZvpWbAK1IciYscu2LwwVNcN2pUxDr/tNuN IOEY0/77yiRtY9/C9ZvZ6l9SwXfu1gS1Zuw77/CWdKw4tHU= X-Received: by 2002:a25:9706:: with SMTP id d6mr12182741ybo.150.1568038072655; Mon, 09 Sep 2019 07:07:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Barry Byford <31baz66@gmail.com> Date: Mon, 9 Sep 2019 15:07:41 +0100 Message-ID: Subject: Re: Locating /org/bluez/example/service from example-gatt-server To: Alan Martinovic Cc: Bluez mailing list 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 Hi Alan, If a do a "busctl list" before and after starting the "example-gatt-server" I can see that there is a new service started. The way the example is coded it doesn't get given a nice service name but I can see it is called (in my case) ":1.20" I can now see the tree of services created. $ busctl tree ":1.20" =E2=94=94=E2=94=80/org =E2=94=94=E2=94=80/org/bluez =E2=94=94=E2=94=80/org/bluez/example =E2=94=9C=E2=94=80/org/bluez/example/service0 =E2=94=82 =E2=94=9C=E2=94=80/org/bluez/example/service0/char0 =E2=94=82 =E2=94=9C=E2=94=80/org/bluez/example/service0/char1 =E2=94=82 =E2=94=94=E2=94=80/org/bluez/example/service0/char2 =E2=94=9C=E2=94=80/org/bluez/example/service1 =E2=94=82 =E2=94=94=E2=94=80/org/bluez/example/service1/char0 =E2=94=94=E2=94=80/org/bluez/example/service2 =E2=94=9C=E2=94=80/org/bluez/example/service2/char0 =E2=94=82 =E2=94=9C=E2=94=80/org/bluez/example/service2/char0/desc0 =E2=94=82 =E2=94=94=E2=94=80/org/bluez/example/service2/char0/desc1 =E2=94=9C=E2=94=80/org/bluez/example/service2/char1 =E2=94=82 =E2=94=9C=E2=94=80/org/bluez/example/service2/char1/desc2 =E2=94=82 =E2=94=94=E2=94=80/org/bluez/example/service2/char1/desc3 =E2=94=94=E2=94=80/org/bluez/example/service2/char2 =E2=94=9C=E2=94=80/org/bluez/example/service2/char2/desc2 =E2=94=94=E2=94=80/org/bluez/example/service2/char2/desc3 While the object path is the same as "org.bluez", they are stored under a different service. So if I do "org.bluez" I can see they are not there: $ busctl tree "org.bluez" =E2=94=94=E2=94=80/org =E2=94=94=E2=94=80/org/bluez =E2=94=9C=E2=94=80/org/bluez/hci0 =E2=94=82 =E2=94=94=E2=94=80/org/bluez/hci0/dev_E3_AC_D2_F8_EB_B9 =E2=94=94=E2=94=80/org/bluez/test Hope that helps. Regards, Barry On Mon, 9 Sep 2019 at 14:09, Alan Martinovic wr= ote: > > Hey, > looks like no activity here on my question, > so in case someone is more into StackOverflow, > I have a bounty on this question > https://unix.stackexchange.com/questions/538107/locating-the-object-path-= for-a-gatt-server-in-bluez > > Be Well, > Alan > > > On Thu, Aug 29, 2019 at 6:37 PM Alan Martinovic > wrote: > > > > Hi, > > in the example-gatt-server which is provided in the > > sources there is a reference to the dbus object > > `/org/bluez/example/service`. > > > > When that example gets run successfully under what > > "unique connection name" does that object end up living? > > > > It doesn't exist under org.bluez > > > > ~$ busctl --list tree org.bluez > > / > > /org > > /org/bluez > > /org/bluez/hci0 > > > > Be Well, > > Alan