> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get autoremove
> sudo atp-get install bluetooth bluez-utils blueman
2. 確認藍芽是否正常運作
> lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0a5c:200a Broadcom Corp. BCM2035 Bluetooth dongle
> /etc/init.d/bluetooth status
[ ok ] bluetooth is running.
3. 掃描其他藍芽裝置
> hcitool scan
Scanning ...
78:A3:*:*:*:22 iphone4 (找到開啟藍芽的iPhone4, 您掃描到的裝置MAC Address 78:A3:*:*:*:22應該不同)
4. Ping一下其他藍芽裝置 (本例為iPhone4)
> sudo l2ping -c 3 78:A3:*:*:*:22
(輸入掃描到的裝置MAC Address 78:A3:*:*:*:22)
Ping: 78:A3:B4:97:A0:22 from 00:02:*:*:*:D4 (data size 44) ...
44 bytes from 78:A3:*:*:*:22 id 0 time 204.29ms
44 bytes from 78:A3:*:*:*:22 id 1 time 89.52ms
44 bytes from 78:A3:*:*:*:22 id 2 time 80.71ms
3 sent, 3 received, 0% loss
#
2 則留言:
您好
我在/etc/init.d/的目錄下沒有找到bluetooth這檔案,所以執行時顯示,no such file
謝謝
也許bluetooth沒安裝成功,可以再執行一次apt-get install bluetooth確認是否安裝成功。
另外就直接用笨方法 sudo find / -name "bluetooth*" -print 找找bluetooth放在哪個目錄下。
張貼留言