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.

Weight scale BLE profile

Other Parts Discussed in Thread: CC2540, CC2650, SYSBIOS

Dear all,

I have found pdf's for Weight scale profile and weight scale service. But i am unable to find the project files for this which i could open in IAR embedded workbench and program my CC2540 module.(As we have the project files for Health Thermometer, Heart rate Sensor and so on) Please share the link of these files.

Thank you very much in advance.

Best Regards

Gaurav

  • You can add the profile into your application.
    There are couple of ways to do it:
    1. Following the wiki page: from appplication side, there are not much difference between CC2650 and CC2540. You can verify that by looking thru the code. processors.wiki.ti.com/.../Tutorial:_How_to_Create_a_Custom_Bluetooth_Smart_Embedded_Application_with_the_CC2650DK
    2. you can use bluetooth developer studio, which has TI plugin. You can create the profile easily
    www.bluetooth.com/.../bluetooth-developer-studio.aspx
  • Thank you very much for your reply. I started working with Bluetooth developer studio which is simply amazing. I created a profile using it and generated a code using TI plugin . Then i followed the steps given in the following link to test the profile and the generated code

    software-dl.ti.com/.../ti-bds-plugin.html

    But it gave 108 errors such as:

    -Fatal Error[Pe1696]: cannot open source file "ti/sysbios/knl/Task.h"

             searched: "C:\Texas Instruments\BLE-CC254x-1.4.1.43908a\Projects\ble\SimpleBLEPeripheral\CC2540DB\..\..\common\"


    -Error while running C/C++ Compiler
             Device_Information.c

    -Error[Pe020]: identifier "uint8_t" is undefined C:\Texas Instruments\BLE-CC254x-1.4.1.43908a\Projects\ble\SimpleBLEPeripheral\Source\Weight_Scale.c 89


    I think it is because I am generating a code for cc26xx but i have IAR workbench and BLE stack and hardware module for cc2540. Could you please clear my doubt ? Am i missing a very basic thing here ?

  • For CC26xx, we are using TI-RTOS, but for the old devices, TI-RTOS was not introduced. So you will have to strip down the profile you made from bluetooth developer's studio, and fix the structure to the way it is on simpleBLEPeripheral.c.
  • Thank you very much for your response.

    However could you please give me more detailed answer. I did not get how to strip down the profile . The structure is totally different.
    The one with cc 2540 has 4 types of files in the source folder.
    - OSAL_SimpleBLEPeripheral.c,
    - simpleBLEPeripheral.c,
    - simpleBLEPeripheral.h,
    - SimpleBLEPeripheral_Main.c.

    But with the one created from the plugin are totally different ( I am creating a profile for weight scale). These are :
    - Device_Information.c
    - Device_Information.h
    - simpleBLEPeripheral.c
    - Weight_Scale.c
    - Weight_Scale.h
    I am really confused where to make what changes .
    A lot of thanks in advance !

    Regards
    Gaurav Garg