Part Number:CC2540
Hi there,
we are currently developing a BLE Beacon Hardware and want to use the CC2540. Please keep in mind that this is our first ride with TI and BLE.
The beacon should have the following features:
- on a hardware button press it should act as peripheral so a wireless configuration is possible
- advertising of different beacon formats at the same time:
- iBeacon
- eddystone (TLM, EID)
- probably some proprietary format in the future
- low energy needs (has to run of batteries for quite some time)
We have no problems regarding hardware design but ran in to some insecurities/uncertainties with the software side of the project.
Currently we are working with IAR Workbench and BLE stack 1.4.2.2
For a first prototype we want to use the simpleBLEperipheral example and add broadcaster functionality.
Here are some questions regarding the implementation:
1. is the CC2540 capable of our desired features?
2. utilizing OSAL and the build in BLE stack, is there a simple way to switch between modes to use pre configured profiles (ie. peripheral and broadcaster)?
3. in the simpleBLEbroadcaster example: what is the best way to change advertising payload (advertData) between advertising frames? There seems to be no straight forward way to have the main program react on a send/finished advertising frame. We would need that to change the beacon mode (iBeacon/eddystone/proprietary) and to check if the eddystone EID is still valid.
4. in the simpleBLEbroadcaster example: what is the best way to have telemetry data (TLM) send out but only after a longer delay? We considered a timer to send a OSAL msg or count advertising frames and add the data every other frame.
I hope its clear what we want to do.
Thank you for your help!