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.

LAUNCHXL-CC2650: How To Read/Write To a custom Characteristics.

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: BLE-STACK, CC2650

Hello Guys,

I'm newbie to to TI BLE Stack 5, I exported Simple Peripheral Project in IAR and try to understand it...i have trouble in understanding some points:

1. How to make  Custom Characteristics.

2. Reading/Writing Custom Characteristics and Extracting Data from that for further application use.

3. What will be the maximum number of data bytes i can write to an custom characteristics.  

4.Please provide me a simple flow of "Simple_Peripheral project", i mean when data is written by outside device which function will be called and so on.

5.How to make OWN projects in IAR using TI BLE stack 5 with all configuration overview.

6.If any video link demonstrating these thing are available please share me.

Any help will be appreciable, Thanks In advance. 

  • Hi Suresh,

    Please refer to this collateral for more information on the topic 1-3,

    For question 4, please refer to GATT documentation (to understand flow).

    For 5, I suggest making use of one of the base project examples. Creating a project from scratch is not trivial.

  • I Have ported ProjectZero Project On IAR because IAR IDE have a good feature "Go to Definition" so it is easy for me to undestand the flow of code everything working except " Log_info1()" That prints data on UART.
  • hello guys, I am working on Project zero That I have Ported From Poject Zero Of Code Composer Studio ......Everything working same as in CCS except Printing Log Information On Uart Terminal by " Log_info1()" . Kindly Suggest Me How To enable it to print on UART Terminal.
  • Hi Suresh,

    I don't understand which projects and/or versions and/or devices you are using, your information is a bit contradictory. Please fill in the blanks below:

    Device:
    Development board:
    Example project:
    SDK (e.g. simplelink_cc2640r2_sdk_1_35_00_33)
    SDK component: (e.g. blestack, ble5stack, drivers, etc)
    BLE-Stack Version # (get this from docs/<component>/release_notes)
    IDE/Toolchain with version # (e.g. CCS 8.0 + TI ARM Compiler 18.1.1LTS, IAR 8.20.2):
    XDCTools version:

    Best regards,
    Aslak
  • Hi Aslak,

    i am using  CC2650 LaunchPad, But Firstly, i had build "simple_peripheral" of IAR, then By changing its source file and by adding some profiles from ProjectZero, Now My "simple_peripheral" become "ProjectZero" on IAR. All these I have done is because of i'm bit familiar with IAR workbench. Every Things Work Fine Except " Log_info1()" function that prints log on UART.

    Actually All these things i am Doing is because, i have to learn about the flow of code e.g- if i'm going to write a characteristics from mobile application, then what will its  sequence of callbacks and function. Whats points to be Remembered to makes a custom profile and how it works. Currently i'm able to write 20 chars in a Characteristics, I need to Increase Number of Char in Characteristics for read/weite. i Had gone through some links given on web saying increase the MAX_PDU_SIZE but didn't  work. Kindly help me out and also suggest if any text book for implementing TI BLE Stack from scratch is Available,i'm inserting my workspace here,Thanks In advance.

    Device:  CC2650

    Development board:   CC2650 LaunchPadExample project:  ProjectZero(Using CCS) -->simple_peripheral(Using IAR)-->ProjectZero(Made For IAR)

    SDK  :  simplelink ble_sdk_2_02_01_18

    SDK component:  xdctools_3_31_01_33_core

    BLE-Stack Version : BLE-Stack™ Version: 2.2.1

    IDE/Toolchain with version : IAR C/C++ Compiler for ARM 8.32.3.193 (8.32.3.193)

  • Hi Suresh,

    Did you remember to include the UartLog header and implementation? Did you remember to add the idle function (responsible for flushing/printing) in the .cfg file, and other references to the functions in UartLog.c that are found in the cfg file? Did you remove the existing UART usage in the project you changed and instead change to the UartLog initialization found in project zero main?

    If you want to read/write more than 20 characters, this is exemplified in the project_zero application, in the data_service.c/h service. Please note that this does not apply to notifications (limited by MTU size) but read and write. I would also suggest, as did Joakim, that you have a look at SimpleLink Academy ( software-dl.ti.com/.../overview.html is the latest version for CC2650 ).

    Best regards,
    Aslak