📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)
| 224行目: | 224行目: | ||
Bluetoothの設定では、UIを使用する方法 および コマンドを使用する方法の2つがある。<br> | Bluetoothの設定では、UIを使用する方法 および コマンドを使用する方法の2つがある。<br> | ||
<br> | <br> | ||
# Bluetoothデバイスの状態を表示 | |||
hciconfig | hciconfig | ||
# Bluetoothインターフェースを起動 | |||
sudo hciconfig hci0 up | sudo hciconfig hci0 up | ||
# 認証なしモードに設定 | |||
hciconfig hci0 noauth | hciconfig hci0 noauth | ||
# 近くのBluetoothデバイスを検索 | |||
hcitool scan | hcitool scan | ||
# Bluetoothデバイスをシリアルポートに紐付け | |||
sudo rfcomm bind /dev/rfcomm0 xx:xx:xx:xx | sudo rfcomm bind /dev/rfcomm0 xx:xx:xx:xx | ||
# シリアルポート経由でデータを送信 | |||
sudo cat >/dev/rfcomm0 | sudo cat >/dev/rfcomm0 | ||
<br><br> | <br><br> | ||