Community Translation - Counting the Number of ADV Packets Sent Over the Air During Advertisement in PSoC6 BLE – KBA228410

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 KBA228410 into Japanese.

Counting the Number of ADV Packets Sent Over the Air During Advertisement in PSoC6 BLE – KBA228410

==========

タイトル:PSoC6 BLEでアドバタイズメント中に無線送信されるADVパケットの数をカウントする

PSoC 6 BLEでCy_BLE_SetCustomEventMask(uint32_t mask) API関数を利用して、無線送信されるアドバタイズパケットの数を数える事が出来ます。

このAPIは、BLEミドルウェア PDLドキュメントを参照してください。

PSoC CreatorでBLEコンポーネントを右クリックし「Open PDL Document」を選択、又はC:/Program Files(x86)/Cypress/PDL/3.1.0/doc/ble_api_reference_manual/html/index.htmlを開いてください。

使用法:

BLE通信を開始した後、CY_BLE_EVT_STACK_ONイベントで、Cy_BLE_SetCustomEVentMask(uint32_t mask)関数をmask値CY_BLE_ADV_TX_EVENT_MASKで呼び出します。

case CY_BLE_EVT_STACK_ON:

     apiResult = Cy_BLE_GAPP_StartAdvertisement(CY_BLE_ADVERTISING_FAST, CY_BLE_PERIPHERAL_CONFIGURATION_0_INDEX);

     apiResult = Cy_BLE_SetCustomEventMask(CY_BLE_ADV_TX_EVENT_MASK);

break;

この関数呼び出しが成功すると、イベントコールバック関数でCY_BLE_EVT_SET_EVENT_MASK_COMPLETEが生成されます。

case CY_BLE_EVT_SET_EVENT_MASK_COMPLETE:

break;

アドバタイズメント中に各ADVパケットが送信されると、CY_BLE_EVT_GAP_ADV_TXイベントが生成されます。

注意:

アドバタイズメントイベントで発生するCY_BLE_EVT_GAP_ADV_TXイベントの数は、選択したアドバタイズメントチャネルの数に依存します。

==========

BR,

Omoi

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

Hello

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

I will get back to you after internal review, after that you will receive the point.

Please bear with me for the delayed the response,

Thanks for your contribution to CDC!

Will keep you update the status.

Thanks,

Jenna Jo

Jenna Jo
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello, Omoi-san

PSoC6 BLEでアドバタイズメント中に無線送信されるADVパケットの数をカウントする- KBA228410- Community Translated (JA)

Your translation has been released.

Sorry for the delayed response.

You will be receive the point as a token of appreciation.

Thanks for your contribution.

Regards,

Jenna

Jenna Jo
0 Likes