Hi,I now use the nrf51822qfaaho,s110 v8.00. I need do a application , have customize serves, with ancs ,and with DFU function. Does the chip can support this? Who can help me do a example?
Hi,I now use the nrf51822qfaaho,s110 v8.00. I need do a application , have customize serves, with ancs ,and with DFU function. Does the chip can support this? Who can help me do a example?
Yes, you can use this chip with a large application (including ANCS and custom services) together with DFU. The limiting factor when it comes to DFU is flash, and the QFAAH0 has a large flash of 256 kB (though it only has 16 kB RAM). The compatibility matrix provide a good comparison of the available variants. Remember to adjust the bootloader and application in the examples to your device with less RAM.
There is no ANCS example with DFU in the SDK, but the SDK has some other examples with DFU that you can learn from (for example the Heart Rate Application). There is also extensive documentation accompanying the DFU examples.
Thank you ,Einar Thorsrud.
Now i find a question: i use the Heart Rate Application example,ANCS, add custom services, and together with DFU.
1.I use a android mobile phone to connect the nrf51822,then is OK. But I use a ios mobile phone to connect the nrf51822,then The NRF51822 chip disconnected immediately.
2.If i remove the with DFU function,and use a ios mobile phone to connect the nrf51822,then is OK,
WHY?
Hello, Mike & Einar, How did you add the dfu codes to the ancs sample? I've tried a lot of times, sometimes it can successfully execute OTA, but sometimes it cannot. Actually, I failed a lot of times. I compare the codes I added to my application with the heart rate sample, there's something different, such as device_manager_evt_handler, conn_params_init, ancs service added, db_discovery added, then I modified the program, make it the same as the heart rate sample, and it worked better than before, but still cannot be stable. Can you just give me some advice? Thank you!
@mikeqq: Can you provide some more details on your implementation, or upload the code?
@frankgdut: As there are no example, the best advice is probably to follow the instructions in the Adding DFU Service support to an application section, including sub sections. Particularily the Extending your application section is relevant.