BlueZ 5 : Tool recommendation for scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux