Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No progress info in 0.12.0-beta3 #86

Open
philips77 opened this issue Mar 15, 2021 · 2 comments
Open

No progress info in 0.12.0-beta3 #86

philips77 opened this issue Mar 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@philips77
Copy link
Collaborator

philips77 commented Mar 15, 2021

Hi,
I have tested 0.12.0-beta3 and I don't get any progress updates. The state goes to Uploading and that's the last thing I get. However, the fw seems to be sent after some time, as when I retry it after some time it immediately tests and confirms.

Logs:

D/McuManager(26403): Connecting...
D/McuManager(26403): gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, LE 1M)
D/BluetoothGatt(26403): connect() - device: FC:50:6E:F3:B5:AC, auto: false
D/BluetoothGatt(26403): registerApp()
D/BluetoothGatt(26403): registerApp() - UUID=e454c85d-e76b-406e-903d-aea03222d2f7
D/AA      (26403): onUpgradeStarted
D/UpdateManager(26403): onStateChanged: VALIDATE
D/BluetoothGatt(26403): onClientRegistered() - status=0 clientIf=10
D/BluetoothGatt(26403): onClientConnectionState() - status=0 clientIf=10 device=FC:50:6E:F3:B5:AC
D/McuManager(26403): [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
D/McuManager(26403): Connected to FC:50:6E:F3:B5:AC
D/McuManager(26403): wait(300)
D/McuManager(26403): Discovering services...
D/McuManager(26403): gatt.discoverServices()
D/BluetoothGatt(26403): discoverServices() - device: FC:50:6E:F3:B5:AC
D/BluetoothGatt(26403): onConnectionUpdated() - Device=FC:50:6E:F3:B5:AC interval=6 latency=0 timeout=500 status=0
D/BluetoothGatt(26403): onSearchComplete() = Device=FC:50:6E:F3:B5:AC Status=0
D/McuManager(26403): Services discovered
D/McuManager(26403): Primary service found
D/McuManager(26403): Requesting new MTU...
D/McuManager(26403): gatt.requestMtu(515)
D/BluetoothGatt(26403): configureMTU() - device: FC:50:6E:F3:B5:AC mtu: 515
D/BluetoothGatt(26403): onConfigureMTU() - Device=FC:50:6E:F3:B5:AC mtu=252 status=0
D/McuManager(26403): MTU changed to: 252
D/McuManager(26403): gatt.setCharacteristicNotification(da2e7828-fbce-4e01-ae9e-261174997c48, true)
D/BluetoothGatt(26403): setCharacteristicNotification() - uuid: da2e7828-fbce-4e01-ae9e-261174997c48 enable: true
D/McuManager(26403): Enabling notifications for da2e7828-fbce-4e01-ae9e-261174997c48
D/McuManager(26403): gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
D/McuManager(26403): Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
D/McuManager(26403): Notifications enabled
D/BluetoothGatt(26403): onConnectionUpdated() - Device=FC:50:6E:F3:B5:AC interval=36 latency=0 timeout=500 status=0
D/McuManager(26403): Sending (10 bytes) Header (Op: 0, Flags: 0, Len: 2, Group: 1, Seq: 0, Command: 0) CBOR {}
D/McuManager(26403): Writing characteristic da2e7828-fbce-4e01-ae9e-261174997c48 (WRITE COMMAND)
D/McuManager(26403): gatt.writeCharacteristic(da2e7828-fbce-4e01-ae9e-261174997c48)
D/McuManager(26403): Data written to da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 00-00-00-02-00-01-00-00-BF-FF
D/McuManager(26403): Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 01-00-00-F4-00-01-00-00-BF-66-69-6D-61-67-65-73-9F-BF-64-73-6C-6F-74-00-67-76-65-72-73-69-6F-6E-65-30-2E-30-2E-30-64-68-61-73-68-58-20-00-DD-D0-C1-31-E9-E7-7C-68-53-FB-92-49-BD-F4-6E-14-95-52-3F-FF-42-00-3D-F3-99-C7-71-2C-F7-C2-69-68-62-6F-6F-74-61-62-6C-65-F5-67-70-65-6E-64-69-6E-67-F4-69-63-6F-6E-66-69-72-6D-65-64-F5-66-61-63-74-69-76-65-F5-69-70-65-72-6D-61-6E-65-6E-74-F4-FF-BF-64-73-6C-6F-74-01-67-76-65-72-73-69-6F-6E-65-30-2E-30-2E-30-64-68-61-73-68-58-20-43-99-C8-8F-0B-D4-3D-BA-13-3E-CD-9F-48-C0-E1-13-98-98-53-13-19-A7-68-2D-89-55-2A-3B-A1-82-2F-A4-68-62-6F-6F-74-61-62-6C-65-F5-67-70-65-6E-64-69-6E-67-F4-69-63-6F-6E-66-69-72-6D-65-64-F4-66-61-63-74-69-76-65-F4-69-70-65-72-6D-61-6E-65-6E-74-F4-FF-FF-6B-73-70-6C-69-74-53-74-61-74-75
D/McuManager(26403): Notification received from da2e7828-fbce-4e01-ae9e-261174997c48, value: (0x) 73-00-FF
D/McuManager(26403): Received Header (Op: 1, Flags: 0, Len: 244, Group: 1, Seq: 0, Command: 0) CBOR {"images":[{"slot":0,"version":"0.0.0","hash":"AN3QwTHp53xoU/uSSb30bhSVUj//QgA985nHcSz3wmk=","bootable":true,"pending":false,"confirmed":true,"active":true,"permanent":false},{"slot":1,"version":"0.0.0","hash":"Q5nIjwvUPboTPs2fSMDhE5iYUxMZp2gtiVUqO6GCL6Q=","bootable":true,"pending":false,"confirmed":false,"active":false,"permanent":false}],"splitStatus":0}
D/UpdateManager(26403): onStateChanged: UPLOAD
D/BluetoothGatt(26403): onConnectionUpdated() - Device=FC:50:6E:F3:B5:AC interval=36 latency=0 timeout=42 status=0
@philips77 philips77 added the bug Something isn't working label Mar 15, 2021
@bgiori
Copy link
Contributor

bgiori commented Mar 18, 2021

Committed the fix and will be updating the new image upload code again for additional stability.

Edit: After some additional testing I will tag a new beta4 release

@bgiori
Copy link
Contributor

bgiori commented Mar 18, 2021

@philips77 I have a PR open which should be much more stable. Try the 0.12.0-beta4 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants