This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF8002 notifying host on change in input pin

Hello I am using the nRF8002 kit. I would like to inform the host (Android app) when there is a long button press on the input pin.

Is this possible and if so which BLE profile / service should I be using for this ? I tried to use the "Immediate Alert" service but that service can only send data from the phone to the nRF device.

Thank You

  • prabhudurai, i am not sure if i understood your question well. All you will need to do (when you are working with an 8002 chip), is to set up the 8002 chip as desired using the nrfgo studio and then build app for the android phone that will construct an IAS service (with Alert Level characteristic) in it. Doing this, will make the long press at 8002 side trigger a 'write' on the Alert Level characteristic and that can be used to ring the phone by the android app. (I am not an android developer, so I may be missing something in your question)

    P.S: If you are building an end product using 8002, may I recommend you to take a look at the new nRF52832 chip here -> www.nordicsemi.com/.../nRF52832 . This is certainly more flexible and powerful than the 8002.

  • sorry for my unclear question am using the nrf51DK and in that i would create this kind of function press the button for 5 seconds and it has to send notification to the user about button press and based on that notification it will make the phone ring (simply i want to press the button and on the NRF51DK it has make the phone ring) so could you verify my idea is correct or wrong? if correct could you suggest me some possible ways to do that

  • You can try using the Button Handler (app_button) library in the nrf51 SDK to achieve this... some hints are to use app_button_init function, detection_delay variable and the app_button_is_pushed function. If you cant achieve this, please post a separate question (as this question was originally related to nrf8002 and people who know the answer to your question may not look here)

Related