Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Fix mesh DFU response to missing packets #328

Merged

Conversation

ludvigsj
Copy link

This fixes MBTLE-3686

  • Fix several syntax errors
  • Fix incorrect indices
  • Add opcode name and fail reason string for 0x78FAFF (DFU DATA_RSP) to
    SerialPacket
  • Add requested missing packets to queue instead of attempting to send
    from inside the handler for the incoming request. This was blocking
    the read thread causing the ack to never arrive before timeout.

This fixes MBTLE-3686

* Fix several syntax errors
* Fix incorrect indices
* Add opcode name and fail reason string for 0x78FAFF (DFU DATA_RSP) to
  SerialPacket
* Add requested missing packets to queue instead of attempting to send
  from inside the handler for the incoming request. This was blocking
  the read thread causing the ack to never arrive before timeout.
@CLAassistant
Copy link

CLAassistant commented Jun 25, 2020

CLA assistant check
All committers have signed the CLA.

self.send_packet(SerialPacket(pkt))
self.log_progress(100.0 / float(frames_count))
time.sleep(self.interval)

# Wait for any final missing packet requests
time.sleep(4)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This timeout value should have a constant at the top like the others. Also, perhaps 4 seconds is a little short?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it might be. 10 seconds might be better? I'll change it to 10 seconds and add a constant 👍

@bihanssen bihanssen merged commit f6ad534 into NordicSemiconductor:mesh_dfu Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants