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

how to make nrf51822 central to transmit the status of a pin ?

I have: nrf51822 bluetooth module, STlink V2, Keil, segger studio, nrf51 sdk and softdevice files.

I have achieved making the led blink at a ble peripheral device by nordic connect app via this link https://www.youtube.com/watch?v=_-d2d6Vc3lg&list=WL&index=96.

I want to make a ble master from which I can connect to the peripheral  and send the status of a button to the peripheral. (Its like when I poweron, the master search for the peripheral and connects to it and send the status of one of its pin).

Can you please guide me how to do that.

Parents Reply
  • Thanks a lot. I just read it. It seems this is the one I am looking for and will experiment this and let you know. 

    Two more things I'd like to know

    a) I am using nrf51822 softdevice and it seems in the SDK12, the project is by default for nrf51422. So just by changing target option device to nrf51822AA will be sufficient or do I need to change things in memory addresses.

    b) instead of J-link, if I use ST linkV2 will that be ok ??

    I started off with a youtube video and it did with arduino library for peripheral and ST link so I purchased those only.  But I didn't find any tutorial on how to make a ble central (so something like bluetooth remote.) It seems everyone is busy in making peripheral and controlling with phone.

    I'll run this and will update by tomorrow.

    Regards,

Children
Related