All of lore.kernel.org
 help / color / mirror / Atom feed
From: tony <tony.makkiel@convergeddevices.net>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: BlueZ 5 : Tool recommendation for scripts
Date: Thu, 5 Nov 2015 15:04:31 +0000	[thread overview]
Message-ID: <563B6FFF.90703@convergeddevices.net> (raw)

Hi All,
	What is the recommended BlueZ 5 tool to connect a device from scripts?

'bluetoothctl' is very good in interactive mode. I tried using 'hcitool' 
+ 'simple-agent'. But they do not seem to detect device unless a scan is 
initiated from 'bluetoothctl' first.

hcitool scan does scan and find devices. But simple-agent returns

Exception: Bluetooth device not found.

bluetoothctl commands which does not take much time could be run from 
scripts.

eg:
#!/bin/bash
bluetoothctl << EOF
power on
EOF

But starting a scan does not work, because it exits before the scan is 
complete.

Many Thanks,
Tony

                 reply	other threads:[~2015-11-05 15:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=563B6FFF.90703@convergeddevices.net \
    --to=tony.makkiel@convergeddevices.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.