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

project with NUS prevents DFU from advertising

Nrf52/Kiel/SDK11

My application was at the point where I needed to add DFU. Following the examples and SDK doc, I added the files and code needed. It would NOT advertise. So I looked at the examples (eg Heartrate with dfu) and noticed the only difference was the NUS service. I removed it and the DFU finally advertised.

So I add the code back for the NUS and again, the DFU went away. Next, I switched the order of initialization in my serivces_init file, and it appears that the service that is initialized first is the one that gets to advertise.

Finally, I used the heart rate w/ DFU example and added the NUS service, and again, it would not advertise as long as it initialized after the DFU.

Any ideas?

Rich

Parents
  • Is there a solution? I have the same problem (NRF51 gcc). I see then DFU when i set the nus UUID to BLE_UUID_TYPE_BLE instead of BLE_UUID_TYPE_VENDOR_BEGIN. I tried to "fix' it on the android side: public static final UUID RX_SERVICE_UUID = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e"); I cannot find the string for the modified UUID. Where can i find this?

Reply
  • Is there a solution? I have the same problem (NRF51 gcc). I see then DFU when i set the nus UUID to BLE_UUID_TYPE_BLE instead of BLE_UUID_TYPE_VENDOR_BEGIN. I tried to "fix' it on the android side: public static final UUID RX_SERVICE_UUID = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e"); I cannot find the string for the modified UUID. Where can i find this?

Children
No Data
Related