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.

LP-CC2652RB: Transmitting file data to the android enabled smartphone using BLE

Part Number: LP-CC2652RB
Other Parts Discussed in Thread: CC2652RB

Hi team,

Good day! I am posting this inquiry in behalf of the customer. 

I am using TI CC2652RB LP for my development. We need to create a custom BLE profile for transmitting File data to the android enabled smartphone using BLE. It can be either complete file transfer or reading the file character by character and transmitting it. Till now I have successfully tested the characteristic read and write via project zero in simple link tutorial.

How I can just write a characteristic on a GATT client continuously without reading from the client side?

Thank you so much in advance for the support. 

Kind regards,

Jonathan

  • Jonathan,

    I think the best starting point is the Custom Profile module of the SimpleLink Academy. It contains a step-by-step method to create a customized client profile.

    https://dev.ti.com/tirex/explore/node?node=AETVcTRqok2cbWCjbdtG5w__pTTHBmu__LATEST

    Hope this helps,

    Rafael

  • Hi Rafael,

    Thank you for the response. Our customer had a follow up question. Customer had followed the link you suggested

    dev.ti.com/.../node

    Kindly check customer's inquiry below:

    I have completed till task 4 , but unable to do task 5 can you suggest me where i exactly need to make changes either in projectzero.c or sunlightservice.c. Please refer the attached image ,in which i need to complete step 1 ,2 & 3. Where i can find code example Update and Notify and the explanation. Could you attach a screenshot for where i need to changes for step 2.

    We are looking forward to your response. Thank you. 

    Kind regards,

    Jonathan

  • Jonathan,

    The solution is shown in the blue bar named Expand to see solution files at the beginning of Task 1. They contain the entire code for the custom profile.

    Hope this helps,

    Rafael

  • Hi Rafael,

    Kindly check once again for our customer's concern below. 

    The code in the blue bar is for custom profile till task 4 in the custom profile tutorial not for task 4. Kindly attach an image for task 5 steps 2 & 3, where i should add a call to GATTServApp_ProcessCharCfg(..) and SetParameter function. 

    I have added the code you are telling in blue bar, but the value is not getting updated it remains stuck at initial value that I write. Please tell what changes i need to do in order to update it.

    Looking forward to your response. Thank you.

    Best regards,

    Jonathan

  • Jonathan,

    Jonathan Navor said:
    I have added the code you are telling in blue bar, but the value is not getting updated it remains stuck at initial value that I write. Please tell what changes i need to do in order to update it.

    I just want to give you a heads up; I will be able to double-check this issue next Monday.

    Regards,

    Rafael

  • Jonathan,

    I did some investigation and have a few details that may help the customer move forward.

    Per the description the customer was able to complete up to task 4 step 4

    1. at step 2 of Task 5, looking at the code in the blue bar (file <sunlightService.c> the syntax to the GATTServApp_ProcessCharCfg() is shown just below the comment "// Try to send notification" of the file

    2. at step 3 of Task 5, the code in the blue bar (file <project_zero.c>) shows the definition of the global variable myVar near the top of the file (in green).

    3. moving down in the same file above, you will reach the call to the SunlightService_SetParameter inside the function ProjectZero_handleButtonPress(), together with the increment in the variable.

    The solution files in the blue bar contain the rest of the code of the other task.

    Hope this helps,

    Rafael