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.

Costum profile

Other Parts Discussed in Thread: CC2541

Hi

I need to create a costum profile (I use SensorTAG project)

GATT service: costum UUID

1. Device characteristic
2. Data characteristic

The CC2541 is able to transmit 22 characters in one package the costum UUID is transmitted without problems.

The device characteristic i need to send: Abc01:797c71a1-aa59-49a7-88dd-286bd75564af

is more than 22 characters thansmitted in this variable: MAGNETOMETER_DATA_LEN

#define MAGNETOMETER_DATA_LEN           22

How can i transmit all characters at once ?

The data characteristic are also more than 22 charcters but can olso only be send as on package

#define MAGNETOMETER_DA                 22

I there a function for transmitting more than 22 bytes ?

Kind regards

Christian

  • I think you can't send more than 20 bytes of data over BLE using TI's BLE Stack 1.4.0 with CC2541. You need to make packets of 20 bytes and send it. And on the receiving side you need to regenerate it.

  • Thanks for reply.

    Do you have an example of how to transmit 2 packages after eachother ?

    I need an iPhone to receive the packages

    I have wirtten some test software transmitting: 3acb-algg-51:1402922405.84enc-algo-10:1402922405.56enc-algo-12:1402922404.88

    I have transmitted packages iphone to iphone with 77 bytes. This is working with extended

    packages and the package are put together automatically.

  • You can refer some sample codes comes with BLE Stack 1.4.0. You can find it @ "<installed dir>\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble".

    Hope this helps.