Log showing DFU with target device 52840 2019-07-02 11:41:20.137 > DFU state: Connecting 2019-07-02 11:41:20.137 > DFU:[Callback] Central Manager did update state to: Powered ON 2019-07-02 11:41:20.137 > DFU:Connecting to MI.Tracer.Angle... 2019-07-02 11:41:20.137 > DFU:centralManager.connect(peripheral, options: nil) 2019-07-02 11:41:20.924 > DFU:[Callback] Central Manager did connect peripheral 2019-07-02 11:41:20.925 > DFU:Connected to MI.Tracer.Angle 2019-07-02 11:41:20.925 > DFU:Discovering services... 2019-07-02 11:41:20.925 > DFU:peripheral.discoverServices(nil) 2019-07-02 11:41:21.282 > DFU:Services discovered 2019-07-02 11:41:21.283 > DFU:Starting Secure DFU... 2019-07-02 11:41:21.283 > DFU:Connected to MI.Tracer.Angle 2019-07-02 11:41:21.283 > DFU:Services discovered 2019-07-02 11:41:21.283 > DFU:Secure DFU Service found 2019-07-02 11:41:21.283 > DFU:Discovering characteristics in DFU Service... 2019-07-02 11:41:21.284 > DFU:peripheral.discoverCharacteristics(nil, for: FE59) 2019-07-02 11:41:21.341 > DFU:DFU characteristics discovered 2019-07-02 11:41:21.341 > DFU state: Starting 2019-07-02 11:41:21.342 > DFU:Enabling indications for 8EC90003-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:21.342 > DFU:peripheral.setNotifyValue(true, for: 8EC90003-F315-4F60-9FB8-838830DAEA50) 2019-07-02 11:41:21.521 > DFU:Indications enabled for 8EC90003-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:21.522 > DFU:Buttonless DFU indications enabled 2019-07-02 11:41:21.522 > DFU:Application with buttonless update found 2019-07-02 11:41:21.522 > DFU state: Enabling DFU Mode 2019-07-02 11:41:21.522 > DFU:Trying setting bootloader name to Dfu46387 2019-07-02 11:41:21.522 > DFU:Writing to characteristic 8EC90003-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:21.523 > DFU:peripheral.writeValue(0x02084466753436333837, for: 8EC90003-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:21.581 > DFU:Data written to 8EC90003-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:21.582 > DFU:Indication received from 8EC90003-F315-4F60-9FB8-838830DAEA50, value (0x):200201 2019-07-02 11:41:21.582 > DFU:Response (Op Code = 2, Status = 1) received 2019-07-02 11:41:21.582 > DFU:Bootloader name changed successfully 2019-07-02 11:41:21.583 > DFU:Writing to characteristic 8EC90003-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:21.583 > DFU:peripheral.writeValue(0x01, for: 8EC90003-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:21.611 > DFU:Data written to 8EC90003-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:21.611 > DFU:Indication received from 8EC90003-F315-4F60-9FB8-838830DAEA50, value (0x):200101 2019-07-02 11:41:21.612 > DFU:Response (Op Code = 1, Status = 1) received 2019-07-02 11:41:24.629 > DFU:[Callback] Central Manager did disconnect peripheral 2019-07-02 11:41:24.629 > DFU:Disconnected by the remote device 2019-07-02 11:41:24.629 > DFU:Scanning for the DFU Bootloader... 2019-07-02 11:41:24.672 > DFU:DFU Bootloader found with name Dfu46387 2019-07-02 11:41:24.673 > DFU:Connecting to Dfu39785... 2019-07-02 11:41:24.673 > DFU:centralManager.connect(peripheral, options: nil) 2019-07-02 11:41:25.414 > DFU:[Callback] Central Manager did connect peripheral 2019-07-02 11:41:25.414 > DFU:Connected to Dfu39785 2019-07-02 11:41:25.414 > DFU:Discovering services... 2019-07-02 11:41:25.415 > DFU:peripheral.discoverServices([FE59]) 2019-07-02 11:41:25.473 > DFU:Services discovered 2019-07-02 11:41:25.473 > DFU:Secure DFU Service found 2019-07-02 11:41:25.474 > DFU:Discovering characteristics in DFU Service... 2019-07-02 11:41:25.474 > DFU:peripheral.discoverCharacteristics(nil, for: FE59) 2019-07-02 11:41:25.475 > DFU:DFU characteristics discovered 2019-07-02 11:41:25.475 > DFU:MTU set to 247 2019-07-02 11:41:25.475 > DFU state: Starting 2019-07-02 11:41:25.476 > DFU:Enabling notifications for 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.476 > DFU:peripheral.setNotifyValue(true, for: 8EC90001-F315-4F60-9FB8-838830DAEA50) 2019-07-02 11:41:25.502 > DFU:Notifications enabled for 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.502 > DFU:Secure DFU Control Point notifications enabled 2019-07-02 11:41:25.502 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.502 > DFU:peripheral.writeValue(0x0601, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.531 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.532 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600601000100000000000000000000 2019-07-02 11:41:25.532 > DFU:Command object info (Max size = 256, Offset = 0, CRC = 00000000) received 2019-07-02 11:41:25.532 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.532 > DFU:peripheral.writeValue(0x01018d000000, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.561 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.562 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600101 2019-07-02 11:41:25.562 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.563 > DFU:peripheral.writeValue(0x020000, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.592 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.596 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600201 2019-07-02 11:41:25.596 > DFU:Packet Receipt Notif disabled (Op Code = 2, Value = 0) 2019-07-02 11:41:25.596 > DFU:Writing to characteristic 8EC90002-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.596 > DFU:peripheral.writeValue(0x128a010a4408011240080110341a02b60120002800300038d8d102422408031220cae77b7ffde7b4b46f94893675c7d40d6896a090532c8102972352575dcb7f00480052040801120010001a400996aecabe257d862fe6d58d23531b2937e3298f32ebad11ffe76eab0118ec835e0ccaf90bdda90f710346dc487a855ee392929fcbd9e4b72be79c4c35f80a6b, for: 8EC90002-F315-4F60-9FB8-838830DAEA50, type: .withoutResponse) 2019-07-02 11:41:25.596 > DFU:Command object sent (CRC = 1D99468E) 2019-07-02 11:41:25.597 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.597 > DFU:peripheral.writeValue(0x03, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.622 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.623 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 6003018d0000008e46991d 2019-07-02 11:41:25.624 > DFU:Checksum (Offset = 141, CRC = 1D99468E) received 2019-07-02 11:41:25.624 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.624 > DFU:peripheral.writeValue(0x04, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.653 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.667 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600401 2019-07-02 11:41:25.668 > DFU:Command object executed 2019-07-02 11:41:25.668 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.668 > DFU:peripheral.writeValue(0x020c00, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.697 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.698 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600201 2019-07-02 11:41:25.698 > DFU:Packet Receipt Notif enabled (Op Code = 2, Value = 12) 2019-07-02 11:41:25.698 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.698 > DFU:peripheral.writeValue(0x0602, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.817 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.818 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600601001000000000000000000000 2019-07-02 11:41:25.819 > DFU:Data object info (Max size = 4096, Offset = 0, CRC = 00000000) received 2019-07-02 11:41:25.819 > DFU state: Uploading 2019-07-02 11:41:25.819 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.819 > DFU:peripheral.writeValue(0x010200100000, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:25.847 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:25.849 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600101 2019-07-02 11:41:25.849 > DFU:Data object 1/11 created 2019-07-02 11:41:25.849 > DFU:Uploading firmware... 2019-07-02 11:41:25.849 > DFU:Sending firmware to DFU Packet characteristic... 2019-07-02 11:41:25.998 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:25.999 > DFU:peripheral.writeValue(0x03, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:26.042 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:26.044 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 6003014c0e00004f8f8591 2019-07-02 11:41:26.044 > DFU:Checksum (Offset = 3660, CRC = 91858F4F) received 2019-07-02 11:41:26.044 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:26.044 > DFU:peripheral.writeValue(0x04, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:26.161 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:26.163 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600408 2019-07-02 11:41:26.163 > DFU:Error 8: Operation not permitted <====== FIRST ERROR HERE 2019-07-02 11:41:26.163 > DFU:Data object executed 2019-07-02 11:41:26.163 > DFU:Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50... 2019-07-02 11:41:26.163 > DFU:peripheral.writeValue(0x010200100000, for: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: .withResponse) 2019-07-02 11:41:26.192 > DFU:Data written to 8EC90001-F315-4F60-9FB8-838830DAEA50 2019-07-02 11:41:26.194 > DFU:Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x): 600101 2019-07-02 11:41:26.194 > DFU:Data object 2/11 created 2019-07-02 11:41:26.195 > DFU:Uploading firmware... 2019-07-02 11:41:26.195 > DFU:Sending firmware to DFU Packet characteristic... 2019-07-02 11:41:26.252 > DFU:Disconnecting... 2019-07-02 11:41:26.253 > DFU:centralManager.cancelPeripheralConnection(peripheral) 2019-07-02 11:41:26.253 > DFU:[Callback] Central Manager did disconnect peripheral 2019-07-02 11:41:26.254 > DFU:Disconnected 2019-07-02 11:41:26.254 > DFU error: DFUError 7024 bytes were sent while 0 bytes were reported as received