Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp855241pxb; Sun, 21 Feb 2021 02:45:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDAmt2K6dKUYdwxp1OFUMHUZrY3gdvyGXskJhJWWFbt//vxLCF+KyN6WtKmzJCCtgZqvPN X-Received: by 2002:a17:906:2acf:: with SMTP id m15mr16295908eje.118.1613904313224; Sun, 21 Feb 2021 02:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613904313; cv=none; d=google.com; s=arc-20160816; b=oC2a17T1zHlAx/n3ri90f2QVu2pRCTY6cD+4vGxYPuJMgfeD497bj/5bKQ5b1T0Kws j0TI6c/vxyxxA90Yvuwy9u7Xc9GvvFFRni/G53F8P5hxg5xHLIGiunWZ+h5navAsVDc4 e48Ac5QSfjbfFg+jx1frzQDutPHaznh7FwcaLGg2Fe11CUlEaLVHjCQl6D3Vn5IUsgTi izlJGLLp7PH+QNfPQuG06zZ+bcSLqylSZWnQDlqQkOKZuTkbNfYwYQn88q+KS0r163jC BmFoRDY8TuVAYK/IUm3/1Da6VJOECVDkR8jl9GX+7CneE0PRKnNUoQuW+K1Z2m/l75AR 3SSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:to:from:subject:message-id; bh=tjqAyTgykt+Uw654GCl6qyVZMuj6Uy5Y3DOIDaVUf6s=; b=wyCbzQ2MEK0G1oT2hU8/DBof6WS/0BCw+mVHO0ZRzDa53Tr9empdA+4pLk5anxyU5X tKdU3Rd2+SVx5aEGf6A+A9mPzYIP72RAcw1Y5iikRZOPwvJ0EaKekYU2JwKXCrcDj73I 7IcSKcdsB7naSoEyEAgmeYAY5GLWnrA+L1VoOFizDaj+L4S23kkIz5ydCQGHKPwUTmlC akKuygqaDzHC68r06NxbPPcE3WM/ONmnz6xYEmMxp2RZliHXs08Ab3v/sAuUsHv9Xnqa Xy7UyUGubPVtYygl9b/cyk7p6UwZXDuUuWLEPL/9E26f87vHlEfxExbNy1FMLMTeDVQm 8y+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si7205125ejr.741.2021.02.21.02.44.26; Sun, 21 Feb 2021 02:45:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbhBUKc6 (ORCPT + 99 others); Sun, 21 Feb 2021 05:32:58 -0500 Received: from somewhere-in-the-space.org ([109.190.28.168]:50257 "EHLO shorea3.somewhere-in-the-space.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229502AbhBUKc6 (ORCPT ); Sun, 21 Feb 2021 05:32:58 -0500 Received: from bomberx.somewhere-in-the-space.org (unknown [192.168.1.66]) by shorea3.somewhere-in-the-space.org (Postfix) with ESMTPSA id 568D91407F for ; Sun, 21 Feb 2021 11:22:23 +0100 (CET) Message-ID: Subject: Message Access Protocol using DBus bluez ConnectProfile() From: Arnaud Gardelein To: linux-bluetooth@vger.kernel.org Date: Sun, 21 Feb 2021 11:22:22 +0100 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org How to connect to a phone using Message Access Protocol (MAP) using DBus ? Currently I'm using a call to sdptool to browse the device, find the relevant port by mean of xml output analysis, and then call session bus org.bluez.obex / org.bluez.obex.Client1 / CreateSession(), see [1]. I found relevant documentation for this here [2]. Using system bus org.bluez / org.freedesktop.DBus.ObjectManager GetManagedObject() , a list of UUID is returned, including a 128-bits UUID for MAP '00001132-0000-1000-8000-00805f9b34fb', in here the 16- bits value 0x1132 is for MAP if I'm not mistaken. When using org.bluez.Device1 / ConnectProfile(UUID) on device's path, I tried to find a change on system bus and session bus without success using D- Feet. For the sake of clarify I tried also Connect(), and in this case are appearing paths related to media play. I searched over the Internet, found some pages related to GATT but not completely in line with my question it seems. What is the correct usage of ConnectProfile(UUID) ? Can this be used to access phone's MAP ? I this the correct place to ask this question ? Arnaud. [1] https://github.com/agardelein/textoter [2] https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/obex-api.txt?h=5.50 and neighbor files