Community Translation - Bluetooth® LE: Change advertisement and scan response data during advertisin

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

cross mob
keni_4440091
Level 7
Level 7
500 replies posted 100 solutions authored 50 solutions authored

Dear supporter

I want to translate the following KBA. Please confirm to my work.

Bluetooth® LE: Change advertisement and scan response data during advertising - KBA230308

Regards,

Nino

0 Likes
1 Solution

Dear Jenna

The following shows the translated version in Japanese for targeted KBA.

Please conform and double check.

Regards,

Nino

-------------------------------------------------------------------------------------------

Bluetooth® LE: 広告の変更や広告中の応答データをスキャン – KBA230308

 

Version: **

 

影響する製品: AIROC Bluetooth® LEを備えたPSoC 4およびPSoC 6 MCU

 

Bluetooth® LE GAPペリフェラルの役割では、以下にようなAPIを使用してデバイスが広告中に広告を変更し、応答データをスキャンできます:

 

AIROC Bluetooth® LEを備えたPSoC 4 CY8C4x47xx-BL-xxxxでは:

CyBle_GapUpdateAdvData API関数は、広告を設定し、広告が進行中の間に応答データをスキャンするために使用されます。このAPI関数は、CyBle_GetBleSsState()がCYBLE_BLESS_STATE_EVENT_CLOSE状態を返す時に呼び出される必要があります。以下のサンプルコードセグメントを参照してください:

 

if(CyBle_GetBleSsState() == CYBLE_BLESS_STATE_EVENT_CLOSE)
     {
        /* Update the ADV and Scan Response data */
        cyBle_discoveryModeInfo.advData->advData[5]=0x06;
        cyBle_discoveryModeInfo.scanRspData->scanRspData[5]=0x05;
        /* Update the ADV and Scan Response data */
        CyBle_GapUpdateAdvData(cyBle_discoveryModeInfo.advData,
        cyBle_discoveryModeInfo.scanRspData);

     }

 

AIROC Bluetooth® LE を備えたPSoC 6 CY8C63x7 MCUでは:
Cy_BLE_GAPP_UpdateAdvScanData API関数は、広告を設定し、広告が進行中の間、応答データをスキャンするために使用されます。この動作の完了で、GAPペリフェラルアプリケーションは、CY_BLE_EVT_GAPP_UPDATE_ADV_SCAN_DATA_COMPLETEイベントを受け取ります。このAPI関数は、Cy_BLE_StackGetBleSsState()がCY_BLE_BLESS_STATE_EVENT_CLOSE状態を返す時に呼び出される必要があります。以下のサンプルコードセグメントを参照してください:

 

     if(Cy_BLE_GetAdvertisementState() == CY_BLE_ADV_STATE_ADVERTISING)
     {
        if(Cy_BLE_StackGetBleSsState() == CY_BLE_BLESS_STATE_EVENT_CLOSE)
        {
           /* Updating the ADV and SCAN Response data */
           cy_ble_discoveryModeInfo->advData->advData[5]='A';
           cy_ble_discoveryModeInfo->scanRspData->scanRspData[5]='A';
           /* Updating the ADV and SCAN Response data */
           Cy_BLE_GAPP_UpdateAdvScanData(cy_ble_discoveryModeInfo);
        }
     }

 

Labels   MCU & PSoC: PSoC 4 BLE MCU & PSoC: PSoC 6

Tags: advertisement ble broadcasting data over air dynamic advertisement. dynamic broadcasting gap peripheral proc Scan response data update wireless wireless usb

Add tags

View solution in original post

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

Hi, Nino-san

Confirm to work this KBA.

Thanks. 

Jenna Jo
0 Likes

Dear Jenna

The following shows the translated version in Japanese for targeted KBA.

Please conform and double check.

Regards,

Nino

-------------------------------------------------------------------------------------------

Bluetooth® LE: 広告の変更や広告中の応答データをスキャン – KBA230308

 

Version: **

 

影響する製品: AIROC Bluetooth® LEを備えたPSoC 4およびPSoC 6 MCU

 

Bluetooth® LE GAPペリフェラルの役割では、以下にようなAPIを使用してデバイスが広告中に広告を変更し、応答データをスキャンできます:

 

AIROC Bluetooth® LEを備えたPSoC 4 CY8C4x47xx-BL-xxxxでは:

CyBle_GapUpdateAdvData API関数は、広告を設定し、広告が進行中の間に応答データをスキャンするために使用されます。このAPI関数は、CyBle_GetBleSsState()がCYBLE_BLESS_STATE_EVENT_CLOSE状態を返す時に呼び出される必要があります。以下のサンプルコードセグメントを参照してください:

 

if(CyBle_GetBleSsState() == CYBLE_BLESS_STATE_EVENT_CLOSE)
     {
        /* Update the ADV and Scan Response data */
        cyBle_discoveryModeInfo.advData->advData[5]=0x06;
        cyBle_discoveryModeInfo.scanRspData->scanRspData[5]=0x05;
        /* Update the ADV and Scan Response data */
        CyBle_GapUpdateAdvData(cyBle_discoveryModeInfo.advData,
        cyBle_discoveryModeInfo.scanRspData);

     }

 

AIROC Bluetooth® LE を備えたPSoC 6 CY8C63x7 MCUでは:
Cy_BLE_GAPP_UpdateAdvScanData API関数は、広告を設定し、広告が進行中の間、応答データをスキャンするために使用されます。この動作の完了で、GAPペリフェラルアプリケーションは、CY_BLE_EVT_GAPP_UPDATE_ADV_SCAN_DATA_COMPLETEイベントを受け取ります。このAPI関数は、Cy_BLE_StackGetBleSsState()がCY_BLE_BLESS_STATE_EVENT_CLOSE状態を返す時に呼び出される必要があります。以下のサンプルコードセグメントを参照してください:

 

     if(Cy_BLE_GetAdvertisementState() == CY_BLE_ADV_STATE_ADVERTISING)
     {
        if(Cy_BLE_StackGetBleSsState() == CY_BLE_BLESS_STATE_EVENT_CLOSE)
        {
           /* Updating the ADV and SCAN Response data */
           cy_ble_discoveryModeInfo->advData->advData[5]='A';
           cy_ble_discoveryModeInfo->scanRspData->scanRspData[5]='A';
           /* Updating the ADV and SCAN Response data */
           Cy_BLE_GAPP_UpdateAdvScanData(cy_ble_discoveryModeInfo);
        }
     }

 

Labels   MCU & PSoC: PSoC 4 BLE MCU & PSoC: PSoC 6

Tags: advertisement ble broadcasting data over air dynamic advertisement. dynamic broadcasting gap peripheral proc Scan response data update wireless wireless usb

Add tags

0 Likes
IFX_Publisher2
Community Manager
Community Manager
Community Manager
1000 replies posted First like given 750 replies posted

Hi,   Nino- san,

Confirmed to receive this KBA.

Thank you for your contribution.

Thanks,
Bindu

0 Likes