juliansteenbakker / nordic_dfu

Execute a Device Firmware Update (DFU) on your nRF51 or nRF52 chip from Nordic Semiconductor. Fork from flutter_nordic_dfu.
MIT License
28 stars 29 forks source link

iOS App report [Unhandled Exception: PlatformException(DEVICE_ADDRESS_ERROR, Device address conver to uuid failed, Device uuid EE:01:06:81:63:3E convert to uuid failed, null】 Error #135

Open jimin5329060 opened 7 months ago

jimin5329060 commented 7 months ago

1.This is the remote device related information in iOS&Android

iOS print:DiscoveredDevice(id: 62CCCBCA-5C14-2CEA-8DCA-F8E91FB993C8, name: DZ29_633E, serviceData: {7364: []}, serviceUuids: [], manufacturerData: [105, 108, 2, 21, 238, 1, 6, 129, 99, 62], rssi: -61, connectable: Connectable.available) Android print:DiscoveredDevice(id: EE:01:06:81:63:3E, name: DZ29_633E, serviceData: {00007300-0000-1000-8000-00805f9b34fb: []}, serviceUuids: [], manufacturerData: [105, 108, 2, 21, 238, 1, 6, 129, 99, 62], rssi: -65, connectable: Connectable.available)

manufacturerData -> macid: 69:6C:02:15:EE:01:06:81:63:3E. We chose the last six!

2.This is what I use in flutter await NordicDfu().startDfu( 'EE:01:06:81:63:3E', 'assets/a.zip', fileInAsset: true, onProgressChanged: ( deviceAddress, percent, speed, avgSpeed, currentPart, partsTotal, ) { Logs.prints('deviceAddress: $deviceAddress, percent: $percent speed = $speed avgSpeed = $avgSpeed currentPart = $currentPart partsTotal = $partsTotal'); }, ); 2.This is an error message in ios Unhandled Exception: PlatformException(DEVICE_ADDRESS_ERROR, Device address conver to uuid failed, Device uuid EE:01:06:81:63:3E convert to uuid failed, null)

3.This is Android working properly

Uploading firmware... deviceAddress: EE:01:06:81:63:3F, percent: 1 speed = 2.194244623184204 avgSpeed = 2.194244623184204 currentPart = 1 partsTotal = 1 deviceAddress: EE:01:06:81:63:3F, percent: 2 speed = 20.76595687866211 avgSpeed = 3.6417911052703857 currentPart = 1 partsTotal = 1 deviceAddress: EE:01:06:81:63:3F, percent: 3 speed = 75.07691955566406 avgSpeed = 5.149350643157959 currentPart = 1 partsTotal = 1