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-CC1352R1: SimpleLink Academy BLE custom profile - custom service does not work as expected

Part Number: LAUNCHXL-CC1352R1

Hello!

I am doing exercises from https://dev.ti.com/tirex/content/cc13xx_cc26xx_simplelink_academy_7_10_03_00/_build_cc13xx_cc26xx_simplelink_academy_7_10_03_00/source/ble5stack/ble_01_custom_profile/ble_01_custom_profile.html.

I have reported before that service generator script does not work for me. So I am looking at 3 files provided as solution to the lab. Source and header files for custom service itself should be copied in full, so there is no brainer there. project_zero.c should be edited looking at unidiff. One thing is that it looks that my source is a bit different from the one which was used to create unidiff, at least there is a discrepancy in line numbers. I have installed SimpelLink SDK on Dec 31 (don't ask). I believe I have used a link from TIREX of CCS and it should be the most recent one. Either way, what I see on the web and in TIREX is 7.10.03.00, while on the filesystem I've got 7.10.02.23.

I believe I have carefully applied edits from unidiff to my file. The project does compile, being loaded on target - runs. I use TI SimpleLink Starter app on Android phone. When I go to service explorer, I see what could be expected:

"6 - null" must be my service as I don't remember we define any name for it, but I see "ba55" in the UUID, which is number we were using. If I go for details of this service, I see two characteristics. That matches my expectations as we were exposing sunlight value and timer period. However, the screen with these characteristics in not okay:

The bottom one seems to be correct, 88:13 is LSB first representation of 5000, which was set as timer period. Also I notice colored icons for read, write, notify. That is not a case with the first characteristic. First of all, its value is NULL, and icons to the right are with black background. If I click on the bottom characteristic, it allows me to read it, if I tap on the upper one - application crashes.

So once again, I have double checked edits to project_zero.c, must be okay. And I can't say, what did I miss, or what happened to that actual characteristic.

Please advise, where to look.

Thanks.

  • Turns out the trouble is in SimpleLink Starter app itself. Tried with LightBlue and nRF Connect, both do see characteristic of interest, allow subscribe for notifications and do receive notifications aligned with variable value assigned in the program.

    Please take it as bug report for SimpleLink Starter app.

    Thanks.

  • Victor, 

    Thanks for reaching out! I am glad you were able to get everything up and running properly and found that the issue was with the SimpleLink Starter application and not your project itself. I will pass this bug along to our internal team, we greatly appreciate you sharing this issue.

    Thanks,

    Luke