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.
Tool/software: Code Composer Studio
Hi , i am uploading simple peripheral example code on the cc2652 rb launchpad. I want to transfer data from launchpad to android smartphone so as a first step i have uploaded the simpple peripheral example code onto the launchpad and verified the ble connection with android phone by simplelink started android application. But i donot see any data transfer mode in the application after successful connection.
Now what should be my next step, as i also dont see any source code file in the simplelink peripheral example which i can modify in order to implement changes.
Thanks,
shivam
I suppose you can refer to Simplelink Academy Bluetooth low energy Custom Profile to create your own attribute/characteristic to send data.
Okay thanks YK, i will refer to it.
Further is there any available example code in the SDK, that implements this functionality? SO that i can just check the capability and then later create my own custom profile.
I just want to verify the transfer of small data packet via BLE to android smartphone.
regards,
shivam
The simple_peripheral project implements a simple Bluetooth low energy peripheral device with GATT services and demonstrates the TI Simple Profile. This project can be a framework for developing many different peripheral-role applications. The Simple Peripheral project is used as the baseline for explaining the stack in the BLE5-Stack User's Guide.
Okay thanks for the detailed explaination.
So where do we need to make changes to develop different role applications?
Thanks,
shivam
Please refer your reply where you have mentioned different peripheral role applications.
The simple_peripheral project implements a simple Bluetooth low energy peripheral device with GATT services and demonstrates the TI Simple Profile. This project can be a framework for developing many different peripheral-role applications. The Simple Peripheral project is used as the baseline for explaining the stack in the BLE5-Stack User's Guide.
Please be specific when you ask questions. My reply is peripheral-role application and It’s clear that simple_peripheral can be used as a base to implement BLE peripheral role application.
Okay YK, to be specific i am asking where in the simple peripheral, in which file i need to do changes in order to implement BLE peripheral role applications. I am not asking which roles. I am asking where to edit to implement a BLE data server for android smartphone.
One launchpad runs simple_serial_socket_server and another runs simple_serial_socket_client to make them work together.
Okay so i will upload simple serial socket server to my launchpad and android phone will act as client.
But how can i use these codes, are they present in simple link SDK? I dont see it in the examples.
TI only provide both source code for running simple_serial_socket_server and simple_serial_socket_client on launchpad. If you want to do it on Andriod to act as client, you have to implement it by yourself.
I meant this code is not present in example section of cc2652 sdk as examples of simple peripheral and others are present.
How can i use them in CCS IDE?
Hi,
You need to download the code from the GitHub repository. Then you will be able to import the example into CCS.
To complete one of the previous answer, the README file of the server example explains how to use the example with Bluefruit LE Connect mobile application (note: Bluefruit LE Connect is not owned by TI)
I hope it will help,
Regards,
It seems from github page that the code is written for CC26X2R1_LAUNCHXL , will it work for CC2652?
Hi,
This is a good point. If you compile the code for CC26X2R1_LAUNCHXL, the hex file won't work on CC2652RB.
That being said, porting an example from CC26X2R1_LAUNCHXL to CC2652RB does not require much work (in that case, I recommend starting from the simple_peripheral example then copy the content of the application code without forgetting to modify SysConfig).
For a first proof of concept, I recommend you to use CC26X2R1_LAUNCHXL, it will save you a bit of time.
Best regards,
Thanks for the detailed response. Do i need to copy all the contents of application or only the simple_peripheral.c will do?
I don't have CC26X2R1_LAUNCHXL :D , however i have cc2650 with me.
Okay, is there any resource which explains the contents of Project_Zero and simple_peripheral examples in detail.
Thanks,
shivam