shell - Linux script for Bluetooth opertation -
shell - Linux script for Bluetooth opertation -
i want automate bluetooth operation on ubuntu system. can these script or application can utilize perform basic bluetooth operations enable , find , file transfer , disable.
you can enable bluetooth stick running
$ hciconfig hcix where hcix bluetooth device name (e.g hci0)
to obtain list of devices, type
$ hciconfig -a (http://linux.die.net/man/8/hciconfig)
with bluez bundle installed, can find devices nearby using
$ hcitool inq (http://linux.die.net/man/1/hcitool)
if wish utilize obex transfer (the protocol used while sending file bt device another), should install openobex bundle may type
$ obexftp -b 00:11:22:33:44:55 --put /some/file/to.put to send /some/file/to.put device bt address 00:11:22:33:44:55 (http://linux.die.net/man/1/obexftp)
finally, if disable bluetooth adapter, call
$ hcitool hcix downwards update
the next packages should installed on scheme in order have commands listed above available. of them may involve kernel extensions (like additional modules).
bluez (http://www.bluez.org/) openobex (http://sourceforge.net/projects/openobex/)regards
linux shell ubuntu bluetooth terminal
Comments
Post a Comment