- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I would like to translate KBA230689 into Japanese.
Please confirm to my work.
Thanks,
Kenshow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Kenshow-san
Confirm to work this KBA.
Thanks
Jenna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jenna-san,
Japanese translation was over.
Please check below.
Original KBA:
Bluetooth Class of Device - KBA230689
Thanks.
==============================
タイトル: デバイスのBluetoothクラス - KBA230689
バージョン:**
質問:
BluetoothクラスのデバイスをBTBLEチップに設定するにはどうすればよろしいでしょうか?
回答:
デバイスのBluetoothクラスとは何ですか?
デバイスのBluetooth クラスは、BR/EDR物理トランスポートのデバイス検出手順中に受信されるパラメータで、デバイスのタイプを示します。Cデバイスのクラスパラメータは、BR/ED物理トランスポートを使用するBR/EDRおよびBR/EDR/LEデバイスでのみ使用されます。これは、Bluetooth CoD とも呼ばれます。
Bluetooth CoDは、メジャーサービスクラス、メジャーデバイスクラス、およびマイナーサービスクラスの指定で構成されています。CoDビットの詳細の詳細リストと他のBluetooth関連仕様へのリンクは、Bluetooth Special Interest GroupのWebサイトにありますhttps ://www.bluetooth.com/specifications/assigned-numbers/baseband/をご参照ください。
Bluetooth CoDは通常16進数で表示されます。ただし、バイナリを使用して作成されています。デバイスまたはピアデバイスのBluetooth CoDを把握するために、16進数を2進数に、2進数を16進数に変換するために利用できるサードパーティ製の変換ツールは数多くあります。
Bluetooth CoDの設定方法は?
Bluetooth CoDは常に24ビットです。BTチップの場合、wiced_bt_cfg_settings_t 構造体のwiced_bt_dev_class_t パラメータを設定することにより、SDKアプリケーションコードで設定できます。
例:
CoD 16進数値が0x000104(バイナリ000000000000000100000100)であるとすると、以下のようにwiced_bt_cfg_settings_t のデバイスクラスパラメータを設定する必要があります。
const wiced_bt_cfg_settings_t wiced_bt_cfg_settings =
{
:
.device_class = {0x00, 0x01, 0x04}、
:
}
ピアBTデバイスのCoDを取得する方法は?
ピアデバイスクラスは、BTM_PIN_REQUEST_EVTのイベントパラメータの1つです。
CYW20719B2、CYW20721B2などの新しいチップの場合、ピアデバイスのデバイスクラス(CoD)を取得するために、新しいAPIがSDKに追加されました。
ピアデバイスのFHSパケットを受信すると、ピアデバイスのCoDが受信されることに注意してください。ピアデバイスのFHSパケットは、照会中または着信接続中に受信されます。ピアデバイスのCoDが不明な場合、APIはCoD = 00 00 00 を返します。
APIのプロトタイプは次のとおりです。
wiced_result_t wiced_bt_dev_get_device_class(wiced_bt_device_address_t bdaddr、wiced_bt_dev_class_t * p_class_of_device);
参照:
コミュニティ:https : //community.cypress.com/message/211034#211034
BTコア仕様:https : //www.bluetooth.com/specifications/bluetooth-core-specification/
==============================
6-July-2020