Hello, I want to programm nrf51822 beacon using a samrtphone/tablet without to press sw1 button. Can I do this?If yes, how?
Hello, I want to programm nrf51822 beacon using a samrtphone/tablet without to press sw1 button. Can I do this?If yes, how?
You should check this DFU FAQ, You will find answers there.
Thanks Wojtek! I fount this :"we can simply set a flag in GPREGRET and do a softreset (NVIC_SystemReset()) to get to the bootloader".But , I do not understand, how to make the Beacon know that must enter the DFU mode if another device wants to programm them?
I am not really into beacons, but in my application I just use DFU service to enter DFU mode.
@Wojtek: Note that the beacon when in normal operation mode is advertising with non-connectable mode. So you wouldn't be able to connect to the device to send the command (by writing to a characteristic) to switch to DFU mode.
If you want to be able to do that you would need to set your beacon to advertise in connectable mode. It's fine with the spec, but has a side effect that the beacon consumes more power.
Good to know. That is why I noted that I am not really into beacons :)