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.

Triggering notifications

Other Parts Discussed in Thread: CC2540

Hi,
I am really newbie in programming microprocessors and I have just one trivial question. Which piece of code is triggering the notifications from acc profile on KeyFobDemo when i tilt the keyfob? I am trying to understand concept of BTstack and i cannot figure out this part.

Thanks :-)

  • Hello Michal,

    The accelRead() inside the _ProccessEvent starts the process of triggering the notification.  The accelRead() function with compare the X, Y and Z values and if they have changed by a certain amount, it will call the _SetParameter() function.  It is in the Accel_SetParameter() function that the notification is enabled.

    If you haven't downloaded the TI BLE Software Developer's Guide SWRU271D.pdf, you will find a brief explaination for notifications for the SimplePeripheral.  You should also download the QuickStartKit version 2 from Bluetooth.org.  Inside there is a BLE101.pdf and a Bluetooth Low Energy Hands on Training Guide and some examples that should further assist you in the understanding of BLE.

    More detailed information specific to the TI BLE Stack can be found inside the documents folder of BLE v1.3.

    Thanks,

  • Hi Greenja,

    I downloaded the QuickStartKit version 1 and version 2, the iOS device does not connect with the keyfob with either versions. I assume it is because the BLE stack of the QuickStartKit is not updated? Did the startkit work for you? Thank you.

    Serena

  • Hello Serena,

    I only used the QuickStartKit for their documentation.  I have not used their example code or app.  I don't see why it wouldn't work unless there are specific changes from iOS 5 to iOS 6 BLE. 

    When you run their keyfob firmware are you able to connect using TI MultiTool or the SensorTag App?

    Thanks,

  • greenja,

    I am using the keyfob and code given with the CC2540 mini-dev kit. The simpleBLEperipheral from TI works with the TI app but not the HelloBluetooth code doesn't connect with the iOS device. I just wanted to know if there example code and app work since it doesn't work for me. Thank you.

    Serena