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 - send msg fuction

Other Parts Discussed in Thread: CC2540

hello everyone,

I'm working with CC2540 DK, I'm begginer hardware program and cc2540 bluetooth also.

I have followed swru270a.pdf(cc2540 DK user's guide), I can't know about data sending and receiving.

In the user's guide, only GATT service profile and read/write method using characteristic value or UUID are presented.

but I want to send some custom data from usb dongle ( I'm making program like BTool using java example) to keyfob.

and then, I want to control keyfob as received custom data values.

 

Is there any fuction or example code or documents for custom data sending or receiving in established state ??

If, may I use only GATT service profile, what is sub-procedures for my purpose ??

and I want to know keyfob souce code position or file name to implement the receving data event.

Any comments will be help to me. thanks for reading. hardware development is very hard work  T T ~

 

  • Hello,

    To send custom data, you will need to create GATT table entry - and then send/receive it with read/write or notification/indications.  To get started, I would recommend modifying SimpleBlePeripheral to add another entry in the GATT table and then see if you can read it using Btool.  

    Good Luck

    -Greg

  • Hello, GregS

    When I modified SimpleBlePeriphral to send data, i found that only 19 bytes i can send out.

    I want to know that whether only send less than 19 bytes of data can I send?

    Thank you !

    -Will