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

NRF 52 DK ble dfu VS Android NRF Connect DFU speed diifference

Hello Nordic Devzone fellowes

I tried DFU with NRF 52 DK board with 'PC-BLE-DRIVER-JS' dfu.js test code

When the firmware .zip file is 128 KB the speed of transftering the file is 600 Bytes / sec

However When I try with NRF connect App on my Android phone (Sony Xperia XZ premium)

it has 1.6 KB / sec Which is way faster than when I tried with NTF52 DK board.

If anyone know why there are difference please let me know

and is this something I can improve by modifying Source code of 'pc-ble-driver-js'??

Thank You.

Parents
  • Hi, 

     

    Have you checked the connection interval ? 

    If you have a BLE sniffer, can you check how many packets being sent in one connection interval ? 

    Have you tried to use the nRFConnect application on PC to do DFU ?

    Would the reason is the same as discussed in this case (only one write command at a time) 

     

  • I am not sure how to use BLE sniffer application, seems like its not an executable file.

    However When I try NRF connect on PC for DFU, it transfer the same file with 1.6 KB/sec speed.

    I am pretty sure NRF connect is using same javascript code from 'pc-ble-driver-js' dfu.js code for DFU.

    Why when I try DFU with 'pc-ble-driver-js', it transfer a same file much slower (600 bytes/sec) ?

  • It's very hard to tell why without information about connection interval, number of packet per interval. A sniffer could really help. Please make sure you follow the documentation to know how to use the sniffer (the video is a little bit obsoleted) . 

    You can also find information about connection interval by debugging the DFU master and check which interval is used. 

  • Okay Before I use the NRF sniffer I have several questions regarding to NRF sniffer installation. I follow the istruction in nRF_Sniffer_User_Guide_v2.1.pdf, I installed Wireshark 2.4.5, SEGGER jlink 6.16 and Python2.7.14 (python --version works!) and I moved all the required files to extcap folder. However, I could not see the interface toobar in View tab dropdown list. Am I doing something wrong? Also I failed to use NRF connect to scan devices after I downgraded to SEGGER jlink 6.16 too

Reply
  • Okay Before I use the NRF sniffer I have several questions regarding to NRF sniffer installation. I follow the istruction in nRF_Sniffer_User_Guide_v2.1.pdf, I installed Wireshark 2.4.5, SEGGER jlink 6.16 and Python2.7.14 (python --version works!) and I moved all the required files to extcap folder. However, I could not see the interface toobar in View tab dropdown list. Am I doing something wrong? Also I failed to use NRF connect to scan devices after I downgraded to SEGGER jlink 6.16 too

Children
Related