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

finding pin assignment for unknown beacon.

Hi,

I bought an nrf51822 beacon from ebay, it has an LED and a button. I am trying to figure out what pins the LED and the button are connected to, without much success. For a start, I was hoping the code below would blink the led, but it doesn't. The beacon works fine, I can run other code on it, and the LED did work with the original firmware. Any other ideas?

for (int pin_number = 1; pin_number <= 31; pin_number++) {
	nrf_gpio_cfg_output(pin_number);    //config pin as output
}

while (true) {
	for (int pin_number = 1; pin_number <= 31; pin_number++) {
		nrf_gpio_pin_toggle(pin_number);
		nrf_delay_ms(500);
	}
}

Thanks!

Parents
  • Hi Calin,

    I am looking at a similar project (reprogramming those chinese iBeacons for a different purpose). Can you share anything you have learned? I will start tomorrow trying to program the flash through the nRF DK using the swdio but it seems daunting. The difference between the QFAA and the QFAC is just the beginning I guess.

    Thanks in advance!

Reply
  • Hi Calin,

    I am looking at a similar project (reprogramming those chinese iBeacons for a different purpose). Can you share anything you have learned? I will start tomorrow trying to program the flash through the nRF DK using the swdio but it seems daunting. The difference between the QFAA and the QFAC is just the beginning I guess.

    Thanks in advance!

Children
Related