Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp552733ybc; Tue, 12 Nov 2019 05:49:30 -0800 (PST) X-Google-Smtp-Source: APXvYqz/5MfwBOkK9p88n06B777wTyVQOKSEJMtZ/NLiHVdTB1lh4poK7sCoC342Tx+wCq0M65/4 X-Received: by 2002:aa7:c303:: with SMTP id l3mr32042252edq.89.1573566570793; Tue, 12 Nov 2019 05:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573566570; cv=none; d=google.com; s=arc-20160816; b=fHCi6Mrrh9PeTknsmFGLzn953u2TmNzW4HV55b3tML4FmkmjHzX+EGnNCtbjHfjiSL SSVdQ3Ezu6/B7gWYc55dJ2xioINwJEijjQxkOqQKVOUqtdNInj9uKpZCnlyX1mbiCUR5 qhhLjBaGOgqJf4C98KXihBI5BgD9iNHRliNfsRKwdKt/by5liVj2Xa4me7PREjgVeO+w kOMd9zZO+FQptasXgvZ7QwylRBKk7PCrgqwXKJFtZc8pc00qi7KnHWMfD2bevXH94BYb u2JwL8Kq9TDcqunWs1sWhANTV09btLVkYgapkbKwY8sAhaOLtWUck4X0zclwQ/nIjJyL k3vg== 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:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=IAgb4RJXfcmq8pojNPfFnTkebO3OMW3FNrY7Zv/bKdo=; b=pDcLsRDZPujxBCs/9vbOrR1tzj+aEjCKIIdYdFtVYojeanPMnhoR7EpHuVVIeQ4nms pSyGey+Fb/pCLiqo7qiLlmHScW4u1WJKYaNnrMQawFb+Ysz2Y7r/Dv5wep3fRLTqNG/k 2GSYklWlfkb9zJFM+CyNqhn9eqICeGMSLyHLgBiYqx8R+KOdaDP6agFsbMOLoP8R0Ty4 ybJ3p5ytxfLFWl8BGoNC1ycE7HxwgYXTNpYhhQqChT3bn8cwZLpTN+eRl0cwLnDeHB11 MNMDOG3CrB4fBKJcqO2xqpa9rOi3cd6MNoAKk4mb5nySWcvfunFJRmG36KB6lEnnMpbX oNLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=FJ25BbWB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si13528301edm.299.2019.11.12.05.48.53; Tue, 12 Nov 2019 05:49:30 -0800 (PST) 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=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=FJ25BbWB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726939AbfKLNsd (ORCPT + 99 others); Tue, 12 Nov 2019 08:48:33 -0500 Received: from mail-lj1-f171.google.com ([209.85.208.171]:38406 "EHLO mail-lj1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfKLNsd (ORCPT ); Tue, 12 Nov 2019 08:48:33 -0500 Received: by mail-lj1-f171.google.com with SMTP id v8so17870376ljh.5 for ; Tue, 12 Nov 2019 05:48:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version:content-transfer-encoding; bh=IAgb4RJXfcmq8pojNPfFnTkebO3OMW3FNrY7Zv/bKdo=; b=FJ25BbWBZ9SzDm7wQQCBKHDWTVRSvGYMzHBuumdkuimHONoMcFiXFhlMMAwspN5eRf sRBHod7NqAkfWKGJWvuTAh6QnmIDxlozSNfANqYzuvk+1sJnjtNiocH/CTM4LrAb+p8H /GnhASdh29JY9ljUuq0Kl0TMu2jbSCX2mRBevNYIzDTnl9mJ6nMIPWkjcIQW2tUALgAm MxT3ub54W+5ZQNsvCQKZeR6JR+1uqVqCKXww69Y6DSwBLSS/pq7oawdbziskogkAbicx p0tgBtGVT2cHw3iyJgsP7OGjfOhI2qOC2Ollqud0OSS+t/w72ppoeJbEx0leSNQpuj8X b9XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version:content-transfer-encoding; bh=IAgb4RJXfcmq8pojNPfFnTkebO3OMW3FNrY7Zv/bKdo=; b=ekm9KMsUszNAuUBPgFTK17vBVptr7fjfVOY8Nrxf2LIQxJpJZ9SEE40Nlaji+fEh8v qtFHXrZ998mXKtDcxHamwPYLhqWmpUTw9WMb/6DYor6jOshncZZTDP0+wN3KOpLwEKQH osXKH8GyXJK8UdoiMetytrcHpfJK0NlUgeHG+ZrXIcU2G/Yy3dA6X/sK5MTLCAw1rUmj 1yeFQN+ly2vtdkE8ACVpoHTZPXorZ6BfEzEAWkS4DU6K3jhWUY6smCcnZaTpYLo05mn/ Hp0QNYKmcHzyQ+W1xaqqweS2Vwp9FtWmeRpDDnbdiw7K1dA+nKii1YpXdn3Ix0ZrvYNr DTHQ== X-Gm-Message-State: APjAAAV/IVZrQpJ3KTG2v9M27jg5qunK1qvhscIKu4pbH/7/oHekdJvs rGrlgtFVFnU9udLm7NVSvlUjyQ== X-Received: by 2002:a2e:8ed1:: with SMTP id e17mr12489075ljl.52.1573566511071; Tue, 12 Nov 2019 05:48:31 -0800 (PST) Received: from ix.localnet ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id k19sm10376145ljg.18.2019.11.12.05.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 05:48:30 -0800 (PST) From: Szymon Janc To: =?ISO-8859-1?Q?Krist=F3f_Horv=E1th?= Cc: linux-bluetooth@vger.kernel.org Subject: Re: Simple SDP and RFCOMM example Date: Tue, 12 Nov 2019 14:48:29 +0100 Message-ID: <5852113.xjoqjODIPz@ix> Organization: CODECOUP In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On Tuesday, 12 November 2019 10:15:38 CET Krist=F3f Horv=E1th wrote: > Hello, >=20 > I started a project with Bluetooth, but most of the resources on the > internet use older versions of BlueZ (and often mention using > compatibility mode to hack the legacy code). I think the reason for > the hacking is that there is not any tutorial for BlueZ 5 (or it is in > some very hidden place). I browsed the page > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test for > examples, and I found some interesting codes, but I could not find > what I was searching for. >=20 > I would like to see a simple Python code that can register a service > via SDP and receive the incoming RFCOMM connections. Could you provide > an example like that? >=20 > Thank you for your help. There is test/test-profile and test/test-hfp in BlueZ source code. =2D-=20 pozdrawiam Szymon Janc