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.

BLE Broadcaster Parameters

Other Parts Discussed in Thread: CC2540

Hi

I would like to write an application that use a Smart Phone that is equipped with BLE chip. Is it possible for an application, using the TI APIs, to Activate the BLE to act as a Broadcaster for a given  Duration (what is the granularity), or to Control it to act as an Observer for a given duration (what is the granularity).

Thanks

  • If you would like to communicate with a smart phone, you may not be able to use the CC2540 as an observer (the phone would need to have the capability to advertise for that to work), though the CC2540 certainly can be configured as a broadcaster or an observer. Simply change the advertising type in the peripheral role profile to non-connectible advertisements and start advertising. You can use an OSAL timer to set the amount of time that you want to continue advertising before stopping. To stop, just set the advertisement enabler parameter from TRUE to FALSE.

  • Hi Pinchas,

    I think you need to provide use with more information about the system you are describing. It sounds like you speak of two different Applications, one on a Smart Phone and one on a TI peripheral device such as the CC2540, and you want to enable BLE on the Smart Phone by sending something from the peripheral device, do I understand you correct?

    If so, I can tell you that it is not possible because both devices must have BLE enabled in order to find and connect to each other. What do you mean by "granularity"?

    BR

  • I think he / she calls "granularity" to the minimum step interval between two values, as some sort of resolution.

  • Anyway, the question he / she is asking is not as easy as placing things like the following in the right place?

    int temp = true;

        GAP_SetParamValue( TGAP_LIM_ADV_TIMEOUT , VALUE_YOU_WANNA_ADV_IN_MILLISECONDS );

        GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &temp ); 

     

    Please let me know if I have misreaded your question. But not in the next hour since I'm for a walk with my dog :)

  • Hello Nick

    Let me try to explain a bit more

    Assumne that there is a Smart phone equipped with TI BLE chip. My question is whether it is possible to have an application (using the standard APIs offered by TI for the control of the BLE CC2540) that will use the BLE in the smart phoe as follows

    For a certain duration of time (few seconds) ,to act as a Broadcaster,then switch to act as an Observer (and stay as an observer for few seconds, then Switch back to an Advertiser mode, and so on "forever"..Is it possible to do  under application software control. In case it is doable, how long will it take to perform the Switch from an Advertiser role inot an Observer role and from an Observer mode back into an Advertiser role.

    Thanks Pinchas.

  • Hi Pinchas,

    Yes, it is possible to switch between scanning and advertising with the CC2540. Unfortunately I dont have any figures for this yet.

    BR