sábado, 3 de septiembre de 2016

Shell, sending files with Bluetooth

Sending files over bluetooth in a Shell.

Install "Bluez-tools"(ref.):
$ sudo apt-get install bluez-tools


To discover a device:
$ bt-adapter -d
Searching...

And when it founds a device, it shows like this:
$ bt-adapter -d
Searching...
[MAC]
Name: (name)
Alias: (alias)
Address: (MAC)
Icon: (device type)
Class: (...)
LegacyPairing: 0
Paired: 0
RSSI: (power)

To connect to the device:
$ bt-device -c [MAC]
Connecting to: [MAC-address]
Confirm passkey: "some munber" (yes/no)?:....(if yes)
Done
Connection established.

To send a file it can be used the device's name or MAC-address, and with "sudo":
$ sudo bt-obex -p [Name|MAC] file
Then it prompts for the user's password and shows the progress!!

No hay comentarios:

Publicar un comentario