raspberrypiとPCとの接続
RaspberrypiのBluetoothを有効にして、PCとペアリング。 古いPCにUSBのドングルを差したのだがこれもBT-MicroEDR1Xという骨董品で、Bluetooth ver2.1対応、つまりBLE非対応。
それでも、問題なくつながった。
ところが新しいPCでやってみたら、Windows7まではとても簡単だったのだが、Windows11になってやり方が分からず、またも基本にもどることに。
まずは、Bluetoothのまとめから。
Bluetoothの歴史
出典:Bluetooth とは何か? by 東芝情報システム
年 | Version | 特徴および追加機能 | classic | BLE |
---|---|---|---|---|
1999/7 | Bluetooth1.0 | |||
2003/11 | Bluetooth1.2 | AFH (adaptive frequency hopping)機能 Faster Inquiry / Faster Connection機能 eSCO (Enhanced SCO)機能 |
||
2004/11 | Bluetooth2.0 | +EDR(Enhanced Data Rate)機能:データ転送向上 | ||
2007/7 | Bluetooth2.1 | +EDR(Enhanced Data Rate)機能 Simple Paring機能 Sniff Subrating機能 |
||
2009/4 | Bluetooth3.0 | +HS(High Speed)機能:転送速度の高速化(無線LAN規格IEEE 802.11のMAC/PHY層を利用)機能 | ||
2009/12 | Bluetooth4.0 | Bluetooth Low Energy機能(低消費電力デバイス向けに、より省電力に特化した機能) | ||
2013/12 | Bluetooth4.1 | BLEにデータ転送を効率化する機能 BLEにLTEとの相互干渉を低減する機能 BLEに自動再接続機能 BLEに直接インターネット接続できる機能 BLEにセントラルとペリフェラル同時動作機能 |
||
2014/12 | Bluetooth4.2 | BLEに強度の高いセキュリティ機能 BLEにデータパケットサイズ(27バイト→251バイト)を拡張 |
||
2016/12 | Bluetooth5.0 | メッシュネットワーク対応機能を追加 BLEに転送速度の低速化/高速化機能 BLEに転送速度による通信範囲拡大機能 |
AFH (adaptive frequency hopping):
Bluetoothと同じ周波数帯(2.4GHz 帯)を利用する無線LANとの相互干渉を低減する機能
Faster Inquiry / Faster Connection:検索/接続の高速化機能
従来の1/5から1/10(3~4秒:Worst Case 10秒 → 0.2~0.5秒: Worst Case 2秒)
eSCO (Enhanced SCO):音質を向上する機能
ノイズ環境下でロスしたパケットを再送信するエラー訂正機能により、通信の効率化
音声データのビットレートを64Kbpsから100Kbpsに引き上げ、音質を改善
Simple Paring:
高速で簡単なペアリング(セキュリティも強化)機能
Sniff Subrating:
超低消費電力機能
プロファイル
出典:ムセンコネクト
略称 | 正式名称 | 機能 |
---|---|---|
A2DP | Advanced Audio Distribution Profile | 音楽再生用 |
AVRCP | Audio/Video Remote Control Profile | オーディオ・ビデオ機器制御用 |
DUN | Dial-Up Networking Profile | ダイアルアップ接続用 |
HFP | Hands-Free Profile | ハンズフリー用 |
HID | Human Interface Device Profile | マウス・キーボード入力用 |
HSP | Headset Profile | ヘッドセット用 |
MAP | Message Access Profile | メッセージ交換用 |
PBAP | Phone Book Access Profile | 電話帳アクセス用 |
SPP | Serial Port Profile | シリアル通信用 |
略称 | 正式名称 | 機能 |
---|---|---|
BLP | Blood Pressure Profile | 血圧値測定用 |
CGMP | Continuous Glucose Monitoring Profile | 連続血糖値モニタリング用 |
FMP | Find Me Profile | 置き忘れ防止用 |
HOGP | HID over GATT Profile | マウス・キーボード入力用 |
HRP | Heart Rate Profile | 心拍数測定用 |
IPSP | Internet Protocol Support Profile | Bluetoothテザリング用 |
PXP | Proximity Profile | 近接判定用 |