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

Add options to configure serial update timeouts #199

Merged
merged 84 commits into from
Feb 15, 2019

Conversation

bihanssen
Copy link
Contributor

@bihanssen bihanssen commented Feb 15, 2019

This PR merges #146 by @azanelli-actronika.
Sepearate PR due to merge conflicts with master.

Closes #146.

Aurélien Zanelli and others added 30 commits May 17, 2018 12:29
as it already respond, so there is no need to continue to send ping.
and add option to set them. By default the update now wait 30 seconds
before timeout because of a no ping response.
This enable user to run the update utility before going in dfu state as
the timing can be quite short with some DFU settings. For instance, if
the only way to trigger the update is during the boot process after a
reset with a short inactivity timer.
NCP-1945: Adding new generated dfu_cc_pb2.py with addition of new FwType: EXTERNAL_APPLICATION
NCP-NONE: Moving OpCode Init to top-level
…a flag type variable

NCP-NONE: Fixing bool expression
NRF-1904: Fixing boolean error for --external_app
NRFFOSDK-12436: Making Zigbee packages external-app only
… small images read, 260KB => 640 bytes)

NRFFOSDK-12346: Cleanup of the OTA_file class generation
…ause that is the implementation in the bootloader
bihanssen and others added 25 commits February 15, 2019 10:07
Makes most of the channel parameters for the ANT dfu
transport configurable from the command line.
A platform check should be performed before using the ant dfu command.
Only a python 32bit interpreter on windows is supported as the antlib
package depends on precompiled windows 32bit libraries.
Development changes on the dependent antlib package applied.
Co-Authored-By: aledsi <[email protected]>
For the ant dlls to be included with the generated exe bundle it is necessary to specify them with the binaries directive
* Added device lister

* Dfu trigger loads libusb1 libraries

* Libusb is bundled with nrfutil

* Checking if COM ports are open

* Handling missing trigger interface

* Port for USB device will be automatically detected when a serial number if provided.

* Libusb error access is handled

* Bootloader trigger check

* Updated documentation on dfu using device serial number

* __is_device_in_bootloader_mode returns true for jlink devices

* Syntax style fix

* Dfu trigger checks if Python is running 32 bit or 64 bit before attempting to load libusb binaries
With debug-mode switch it shall be possible to skip version checking. When required-flag is set this will not work as intended.
Update click requirement to v7.*

Use compatibility operator ~= to avoid unintentional major version upgrade

Rename usb_serial to usb-serial in readme.

As of Click v7.0 the default behavior is to use hyphen as separator for command names.
Adding version range specifiers to guard against unintended and in worst case incompatible changes in the dependency modules.
* Perform address argument validation, using regexp

* Add click unit tests for address validation
Move macOS dylib to 64bit folder
* Dll loading with pyinstaller fixed

* Cross platform paths

* Pyinstall bundling for MacOS fixes
@bihanssen bihanssen changed the title Azanelli actronika dev dfu wait for board branch Add options to configure serial update timeouts Feb 15, 2019
Copy link
Contributor

@chunfantasy chunfantasy left a comment

Choose a reason for hiding this comment

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

LGTM

@bihanssen bihanssen merged commit 1dea003 into master Feb 15, 2019
bihanssen added a commit that referenced this pull request Feb 15, 2019
* Don't sleep while between device ping when doing UART serial update as we already wait in read operation.

* Stop pinging target when it responds while performing UART serial update as it already respond, so there is no need to continue to send ping.

* Distinguish serial port timeout and ping timeout

and add option to set them. By default the update now wait 30 seconds
before timeout because of a no ping response.
This enable user to run the update utility before going in dfu state as
the timing can be quite short with some DFU settings. For instance, if
the only way to trigger the update is during the boot process after a
reset with a short inactivity timer.
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.