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

[NRF51 Donlge, NRF51822 Beacon] Android developing - detect button pressed

Hi all, I'm an Android developer and I need to develop an application that detect when someone presses the button on Beacon and do something.

I've just bought these two devices:

I installed the last version of Keil, nRFStudio, SDK v7.0, I need some help to code the "firmware" and upload it on beacon.

I think that I have to write my code with Keil, compile and test it with nRF51 dongle and after upload the .hex on Beacon via DFU with nRF Toolbox for Android. it's right?

Can someone help me with coding? Any suggest? How can i find some example?Can someone explain me all the step to compile and upload the source code? Which is the difference between Program SoftDevice and Program Application on nRFstudio?

Sorry, for many questions(and for my bad english) but i try to find a guide unsucessfully I hope that someone can help me.

Thanks

  • I think that I have to write my code with Keil, compile and test it with nRF51 dongle and after upload the .hex on Beacon via DFU with nRF Toolbox for Android. it's right?

    It is possible, but it sounds a bit cumbersome. I recommend you to consider buying a programmer, please see this question for more information.

    Can someone help me with coding? Any suggest? How can i find some example?Can someone explain me all the step to compile and upload the source code? Which is the difference between Program SoftDevice and Program Application on nRFstudio?

    Program SoftDevice is used to program the protocol stack, S110, S120, S130, S210, S310. Program Application is used to program the application.

    Please see this blog to get started.

    Your other questions are very general, try to split them up and be more specific next time.

Related