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/SIMPLELINK-CC2640R2-SDK: Need Advice : Choosing a Good Example for Voice over GATT

Part Number: SIMPLELINK-CC2640R2-SDK


Tool/software: Code Composer Studio

Hi there,

Was struggling to find an out of box voice application example for CC2640R2.

I tried:

Resource Explorer >> SimpleLink SDK Plugins >> SimpleLInk CC2640R2 SDK BLE Example Pack 1.40.00.50

1. there are 2 examples that seem all are related to voice transfer: hid_adv_remote and voice_hogp_remote. what is the difference between them?

2. both 2 examples can not be built with any SimpleLink CC2640R2 SDK from v1.35.xx.xx to v4.20.00.04, how to fix it?

>> Compilation failure
OSAL/subdir_rules.mk:9: recipe for target 'OSAL/osal.obj' failed
"G:/ti/sdk/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/common/osal.c", line 413: error #167: too few arguments in function call
1 error detected in the compilation of "G:/ti/sdk/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/common/osal.c".
gmake[1]: *** [OSAL/osal.obj] Error 1

Resource Explorer >> SimpleLink SDK Plugins >> SimpleLInk CC2640R2 SDK BLE Example Pack 1.50.00.62

1. there is no voice application under this plugin? 

  • Hi,

    I've assigned someone to help you.

    Thanks,

    Luis

  • Hi LeoSun,

    I don't have any experience with the BLE plugin you are referring to, but I will do my best to help you out. 

    1. Usually all our examples have a document that describes the example and how to use it. Both these examples have this to so in order to evaluate which project that fits your use-case better, I would recommend you to read through the documentation and compare the two projects. 

    2. Which version of CCS/IAR are you using?

    3. Looks like this version only includes examples using the BLE 4.2 stack (glucose_sensor, heart_rate, and hid_emu_kbd). 

    Thanks, 
    Elin

  • Why are you using such an old version of the plugin?

    Present plugin version is 3.30 (which I have used successfully with CC2652).

    For CC2640R2 I had used the following from github (and migrated to CC2652 later) which did work with such an older SDK, 

    https://github.com/ti-simplelink/ble_examples/tree/simplelink_sdk-1.40 

    But that was before the plugin was released that is much better.

  • Hi Elin,

    Sorry for the late reply. After looking at the <simplelink_example_pack_users_guide.html> thoroughly, found some answers to my problem.

    1. The compiling error issue

    Currently using ccs10.1.0 which doesn't have <TI C Compiler for ARM: 16.09.03.LTS>, so I installed from  Help >> Install Code Generation Compiler Tools...

    After installed Compiler TI v16.9.11.LTS, compiling is okay.

    2. Looks like this version(1.50.00.62) only includes examples using the BLE 4.2 stack (glucose_sensor, heart_rate, and hid_emu_kbd). 

    Actually, the remote examples located here:<simplelink_cc2640r2_sdk_ble_example_pack_1_50_00_62\examples\rtos\CC2640R2RC\bleapps\hid_adv_remote\> and <G:\ti\sdk\simplelink_cc2640r2_sdk_ble_example_pack_1_50_00_62\examples\rtos\CC2640R2RC\bleapps\voice_hogp_remote\>

    3. difference between adv_remote and hogp_remote

    Voice HoGP Remote is a demonstration which exercises many areas of the BLE stack in a single application. The application demonstrates an implementation of the (Human Interface Device) HID over GATT profile (HoGP) where Keyboard, Consumer Control and Voice reports are used.

    HID Advanced Remote is a demonstration which exercises many areas of the BLE stack in a single application. The application demonstrates an implementation of the (Human Interface Device) HID over GATT profile (HoGP) where Keyboard and Consumer Control reports are used. Voice is demonstrated using a custom Voice over GATT profile.

  • Hi Joe,

    Thanks for your advice.

    >Why are you using such an old version of the plugin?

    I didn't mean to use such an old version.

    I just explored in "resource explorer" in ccs, found example packs located at <SimpleLink SDK Plugins/Example Packs/SimpleLink CC2640R2 SDK BLE Example Pack - 1.40.00.50(or 1.50.00.62)>

    >Present plugin version is 3.30 (which I have used successfully with CC2652).

    Where can I find the latest example pack?

    I also looked at the GitHub repo(ti-simplelink/ble_examples) you mentioned. Seems there are a bunch of branches and tags down there.

    What branch or tag should I look at if I am searching for a single-directional voice example?

  • Sorry, I'm OOO for a couple of days. but quickly:

    >>I just explored in "resource explorer" in ccs, found example packs located at <SimpleLink SDK Plugins/Example Packs/SimpleLink CC2640R2 SDK BLE Example Pack - 1.40.00.50(or 1.50.00.62)>

    Are you using local RE on HDD? You should be able to connect online in CCS and SL Audio Plugin

    >>Where can I find the latest example pack?

    Should look exactly like what is online:

    https://dev.ti.com/tirex/explore/node?node=AFFVIsO6lK9zZEzi2G-Sig__RW99gST__LATEST

    >>What branch or tag should I look at if I am searching for a

    The web links do not copy well and a little tough  to navigate.  From above Git link, scroll down to Full Duplex Bidirectional Audio Demo->Documentation

    has a nice description. And code under "CCS Project Files". But still think the SL Plugin is better.

    >>single-directional voice example

    From docs you will see the example are default bi-directional (think like an intercom system).  Also good detail on bit rates, sample rates, etc. Should be easy to turn off 1 direction, but I have not tried.

  • Thank you, Joe, for elaborating on so many details, it's very helpful.