Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp855240pxb; Sun, 21 Feb 2021 02:45:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/7I7/rSyjvvDDiLxyEXYOGcVYlsMpJjOt9DhNV3I2n7VsU6w5X0aRgR34wgtxVz13ns5v X-Received: by 2002:a17:906:296a:: with SMTP id x10mr16124407ejd.240.1613904313225; 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=Ec86Hnsx537tgHI0z1rOSRktwI9/CPnVrSWnLEMzx+0tyu9YbewztP71UayqfGcWZc 1YrzoTEvGoLxB/yb2YqATdghqOmop7s9dg/XyXWduMqWUK9cpMag+xzJvKgzqzPN8cLf ICw2tlrq9gXhDpvnvQ69ze/mxNo0lr8VI2mEgm5JSenmxDV6ilYFqRucRs6mqv+d7WXm x3enhs1+D67feZ+OqoBuCUQv572TIvfUSldTPnaVEmwMdKv/oQ8jJwk6JHU/3FYFJ1fl 8XkqsdkaYKPE+u30TQY9yDxw5CaKRuCLUH1AH6Q9oeulQ+AXPSJfPAzKZgHVFWedrz98 n6Xg== 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=qCfCccyQLO7Bg27JkcboyqJrdbsLRodFiRMeonjqjRBCjyyy1Sej2TrRTecZIzEcX2 DH5OKrlbNmq9YFgt5xG5cCGgfAP1REtEBxbXrAlbzflRFyJHT/GPfZdEYLV8+thtbayb GVIyVntr7fuIRIaz4/dAn+RvukIE+KOYijIR5HHo1Y/BxE5YbLR5VSspBbOG4rMZym0G w9oM5nz4jozTCov0l7UmFVoKk0dom8p5p/sP1WVNe1rmBMamaHA/cXRDi/iQR5eLw67D tbBXiZ1HQRhobZLb1QOwzyFatPHmrvy9DJxVINLSXoXQ5tfElHYRnB1hD0w8TQHEal1M Sgtw== 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 t13si629383eje.700.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 S229519AbhBUKcj (ORCPT + 99 others); Sun, 21 Feb 2021 05:32:39 -0500 Received: from somewhere-in-the-space.org ([109.190.28.168]:65147 "EHLO shorea3.somewhere-in-the-space.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229502AbhBUKcj (ORCPT ); Sun, 21 Feb 2021 05:32:39 -0500 X-Greylist: delayed 569 seconds by postgrey-1.27 at vger.kernel.org; Sun, 21 Feb 2021 05:32:39 EST Received: from bomberx.somewhere-in-the-space.org (unknown [192.168.1.66]) by shorea3.somewhere-in-the-space.org (Postfix) with ESMTPSA id CFD0314087 for ; Sun, 21 Feb 2021 11:31:52 +0100 (CET) Message-ID: <83539f253d8da451156ed52bc0fb3ad208da6a40.camel@oscopy.org> Subject: Message Access Protocol using DBus bluez ConnectProfile() From: Arnaud Gardelein To: linux-bluetooth@vger.kernel.org Date: Sun, 21 Feb 2021 11:31:52 +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