參考文章
安裝藍芽
sudo apt-get install bluez
藍芽除錯(主機)
開啟藍芽裝置
參考原文
找到execstart=/usr/lib/bluetooth/bluetoothd
,更改並新增為:
execstart=/usr/lib/bluetooth/bluetoothd -c
execstartpost=/usr/bin/sdptool add sp
藍芽自動化設定hci0: type: br/edr bus: usb
bd address: 00:11:67:00:00:00 acl mtu: 510:8 sco mtu: 48:10
up running pscan
rx bytes:27177 acl:504 sco:0 events:1654 errors:0
tx bytes:56051 acl:1309 sco:0 commands:194 errors:0
檔案內容為:
設定自啟動:[unit]
description=rfcomm service
after=bluetooth.service
requires=bluetooth.service
[service]
execstart=/usr/bin/rfcomm watch hci0
[install]
wantedby=multi-user.target
sudo systemctl enable rfcomm
重啟樹莓派,會重啟藍芽:sudo systemctl start rfcomm
開啟手機藍芽除錯程式進行連線。
其他sudo bciconfig hci0 piscan
sudo bluetooth-agent 1234
sdptool add --channel=3 sp
sdptool browse local
sudo rfcomm watch /dev/rfcomm0 3 /sbin/agetty rfcomm0 linux 115200
樹莓派 連線藍芽耳機
開發板 樹莓派3b 系統 raspbian 樹莓派外接顯示屏後,預設是通過hdmi音訊輸出。我的顯示器是vga介面,通過hdmi轉vga輸出到電腦上,所以沒有聲音。於是採用藍芽耳機進行音訊輸出 一開始,搜尋到我的藍芽耳機,配對成功後馬上斷開,再次連線,提示 connection failed use...
樹莓派 解決樹莓派連線藍芽不能聽見聲音
這個問題真的弄得頭大,試了許多方法,終於好了,根據下面步驟來,就可以使藍芽聽聲了 也就是重新配置一下藍芽吧 公升級安裝藍芽相關軟體包 sudo apt get update sudo apt get upgrade y sudo apt get dist upgrade y sudo apt get...
通過藍芽操作樹莓派
在前面的一些文章中,筆者曾使用usb網路共享的方式來操作樹莓派,但是這個操作還是很麻煩,所以筆者上網查了一下,摸索出了乙個用藍芽無線操作樹莓派的方法 首先,先開啟藍芽服務並設定為開機自啟 service bluetooth start update rc.d bluetooth enable接著,按...