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.

Keyfob –CC2541DK-Mini Development kit -add event

Other Parts Discussed in Thread: CC2541DK-MINI, CC2541, CC2540

I have Keyfob –CC2541DK-Mini Development kit 

1.      need to add few more events at the CC2541 keyfob unit to the present keyfob working code and the same has to be activated from the master unit (CC2540 USB- connected to PC)

(similar to accelerometer – enable /disable from the master and receive the data via master if enabled at the keyfob unit)

Q: which section of the code we can modify

 

2.       At the USB side we would like to add few more Characteristic value handle and Value apart from what is available as default –

Q: which section of the code we can modify

 

3.       At the BLE-CC254x-1.4.0 software bundle for IAR  environment we find the CC2541 and CC2540 with common source files.

\\BLE-CC254x-1.4.0\Projects\ble\KeyFob\CC2541DB\ KeyFobDemo.eww

\ \BLE-CC254x-1.4.0\Projects\ble\KeyFob\CC2540DB\ KeyFobDemo.eww

\ \BLE-CC254x-1.4.0\Projects\ble\KeyFob\Source

Q:

a.       Hope the \ \BLE-CC254x-1.4.0\Projects\ble\KeyFob\CC2540DB\ KeyFobDemo.eww is used for the USB dongle unit (CC2540)

b.      Hope we can not have the same work directory to modify both  the keyfob unit (CC2540) and USB unit(CC2540) source code and needs to be a separate working director for each due to common C source  files.

 

Thanks for the reply

  • The SW developer's guide (included with the SDK and linked from the start menu) should give you a good overview of the SW architecture and project structures.

    To clarify- the HostTestRelease project is what runs on the USB dongle. The KeyFobDemo application runs on the CC2540/41 Keyfob (the device which has two buttons and operates on a coin cell battery).

    The easiest way to add additional characteristics is to go into the SimpleGATTProfile code, and add additional elements to the array to create more attributes. If you follow the examples of GATT services in the various sample applications you should be in good shape.

  • hi Wills.

    thanks for the information, will work on the same and revert back.