Community Translation - Bluetooth Class of Device - KBA230689

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,               

I would like to translate KBA230689 into Japanese.

Please confirm to my work.

Thanks,

Kenshow

0 Likes
2 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Kenshow-san

Confirm to work this KBA.

Thanks

Jenna

Jenna Jo
0 Likes
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi Jenna-san,

                                

Japanese translation was over.
Please check below.

Original KBA:

Bluetooth Class of Device - KBA230689

Thanks.

Kenshow

==============================

タイトル: デバイスの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 GroupWebサイトにあります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つです。

CYW20719B2CYW20721B2などの新しいチップの場合、ピアデバイスのデバイスクラス(CoD)を取得するために、新しいAPISDKに追加されました。

ピアデバイスのFHSパケットを受信すると、ピアデバイスのCoDが受信されることに注意してください。ピアデバイスのFHSパケットは、照会中または着信接続中に受信されます。ピアデバイスのCoDが不明な場合、APICoD = 00 00 00 を返します。

APIのプロトタイプは次のとおりです。

wiced_result_t wiced_bt_dev_get_device_class(wiced_bt_device_address_t bdaddrwiced_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

Kenshow

0 Likes