hciの実装 - Bluetoothで接続を作成する

hciの実装 - Bluetoothで接続を作成する

添付のC ++コードはhci_create_connectionでは成功しますが、hci_authenticate_linkでは失敗します。

int Connection = hci_create_connection(dev_descriptor, &bdaddr, htobs(ptype), 0, 0,
        &handle, 0);

int authenticate = hci_authenticate_link(dev_descriptor, handle, 0);

これら2つの関数の説明がないので質問します。

  1. hci_create_connectionは、ローカルBluetoothとリモートBluetoothデバイス間の接続ではなく、ローカルプロセッサとローカルBluetoothデバイス間の接続を作成しますか?

  2. hci_authenticate_link - この「リンク」とはどういう意味ですか?リンクという用語は、A点とB点の間の何かを意味すると仮定する。

どちらの機能も、Bluetooth経由でローカル(Raspberry Pi)とリモート(PC)間の接続を確立するために使用される初期/最初のhci機能の1つです。

私は彼らがローカルプロセッサ間の接続/関係の一部であると考え、ローカルとリモートのBluetoothデバイス間の実際の接続設定に近いわけではありません。私は「近くのBluetoothデバイス」を探し始める前に、「ローカル」接続を操作/認証する方が良いと仮定します。

ベストアンサー1

おすすめ記事