android - BLE nordic Secure DFU -


how implement secure dfu using nordic dfu sdk in android application?

i using nordic dfu sdk firmware update.it work normal dfu mode. when i'm trying secure dfu connection failed. use following code in android application.

// android app code //

 new dfuserviceinitiator(device macaddress)                         .setkeepbond(true)                         .setdisablenotification(true)                         .setzip(mfilestreamuri, mfilestreamuri.getpath())                         .start(this, dfuservice.class); 

i got kind of log.

// log //

 i/dfubaseservice: connecting device...  d/bluetoothgatt: connect() - device: ca:e1:0d:c1:02:f1, auto: false  d/bluetoothgatt: registerapp()  d/bluetoothgatt: registerapp() - uuid=37c55721-972b-4bf2-b0d0-034e92423ca6  d/bluetoothgatt: onclientregistered() - status=0 clientif=7  d/bluetoothgatt: onclientconnectionstate() - status=133 clientif=7 device=ca:e1:0d:c1:  e/dfubaseservice: connection state change error: 133 newstate: 0  e/dfubaseservice: device got disconnected before service discovery finished  d/bluetoothgatt: refresh() - device: ca:e1:0d:c1:02:f1  i/dfubaseservice: refreshing result: true  i/dfubaseservice: cleaning up...  d/bluetoothgatt: close()  d/bluetoothgatt: unregisterapp() - mclientif=7  e/radiance.smart.toilet.activity.connectionactivity: onerror: 4096  e/radiance.smart.toilet.activity.connectionactivity: errortype: 0  e/radiance.smart.toilet.activity.connectionactivity: message: dfu device disconnected 

how fix it?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -