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.

CCS/LAUNCHXL-CC1352P: CC1352P-2 : Application to collecte data with BLE

Part Number: LAUNCHXL-CC1352P
Other Parts Discussed in Thread: LPSTK-CC1352R, CC1352R

Tool/software: Code Composer Studio

Hi everyone,

I am working currently this days on a IOT network where i am using sensortag LPSTK-CC1352R and the launchpad CC1352P-2. I would like first of all to send data from the sensortag LPSTK CC1352R to the launchpad CC1352P-2. I have an application for the sensortag which reads data from the sensortag. Now i am trying to develope an application for the launchpad CC1352P-2 to collecte and save on the flash the data from the sensortag LPSTK. I use the stack BLE of the device and i search a code which one configure the BLE stack in order to collecte some data that would be a foundation for my futur application. I mean i search a code which can guide me to developpe my application. I did all the workshops of the simplelink academy but there were no examples which serve to collecte data.  

Sincerely,

PERRIN Paul-Emile

  • Hi Paul-Emile, 

    Assigning an expert to comment. 

    Thanks, 
    Elin

  • Hello,

    I believe you are asking two questions:

    1. How do I receive data from the LPSTK to the CC1352P-2 LP using the BLE stack?
    2. How do I save the received data to flash memory?

    For #1, you can configure the LPSTK device as the BLE peripheral, and the CC1352P-2 LP as the central device (You can also do a connectionless Broadcaster/Observer configuration, but this is less common. More info can be found in the BLE User's Guide if interested). You can base your applications from the multi_sensor (or simple_peripheral) and simple_central example projects to get started.

    To collect data from the LPSTK for your application, you will have either created a custom GATT service, or use one of the already existing GATT services provided in your application. If you are using the multi_sensor project on the LPSTK as starting point, you will already have GATT services for reading temperature, humidity, light, LEDs, etc... You can read data from the GATT services after the central connects to the peripheral and performs service discovery.

    For #2, you can save data to flash by using the NV storage driver. More information can be found in the BLE User's Guide Flash section. This also has a code example showing how you can use the driver to save data to flash.

    Regards,
    Michael