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.

CC2540 BLE 8051 Core

Other Parts Discussed in Thread: CC2540

I'm currently designing a project using the CC2540 BLE system on a chip. I have received the mini dev kit from TI, but I have several questions. First a little project overview. The project is going to use a Android based tablet which will transmit  via BLE protocal (from USB provided with the mini DEV kit since standard Bluetooth will not communicate with BLE) files. The file being transmitted is a loader file used to load code in xx system.

1.  What is the proceedure to send data from the slave device, which is the embedded device. I think I just write the data to the RFD pointer defined in the CC2540.h header file? I also heard that only 20 bytes of data can be transferred at at time, is this correct?

2.  Currently I have most of the code written to perform the read/write functions to and from the system through port 0 and port 1. The next task is to communicate with the BLE stack. Is there an easy or description of how to do this. The simple BLE peripheral program looks complex and I'm not sure if I need all that.

I think I just need to chage the attribute or possible add attributes to the stack to perform data transfer.

3.  Is there a proceedure to write data to the BLE stack?

4.  Which .h files would I need to perform BLE stack reads/writes?

Thanks for your help

Mike

  • 1. No, you should not use the RFD pointer defined in CC2540.h. You will want to use a GATT profile and the BLE protocol stack. Please refer to the software developers guide for more information on profile and BLE. The simpleGATTprofile included with the stack and simpleBLEperipheral application should serve as a good starting point.

    2. See answer above. All data communications in BLE must go through the GATT layer of the stack, and the simpleBLEperipheral application and simpleGATTprofile provide a good example of this. You can modify the profile or create your own profile with characteristics representing the data to be sent over the air.

    3. All BLE communications occur using GATT. As a server you must create a GATT profile or use one of the existing profile to send data. As a client you can use the GATT sub-procedures whose prototypes can be found in gatt.h

    4. If acting as a GATT server, then gattservapp.h is needed. If acting as a GATT client, then you can use the prototypes in gatt.h.

  • Willis,

    Do you think you could give an example of the steps needed to start a new BLE project? I think it would help not only me but also ohters having trouble.

    If you could list the required steps from starting the OSAL to writing data over the air and the headers/files needed.

    Also is there any training coures available for the CC2540 BLE chip?

    Thanks,

    Mike