Forums - Trigger a LED when bonded !!!

2 posts / 0 new
Last post
Trigger a LED when bonded !!!
Join Date: 13 Jul 16
Posts: 4
Posted: Tue, 2017-03-28 09:55

Hi All,

Can you help me?

I'm working on the Security TAG firmware and I need to control an LED to indicate when the TAG is paired or not with a cellphone.

I am using the "AppIsDeviceBonded ()" function to trigger an LED. The goal is to make the LED light up when the TAG is not paired and turn off when paired.

When I turn the TAG on, the LED immediately turns on and when I do the pairing with a cell phone, it turn off, but when I undo the pair, it does not light anymore. Even if I turn the TAG off, it does not turn on again.

extern void TagHwDataInit(void)










/* Delete button press timer */


button_press_tid = TIMER_INVALID;




Thiago Pivoto

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Tue, 2017-05-23 06:46

Just define the PIO of the led as output and send zero or one to close the led. 

Look other places in the code that may affect the led PIO state

You can call my Skype nissim.test


  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.