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-CC2640R2: Sending Temperature data to a mobile device

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: LMT70

I have connected LMT70 temperature sensor with CC2640R2 launchpad.I have developed the software code for monitor the temperature data in UART terminal.

Now i have been monitoring the sensor data on UART terminal window in CCS IDE. But i want to display the temperature data on smart phone.

How to develop the software code for bluetooth data transmission for monitor the temperature data on mobile phone?

Regards,

Nagarajan.S 

  • Hi Nagarajan,

    Take a look at the following SimpleLink Academy trainings:
    dev.ti.com/.../
    dev.ti.com/.../

    Cheers,
    Fredrik
  • Hi Fredrik Sir,

    Currently I am learning about SimpleLink Academy training on TIREX.
    I have flashed project zero app project into CC2640R2 Launchpad board and saw the output for LED service, button service, and data service.
    Sameway i need to monitor the adc data or temperature data on mobile.
    Is there any such project available for adc or sensor data for monitoring on mobile device.

    - Nagarajan
  • Hi Nagarajan,

    The last link in my previous post is to a training that does exactly what you want.

    Cheers,
    Fredrik
  • Hi Sir,

    I have monitored the temperature sensor data on mobile device using project zero r2 app project.

    But if press read button in the app, data is displaying only one time but not continuous.

    How to implement the software code for continuous data monitor on mobile.

    Regards,

    Nagarajan

  • Hi Nagarajan,

    I suggest you go through the SimpleLink Academy trainings, starting with Fundamentals, to learn more about how the BLE stack works.

    Regards,
    Fredrik
  •  Hi Sir,

    Still i am in trouble to acheive the output for continuous monitoring of temperature data on mobile device.

    I followed the procedure given for sensor booster pack in simple link academy training.

    But in my application, i have interfaced LMT70 temperature sensor to DIO23 pin of CC2640R2 launchpad board.

    For reading the temperature data on mobile, i added a new service named as F000AA00-XXX in project zero app project and i given the screenshot for temperature data monitoring on ble scanner app.

    If i press the read button once, the temperature data is displaying only one time. If i press the read button again, the data is getting updated. But i want to display the temperature data has to update continously without pressing read button again and again.

    I am new to TI-RTOS concepts. The coding logic in TI-RTOS is very difficult for me to learn right now. I have very emergency to finish this task.

    I have attached my project files for your understanding. Pls help me out where should i modify the code in project zero app project for continuous data monitoring.project-zero-app.rar

    Regards,

    Nagarajan.

     

  • Hi Nagarajan,

    See Task 6 here: dev.ti.com/.../

    Cheers,
    Fredrik
  • Hi Sir,

    For continuous updating temperature sensor value on mobile app, which button is required whether Notification button or Read button?

    Task 6 indicates which task? I could not understand which one you are telling?

    Pls help me out to finish this continuous sensor data monitoring over BLE.

    Regards,

    Nagarajan.S

  • Hi Sir,

    For continuous updating temperature sensor value on mobile app, which button is required whether Notification button or Read button?

    Task 6 indicates which task? I could not understand which one you are telling?

    Pls help me out to finish this continuous sensor data monitoring over BLE.

    Regards,

    Nagarajan.S

  • Hi Nagarajan,

    Did you go through the training I linked to? Task 6 is about making the sensor readout periodic.

    Cheers,
    Fredrik
  • Hi Sir,

    Still i could not get what is the name of Task 6? Since there are so many tasks given in simple link academy.
    For making sensor periodic readout what is the procedure should i follow?
    Pls help me out to finish this task.

    Regards,
    Nagarajan.S
  • Hi Sir,

    Still i could not get what is the name of Task 6? Since there are so many tasks given in simple link academy.
    For making sensor periodic readout what is the procedure should i follow?
    Pls help me out to finish this task.

    Regards,
    Nagarajan.S
  • In the link I sent you there is only one Task 6 (the link takes you directly to the "Custom Profile" training). Scroll all the way down.
  • Hi Fredrik Sir,

    I read the custom profile task. Still this task is very difficult for me to understand. Can you do one favour for me?

    I have attached my project code below for your understanding purpose.

    I have connected LMT70 temperature sensor with CC2640R2 launchpad.

    In mobile application, i used read button and if i press the read button once, the temperature data is displaying only one time.

    I have given ble app screenshot. In screenshot, the value: 25.07 indicates temperature value 

    Pls take my code and modify it for continuous updating the value periodic without pressing read button again and again since this task is very difficult for me to develop.

    5327.project-zero-app.rar

     

    Pls help me sir.

    Regards,

    Nagarajan.S

  • Hi Nagarajan,

    Everything you need to know to implement what you want is covered by the SimpleLink Academy Trainings. I would recommend you start at the beginning and go through the modules to get a better understanding of BLE in general and also how you can modify the example projects to your needs.

    There is not much more I can do to help you here.

    Cheers,
    Fredrik
  • Hi Sir,

    For continuous updating the sensor value on ble app, which button is required to implement?

    Read R button or Notification N button?

    Regards,

    Nagarajan.

  • This is covered by the "Fundamentals" SimpleLink Academy training.
  • Hi Sir,

    Is there any video training available for updating sensor data periodically and monitor on ble app?

    Regards,

    Nagarajan.S

  • Hi Sir,

    In BLE app, there is a notification N button is available.

    When i press N(Notification) button, the notification got enabled and if i press the same N button again, the notification got disabled and this process running in project_zero.c file.

    I have written a seperate sensor service code inside project zero app project. In sensor service code, i have developed code for temperature data conversion and i am calling setparameter function for sending the temperature data to mobile.

    But i am not getting temperature data on mobile whenever i press the Notification button on application.

    Where should i call setparameter function exactly for reading the temperature data by pressing N button.

    Regards,
    Nagarajan.S