Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2585353ybi; Thu, 4 Jul 2019 14:31:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqybNVyZDfwkzkNSPrtVxWWNwvIHJvh0i9ek31wWmkAgAm2qQNdG8IYRfTnmYdIRns+f/tC8 X-Received: by 2002:a17:902:f01:: with SMTP id 1mr391777ply.170.1562275915396; Thu, 04 Jul 2019 14:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562275915; cv=none; d=google.com; s=arc-20160816; b=QW2t9LffeJYnjY6XmHDauaN3cOzq38aK2xvMzm74axTvW+WAaMa3SqcXVPhKM2vQ7O sNrIOaNnVcDaeYUavnI9IWL0BC91WIDTj3e/H/Yc0MyOWIWVhUbHYOigQOFzpyD4Bw8B hh1WLvQiYAcjknNgm7io1n/Aufc2jtKwdeet1Pu45Bt5CrqXXGa59WLP98XwPkPdVDJR LSFoNBqo96D3WyKKUZ70phJCWys+y+HcVGOgaukGAnEmI5EwSiL2cXv/TxV30Wa34q0G fYq5mHNeI/uvBo+sFU98i92ZSj0x/vO3/NYs403kSOJoOLezmIS5I9tWSjuNv4nw7XLg RkSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=38sKwFrZr198N56iXuEja6PBV05qSzotWTQhGkeOY5g=; b=nup8p2aVvc0U6O4eoBzq2wRFjlVE4VZIBMJYsCL4Xk2+5wdwFcqObCHFinpluu1duf IWsbr8s9qvNk8/gSWym/kWib6vfDyjhGDRWJ8xtBumOhUTml5NabRIshE5Nes+huPk7U gX3pgeClePk85BKkKIWIwDsroufLGH3n7y9/y8OzCmf4j4ZUtdIZ5FXALZSAGpCs/jUE pKeHPrk3dQDk0QWqtsLb1xx82+YQk4sOk/5QmMW7X8FnKPeurn3VKctN0HZMOuLdHFF0 MmXiEnRaa0UI0rq8yewl2CaNRdmpPXM+2AaNun2afxUNF9Ox7xh2S/t3K1UMWA12CPG4 /x3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j3gy4VOH; 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 l21si6344516pgb.409.2019.07.04.14.31.21; Thu, 04 Jul 2019 14:31:55 -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=j3gy4VOH; 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 S1727142AbfGDV0v (ORCPT + 99 others); Thu, 4 Jul 2019 17:26:51 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:45694 "EHLO mail-ed1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbfGDV0v (ORCPT ); Thu, 4 Jul 2019 17:26:51 -0400 Received: by mail-ed1-f49.google.com with SMTP id a14so6443242edv.12 for ; Thu, 04 Jul 2019 14:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=38sKwFrZr198N56iXuEja6PBV05qSzotWTQhGkeOY5g=; b=j3gy4VOHfsDVaf7G9SzktMVasM/fxWD9pAphP+qrzrbmMV+TuwtTUWaC+bUPXnlVIX 9TPfcG1MBrdarSDDsbDSk9DlRVzdX9sJw4lPmEjAUfMurZrs+nlWV2j+z7vMi5hDwjh5 CvtGfL4Wy1T4zp0qdy37B5nYNH2U0jG79vfrnzJV6PvGssHgkNmFXEzuLvXYN6i59o82 vTOGO3wnylcfsRfUcg7fxE2hC7ASn9j6uXFy/+4miE90YVV60lwniF6iU4Vz1UvNEGka 4QDsBTdmpU9ol0HshWAVjZQNh+8GuWCBilzmliEP0ElVtviarUh0YDu0WYgPwCLRTer0 +ing== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=38sKwFrZr198N56iXuEja6PBV05qSzotWTQhGkeOY5g=; b=LcF6+ZSOTbBJCnvVw1IToC0cDLr5a3f1FfJ7EuFaOtb0VAoktquhM52aUXaHyUj6Zj ZdVIrNsJ0LEIWFq8163FEPkLT1Tstqn7IonpmpFdCNkmy4armeE5vkTl+efR/uaBvnAp 2fkRWkjRqiLjsDCzrrVhDZSvKrLjcFiyyc6MHBvjNGJl0a5K34t3MlHrySTE/HATD0rV gBKCpyb3Nx13S9ySSOMg+h2fyiISDiMaxyziUogG9RioSTe76BEVpW//OdODvlPelWk4 Xq1f7aohd45XkPXvfTCoTvJyt/eKxcTRVwmzQyQoUJFcck/zVK0FxEnUeW0gSMr1R4Xh znZg== X-Gm-Message-State: APjAAAX9yYqOFJdfwobcki0XS6mmwUfhq//jsCmRGFvRBewcUzC6oOpI tz5ETVTYLKleGPdpQ3/vbKvThT6I X-Received: by 2002:a50:b617:: with SMTP id b23mr736616ede.135.1562275609475; Thu, 04 Jul 2019 14:26:49 -0700 (PDT) Received: from n14xzu ([2a02:8084:4e61:6700:7281:f2b:5966:fd05]) by smtp.gmail.com with ESMTPSA id q56sm1966728eda.28.2019.07.04.14.26.48 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 14:26:48 -0700 (PDT) Date: Thu, 4 Jul 2019 22:26:45 +0100 From: John Whitmore To: linux-bluetooth@vger.kernel.org Subject: Missing manual? - GAP Central connecting to multiple peripherals. Message-ID: <20190704212644.GA13491@n14xzu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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