Community Translation - Configuring BLE Central Device to work in a particular Scan and Connection Channel - KBA218992

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

cross mob
HiOm_1802421
Level 5
Level 5
Distributor - Marubun (Japan)
50 replies posted 50 questions asked 25 replies posted

Hi,

I tried to translate this KBA218992 into Japanese.

Configuring BLE Central Device to work in a particular Scan and Connection Channel - KBA218992

==========

タイトル:BLEセントラルデバイスを特定のスキャンおよび接続チャネルで動作するように構成する

質問:

BLEセントラルデバイスを特定のスキャンおよび接続チャネルで機能するにはどうやって構成しますか?

回答:

データチャネルマッピングを構成する API CyBle_GapGetChannelMap()CyBle_GapcSetHostChannelClassification() はありますが、スキャンチャネルマッピングを構成するAPIはありません。しかし、スキャンチャネルマッピングは具体的には BLE_BLELL_SCAN_CONFIG レジスタへの書き込みで構成できます。スキャンチャネルマップ構成を変更するには、 BLE_BLELL_SCAN_CONFIG レジスタのビット13, 14および15を変更します。

表1. BLE_BLELL_SCAN_CONFIG レジスタ ビット マッピング

ビット名前説明
15:13SCAN_CHANNEL_MAP

スキャン動作を有効にするアドバタイズチャネル

 ビット15: 1を設定 - チャネル39を使用する。

 ビット14: 1を設定 - チャネル38を使用する。

 ビット13: 1を設定 - チャネル37を使用する。

 デフォルト値:7 (すべて'1')

BLE_BLELL_SCAN_CONFIGレジスタの詳細については、CYBL10X6X Family: Programmable Radio-on-Chip With BLE (PRoC® BLE) Registers Technical Reference Manu... (167ページ) を参照。

例:

チャネル37をスキャンするには、CYBLE_EVT_STACK_ON イベントで CyBle_GapcStartScan() APIの前に以下のコードを使用します。

 #define CYREG_BLE_BLELL_SCAN_CONFIG_USER (*(uint32*) BLE_BLELL_SCAN_CONFIG)

 CYREG_BLE_BLELL_SCAN_CONFIG_USER = BLE_BLELL_SCAN_CONFIG_USER & 0xFFFF2FFF;

==========

BR,

Omoi

0 Likes
1 Reply
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello, Omoi-san

We receive your translation, it will be published to KBA to Community.

It will be reviewed internally.

After upload, You will receive the points as the word of KBA.

Due to the current volume of works (waiting review, etc.), Please bear with me for the delayed the response.

It could be delayed, but it will be processed soon.

Thanks for your contribution to CDC!

Will keep you update the status.

Thanks,

Jenna Jo

Jenna Jo