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

DFU in Xamarin Application.

Hello,

We have a Xamarin Forms application, which we use for connecting to nrf52840 device and read/write characteristics.  We managed to do it using Plugin.BLE nuget available for Xamarin forms.

Our application also has an option to perform DFU. Again we using a xamarin nuget  - Xamarin.Nordic.DFU.Android. Once the firmware is updated, it shows the success message and gets disconnected from the device which is correct.

Problem is once the DFU is complete, our app doesn’t connect again.. we need to open nrfConnect mobile app and read one of the attribute.. Once we read any one characteristics from the nrfConnect application, even our application starts working.

Not sure what the nrfConnect app is doing which we have missed out. We need to know what events nfrConnect is triggering and what we are missing .

 

Any help is highly appreciated.

Thanks & Regards,

Geervani

Parents
  • Problem is once the DFU is complete, our app doesn’t connect again.. we need to open nrfConnect mobile app and read one of the attribute.. Once we read any one characteristics from the nrfConnect application, even our application starts working.

     So that means that the DFU is complete and it starts advertising again, right? Why does your application not connect? Does it not find the BLE device? Have you tried to capture a sniffer trace to find out why the application doesn't connect? 

    I guess the nRF is the BLE peripheral, right?

    You say that the device behaves normally after you connect to it with the nRF Connect mobile app. How is that able to connect, and not your application? Does the advertisements of the peripheral change after you connect to it with nRF Connect? If so, what?

    Best regards,

    Edvin

Reply
  • Problem is once the DFU is complete, our app doesn’t connect again.. we need to open nrfConnect mobile app and read one of the attribute.. Once we read any one characteristics from the nrfConnect application, even our application starts working.

     So that means that the DFU is complete and it starts advertising again, right? Why does your application not connect? Does it not find the BLE device? Have you tried to capture a sniffer trace to find out why the application doesn't connect? 

    I guess the nRF is the BLE peripheral, right?

    You say that the device behaves normally after you connect to it with the nRF Connect mobile app. How is that able to connect, and not your application? Does the advertisements of the peripheral change after you connect to it with nRF Connect? If so, what?

    Best regards,

    Edvin

Children
No Data
Related