Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5426054ybi; Sun, 7 Jul 2019 04:54:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqygi+e4pZGFwm9f23+WqmYfiv6T8hYwdEsNeqD84w+aqxCsbmGD4U/MjcY3EUkMv3Li0LJr X-Received: by 2002:a17:90a:2627:: with SMTP id l36mr17788080pje.71.1562500463632; Sun, 07 Jul 2019 04:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562500463; cv=none; d=google.com; s=arc-20160816; b=SCynsV409KWgvzq5cu1yPowDsbclwJvM16MvKhw7W9EWBqN5S8l4q3SvcjZmmP1mlF gZOhKaWpFMeiLgqpAEdaAfiGBMv5mhIRs6lV+r0sYju06Ucxv6aDjWIR48KEaN85zez3 4j6rizHakM+X2zYGfPwgZ6PQMzPJN5Vr1Q8UuXnusg6eeA/TXIz/yIB3J3Xz3Zwha18H vXwtAUgSXEZMH42/2fI5fyngNac/1idZKUp4MGeCQ8FQGVCsNU+okQypjlgl65tZPwJn 1YVrmVXLmMq0k8+sE2IHZhfz3V4KBZdwMjOZGpFoeT+cZmPeVykIoo81W+qw+g3/k8lB ukSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PGGhlgC+scjxuh1M6vtDZZeS9JTSVbQyEnxIGgCuYJw=; b=Qz9Ti4GI6LYb1kRSpDrKBRZljvA6XxDd2ZgiCQL74uKu7pWNkQEMVsZ7635UbomWDe IsbPKaSejCPNg6Zb6VW1zux+/FKXp0SluJvIVvMu8pQnwAsoSCQU6nCel9asCe1nUotm HaoEWXadfsTAbZPiDE6WytYU2DPnpODls8WJAplwoV/OflUSn23o6DNZpVtCaGpB+qve x3N7y3ASVigtzgk34laovdL06Aef5d9fxkwaybcjO74pfa/UQGcPghSdNfl/pVjgQXOW UxwtJxUPKOMc7KOF2wceNmQR1x1kszzZt++hhE9cUruPK6U8NABqj1FD6TWspuC9jkoy NLLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H498diNa; 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 n13si15080946pff.46.2019.07.07.04.54.01; Sun, 07 Jul 2019 04:54:23 -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=H498diNa; 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 S1725846AbfGGL1X (ORCPT + 99 others); Sun, 7 Jul 2019 07:27:23 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37233 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfGGL1X (ORCPT ); Sun, 7 Jul 2019 07:27:23 -0400 Received: by mail-wr1-f65.google.com with SMTP id n9so4920388wrr.4 for ; Sun, 07 Jul 2019 04:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PGGhlgC+scjxuh1M6vtDZZeS9JTSVbQyEnxIGgCuYJw=; b=H498diNa0t1Owfw54fiDtDlHXlJqUsipkQDQGYqsia3hh1fF890ewlpJS6j6Y3rlD0 W/wMlDtqzAVKrp26mFy9u42qQAtFG574sj2bqFpuHihyJ1CnVSTeNxUBJsU4/k8eD6bD Tl6JeKSUTk9tTbMu0jte/eqsNf/4RQhcoBwZzEBWPJljA4Z6VkdPXiJ+R6lXGY7qB1xL 4NdJINJG3+4nk1ceCjiN9dXfJD9+dZovtYtqzxOJI3opT99TV8leK7EbtSMBTKStmYB0 ddJJfeOsrGHQGY8FN5qBv1ST71e1wDdez0nqcZDCHgMZ/0S2cdtCufslmfJWjFXr8vBm SKJw== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PGGhlgC+scjxuh1M6vtDZZeS9JTSVbQyEnxIGgCuYJw=; b=Ev0bfoX5c+vbc0grvWxOo79KlvY0nkYKpBW75br5ABclWw+H2jdhgcSSuWP5Y6JTAc WsrjHhBhZnZjhFnfGTRjqnurFQJIBHIk5Q+OJ0jUjfNJo4nUTrTmmzW2AUF4+g2XLJsn 7WbFnWqTaasN0/pRbd8WZQUU5J36ItqzZ39ruxqw/Bz7n/Got7ChcQ1MGIkY2OxkeJA7 AdXe4sFOX83tuD3XORuDKYhHFFo29xDvS6u9LPhTB1vFtv4nHL1ViRXzfAdeU4RXy9vU SSL7Z5eeG3EexVcnCMt/Z+0Jpl+76Cp6hyqAmLWAIGo9jKRH+OQJMjvzV4jawTAnzvpy bzjw== X-Gm-Message-State: APjAAAVhuRHxd5kbpcMjiRy/AeDIBcXqnbN7E7w2ffCoTGz9MdbWb38y g/g/6sHhJ1qeB/Ob/x3si8k= X-Received: by 2002:adf:dfc4:: with SMTP id q4mr13150766wrn.54.1562498840849; Sun, 07 Jul 2019 04:27:20 -0700 (PDT) Received: from n14xzu (host86-129-30-75.range86-129.btcentralplus.com. [86.129.30.75]) by smtp.gmail.com with ESMTPSA id m16sm12861111wrv.89.2019.07.07.04.27.19 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 07 Jul 2019 04:27:20 -0700 (PDT) Date: Sun, 7 Jul 2019 12:27:15 +0100 From: John Whitmore To: Barry Byford <31baz66@gmail.com> Cc: Bluez mailing list Subject: Re: Missing manual? - GAP Central connecting to multiple peripherals. Message-ID: <20190707112714.GA10302@n14xzu> References: <20190704212644.GA13491@n14xzu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Fri, Jul 05, 2019 at 08:29:16AM +0100, Barry Byford wrote: > 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 > Thanks a million Barry, yes a great help. I have used bluepy library to interface to the BTLE Devices but that has proved unreliable at best. I'm not sure where the problems lie but basically sometimes to connect I have to disconnect the USB BT Dongle and re-insert it to get BlurTooth to work. I can scan and find the devices I'm looking for but as soon as a connection is attempted I just get a null return from the connection function. At present that means that bluetooth is not ready for production on the linux device we're using. I'll try get the device into that state and try connect with command line tools, just in case it gives some indicaiton of what the problem actually is. At present there's no indication. I'm sort of hoping that this is an issue with bluepy and I'll move to another interface and see if that makes this any more reliable. It's for an LE sensor for IoT in a production line, so unreliable is worst then useless. Thanks again for your help John