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

transfer the firmware image

Hi
I'm trying to implement DFU in my project. So far, after I sending 01-04 to the control point characteristic(1531),I can get bootloader signal, to be exactly, i can enter the DFU mode. However, when I tried to write image size to the packet UUID(1532),according to the official document,I should get 10-01-01,but nothing at all.After entering DFU mode,I tried to reconnect the device, and restart notification again,the problem are still the same,my metadata are as follows:

                      let imageSizeBuffer = new ArrayBuffer(12);
                      let dataViewImg = new DataView(imageSizeBuffer );
                      dataViewImg.setUint32(0, 0, true);     
                      dataViewImg.setUint32(4, 0, true);      
                      dataViewImg.setUint32(8, 55480, true);

but I got no response.Is there any problem with the data I sent?

Inaddition, Before entering the DFU mode,I wrote some metadata such as 01 or 02 or 03 etc to the packet UUID or the control point, it did response, the device responses all are 10-01-03. I don't know what does it mean, I already enable notification.

Can somebody help me?

Related