Hi all:
My iOS app use iOSDFULibrary to update my ble.But when the device enter into DFU mode ,it disconnected for a while.
This is my log:
2018-11-27 21:00:11.122263+0800 [D]SafeWallet[2040:130912] logWith Connecting to xxxxxx...
2018-11-27 21:00:11.122741+0800 [D]SafeWallet[2040:130912] logWith centralManager.connect(peripheral, options: nil)
2018-11-27 21:00:11.125145+0800 [D]SafeWallet[2040:130725] logWith [Callback] Central Manager did connect peripheral
2018-11-27 21:00:11.125574+0800 [D]SafeWallet[2040:130725] logWith Connected to xxxxxx
2018-11-27 21:00:11.125687+0800 [D]SafeWallet[2040:130725] logWith Discovering services...
2018-11-27 21:00:11.125789+0800 [D]SafeWallet[2040:130725] logWith peripheral.discoverServices(nil)
2018-11-27 21:00:11.132454+0800 [D]SafeWallet[2040:130725] logWith Services discovered
2018-11-27 21:00:11.132845+0800 [D]SafeWallet[2040:130725] logWith Starting Secure DFU...
2018-11-27 21:00:11.133674+0800 [D]SafeWallet[2040:130725] logWith Connected to xxxxxx
2018-11-27 21:00:11.133845+0800 [D]SafeWallet[2040:130725] logWith Services discovered
2018-11-27 21:00:11.133989+0800 [D]SafeWallet[2040:130725] logWith Secure DFU Service found
2018-11-27 21:00:11.135119+0800 [D]SafeWallet[2040:130725] logWith Discovering characteristics in DFU Service...
2018-11-27 21:00:11.135303+0800 [D]SafeWallet[2040:130725] logWith peripheral.discoverCharacteristics(nil, for: FE59)
2018-11-27 21:00:11.137915+0800 [D]SafeWallet[2040:130912] logWith DFU characteristics discovered
2018-11-27 21:00:11.140231+0800 [D]SafeWallet[2040:130912] logWith Enabling notifications for 8E400001-F315-4F60-9FB8-838830DAEA50...
2018-11-27 21:00:11.140439+0800 [D]SafeWallet[2040:130912] logWith peripheral.setNotifyValue(true, for: 8E400001-F315-4F60-9FB8-838830DAEA50)
2018-11-27 21:00:11.190001+0800 [D]SafeWallet[2040:130725] logWith Notifications enabled for 8E400001-F315-4F60-9FB8-838830DAEA50
2018-11-27 21:00:11.190192+0800 [D]SafeWallet[2040:130725] logWith Buttonless DFU notifications enabled
2018-11-27 21:00:11.190891+0800 [D]SafeWallet[2040:130725] logWith Application with buttonless update found
2018-11-27 21:00:11.192140+0800 [D]SafeWallet[2040:130725] logWith Writing to characteristic 8E400001-F315-4F60-9FB8-838830DAEA50...
2018-11-27 21:00:11.193559+0800 [D]SafeWallet[2040:130725] logWith peripheral.writeValue(0x01, for: 8E400001-F315-4F60-9FB8-838830DAEA50, type: .withResponse)
2018-11-27 21:00:11.250217+0800 [D]SafeWallet[2040:130912] logWith Data written to 8E400001-F315-4F60-9FB8-838830DAEA50
2018-11-27 21:00:11.251524+0800 [D]SafeWallet[2040:130912] logWith Notification received from 8E400001-F315-4F60-9FB8-838830DAEA50, value (0x):200101
2018-11-27 21:00:11.252552+0800 [D]SafeWallet[2040:130912] logWith Response (Op Code = 1, Status = 1) received
2018-11-27 21:00:11.619735+0800 [D]SafeWallet[2040:130912] logWith [Callback] Central Manager did disconnect peripheral
2018-11-27 21:00:11.619989+0800 [D]SafeWallet[2040:130912] logWith Disconnected by the remote device
2018-11-27 21:00:11.620319+0800 [D]SafeWallet[2040:130912] logWith Scanning for the DFU Bootloader...
I find that my ble is in the buttonlessExperimentalService mode.
But after it was disconnected,iOSDFULibrary scan for a peripheral.discoverServices([FE59]).
And my ble do not have this service, it can not continue the DFU process. It confused me.
Can you help me to check what is the problem?