歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下輕量級藍牙用法

Linux下輕量級藍牙用法

日期:2017/2/28 16:12:43   编辑:Linux教程

如果想在Linux下用藍牙存取文件,又不想安裝blueman等笨重的東西,可以這樣:

pacman -S bluez (安裝藍牙協議棧)

/etc/rc.d/dbus start

/etc/rc.d/bluetooth start

hcitool scan (查找設備)

bluez-simple-agent(依賴dbus-python和pygobject,它用於配對,需要配對時以root權限運行它)

pacman -S obexfs (用於文件操作)

obexfs -b <devices mac address> /mountpoint (以普通用戶運行就行)

然後就可以在/mountpoint看到文件,可讀可寫,但注意不能用touch創建文件,可以echo > filename。另外速度很慢。

Copyright © Linux教程網 All Rights Reserved