This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC256XSTBTBLESW: Pass data in Connectionless mode example

Part Number: CC256XSTBTBLESW

 I use the Dual-Mode Bluetooth® Stack on STM32F4 MCUs as my reference design.

What I want  to do is sending data to a client but without pairing, mean connectionless mode. I know it can be done by using the advertising mode and enter the data inside the Description Data.

I have several question about it.

1. Is there an example that can be adopt to the Dual-Mode configuration by using the HCI STM32F4 all ready use?

2. If there isn't one, is it logical to use the function static int AdvertiseLE(ParameterList_t *TempParam) as its written in the PXPDemo (maybe in some other too) and plant the data inside this buffer Advertisement_Data_Buffer.AdvertisingData.Advertising_Data[n] (n represent the array I use)?

3. If I can use the above what type of advertisement I should use for connectionless, and what parameters to write specifically here GAP_LE_Advertising_Enable(BluetoothStackID, TRUE, &AdvertisingParameters, &ConnectabilityParameters, GAP_LE_Event_Callback, 0);?

4. Any article that give hints how the best way to do connectionless between client and server with low data quantity and low power usage.

Thanks

Bar.

  • Hi,

    Bar Strauss1 said:
    1. Is there an example that can be adopt to the Dual-Mode configuration by using the HCI STM32F4 all ready use?

    Yes, pls consult iBeacon demo example

    Bar Strauss1 said:
    2. If there isn't one, is it logical to use the function static int AdvertiseLE(ParameterList_t *TempParam) as its written in the PXPDemo (maybe in some other too) and plant the data inside this buffer Advertisement_Data_Buffer.AdvertisingData.Advertising_Data[n] (n represent the array I use)?

    Yes, that's the right way to do it

    Bar Strauss1 said:
    3. If I can use the above what type of advertisement I should use for connectionless, and what parameters to write specifically here GAP_LE_Advertising_Enable(BluetoothStackID, TRUE, &AdvertisingParameters, &ConnectabilityParameters, GAP_LE_Event_Callback, 0);?

    This is application dependent . You can use connectable / non connectable direct/indirect advertisement types . For more details pls consult iBeacon , SPPLE demo  

    Thanks

    Saurabh

  • Thanks Saurabh for your help.

    So if I take your advice for answer 1 (take the iBeacon Demo App) and for Advertising only use the AltBeacon standard (because I want more bytes for data)

    I make a mix of two functions.

    1. I take from the iBeaconDemo in function static int AdvertizeIbeacon(ParameterList_t *TempParam) the advertising parameters and Connectability parameters use in function GAP_LE_Advertising_Enable(BluetoothStackID, TRUE, &AdvertisingParameters, &ConnectabilityParameters, GAP_LE_Event_Callback, 0);

    2. I take from the PXPDemo in function static int AdvertiseLE(ParameterList_t *TempParam) the Set the Advertising Data where the parametrs take from here  specific the 26 AllBeacon bytes start at 1 byte AD length and 1 byte AD type written to the Advertisement_Data_Buffer.AdvertisingData.Advertising_Data[n] .

    If this is the way I have some questions.

    1.In the article show above, there is a BLE Advertising PDU struct start at 1 byte Preamble 4 bytes Access Address (in blue) till my AllBeacon advertising (in green which I build ). Does the blue part made automatic and when I set the function GAP_LE_Advertising_Enable ? and if it the some parametrs in any application like PXPDemo or iBeaconDemo and it is parameters dedicate for advertising not depend on the application after it?

    2. As I see in the iBeaconDemo the TX power wasn't take from the device RF part but place manually. This is not as real in the iBeacon application where a real TX power needed for location. Is there an example show how and when to take the TX power receive in the BLE chip?

    Bar.

  • Any suggest?