public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: John Whitmore <arigead@gmail.com>
To: Barry Byford <31baz66@gmail.com>
Cc: Bluez mailing list <linux-bluetooth@vger.kernel.org>
Subject: Re: Missing manual? - GAP Central connecting to multiple peripherals.
Date: Sun, 7 Jul 2019 12:27:15 +0100	[thread overview]
Message-ID: <20190707112714.GA10302@n14xzu> (raw)
In-Reply-To: <CAAu3APaed3UXY646Vr+2WyKhFRoohDV=7=aeD6sANf9N4BJw-A@mail.gmail.com>

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

      reply	other threads:[~2019-07-07 11:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04 21:26 Missing manual? - GAP Central connecting to multiple peripherals John Whitmore
2019-07-05  7:29 ` Barry Byford
2019-07-07 11:27   ` John Whitmore [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190707112714.GA10302@n14xzu \
    --to=arigead@gmail.com \
    --cc=31baz66@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox