Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3026943ybi; Fri, 5 Jul 2019 00:29:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6kOT8JVmgKpEyObslPD2ibX9xtIRIDe8GlZDMGGlj65s1/3hG8P8Bj7P6i3Rxyj/ZgApu X-Received: by 2002:a17:902:5c3:: with SMTP id f61mr3210468plf.98.1562311799555; Fri, 05 Jul 2019 00:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562311799; cv=none; d=google.com; s=arc-20160816; b=Vzy1PhfIcvATFUy0IjEZ97/1wx5lEULWwjnoTqQ28zH9kf42xNGxFMmBRs+1+4Oqff TT1oR235sjrAOhJExwuB2yfTaiZGW2ZfUg8UWfhhh2s5n42vI69ebpGd8Ai2Lmk0YXt9 q/LAR/Czzjye/ZW9AsbXfIX0eJXJU7W4Bjr4PxTxv1Id/ZCGCpkd2uP5beicriQPbP8T hjqnN/gSqZESBGTjC16b/x/PmKJkEKuhmStXS75DUHAr6yY4Cf0WOMHq8pUDNKFu6S/j 5K0G/zMstT1+NVJhjX0eNIMrbH5uvMYzfRq50zGOc+GZMQE+JMtjmPhAS5t8Tr1iWv5g /OXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hAJyrHvDZtwVuzH3RZAjPqQlRNu6PlXAJBAkOhCsREI=; b=hXvTnFKgFooja5M3u5ecvPpHWgF1dfHdBRNlEC0SNBK420OAVWdTAb9iD1VN5ZAlpG JRBkE7BgK0fo+zWzASKsUUE5+RaZ+i9rzif3lOLwtow10WK2yni+iK8mEo8p8I9cqOKI PxHCECbKS45YuWc2oGti2K/oF+8soqqVstBo/2dGaTQIykoHTt2RlsoiwpYSobjqDmsZ kgCYg94iOvKynIbj/aDSFngDdEhJU8Kjmx8kaRb3ZUTZYcmGJXNcILYMdpcI3fD1BoLH B8AbUNyRU+kQYwqDKX29HylcQ5o8JdISToaJSdu7vHIqBpBgKZ1yI0xE6Xf5Xdk67rT6 yjWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AXL5pa5r; 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 k11si6935250pgb.427.2019.07.05.00.29.30; Fri, 05 Jul 2019 00:29:59 -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=AXL5pa5r; 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 S1725978AbfGEH32 (ORCPT + 99 others); Fri, 5 Jul 2019 03:29:28 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:35171 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfGEH32 (ORCPT ); Fri, 5 Jul 2019 03:29:28 -0400 Received: by mail-yw1-f68.google.com with SMTP id o7so1404042ywi.2 for ; Fri, 05 Jul 2019 00:29:28 -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; bh=hAJyrHvDZtwVuzH3RZAjPqQlRNu6PlXAJBAkOhCsREI=; b=AXL5pa5r5cP8W/9U1FoxwLwzKbMklToYjsWZiNFSioVm4Dqk74eEqoo2HUjQ/q1ni3 IPY1Y095lTwiaibV0HDnV3bv7VzsdQ5/e7Btt+ib3FWrXu7LVD8jNBOuFEbXTaMr0Pr0 KHTSNJ3EaiCiKezQhQZnbTfzZZbf99MSkbTFijvC/XkC90LBxEXz0tGvu/0GMrTv/scq fetDi5bNy7db9ykKen4fWHc3k7l60Cu8oP45TQIT+ZzU4z6t41sOcv177hJKQsYpcnwT vXRtwx1SD2An4Ii99RTwda9HPBWyL6O4Pg2G1eAvxxzWdVoX0p4f1i1YLagJ3NxzWdzl wOcQ== 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; bh=hAJyrHvDZtwVuzH3RZAjPqQlRNu6PlXAJBAkOhCsREI=; b=c8fAjR/snu08E8FQX3eQfpkTLk6c/eNsV1O1WGWx3WeMUdPkYqmHe12YezRgtW7wfA MhcLRswj1O2EwLTId2/1ncujL9+ixt/votgFoJW0irkk0ixIuLXZdJ7JYDMC2I7CsyIQ YRcoaREfxxnxfvYDctLKfvzQ94L9zPniH6ruihWLhsx03/NNP9+OxbsKQr9OrHuKLa2U Ol0rSmfzIdry74GM4j907CwzZTcXntG24NewKNaehy76RWZWZ6td1P3s4NhauGUbwPGe t6jNmbrczXQRqLWrA5V4AyD35QkArZBhHbdxR9eKi1D0q8GV5IUq1m5QkjoMi7OICQ14 hyRQ== X-Gm-Message-State: APjAAAXzTHtDFw3ISUwdMM+y5jIxPVUsLlqWvlQxlbw40KDfkGcWcosR obLic97IwJr6fgKjOlogg11j1IqMT7tNbNxMwYE= X-Received: by 2002:a81:6586:: with SMTP id z128mr1206754ywb.12.1562311767825; Fri, 05 Jul 2019 00:29:27 -0700 (PDT) MIME-Version: 1.0 References: <20190704212644.GA13491@n14xzu> In-Reply-To: <20190704212644.GA13491@n14xzu> From: Barry Byford <31baz66@gmail.com> Date: Fri, 5 Jul 2019 08:29:16 +0100 Message-ID: Subject: Re: Missing manual? - GAP Central connecting to multiple peripherals. To: John Whitmore Cc: 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 John, There are various Python examples available in the tree under the test directory: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test There are a number of Python libraries that have been implemented to help with what you are looking to do. There is a list of some of them at: https://github.com/ukBaz/python-bluezero/wiki I hope that helps. Regards, Barry On Thu, 4 Jul 2019 at 22:32, John Whitmore wrote: > > BLE at the wrong end of a learning curve and trying to piece things together. > > Perhaps I could just give a rough outline of the project. I want a Linux > device to listen for advertisements from a particular BLE sensor and connect > to those sensors, as and when they appear. Once connected, the Linux device > can send commands to the sensor, to turn on/off an LED or request sensor data > from each of the connected sensors. > > The Linux kernel is 4.15 is an Ubuntu 16.04 based system. > > I was looking at the latest bluez-5.50 doc directory but didn't see a file for > gap.txt, but adapter-api.txt looks like the API I'm looking for. > > I'm trying to do this from Python, so currently thinking of using DBus > interface, another learning curve to address. > > So after all that a specific bluex questions. I'm missing things, and possibly > incorrectly assuming that I need a certain kernel specified for bluez5.50, but > can't see any mention of versions of bluez relating to versions of kernel. > > Secondly bluez-5.50 appears to be building an applicaiton, so I assume that > application has to be running to interface to Linux Kernel bluetooth stack and > handle the DBus API. So bluez should be a system service just started on > powerup? > > Thanks for any help, I get the impression that this list is predominately for > guts of the Linux Kernel's bluetooth stack, but user side list is hard to > find. > > Thanks again > > John