1. ホーム
  2. ナレッジ・ベース
  3. Mixtile Edge 2
  4. 申し込み
  5. Debian 10 アプリケーション - Bluetooth を使う

Debian 10 アプリケーション - Bluetooth を使う

Edge 2/Edge 2 KitはWi-FiとBluetoothをサポートするAMPAK AP6275Sモジュールを使用しています。このインストラクションでは、Edge 2/Edge 2 Kit 製品で Debian 10 システムを使う場合の Bluetooth の使い方を紹介します。

Step 1: 以下のコマンドでBluetoothのドライバをロードする:

brcm_patchram_plus1 -d --enable_hci --no2bytes --tosleep 200000 --baudrate 1500000 --patchram /system/etc/firmware/BCM4362A2.hcd /dev/ttyS8 &...

ステップ 2: ブルートゥースを開く

hciconfig hci0 up

ステップ3:Bluetoothの状態を確認する

hciconfig -a

ステップ4:Bluetoothデバイスをスキャンする

hcitool scan

ステップ5(オプション):より多くの機能のためにbluezをインストールする:

sudo apt-get install bluez bluez-hcidump

システム起動時にブルートゥースを有効にしたい場合は、以下のように設定する必要があります:

ステップ6:このスクリプトをダウンロードして置く enablebluetooth.sh への /etc/init.d/ フォルダー

ステップ7:このファイルをダウンロードして置く rc.local への /etc/ フォルダー

あるいは、以下の内容を追加することもできる。

/etc/init.d/enablebluetooth.sh start

このファイル"/etc/rc.local "に手動で追加すると、次のようになる:

#!/bin/sh -e
#
# rc.local
# 
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# 
# In order to enable or disable this script just change the execution
# bits.
# 
# By default this script does nothing.

# Generate the SSH keys if non-existent

if [ ! -f /etc/ssh/ssh_host_rsa_key ]
then
# else ssh service start in dpkg-reconfigure will fail
systemctl stop ssh.socket||true
dpkg-reconfigure openssh-server
fi

/etc/init.d/enablebluetooth.sh start

exit 0

ステップ 8: ファイルに実行権限を与える "enablebluetooth.sh"と"rc.local「以下のコマンドを使用する:

sudo -i

chmod +x /etc/rc.local

chmod +x /etc/init.d/enablebluetooth.sh

reboot
この記事は役に立ちましたか?

関連記事

サポートが必要ですか?

お探しの答えが見つかりませんか?
サポート