remove nrfutil 0.5.2

This commit is contained in:
hathach committed 2018-08-23 14:46:28 +07:00
1 parent 4361eed5cc
commit 8ee00bfcc1
64 files changed
-17330

No files matched your search

-75
View File
@@ -1,75 +0,0 @@
# nrfutil
`nrfutil` is a Python package that includes the nrfutil command line utility
and the nordicsemi library.
This tool can be used used with the [Adafruit nRF52 Feather](https://www.adafruit.com/product/3406)
to flash firmware images onto the device using the simple serial port.
This library is written for Python 2.7.
# Installation
Run the following commands to make `nrfutil` available from the command line
or to development platforms like the Arduino IDE or CircuitPython:
**Notes** : Do **NOT** install nrfutil from the pip package (ex. `sudo pip
install nrfutil`). The latest nrfutil does not support DFU via Serial, and you
should install version 0.5.2 from a local copy of this repo via the methods
detailed below:
### OS X and Linux
```
$ sudo pip install -r requirements.txt
$ sudo python setup.py install
```
### Windows
#### Option 1: Pre-Built Binary
A pre-built 32-bit version of nrfutil is included as part of this repo in the
`binaries/win32` folder. You can use this pre-built binary by adding it to your
systems `$PATH` variable.
#### Option 2: Build nrfutil from Source
- Make sure that you have **Python 2.7** available on your system.
- Manually install **py2exe version 0.6.9** from this link (selecting
the 32-bit or 64-bit version depending on your Python installation):
[Download py2exe 0.6.9](https://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/).
- VC compiler for Python (Windows only) (http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266)
- From the command prompt, install nrfutil via pip as follows:
```
pip install -r requirements.txt
python setup.py install
```
To generate a self-contained Windows exe version of the utility (Windows only):
```
python setup.py py2exe
```
# Usage
To get info on usage of nrfutil:
```
nrfutil --help
```
To convert an nRF52 .hex file into a DFU pkg file that the serial bootloader
can make use of:
```
nrfutil dfu genpkg --dev-type 0x0052 --application firmware.hex dfu-package.zip
```
To flash a DFU pkg file over serial:
```
nrfutil dfu serial --package dfu-package.zip -p /dev/tty.SLAB_USBtoUART -b 115200
```
Binary file not shown.
-27
View File
@@ -1,27 +0,0 @@
Copyright (c) 2015, Nordic Semiconductor
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Nordic Semiconductor ASA nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
-308
View File
@@ -1,308 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""nrfutil command line tool."""
import logging
import os
import click
from nordicsemi.dfu.dfu import Dfu
from nordicsemi.dfu.dfu_transport import DfuEvent
from nordicsemi.dfu.dfu_transport_serial import DfuTransportSerial
from nordicsemi.dfu.package import Package
from nordicsemi import version as nrfutil_version
from nordicsemi.dfu.signing import Signing
from nordicsemi.dfu.util import query_func
class nRFException(Exception):
pass
def int_as_text_to_int(value):
try:
if value[:2].lower() == '0x':
return int(value[2:], 16)
elif value[:1] == '0':
return int(value, 8)
return int(value, 10)
except ValueError:
raise nRFException('%s is not a valid integer' % value)
class BasedIntOrNoneParamType(click.ParamType):
name = 'Int or None'
def convert(self, value, param, ctx):
try:
if value.lower() == 'none':
return 'none'
return int_as_text_to_int(value)
except nRFException:
self.fail('%s is not a valid integer' % value, param, ctx)
BASED_INT_OR_NONE = BasedIntOrNoneParamType()
class TextOrNoneParamType(click.ParamType):
name = 'Text or None'
def convert(self, value, param, ctx):
return value
TEXT_OR_NONE = TextOrNoneParamType()
@click.group()
@click.option('--verbose',
help='Show verbose information',
is_flag=True)
def cli(verbose):
if verbose:
logging.basicConfig(format='%(message)s', level=logging.INFO)
else:
logging.basicConfig(format='%(message)s')
@cli.command()
def version():
"""Displays nrf utility version."""
click.echo("nrfutil version {}".format(nrfutil_version.NRFUTIL_VERSION))
@cli.command(short_help='Generate keys for signing or generate public keys')
@click.argument('key_file', required=True)
@click.option('--gen-key',
help='generate signing key and store at given path (pem-file)',
type=click.BOOL,
is_flag=True)
@click.option('--show-vk',
help='Show the verification keys for DFU Signing (hex|code|pem)',
type=click.STRING)
def keys(key_file,
gen_key,
show_vk):
"""
This set of commands support creation of signing key (private) and showing the verification key (public)
from a previously loaded signing key. Signing key is stored in PEM format
"""
if not gen_key and show_vk is None:
raise nRFException("Use either gen-key or show-vk.")
signer = Signing()
if gen_key:
if os.path.exists(key_file):
if not query_func("File found at %s. Do you want to overwrite the file?" % key_file):
click.echo('Key generation aborted')
return
signer.gen_key(key_file)
click.echo("Generated key at: %s" % key_file)
elif show_vk:
if not os.path.isfile(key_file):
raise nRFException("No key file to load at: %s" % key_file)
signer.load_key(key_file)
click.echo(signer.get_vk(show_vk))
@cli.group()
def dfu():
"""
This set of commands support Nordic DFU OTA package generation for distribution to
applications and serial DFU.
"""
pass
@dfu.command(short_help='Generate a package for distribution to Apps supporting Nordic DFU OTA')
@click.argument('zipfile',
required=True,
type=click.Path())
@click.option('--application',
help='The application firmware file',
type=click.STRING)
@click.option('--application-version',
help='Application version, default: 0xFFFFFFFF',
type=BASED_INT_OR_NONE,
default=str(Package.DEFAULT_APP_VERSION))
@click.option('--bootloader',
help='The bootloader firmware file',
type=click.STRING)
@click.option('--dev-revision',
help='Device revision, default: 0xFFFF',
type=BASED_INT_OR_NONE,
default=str(Package.DEFAULT_DEV_REV))
@click.option('--dev-type',
help='Device type, default: 0xFFFF',
type=BASED_INT_OR_NONE,
default=str(Package.DEFAULT_DEV_TYPE))
@click.option('--dfu-ver',
help='DFU packet version to use, default: 0.5',
type=click.FLOAT,
default=Package.DEFAULT_DFU_VER)
@click.option('--sd-req',
help='SoftDevice requirement. A list of SoftDevice versions (1 or more)'
'of which one is required to be present on the target device.'
'Example: --sd-req 0x4F,0x5A. Default: 0xFFFE.',
type=TEXT_OR_NONE,
default=str(Package.DEFAULT_SD_REQ[0]))
@click.option('--softdevice',
help='The SoftDevice firmware file',
type=click.STRING)
@click.option('--key-file',
help='Signing key (pem fomat)',
type=click.Path(exists=True, resolve_path=True, file_okay=True, dir_okay=False))
def genpkg(zipfile,
application,
application_version,
bootloader,
dev_revision,
dev_type,
dfu_ver,
sd_req,
softdevice,
key_file):
"""
Generate a zipfile package for distribution to Apps supporting Nordic DFU OTA.
The application, bootloader and softdevice files are converted to .bin if it is a .hex file.
For more information on the generated init packet see:
http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00065.html
"""
zipfile_path = zipfile
if application_version == 'none':
application_version = None
if dev_revision == 'none':
dev_revision = None
if dev_type == 'none':
dev_type = None
sd_req_list = None
if sd_req.lower() == 'none':
sd_req_list = []
elif sd_req:
try:
# This will parse any string starting with 0x as base 16.
sd_req_list = sd_req.split(',')
sd_req_list = map(int_as_text_to_int, sd_req_list)
except ValueError:
raise nRFException("Could not parse value for --sd-req. "
"Hex values should be prefixed with 0x.")
if key_file and dfu_ver < 0.8:
click.echo("Key file was given, setting DFU version to 0.8")
package = Package(dev_type,
dev_revision,
application_version,
sd_req_list,
application,
bootloader,
softdevice,
dfu_ver,
key_file)
package.generate_package(zipfile_path)
log_message = "Zip created at {0}".format(zipfile_path)
click.echo(log_message)
global_bar = None
def update_progress(progress=0, done=False, log_message=""):
del done, log_message # Unused parameters
#global global_bar
#if global_bar is None:
# with click.progressbar(length=100) as bar:
# global_bar = bar
#global_bar.update(max(1, progress))
click.echo('#', nl=False)
@dfu.command(short_help="Program a device with bootloader that support serial DFU")
@click.option('-pkg', '--package',
help='DFU package filename',
type=click.Path(exists=True, resolve_path=True, file_okay=True, dir_okay=False),
required=True)
@click.option('-p', '--port',
help='Serial port COM Port to which the device is connected',
type=click.STRING,
required=True)
@click.option('-b', '--baudrate',
help='Desired baud rate 38400/96000/115200/230400/250000/460800/921600/1000000 (default: 38400). '
'Note: Physical serial ports (e.g. COM1) typically do not support baud rates > 115200',
type=click.INT,
default=DfuTransportSerial.DEFAULT_BAUD_RATE)
@click.option('-fc', '--flowcontrol',
help='Enable flow control, default: disabled',
type=click.BOOL,
is_flag=True)
@click.option('-sb', '--singlebank',
help='Single band bootloader to skip firmware activating delay, default: Dual bank',
type=click.BOOL,
is_flag=True)
def serial(package, port, baudrate, flowcontrol, singlebank):
"""Program a device with bootloader that support serial DFU"""
serial_backend = DfuTransportSerial(port, baudrate, flowcontrol, singlebank)
serial_backend.register_events_callback(DfuEvent.PROGRESS_EVENT, update_progress)
dfu = Dfu(package, dfu_transport=serial_backend)
click.echo("Upgrading target on {1} with DFU package {0}. Flow control is {2}, {3} bank mode"
.format(package, port, "enabled" if flowcontrol else "disabled", "Single" if singlebank else "Dual"))
try:
dfu.dfu_send_images()
except Exception as e:
click.echo("")
click.echo("Failed to upgrade target. Error is: {0}".format(e.message))
click.echo("")
click.echo("Possible causes:")
click.echo("- Selected Bootloader version does not match the one on Bluefruit device.")
click.echo(" Please upgrade the Bootloader or select correct version in Tools->Bootloader.")
click.echo("- Baud rate must be 115200, Flow control must be off.")
click.echo("- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.")
return False
click.echo("Device programmed.")
return True
if __name__ == '__main__':
cli()
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
@@ -1,76 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
UART_HEADER_OCTET_COUNT = 4
class ThreeWireUartPacket(object):
"""
This class encapsulate a three wire uart packet according to Bluetooth specification
version 4.0 [Vol 4] part D.
"""
def __init__(self):
self.ack = None # Acknowledgement number
self.seq = None # Sequence number
self.di = None # Data integrity present
self.rp = None # Reliable packet
self.type = None # Packet type
self.length = None # Payload Length
self.checksum = None # Header checksum
self.payload = None # Payload
@staticmethod
def decode(packet):
"""
Decodes a packet from a str encoded array
:param packet_bytes: A str encoded array
:return: TheeWireUartPacket
"""
decoded_packet = ThreeWireUartPacket()
packet_bytes = bytearray(packet)
decoded_packet.ack = (packet_bytes[0] & int('38', 16)) >> 3
decoded_packet.seq = (packet_bytes[0] & int('07', 16))
decoded_packet.di = (packet_bytes[0] & int('40', 16)) >> 6
decoded_packet.rp = (packet_bytes[0] & int('80', 16)) >> 7
decoded_packet.type = (packet_bytes[1] & int('0F', 16))
decoded_packet.length = ((packet_bytes[1] & int('F0', 16)) >> 4) + (packet_bytes[2] * 16)
checksum = packet_bytes[0]
checksum = checksum + packet_bytes[1]
checksum = checksum + packet_bytes[2]
checksum &= int('FF', 16)
decoded_packet.checksum = (~checksum + 1) & int('FF', 16)
if decoded_packet.length > 0:
decoded_packet.payload = packet_bytes[UART_HEADER_OCTET_COUNT:-1]
return decoded_packet
@@ -1,115 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import logging
logger = logging.getLogger(__name__)
class Slip(object):
def __init__(self):
self.SLIP_END = '\xc0'
self.SLIP_ESC = '\xdb'
self.SLIP_ESC_END = '\xdc'
self.SLIP_ESC_ESC = '\xdd'
self.started = False
self.escaped = False
self.stream = ''
self.packet = ''
def append(self, data):
"""
Append a new
:param data: Append a new block of data to do decoding on when calling decode.
The developer may add more than one SLIP packet before calling decode.
:return:
"""
self.stream += data
def decode(self):
"""
Decodes a package according to http://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol
:return Slip: A list of decoded slip packets
"""
packet_list = list()
for char in self.stream:
if char == self.SLIP_END:
if self.started:
if len(self.packet) > 0:
self.started = False
packet_list.append(self.packet)
self.packet = ''
else:
self.started = True
self.packet = ''
elif char == self.SLIP_ESC:
self.escaped = True
elif char == self.SLIP_ESC_END:
if self.escaped:
self.packet += self.SLIP_END
self.escaped = False
else:
self.packet += char
elif char == self.SLIP_ESC_ESC:
if self.escaped:
self.packet += self.SLIP_ESC
self.escaped = False
else:
self.packet += char
else:
if self.escaped:
logging.error("Error in SLIP packet, ignoring error.")
self.packet = ''
self.escaped = False
else:
self.packet += char
self.stream = ''
return packet_list
def encode(self, packet):
"""
Encode a packet according to SLIP.
:param packet: A str array that represents the package
:return: str array with an encoded SLIP packet
"""
encoded = self.SLIP_END
for char in packet:
if char == self.SLIP_END:
encoded += self.SLIP_ESC + self.SLIP_ESC_END
elif char == self.SLIP_ESC:
encoded += self.SLIP_ESC + self.SLIP_ESC_ESC
else:
encoded += char
encoded += self.SLIP_END
return encoded
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
@@ -1,81 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import json
import unittest
from nordicsemi.bluetooth.hci.slip import Slip
from nordicsemi.bluetooth.hci import codec
class TestInitPacket(unittest.TestCase):
def setUp(self):
pass
def test_decode_packet(self):
# TODO: extend this test, this tests only a small portion of the slip/hci decoding
# These are packets read from Device Monitoring Studio
# during communication between serializer application and firmware
read_packets = [
" C0 10 00 00 F0 C0 C0 D1 6E 00 C1 01 86 00 00 00 00 17 63 C0",
" C0 D2 DE 02 4E 02 1B 00 FF FF 01 17 FE B4 9A 9D E1 B0 F8 02"
" 01 06 11 07 1B C5 D5 A5 02 00 A9 B7 E2 11 A4 C6 00 FE E7 74"
" 09 09 49 44 54 57 32 31 38 48 5A BB C0",
" C0 D3 EE 00 3F 02 1B 00 FF FF 01 17 FE B4 9A 9D E1 AF 01 F1 62 C0",
" C0 D4 DE 02 4C 02 1B 00 FF FF 01 17 FE B4 9A 9D E1 B1 F8 02 01 06"
" 11 07 1B C5 D5 A5 02 00 A9 B7 E2 11 A4 C6 00 FE E7 74 09 09 49 44 54 57 32 31 38 48 6E C8 C0"
]
slip = Slip()
output = list()
for uart_packet in read_packets:
hex_string = uart_packet.replace(" ", "")
hex_data = hex_string.decode("hex")
slip.append(hex_data)
packets = slip.decode()
for packet in packets:
output.append(codec.ThreeWireUartPacket.decode(packet))
self.assertEqual(len(output), 5)
packet_index = 0
self.assertEqual(output[packet_index].seq, 0)
packet_index += 1
self.assertEqual(output[packet_index].seq, 1)
packet_index += 1
self.assertEqual(output[packet_index].seq, 2)
packet_index += 1
self.assertEqual(output[packet_index].seq, 3)
packet_index += 1
self.assertEqual(output[packet_index].seq, 4)
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
@@ -1,44 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
def calc_crc16(binary_data, crc=0xffff):
"""
Calculates CRC16 on binary_data
:param int crc: CRC value to start calculation with
:param bytearray binary_data: Array with data to run CRC16 calculation on
:return int: Calculated CRC value of binary_data
"""
for b in binary_data:
crc = (crc >> 8 & 0x00FF) | (crc << 8 & 0xFF00)
crc ^= ord(b)
crc ^= (crc & 0x00FF) >> 4
crc ^= (crc << 8) << 4
crc ^= ((crc & 0x00FF) << 4) << 1
return crc & 0xFFFF
-232
View File
@@ -1,232 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Python standard library
import os
import tempfile
import shutil
import logging
from time import time, sleep
from datetime import datetime, timedelta
# Nordic libraries
from nordicsemi.exceptions import *
from nordicsemi.dfu.package import Package
from nordicsemi.dfu.dfu_transport import DfuEvent
from nordicsemi.dfu.model import HexType
from nordicsemi.dfu.manifest import SoftdeviceBootloaderFirmware
logger = logging.getLogger(__name__)
class Dfu(object):
""" Class to handle upload of a new hex image to the device. """
def __init__(self, zip_file_path, dfu_transport):
"""
Initializes the dfu upgrade, unpacks zip and registers callbacks.
@param zip_file_path: Path to the zip file with the firmware to upgrade
@type zip_file_path: str
@param dfu_transport: Transport backend to use to upgrade
@type dfu_transport: nordicsemi.dfu.dfu_transport.DfuTransport
@return
"""
self.zip_file_path = zip_file_path
self.ready_to_send = True
self.response_opcode_received = None
self.temp_dir = tempfile.mkdtemp(prefix="nrf_dfu_")
self.unpacked_zip_path = os.path.join(self.temp_dir, 'unpacked_zip')
self.manifest = Package.unpack_package(self.zip_file_path, self.unpacked_zip_path)
if dfu_transport:
self.dfu_transport = dfu_transport
self.dfu_transport.register_events_callback(DfuEvent.TIMEOUT_EVENT, self.timeout_event_handler)
self.dfu_transport.register_events_callback(DfuEvent.ERROR_EVENT, self.error_event_handler)
def __del__(self):
"""
Destructor removes the temporary directory for the unpacked zip
:return:
"""
shutil.rmtree(self.temp_dir)
def error_event_handler(self, log_message=""):
"""
Event handler for errors, closes the transport backend.
:param str log_message: The log message for the error.
:return:
"""
if self.dfu_transport.is_open():
self.dfu_transport.close()
logger.error(log_message)
def timeout_event_handler(self, log_message):
"""
Event handler for timeouts, closes the transport backend.
:param log_message: The log message for the timeout.
:return:
"""
if self.dfu_transport.is_open():
self.dfu_transport.close()
logger.error(log_message)
@staticmethod
def _read_file(file_path):
"""
Reads a file and returns the content as a string.
:param str file_path: The path to the file to read.
:return str: Content of the file.
"""
buffer_size = 4096
file_content = ""
with open(file_path, 'rb') as binary_file:
while True:
data = binary_file.read(buffer_size)
if data:
file_content += data
else:
break
return file_content
def _wait_while_opening_transport(self):
timeout = 10
start_time = datetime.now()
while not self.dfu_transport.is_open():
timed_out = datetime.now() - start_time > timedelta(0, timeout)
if timed_out:
log_message = "Failed to open transport backend"
raise NordicSemiException(log_message)
sleep(0.1)
def _dfu_send_image(self, program_mode, firmware_manifest):
"""
Does DFU for one image. Reads the firmware image and init file.
Opens the transport backend, calls setup, send and finalize and closes the backend again.
@param program_mode: What type of firmware the DFU is
@type program_mode: nordicsemi.dfu.model.HexType
@param firmware_manifest: The manifest for the firmware image
@type firmware_manifest: nordicsemi.dfu.manifest.Firmware
@return:
"""
if firmware_manifest is None:
raise MissingArgumentException("firmware_manifest must be provided.")
if self.dfu_transport.is_open():
raise IllegalStateException("Transport is already open.")
self.dfu_transport.open()
self._wait_while_opening_transport()
softdevice_size = 0
bootloader_size = 0
application_size = 0
bin_file_path = os.path.join(self.unpacked_zip_path, firmware_manifest.bin_file)
firmware = self._read_file(bin_file_path)
dat_file_path = os.path.join(self.unpacked_zip_path, firmware_manifest.dat_file)
init_packet = self._read_file(dat_file_path)
if program_mode == HexType.SD_BL:
if not isinstance(firmware_manifest, SoftdeviceBootloaderFirmware):
raise NordicSemiException("Wrong type of manifest")
softdevice_size = firmware_manifest.sd_size
bootloader_size = firmware_manifest.bl_size
firmware_size = len(firmware)
if softdevice_size + bootloader_size != firmware_size:
raise NordicSemiException(
"Size of bootloader ({} bytes) and softdevice ({} bytes)"
" is not equal to firmware provided ({} bytes)".format(
bootloader_size, softdevice_size, firmware_size))
elif program_mode == HexType.SOFTDEVICE:
softdevice_size = len(firmware)
elif program_mode == HexType.BOOTLOADER:
bootloader_size = len(firmware)
elif program_mode == HexType.APPLICATION:
application_size = len(firmware)
start_time = time()
logger.info("Starting DFU upgrade of type %s, SoftDevice size: %s, bootloader size: %s, application size: %s",
program_mode,
softdevice_size,
bootloader_size,
application_size)
logger.info("Sending DFU start packet")
self.dfu_transport.send_start_dfu(program_mode, softdevice_size, bootloader_size,
application_size)
logger.info("Sending DFU init packet")
self.dfu_transport.send_init_packet(init_packet)
logger.info("Sending firmware file")
self.dfu_transport.send_firmware(firmware)
self.dfu_transport.send_validate_firmware()
self.dfu_transport.send_activate_firmware()
end_time = time()
logger.info("\nDFU upgrade took {0}s".format(end_time - start_time))
self.dfu_transport.close()
def dfu_send_images(self):
"""
Does DFU for all firmware images in the stored manifest.
:return:
"""
if self.manifest.softdevice_bootloader:
self._dfu_send_image(HexType.SD_BL, self.manifest.softdevice_bootloader)
if self.manifest.softdevice:
self._dfu_send_image(HexType.SOFTDEVICE, self.manifest.softdevice)
if self.manifest.bootloader:
self._dfu_send_image(HexType.BOOTLOADER, self.manifest.bootloader)
if self.manifest.application:
self._dfu_send_image(HexType.APPLICATION, self.manifest.application)
@@ -1,204 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Python specific imports
import abc
import logging
# Nordic Semiconductor imports
from nordicsemi.dfu.util import int32_to_bytes
logger = logging.getLogger(__name__)
class DfuEvent:
PROGRESS_EVENT = 1
TIMEOUT_EVENT = 2
ERROR_EVENT = 3
class DfuTransport(object):
"""
This class as an abstract base class inherited from when implementing transports.
The class is generic in nature, the underlying implementation may have missing semantic
than this class describes. But the intent is that the implementer shall follow the semantic as
best as she can.
"""
__metaclass__ = abc.ABCMeta
@staticmethod
def create_image_size_packet(softdevice_size=0, bootloader_size=0, app_size=0):
"""
Creates an image size packet necessary for sending start dfu.
@param softdevice_size: Size of SoftDevice firmware
@type softdevice_size: int
@param bootloader_size: Size of bootloader firmware
@type softdevice_size: int
@param app_size: Size of application firmware
:return: The image size packet
:rtype: str
"""
softdevice_size_packet = int32_to_bytes(softdevice_size)
bootloader_size_packet = int32_to_bytes(bootloader_size)
app_size_packet = int32_to_bytes(app_size)
image_size_packet = softdevice_size_packet + bootloader_size_packet + app_size_packet
return image_size_packet
@abc.abstractmethod
def __init__(self):
self.callbacks = {}
@abc.abstractmethod
def open(self):
"""
Open a port if appropriate for the transport.
:return:
"""
pass
@abc.abstractmethod
def close(self):
"""
Close a port if appropriate for the transport.
:return:
"""
pass
@abc.abstractmethod
def is_open(self):
"""
Returns if transport is open.
:return bool: True if transport is open, False if not
"""
pass
@abc.abstractmethod
def send_start_dfu(self, program_mode, softdevice_size=0, bootloader_size=0, app_size=0):
"""
Send packet to initiate DFU communication. Returns when packet is sent or timeout occurs.
This call will block until packet is sent.
If timeout or errors occurs exception is thrown.
:param nordicsemi.dfu.model.HexType program_mode: Type of firmware to upgrade
:param int softdevice_size: Size of softdevice firmware
:param int bootloader_size: Size of bootloader firmware
:param int app_size: Size of application firmware
:return:
"""
pass
@abc.abstractmethod
def send_init_packet(self, init_packet):
"""
Send init_packet to device.
This call will block until init_packet is sent and transfer of packet is complete.
If timeout or errors occurs exception is thrown.
:param str init_packet: Init packet as a str.
:return:
"""
pass
@abc.abstractmethod
def send_firmware(self, firmware):
"""
Start sending firmware to device.
This call will block until transfer of firmware is complete.
If timeout or errors occurs exception is thrown.
:param str firmware:
:return:
"""
pass
@abc.abstractmethod
def send_validate_firmware(self):
"""
Send request to device to verify that firmware has been correctly transferred.
This call will block until validation is sent and validation is complete.
If timeout or errors occurs exception is thrown.
:return bool: True if firmware validated successfully.
"""
pass
@abc.abstractmethod
def send_activate_firmware(self):
"""
Send command to device to activate new firmware and restart the device.
The device will start up with the new firmware.
Raises an nRFException if anything fails.
:return:
"""
pass
def register_events_callback(self, event_type, callback):
"""
Register a callback.
:param DfuEvent callback:
:return: None
"""
if event_type not in self.callbacks:
self.callbacks[event_type] = []
self.callbacks[event_type].append(callback)
def unregister_events_callback(self, callback):
"""
Unregister a callback.
:param callback: # TODO: add documentation for callback
:return: None
"""
for event_type in self.callbacks.keys():
if callback in self.callbacks[event_type]:
self.callbacks[event_type].remove(callback)
def _send_event(self, event_type, **kwargs):
"""
Method for sending events to registered callbacks.
If callbacks throws exceptions event propagation will stop and this method be part of the track trace.
:param DfuEvent event_type:
:param args: Arguments to callback function
:return:
"""
if event_type in self.callbacks.keys():
for callback in self.callbacks[event_type]:
callback(**kwargs)
@@ -1,327 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Python standard library
from time import sleep
from datetime import datetime, timedelta
import abc
import logging
# Nordic libraries
from nordicsemi.exceptions import NordicSemiException, IllegalStateException
from nordicsemi.dfu.util import int16_to_bytes
from nordicsemi.dfu.dfu_transport import DfuTransport, DfuEvent
logger = logging.getLogger(__name__)
# BLE DFU OpCodes :
class DfuOpcodesBle(object):
""" DFU opcodes used during DFU communication with bootloader
See http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00949.html#gafa9a52a3e6c43ccf00cf680f944d67a3
for further information
"""
INVALID_OPCODE = 0
START_DFU = 1
INITIALIZE_DFU = 2
RECEIVE_FIRMWARE_IMAGE = 3
VALIDATE_FIRMWARE_IMAGE = 4
ACTIVATE_FIRMWARE_AND_RESET = 5
SYSTEM_RESET = 6
REQ_PKT_RCPT_NOTIFICATION = 8
RESPONSE = 16
PKT_RCPT_NOTIF = 17
class DfuErrorCodeBle(object):
""" DFU error code used during DFU communication with bootloader
See http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00949.html#gafa9a52a3e6c43ccf00cf680f944d67a3
for further information
"""
SUCCESS = 1
INVALID_STATE = 2
NOT_SUPPORTED = 3
DATA_SIZE_EXCEEDS_LIMIT = 4
CRC_ERROR = 5
OPERATION_FAILED = 6
@staticmethod
def error_code_lookup(error_code):
"""
Returns a description lookup table for error codes received from peer.
:param int error_code: Error code to parse
:return str: Textual description of the error code
"""
code_lookup = {DfuErrorCodeBle.SUCCESS: "SUCCESS",
DfuErrorCodeBle.INVALID_STATE: "Invalid State",
DfuErrorCodeBle.NOT_SUPPORTED: "Not Supported",
DfuErrorCodeBle.DATA_SIZE_EXCEEDS_LIMIT: "Data Size Exceeds Limit",
DfuErrorCodeBle.CRC_ERROR: "CRC Error",
DfuErrorCodeBle.OPERATION_FAILED: "Operation Failed"}
return code_lookup.get(error_code, "UNKOWN ERROR CODE")
# Service UUID. For further information, look at the nRF51 SDK documentation V7.2.0:
# http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00071.html#ota_spec_number
UUID_DFU_SERVICE = '000015301212EFDE1523785FEABCD123'
# Characteristic UUID
UUID_DFU_PACKET_CHARACTERISTIC = '000015321212EFDE1523785FEABCD123'
UUID_DFU_CONTROL_STATE_CHARACTERISTIC = '000015311212EFDE1523785FEABCD123'
# Descriptor UUID
UUID_CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR = 0x2902
# NOTE: If packet receipt notification is enabled, a packet receipt
# notification will be received for each 'num_of_packets_between_notif'
# number of packets.
#
# Configuration tip: Increase this to get lesser notifications from the DFU
# Target about packet receipts. Make it 0 to disable the packet receipt
# notification
NUM_OF_PACKETS_BETWEEN_NOTIF = 10
DATA_PACKET_SIZE = 20
class DfuTransportBle(DfuTransport):
def __init__(self):
super(DfuTransportBle, self).__init__()
def open(self):
super(DfuTransportBle, self).open()
def is_open(self):
return super(DfuTransportBle, self).is_open()
def close(self):
super(DfuTransportBle, self).close()
def _wait_for_condition(self, condition_function, expected_condition_value=True, timeout=10,
waiting_for="condition"):
"""
Waits for condition_function to be true
Will timeout after 60 seconds
:param function condition_function: The function we are waiting for to return true
:param str timeout_message: Message that should be logged
:return:
"""
start_time = datetime.now()
while condition_function() != expected_condition_value:
timeout_message = "Timeout while waiting for {0}.".format(waiting_for)
timed_out = datetime.now() - start_time > timedelta(0, timeout)
if timed_out:
self._send_event(DfuEvent.TIMEOUT_EVENT, log_message=timeout_message)
raise NordicSemiException(timeout_message)
if not self.is_open():
log_message = "Disconnected from device while waiting for {0}.".format(waiting_for)
raise IllegalStateException(log_message)
sleep(0.1)
if self.get_last_error() != DfuErrorCodeBle.SUCCESS:
error_message = "Error occoured while waiting for {0}. Error response {1}."
error_code = DfuErrorCodeBle.error_code_lookup(self.get_last_error())
error_message = error_message.format(waiting_for, error_code)
self._send_event(DfuEvent.ERROR_EVENT, log_message=error_message)
raise NordicSemiException(error_message)
@abc.abstractmethod
def send_packet_data(self, data):
"""
Send data to the packet characteristic
:param str data: The data to be sent
:return:
"""
pass
@abc.abstractmethod
def send_control_data(self, opcode, data=""):
"""
Send data to the control characteristic
:param int opcode: The opcode for the operation command sent to the control characteristic
:param str data: The data to be sent
:return:
"""
pass
@abc.abstractmethod
def get_received_response(self):
"""
Returns True if the transport layer has received a response it expected
:return: bool
"""
pass
def clear_received_response(self):
"""
Clears the received response status, sets it to False.
:return:
"""
pass
@abc.abstractmethod
def is_waiting_for_notification(self):
"""
Returns True if the transport layer is waiting for a notification
:return: bool
"""
pass
def set_waiting_for_notification(self):
"""
Notifies the transport layer that it should wait for notification
:return:
"""
pass
@abc.abstractmethod
def get_last_error(self):
"""
Returns the last error code
:return: DfuErrorCodeBle
"""
pass
def _start_dfu(self, program_mode, image_size_packet):
logger.debug("Sending 'START DFU' command")
self.send_control_data(DfuOpcodesBle.START_DFU, chr(program_mode))
logger.debug("Sending image size")
self.send_packet_data(image_size_packet)
self._wait_for_condition(self.get_received_response, waiting_for="response for START DFU")
self.clear_received_response()
def send_start_dfu(self, program_mode, softdevice_size=0, bootloader_size=0, app_size=0):
super(DfuTransportBle, self).send_start_dfu(program_mode, softdevice_size, bootloader_size, app_size)
image_size_packet = DfuTransport.create_image_size_packet(softdevice_size, bootloader_size, app_size)
self._send_event(DfuEvent.PROGRESS_EVENT, progress=0, log_message="Setting up transfer...")
try:
self._start_dfu(program_mode, image_size_packet)
except IllegalStateException:
# We got disconnected. Try to send Start DFU again in case of buttonless dfu.
self.close()
self.open()
if not self.is_open():
raise IllegalStateException("Failed to reopen transport backend.")
self._start_dfu(program_mode, image_size_packet)
def send_init_packet(self, init_packet):
super(DfuTransportBle, self).send_init_packet(init_packet)
init_packet_start = chr(0x00)
init_packet_end = chr(0x01)
logger.debug("Sending 'INIT DFU' command")
self.send_control_data(DfuOpcodesBle.INITIALIZE_DFU, init_packet_start)
logger.debug("Sending init data")
for i in range(0, len(init_packet), DATA_PACKET_SIZE):
data_to_send = init_packet[i:i + DATA_PACKET_SIZE]
self.send_packet_data(data_to_send)
logger.debug("Sending 'Init Packet Complete' command")
self.send_control_data(DfuOpcodesBle.INITIALIZE_DFU, init_packet_end)
self._wait_for_condition(self.get_received_response, timeout=60, waiting_for="response for INITIALIZE DFU")
self.clear_received_response()
if NUM_OF_PACKETS_BETWEEN_NOTIF:
packet = int16_to_bytes(NUM_OF_PACKETS_BETWEEN_NOTIF)
logger.debug("Send number of packets before device sends notification")
self.send_control_data(DfuOpcodesBle.REQ_PKT_RCPT_NOTIFICATION, packet)
def send_firmware(self, firmware):
def progress_percentage(part, complete):
"""
Calculate progress percentage
:param int part: Part value
:param int complete: Completed value
:return: int: Percentage complete
"""
return min(100, (part + DATA_PACKET_SIZE) * 100 / complete)
super(DfuTransportBle, self).send_firmware(firmware)
packets_sent = 0
last_progress_update = -1 # Last packet sequence number when an update was fired to the event system
bin_size = len(firmware)
logger.debug("Send 'RECEIVE FIRMWARE IMAGE' command")
self.send_control_data(DfuOpcodesBle.RECEIVE_FIRMWARE_IMAGE)
for i in range(0, bin_size, DATA_PACKET_SIZE):
progress = progress_percentage(i, bin_size)
if progress != last_progress_update:
self._send_event(DfuEvent.PROGRESS_EVENT, progress=progress, log_message="Uploading firmware")
last_progress_update = progress
self._wait_for_condition(self.is_waiting_for_notification, expected_condition_value=False,
waiting_for="notification from device")
data_to_send = firmware[i:i + DATA_PACKET_SIZE]
log_message = "Sending Firmware bytes [{0}, {1}]".format(i, i + len(data_to_send))
logger.debug(log_message)
packets_sent += 1
if NUM_OF_PACKETS_BETWEEN_NOTIF != 0:
if (packets_sent % NUM_OF_PACKETS_BETWEEN_NOTIF) == 0:
self.set_waiting_for_notification()
self.send_packet_data(data_to_send)
self._wait_for_condition(self.get_received_response, waiting_for="response for RECEIVE FIRMWARE IMAGE")
self.clear_received_response()
def send_validate_firmware(self):
super(DfuTransportBle, self).send_validate_firmware()
logger.debug("Sending 'VALIDATE FIRMWARE IMAGE' command")
self.send_control_data(DfuOpcodesBle.VALIDATE_FIRMWARE_IMAGE)
self._wait_for_condition(self.get_received_response, waiting_for="response for VALIDATE FIRMWARE IMAGE")
self.clear_received_response()
logger.info("Firmware validated OK.")
def send_activate_firmware(self):
super(DfuTransportBle, self).send_activate_firmware()
logger.debug("Sending 'ACTIVATE FIRMWARE AND RESET' command")
self.send_control_data(DfuOpcodesBle.ACTIVATE_FIRMWARE_AND_RESET)
@@ -1,337 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Python imports
import time
from datetime import datetime, timedelta
import binascii
import logging
import click
# Python 3rd party imports
from serial import Serial
# Nordic Semiconductor imports
from nordicsemi.dfu.util import slip_parts_to_four_bytes, slip_encode_esc_chars, int16_to_bytes, int32_to_bytes
from nordicsemi.dfu import crc16
from nordicsemi.exceptions import NordicSemiException
from nordicsemi.dfu.dfu_transport import DfuTransport, DfuEvent
logger = logging.getLogger(__name__)
class DfuTransportSerial(DfuTransport):
DEFAULT_BAUD_RATE = 115200
DEFAULT_FLOW_CONTROL = False
DEFAULT_SERIAL_PORT_TIMEOUT = 1.0 # Timeout time on serial port read
SERIAL_PORT_OPEN_WAIT_TIME = 0.1
NRF52_RESET_WAIT_TIME = 0.1
ACK_PACKET_TIMEOUT = 1.0 # Timeout time for for ACK packet received before reporting timeout through event system
SEND_INIT_PACKET_WAIT_TIME = 0.5 # 1.0 # Time to wait before communicating with bootloader after init packet is sent
# SEND_START_DFU_WAIT_TIME = 10.0 # Time to wait before communicating with bootloader after start DFU packet is sent
# ADADFRUIT:
# - After Start packet is sent, nrf5x will start to erase flash page, each page takes 2.05 - 89.7 ms
# nrfutil need to wait accordingly for the image size
# - After sending all data -> send command to activate new firmware --> nrf52 erase bank0 and copy image
# from bank1 to bank0 (if dual bank) nrfutil need to wait otherwise and re-open serial could cause flash corruption
# T erase page for nrf52832 is (2.05 to 89.7 ms), nrf52840 is ~85 ms max
FLASH_PAGE_ERASE_MAX_TIME = 0.085
# T write word for nrf52832 is (6.7 to 338 us), nrf52840 is ~41 us max
FLASH_WORD_WRITE_AVG_TIME = 0.000041
FLASH_PAGE_SIZE = 4096 # 4K for nrf52
DFU_PACKET_MAX_SIZE = 512 # The DFU packet max size
def __init__(self, com_port, baud_rate=DEFAULT_BAUD_RATE, flow_control=DEFAULT_FLOW_CONTROL, single_bank=False, timeout=DEFAULT_SERIAL_PORT_TIMEOUT):
super(DfuTransportSerial, self).__init__()
self.com_port = com_port
self.baud_rate = baud_rate
self.flow_control = 1 if flow_control else 0
self.single_bank = single_bank
self.timeout = timeout
self.serial_port = None
self.total_size = 167936 # default is max application size
self.sd_size = 0
""":type: serial.Serial """
def open(self):
super(DfuTransportSerial, self).open()
try:
self.serial_port = Serial(port=self.com_port, baudrate=self.baud_rate, rtscts=self.flow_control, timeout=self.timeout)
except Exception, e:
raise NordicSemiException("Serial port could not be opened on {0}. Reason: {1}".format(self.com_port, e.message))
# Wait for the system to reset
time.sleep(DfuTransportSerial.SERIAL_PORT_OPEN_WAIT_TIME)
def open(self):
super(DfuTransportSerial, self).open()
try:
self.serial_port = Serial(port=self.com_port, baudrate=self.baud_rate, rtscts=self.flow_control, timeout=self.timeout)
except Exception, e:
raise NordicSemiException("Serial port could not be opened on {0}. Reason: {1}".format(self.com_port, e.message))
time.sleep(DfuTransportSerial.SERIAL_PORT_OPEN_WAIT_TIME)
# Toggle DTR to reset the board and enter DFU mode
self.serial_port.setDTR(False)
time.sleep(0.05)
self.serial_port.setDTR(True)
# Delay to allow device to boot up
time.sleep(DfuTransportSerial.NRF52_RESET_WAIT_TIME)
def close(self):
super(DfuTransportSerial, self).close()
self.serial_port.close()
def is_open(self):
super(DfuTransportSerial, self).is_open()
if self.serial_port is None:
return False
return self.serial_port.isOpen()
def send_validate_firmware(self):
super(DfuTransportSerial, self).send_validate_firmware()
return True
def send_init_packet(self, init_packet):
super(DfuTransportSerial, self).send_init_packet(init_packet)
frame = int32_to_bytes(DFU_INIT_PACKET)
frame += init_packet
frame += int16_to_bytes(0x0000) # Padding required
packet = HciPacket(frame)
self.send_packet(packet)
time.sleep(DfuTransportSerial.SEND_INIT_PACKET_WAIT_TIME)
def get_erase_wait_time(self):
return (((self.total_size)//self.FLASH_PAGE_SIZE)+1)*self.FLASH_PAGE_ERASE_MAX_TIME
def get_activate_wait_time(self):
if (self.single_bank and (self.sd_size == 0)):
# Single bank and not updating SD+Bootloader, we can skip bank1 -> bank0 delay
# but still need to delay bootloader setting save (1 flash page)
return self.FLASH_PAGE_ERASE_MAX_TIME;
else:
# Activate wait time including time to erase bank0 and transfer bank1 -> bank0
write_wait_time = ((self.total_size // 4) + 1) * self.FLASH_WORD_WRITE_AVG_TIME
return self.get_erase_wait_time() + write_wait_time
def send_start_dfu(self, mode, softdevice_size=None, bootloader_size=None, app_size=None):
super(DfuTransportSerial, self).send_start_dfu(mode, softdevice_size, bootloader_size, app_size)
frame = int32_to_bytes(DFU_START_PACKET)
frame += int32_to_bytes(mode)
frame += DfuTransport.create_image_size_packet(softdevice_size, bootloader_size, app_size)
packet = HciPacket(frame)
self.send_packet(packet)
self.sd_size = softdevice_size
self.total_size = softdevice_size+bootloader_size+app_size
#logger.info("Wait after Init Packet %s second", self.get_erase_wait_time())
time.sleep( self.get_erase_wait_time() )
def send_activate_firmware(self):
super(DfuTransportSerial, self).send_activate_firmware()
# Dual bank bootloader will erase the bank 0 with Application size & Transfer App size from bank1 to bank0
# There must a enough delay before finished to prevent Arduino IDE reopen Serial Monitor which cause pin reset
# Single bank bootloader could skip this delay if package contains only application firmware
click.echo("\nActivating new firmware")
# logger.info("Wait after activating %s second", self.get_activate_wait_time())
time.sleep( self.get_activate_wait_time() )
def send_firmware(self, firmware):
super(DfuTransportSerial, self).send_firmware(firmware)
def progress_percentage(part, whole):
return int(100 * float(part)/float(whole))
frames = []
self._send_event(DfuEvent.PROGRESS_EVENT, progress=0, done=False, log_message="")
for i in range(0, len(firmware), DfuTransportSerial.DFU_PACKET_MAX_SIZE):
data_packet = HciPacket(int32_to_bytes(DFU_DATA_PACKET) + firmware[i:i + DfuTransportSerial.DFU_PACKET_MAX_SIZE])
frames.append(data_packet)
frames_count = len(frames)
# Send firmware packets
for count, pkt in enumerate(frames):
self.send_packet(pkt)
self._send_event(DfuEvent.PROGRESS_EVENT,
log_message="",
progress=progress_percentage(count, frames_count),
done=False)
# Send data stop packet
frame = int32_to_bytes(DFU_STOP_DATA_PACKET)
packet = HciPacket(frame)
self.send_packet(packet)
self._send_event(DfuEvent.PROGRESS_EVENT, progress=100, done=False, log_message="")
def send_packet(self, pkt):
attempts = 0
last_ack = None
packet_sent = False
logger.debug("PC -> target: {0}".format(pkt))
while not packet_sent:
self.serial_port.write(pkt.data)
attempts += 1
ack = self.get_ack_nr()
if last_ack is None:
break
if ack == (last_ack + 1) % 8:
last_ack = ack
packet_sent = True
if attempts > 3:
raise Exception("Three failed tx attempts encountered on packet {0}".format(pkt.sequence_number))
def get_ack_nr(self):
def is_timeout(start_time, timeout_sec):
return not (datetime.now() - start_time <= timedelta(0, timeout_sec))
uart_buffer = ''
start = datetime.now()
while uart_buffer.count('\xC0') < 2:
# Disregard first of the two C0
temp = self.serial_port.read(6)
if temp:
uart_buffer += temp
if is_timeout(start, DfuTransportSerial.ACK_PACKET_TIMEOUT):
# reset HciPacket numbering back to 0
HciPacket.sequence_number = 0
self._send_event(DfuEvent.TIMEOUT_EVENT,
log_message="Timed out waiting for acknowledgement from device.")
# quit loop
break
# read until you get a new C0
# RESUME_WORK
if len(uart_buffer) < 2:
raise NordicSemiException("No data received on serial port. Not able to proceed.")
logger.debug("PC <- target: {0}".format(binascii.hexlify(uart_buffer)))
data = self.decode_esc_chars(uart_buffer)
# Remove 0xC0 at start and beginning
data = data[1:-1]
# Extract ACK number from header
return (data[0] >> 3) & 0x07
@staticmethod
def decode_esc_chars(data):
"""Replace 0xDBDC with 0xCO and 0xDBDD with 0xDB"""
result = []
data = bytearray(data)
while len(data):
char = data.pop(0)
if char == 0xDB:
char2 = data.pop(0)
if char2 == 0xDC:
result.append(0xC0)
elif char2 == 0xDD:
result.append(0xDB)
else:
raise Exception('Char 0xDB NOT followed by 0xDC or 0xDD')
else:
result.append(char)
return result
DATA_INTEGRITY_CHECK_PRESENT = 1
RELIABLE_PACKET = 1
HCI_PACKET_TYPE = 14
DFU_INIT_PACKET = 1
DFU_START_PACKET = 3
DFU_DATA_PACKET = 4
DFU_STOP_DATA_PACKET = 5
DFU_UPDATE_MODE_NONE = 0
DFU_UPDATE_MODE_SD = 1
DFU_UPDATE_MODE_BL = 2
DFU_UPDATE_MODE_APP = 4
class HciPacket(object):
"""Class representing a single HCI packet"""
sequence_number = 0
def __init__(self, data=''):
HciPacket.sequence_number = (HciPacket.sequence_number + 1) % 8
self.temp_data = ''
self.temp_data += slip_parts_to_four_bytes(HciPacket.sequence_number,
DATA_INTEGRITY_CHECK_PRESENT,
RELIABLE_PACKET,
HCI_PACKET_TYPE,
len(data))
self.temp_data += data
# Add escape characters
crc = crc16.calc_crc16(self.temp_data, crc=0xffff)
self.temp_data += chr(crc & 0xFF)
self.temp_data += chr((crc & 0xFF00) >> 8)
self.temp_data = slip_encode_esc_chars(self.temp_data)
self.data = chr(0xc0)
self.data += self.temp_data
self.data += chr(0xc0)
def __str__(self):
return binascii.hexlify(self.data)
@@ -1,131 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from enum import Enum
import struct
INIT_PACKET_USES_CRC16 = 0
INIT_PACKET_USES_HASH = 1
INIT_PACKET_EXT_USES_ECDS = 2
class PacketField(Enum):
DEVICE_TYPE = 1
DEVICE_REVISION = 2
APP_VERSION = 3
REQUIRED_SOFTDEVICES_ARRAY = 4
OPT_DATA = 5
NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID = 6
NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH = 7
NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH = 8
NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16 = 9
NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS = 10
class Packet(object):
"""
Class that implements the INIT packet format.
http://developer.nordicsemi.com/nRF51_SDK/doc/7.1.0/s110/html/a00065.html
"""
UNSIGNED_SHORT = "H"
UNSIGNED_INT = "I"
UNSIGNED_CHAR = "B"
CHAR_ARRAY = "s"
def __init__(self, init_packet_fields):
"""
:param init_packet_fields: Dictionary with packet fields
"""
self.init_packet_fields = init_packet_fields
def generate_packet(self):
"""
Generates a binary packet from provided init_packet_fields provided in constructor.
This version includes the extended data
:return str: Returns a string representing the init_packet (in binary)
"""
# Create struct format string based on keys that are
# present in self.init_packet_fields
format_string = self.__generate_struct_format_string()
args = []
# If you got error message AttributeError: 'int' object has no attribute 'value'.
# Uncomment line 84 and comment out line 85 and run 'python setup.py install'
#for key in sorted(self.init_packet_fields.keys(), key=lambda x: x):
for key in sorted(self.init_packet_fields.keys(), key=lambda x: x.value):
# Add length to fields that required that
if key in [PacketField.REQUIRED_SOFTDEVICES_ARRAY,
PacketField.OPT_DATA]:
args.append(len(self.init_packet_fields[key]))
args.extend(self.init_packet_fields[key])
else:
args.append(self.init_packet_fields[key])
return struct.pack(format_string, *args)
def __generate_struct_format_string(self):
format_string = "<" # Use little endian format with standard sizes for python,
# see https://docs.python.org/2/library/struct.html
# If you got error message AttributeError: 'int' object has no attribute 'value'.
# Uncomment line 102 and comment out line 103 and run 'python setup.py install'
#for key in sorted(self.init_packet_fields.keys(), key=lambda x: x):
for key in sorted(self.init_packet_fields.keys(), key=lambda x: x.value):
if key in [PacketField.DEVICE_TYPE,
PacketField.DEVICE_REVISION,
]:
format_string += Packet.UNSIGNED_SHORT
elif key in [PacketField.APP_VERSION]:
format_string += Packet.UNSIGNED_INT
elif key in [PacketField.REQUIRED_SOFTDEVICES_ARRAY]:
array_elements = self.init_packet_fields[key]
format_string += Packet.UNSIGNED_SHORT # Add length field to format packet
for _ in range(len(array_elements)):
format_string += Packet.UNSIGNED_SHORT
elif key in [PacketField.OPT_DATA]:
format_string += Packet.UNSIGNED_SHORT # Add length field to optional data
format_string += "{0}{1}".format(len(self.init_packet_fields[key]), Packet.CHAR_ARRAY)
elif key in [PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID]:
format_string += Packet.UNSIGNED_INT # Add the extended packet id field
elif key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH:
format_string += Packet.UNSIGNED_INT # Add the firmware length field
elif key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH:
format_string += "32{0}".format(Packet.CHAR_ARRAY) # SHA-256 requires 32 bytes
elif key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16:
format_string += Packet.UNSIGNED_SHORT
elif key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS:
format_string += "64{0}".format(Packet.CHAR_ARRAY) # ECDS based on P-256 using SHA-256 requires 64 bytes
return format_string
File diff suppressed because it is too large. Load diff
@@ -1,57 +0,0 @@
# Copyright (c) 2011, Bernhard Leiner
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain
# the above copyright notice, this list of conditions
# and the following disclaimer.
# * Redistributions in binary form must reproduce
# the above copyright notice, this list of conditions
# and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of the author nor the names
# of its contributors may be used to endorse
# or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
'''Compatibility functions for python 2 and 3.
@author Bernhard Leiner (bleiner AT gmail com)
@version 1.0
'''
__docformat__ = "javadoc"
import sys
if sys.version_info[0] >= 3:
def asbytes(s):
if isinstance(s, bytes):
return s
return s.encode('latin1')
def asstr(s):
if isinstance(s, str):
return s
return s.decode('latin1')
else:
asbytes = str
asstr = str
@@ -1,239 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Python libraries
import json
import binascii
import os
# Nordic libraries
from nordicsemi.exceptions import NotImplementedException
from nordicsemi.dfu.init_packet import PacketField
from nordicsemi.dfu.model import HexType, FirmwareKeys
class ManifestGenerator(object):
def __init__(self, dfu_version, firmwares_data):
"""
The Manifest Generator constructor. Needs a data structure to generate a manifest from.
:type float dfu_version: The dfu version number to state in manifest
:type dict firmwares_data: The firmwares data structure describing the Nordic DFU package
"""
self.dfu_version = dfu_version
self.firmwares_data = firmwares_data
self.manifest = None
def generate_manifest(self):
self.manifest = Manifest()
self.manifest.dfu_version = self.dfu_version
for key in self.firmwares_data:
firmware_dict = self.firmwares_data[key]
if key == HexType.SD_BL:
_firmware = SoftdeviceBootloaderFirmware()
_firmware.bl_size = firmware_dict[FirmwareKeys.BL_SIZE]
_firmware.sd_size = firmware_dict[FirmwareKeys.SD_SIZE]
else:
_firmware = Firmware()
# Strip path, add only filename
_firmware.bin_file = os.path.basename(firmware_dict[FirmwareKeys.BIN_FILENAME])
_firmware.dat_file = os.path.basename(firmware_dict[FirmwareKeys.DAT_FILENAME])
init_packet_data = InitPacketData()
for init_packet_data_key in firmware_dict[FirmwareKeys.INIT_PACKET_DATA]:
field = firmware_dict[FirmwareKeys.INIT_PACKET_DATA][init_packet_data_key]
if init_packet_data_key == PacketField.APP_VERSION:
init_packet_data.application_version = field
elif init_packet_data_key == PacketField.DEVICE_TYPE:
init_packet_data.device_type = field
elif init_packet_data_key == PacketField.DEVICE_REVISION:
init_packet_data.device_revision = field
elif init_packet_data_key == PacketField.REQUIRED_SOFTDEVICES_ARRAY:
init_packet_data.softdevice_req = field
elif init_packet_data_key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID:
init_packet_data.ext_packet_id = field
elif init_packet_data_key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH:
init_packet_data.firmware_length = field
elif init_packet_data_key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH:
init_packet_data.firmware_hash = binascii.hexlify(field)
elif init_packet_data_key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16:
init_packet_data.firmware_crc16 = field
elif init_packet_data_key == PacketField.NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS:
init_packet_data.init_packet_ecds = binascii.hexlify(field)
else:
raise NotImplementedException(
"Support for init packet data type {0} not implemented yet.".format(init_packet_data_key))
_firmware.init_packet_data = init_packet_data
if key == HexType.APPLICATION:
self.manifest.application = _firmware
elif key == HexType.BOOTLOADER:
self.manifest.bootloader = _firmware
elif key == HexType.SOFTDEVICE:
self.manifest.softdevice = _firmware
elif key == HexType.SD_BL:
self.manifest.softdevice_bootloader = _firmware
else:
raise NotImplementedException("Support for firmware type {0} not implemented yet.".format(key))
return self.to_json()
def to_json(self):
def remove_none_entries(d):
if not isinstance(d, dict):
return d
return dict((k, remove_none_entries(v)) for k, v in d.iteritems() if v is not None)
return json.dumps({'manifest': self.manifest},
default=lambda o: remove_none_entries(o.__dict__),
sort_keys=True, indent=4,
separators=(',', ': '))
class InitPacketData(object):
def __init__(self,
device_type=None,
device_revision=None,
application_version=None,
softdevice_req=None,
ext_packet_id=None,
firmware_length=None,
firmware_hash=None,
firmware_crc16=None,
init_packet_ecds=None
):
"""
The InitPacketData data model.
:param int device_type: device type
:param int device_revision: device revision
:param int application_version: application version
:param list softdevice_req: softdevice requirements
:param int ext_packet_id: packet extension id
:param int firmware_length: firmware length
:param str firmware_hash: firmware hash
:param int firmware_crc16: firmware CRC-16 calculated value
:param str init_packet_ecds: Init packet signature
:return: InitPacketData
"""
self.device_type = device_type
self.device_revision = device_revision
self.application_version = application_version
self.softdevice_req = softdevice_req
self.ext_packet_id = ext_packet_id
self.firmware_length = firmware_length
self.firmware_hash = firmware_hash
self.firmware_crc16 = firmware_crc16
self.init_packet_ecds = init_packet_ecds
class Firmware(object):
def __init__(self,
bin_file=None,
dat_file=None,
init_packet_data=None):
"""
The firmware datamodel
:param str bin_file: Firmware binary file
:param str dat_file: Firmware .dat file (init packet for Nordic DFU)
:param dict init_packet_data: Initial packet data
:return:
"""
self.dat_file = dat_file
self.bin_file = bin_file
if init_packet_data:
self.init_packet_data = InitPacketData(**init_packet_data)
class SoftdeviceBootloaderFirmware(Firmware):
def __init__(self,
bin_file=None,
dat_file=None,
init_packet_data=None,
sd_size=None,
bl_size=None):
"""
The SoftdeviceBootloaderFirmware data model
:param str bin_file: Firmware binary file
:param str dat_file: Firmware .dat file (init packet for Nordic DFU)
:param int sd_size: The softdevice size
:param int bl_size: The bootloader size
:return: SoftdeviceBootloaderFirmware
"""
super(SoftdeviceBootloaderFirmware, self).__init__(
bin_file,
dat_file,
init_packet_data)
self.sd_size = sd_size
self.bl_size = bl_size
class Manifest:
def __init__(self,
application=None,
bootloader=None,
softdevice=None,
softdevice_bootloader=None,
dfu_version=None):
"""
The Manifest data model.
:param dict application: Application firmware in package
:param dict bootloader: Bootloader firmware in package
:param dict softdevice: Softdevice firmware in package
:param dict softdevice_bootloader: Combined softdevice and bootloader firmware in package
:return: Manifest
"""
self.softdevice_bootloader = \
SoftdeviceBootloaderFirmware(**softdevice_bootloader) if softdevice_bootloader else None
self.softdevice = Firmware(**softdevice) if softdevice else None
self.bootloader = Firmware(**bootloader) if bootloader else None
self.application = Firmware(**application) if application else None
self.dfu_version = dfu_version
@staticmethod
def from_json(data):
"""
Parses a manifest according to Nordic DFU package specification.
:param str data: The manifest in string format
:return: Manifest
"""
kwargs = json.loads(data)
return Manifest(**kwargs['manifest'])
@@ -1,46 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from enum import Enum
class HexType(object):
SOFTDEVICE = 1
BOOTLOADER = 2
SD_BL = 3
APPLICATION = 4
class FirmwareKeys(Enum):
ENCRYPT = 1
FIRMWARE_FILENAME = 2
BIN_FILENAME = 3
DAT_FILENAME = 4
INIT_PACKET_DATA = 5
SD_SIZE = 6
BL_SIZE = 7
@@ -1,168 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from nordicsemi.dfu import intelhex
from struct import unpack
class nRFHex(intelhex.IntelHex):
"""
Converts and merges .hex and .bin files into one .bin file.
"""
info_struct_address_base = 0x00003000
info_struct_address_offset = 0x1000
info_struct_magic_number = 0x51B1E5DB
info_struct_magic_number_offset = 0x004
s1x0_mbr_end_address = 0x1000
s132_mbr_end_address = 0x3000
def __init__(self, source, bootloader=None):
"""
Constructor that requires a firmware file path.
Softdevices can take an optional bootloader file path as parameter.
:param str source: The file path for the firmware
:param str bootloader: Optional file path to bootloader firmware
:return: None
"""
super(nRFHex, self).__init__()
self.file_format = 'hex'
if source.endswith('.bin'):
self.file_format = 'bin'
self.loadfile(source, self.file_format)
self._removeuicr()
self.bootloaderhex = None
if bootloader is not None:
self.bootloaderhex = nRFHex(bootloader)
def _removeuicr(self):
uicr_start_address = 0x10000000
maxaddress = self.maxaddr()
if maxaddress >= uicr_start_address:
for i in range(uicr_start_address, maxaddress + 1):
self._buf.pop(i, 0)
def address_has_magic_number(self, address):
try:
potential_magic_number = self.gets(address, 4)
potential_magic_number = unpack('I', potential_magic_number)[0]
return nRFHex.info_struct_magic_number == potential_magic_number
except Exception:
return False
def get_softdevice_variant(self):
potential_magic_number_address = nRFHex.info_struct_address_base + nRFHex.info_struct_magic_number_offset
if self.address_has_magic_number(potential_magic_number_address):
return "s1x0"
for i in xrange(4):
potential_magic_number_address += nRFHex.info_struct_address_offset
if self.address_has_magic_number(potential_magic_number_address):
return "s132"
return "unknown"
def get_mbr_end_address(self):
softdevice_variant = self.get_softdevice_variant()
if softdevice_variant == "s132":
return nRFHex.s132_mbr_end_address
else:
return nRFHex.s1x0_mbr_end_address
def minaddr(self):
min_address = super(nRFHex, self).minaddr()
# Lower addresses are reserved for master boot record
if self.file_format != 'bin':
min_address = max(self.get_mbr_end_address(), min_address)
return min_address
def size(self):
"""
Returns the size of the source.
:return: int
"""
min_address = self.minaddr()
max_address = self.maxaddr()
size = max_address - min_address + 1
# Round up to nearest word
word_size = 4
number_of_words = (size + (word_size - 1)) / word_size
size = number_of_words * word_size
return size
def bootloadersize(self):
"""
Returns the size of the bootloader.
:return: int
"""
if self.bootloaderhex is None:
return 0
return self.bootloaderhex.size()
def tobinfile(self, fobj, start=None, end=None, pad=None, size=None):
"""
Writes a binary version of source and bootloader respectivly to fobj which could be a
file object or a file path.
:param str fobj: File path or object the function writes to
:return: None
"""
# If there is a bootloader this will make the recursion call use the samme file object.
if getattr(fobj, "write", None) is None:
fobj = open(fobj, "wb")
close_fd = True
else:
close_fd = False
start_address = self.minaddr()
size = self.size()
super(nRFHex, self).tobinfile(fobj, start=start_address, size=size)
if self.bootloaderhex is not None:
self.bootloaderhex.tobinfile(fobj)
if close_fd:
fobj.close()
@@ -1,369 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Python standard library
import os
import tempfile
import shutil
# 3rd party libraries
from zipfile import ZipFile
import hashlib
# Nordic libraries
from nordicsemi.exceptions import NordicSemiException
from nordicsemi.dfu.nrfhex import *
from nordicsemi.dfu.init_packet import *
from nordicsemi.dfu.manifest import ManifestGenerator, Manifest
from nordicsemi.dfu.model import HexType, FirmwareKeys
from nordicsemi.dfu.crc16 import *
from signing import Signing
class Package(object):
"""
Packages and unpacks Nordic DFU packages. Nordic DFU packages are zip files that contains firmware and meta-information
necessary for utilities to perform a DFU on nRF5X devices.
The internal data model used in Package is a dictionary. The dictionary is expressed like this in
json format:
{
"manifest": {
"bootloader": {
"bin_file": "asdf.bin",
"dat_file": "asdf.dat",
"init_packet_data": {
"application_version": null,
"device_revision": null,
"device_type": 5,
"firmware_hash": "asdfasdkfjhasdkfjashfkjasfhaskjfhkjsdfhasjkhf",
"softdevice_req": [
17,
18
]
}
}
}
Attributes application, bootloader, softdevice, softdevice_bootloader shall not be put into the manifest if they are null
"""
DEFAULT_DEV_TYPE = 0xFFFF
DEFAULT_DEV_REV = 0xFFFF
DEFAULT_APP_VERSION = 0xFFFFFFFF
DEFAULT_SD_REQ = [0xFFFE]
DEFAULT_DFU_VER = 0.5
MANIFEST_FILENAME = "manifest.json"
def __init__(self,
dev_type=DEFAULT_DEV_TYPE,
dev_rev=DEFAULT_DEV_REV,
app_version=DEFAULT_APP_VERSION,
sd_req=DEFAULT_SD_REQ,
app_fw=None,
bootloader_fw=None,
softdevice_fw=None,
dfu_ver=DEFAULT_DFU_VER,
key_file=None):
"""
Constructor that requires values used for generating a Nordic DFU package.
:param int dev_type: Device type init-packet field
:param int dev_rev: Device revision init-packet field
:param int app_version: App version init-packet field
:param list sd_req: Softdevice Requirement init-packet field
:param str app_fw: Path to application firmware file
:param str bootloader_fw: Path to bootloader firmware file
:param str softdevice_fw: Path to softdevice firmware file
:param float dfu_ver: DFU version to use when generating init-packet
:param str key_file: Path to Signing key file (PEM)
:return: None
"""
self.dfu_ver = dfu_ver
init_packet_vars = {}
if dev_type is not None:
init_packet_vars[PacketField.DEVICE_TYPE] = dev_type
if dev_rev is not None:
init_packet_vars[PacketField.DEVICE_REVISION] = dev_rev
if app_version is not None:
init_packet_vars[PacketField.APP_VERSION] = app_version
if sd_req is not None:
init_packet_vars[PacketField.REQUIRED_SOFTDEVICES_ARRAY] = sd_req
self.firmwares_data = {}
if app_fw:
self.__add_firmware_info(HexType.APPLICATION,
app_fw,
init_packet_vars)
if bootloader_fw:
self.__add_firmware_info(HexType.BOOTLOADER,
bootloader_fw,
init_packet_vars)
if softdevice_fw:
self.__add_firmware_info(HexType.SOFTDEVICE,
softdevice_fw,
init_packet_vars)
if key_file:
self.dfu_ver = 0.8
self.key_file = key_file
def generate_package(self, filename, preserve_work_directory=False):
"""
Generates a Nordic DFU package. The package is a zip file containing firmware(s) and metadata required
for Nordic DFU applications to perform DFU onn nRF5X devices.
:param str filename: Filename for generated package.
:param bool preserve_work_directory: True to preserve the temporary working directory.
Useful for debugging of a package, and if the user wants to look at the generated package without having to
unzip it.
:return: None
"""
work_directory = self.__create_temp_workspace()
if Package._is_bootloader_softdevice_combination(self.firmwares_data):
# Removing softdevice and bootloader data from dictionary and adding the combined later
softdevice_fw_data = self.firmwares_data.pop(HexType.SOFTDEVICE)
bootloader_fw_data = self.firmwares_data.pop(HexType.BOOTLOADER)
softdevice_fw_name = softdevice_fw_data[FirmwareKeys.FIRMWARE_FILENAME]
bootloader_fw_name = bootloader_fw_data[FirmwareKeys.FIRMWARE_FILENAME]
new_filename = "sd_bl.bin"
sd_bl_file_path = os.path.join(work_directory, new_filename)
nrf_hex = nRFHex(softdevice_fw_name, bootloader_fw_name)
nrf_hex.tobinfile(sd_bl_file_path)
softdevice_size = nrf_hex.size()
bootloader_size = nrf_hex.bootloadersize()
self.__add_firmware_info(HexType.SD_BL,
sd_bl_file_path,
softdevice_fw_data[FirmwareKeys.INIT_PACKET_DATA],
softdevice_size,
bootloader_size)
for key in self.firmwares_data:
firmware = self.firmwares_data[key]
# Normalize the firmware file and store it in the work directory
firmware[FirmwareKeys.BIN_FILENAME] = \
Package.normalize_firmware_to_bin(work_directory, firmware[FirmwareKeys.FIRMWARE_FILENAME])
# Calculate the hash for the .bin file located in the work directory
bin_file_path = os.path.join(work_directory, firmware[FirmwareKeys.BIN_FILENAME])
init_packet_data = firmware[FirmwareKeys.INIT_PACKET_DATA]
if self.dfu_ver <= 0.5:
firmware_hash = Package.calculate_crc16(bin_file_path)
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16] = firmware_hash
elif self.dfu_ver == 0.6:
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID] = INIT_PACKET_USES_CRC16
firmware_hash = Package.calculate_crc16(bin_file_path)
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16] = firmware_hash
elif self.dfu_ver == 0.7:
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID] = INIT_PACKET_USES_HASH
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH] = int(Package.calculate_file_size(bin_file_path))
firmware_hash = Package.calculate_sha256_hash(bin_file_path)
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH] = firmware_hash
elif self.dfu_ver == 0.8:
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID] = INIT_PACKET_EXT_USES_ECDS
firmware_hash = Package.calculate_sha256_hash(bin_file_path)
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH] = int(Package.calculate_file_size(bin_file_path))
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH] = firmware_hash
temp_packet = self._create_init_packet(firmware)
signer = Signing()
signer.load_key(self.key_file)
signature = signer.sign(temp_packet)
init_packet_data[PacketField.NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS] = signature
# Store the .dat file in the work directory
init_packet = self._create_init_packet(firmware)
init_packet_filename = firmware[FirmwareKeys.BIN_FILENAME].replace(".bin", ".dat")
with open(os.path.join(work_directory, init_packet_filename), 'wb') as init_packet_file:
init_packet_file.write(init_packet)
firmware[FirmwareKeys.DAT_FILENAME] = \
init_packet_filename
# Store the manifest to manifest.json
manifest = self.create_manifest()
with open(os.path.join(work_directory, Package.MANIFEST_FILENAME), "w") as manifest_file:
manifest_file.write(manifest)
# Package the work_directory to a zip file
Package.create_zip_package(work_directory, filename)
# Delete the temporary directory
if not preserve_work_directory:
shutil.rmtree(work_directory)
@staticmethod
def __create_temp_workspace():
return tempfile.mkdtemp(prefix="nrf_dfu_")
@staticmethod
def create_zip_package(work_directory, filename):
files = os.listdir(work_directory)
with ZipFile(filename, 'w') as package:
for _file in files:
file_path = os.path.join(work_directory, _file)
package.write(file_path, _file)
@staticmethod
def calculate_file_size(firmware_filename):
b = os.path.getsize(firmware_filename)
return b
@staticmethod
def calculate_sha256_hash(firmware_filename):
read_buffer = 4096
digest = hashlib.sha256()
with open(firmware_filename, 'rb') as firmware_file:
while True:
data = firmware_file.read(read_buffer)
if data:
digest.update(data)
else:
break
return digest.digest()
@staticmethod
def calculate_crc16(firmware_filename):
"""
Calculates CRC16 has on provided firmware filename
:type str firmware_filename:
"""
data_buffer = b''
read_size = 4096
with open(firmware_filename, 'rb') as firmware_file:
while True:
data = firmware_file.read(read_size)
if data:
data_buffer += data
else:
break
return calc_crc16(data_buffer, 0xffff)
def create_manifest(self):
manifest = ManifestGenerator(self.dfu_ver, self.firmwares_data)
return manifest.generate_manifest()
@staticmethod
def _is_bootloader_softdevice_combination(firmwares):
return (HexType.BOOTLOADER in firmwares) and (HexType.SOFTDEVICE in firmwares)
def __add_firmware_info(self, firmware_type, filename, init_packet_data, sd_size=None, bl_size=None):
self.firmwares_data[firmware_type] = {
FirmwareKeys.FIRMWARE_FILENAME: filename,
FirmwareKeys.INIT_PACKET_DATA: init_packet_data.copy(),
# Copying init packet to avoid using the same for all firmware
}
if firmware_type == HexType.SD_BL:
self.firmwares_data[firmware_type][FirmwareKeys.SD_SIZE] = sd_size
self.firmwares_data[firmware_type][FirmwareKeys.BL_SIZE] = bl_size
@staticmethod
def _create_init_packet(firmware_data):
p = Packet(firmware_data[FirmwareKeys.INIT_PACKET_DATA])
return p.generate_packet()
@staticmethod
def normalize_firmware_to_bin(work_directory, firmware_path):
firmware_filename = os.path.basename(firmware_path)
new_filename = firmware_filename.replace(".hex", ".bin")
new_filepath = os.path.join(work_directory, new_filename)
if not os.path.exists(new_filepath):
temp = nRFHex(firmware_path)
temp.tobinfile(new_filepath)
return new_filepath
@staticmethod
def unpack_package(package_path, target_dir):
"""
Unpacks a Nordic DFU package.
:param str package_path: Path to the package
:param str target_dir: Target directory to unpack the package to
:return: Manifest Manifest: Returns a manifest back to the user. The manifest is a parse datamodel
of the manifest found in the Nordic DFU package.
"""
if not os.path.isfile(package_path):
raise NordicSemiException("Package {0} not found.".format(package_path))
target_dir = os.path.abspath(target_dir)
target_base_path = os.path.dirname(target_dir)
if not os.path.exists(target_base_path):
raise NordicSemiException("Base path to target directory {0} does not exist.".format(target_base_path))
if not os.path.isdir(target_base_path):
raise NordicSemiException("Base path to target directory {0} is not a directory.".format(target_base_path))
if os.path.exists(target_dir):
raise NordicSemiException(
"Target directory {0} exists, not able to unpack to that directory.",
target_dir)
with ZipFile(package_path, 'r') as pkg:
pkg.extractall(target_dir)
with open(os.path.join(target_dir, Package.MANIFEST_FILENAME), 'r') as f:
_json = f.read()
""":type :str """
return Manifest.from_json(_json)
@@ -1,149 +0,0 @@
# Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
#
# The information contained herein is property of Nordic Semiconductor ASA.
# Terms and conditions of usage are described in detail in NORDIC
# SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
#
# Licensees are granted free, non-transferable use of the information. NO
# WARRANTY of ANY KIND is provided. This heading must NOT be removed from
# the file.
import hashlib
import binascii
try:
from ecdsa import SigningKey
from ecdsa.curves import NIST256p
from ecdsa.keys import sigencode_string
except Exception:
print "Failed to import ecdsa, cannot do signing"
from nordicsemi.exceptions import InvalidArgumentException, IllegalStateException
class Signing(object):
"""
Class for singing of hex-files
"""
def gen_key(self, filename):
"""
Generate a new Signing key using NIST P-256 curve
"""
self.sk = SigningKey.generate(curve=NIST256p)
with open(filename, "w") as sk_file:
sk_file.write(self.sk.to_pem())
def load_key(self, filename):
"""
Load signing key (from pem file)
"""
with open(filename, "r") as sk_file:
sk_pem = sk_file.read()
self.sk = SigningKey.from_pem(sk_pem)
sk_hex = "".join(c.encode('hex') for c in self.sk.to_string())
def sign(self, init_packet_data):
"""
Create signature for init package using P-256 curve and SHA-256 as hashing algorithm
Returns R and S keys combined in a 64 byte array
"""
# Add assertion of init_packet
if self.sk is None:
raise IllegalStateException("Can't save key. No key created/loaded")
# Sign the init-packet
signature = self.sk.sign(init_packet_data, hashfunc=hashlib.sha256, sigencode=sigencode_string)
return signature
def verify(self, init_packet, signature):
"""
Verify init packet
"""
# Add assertion of init_packet
if self.sk is None:
raise IllegalStateException("Can't save key. No key created/loaded")
vk = self.sk.get_verifying_key()
# Verify init packet
try:
vk.verify(signature, init_packet, hashfunc=hashlib.sha256)
except:
return False
return True
def get_vk(self, output_type):
"""
Get verification key (as hex, code or pem)
"""
if self.sk is None:
raise IllegalStateException("Can't get key. No key created/loaded")
if output_type is None:
raise InvalidArgumentException("Invalid output type for signature.")
elif output_type == 'hex':
return self.get_vk_hex()
elif output_type == 'code':
return self.get_vk_code()
elif output_type == 'pem':
return self.get_vk_pem()
else:
raise InvalidArgumentException("Invalid argument. Can't get key")
def get_vk_hex(self):
"""
Get the verification key as hex
"""
if self.sk is None:
raise IllegalStateException("Can't get key. No key created/loaded")
vk = self.sk.get_verifying_key()
vk_hexlify = binascii.hexlify(vk.to_string())
vk_hex = "Verification key Qx: {0}\n".format(vk_hexlify[0:64])
vk_hex += "Verification key Qy: {0}".format(vk_hexlify[64:128])
return vk_hex
def get_vk_code(self):
"""
Get the verification key as code
"""
if self.sk is None:
raise IllegalStateException("Can't get key. No key created/loaded")
vk = self.sk.get_verifying_key()
vk_hex = binascii.hexlify(vk.to_string())
vk_x_separated = ""
vk_x_str = vk_hex[0:64]
for i in xrange(0, len(vk_x_str), 2):
vk_x_separated += "0x" + vk_x_str[i:i+2] + ", "
vk_x_separated = vk_x_separated[:-2]
vk_y_separated = ""
vk_y_str = vk_hex[64:128]
for i in xrange(0, len(vk_y_str), 2):
vk_y_separated += "0x" + vk_y_str[i:i+2] + ", "
vk_y_separated = vk_y_separated[:-2]
vk_code = "static uint8_t Qx[] = {{ {0} }};\n".format(vk_x_separated)
vk_code += "static uint8_t Qy[] = {{ {0} }};".format(vk_y_separated)
return vk_code
def get_vk_pem(self):
"""
Get the verification key as PEM
"""
if self.sk is None:
raise IllegalStateException("Can't get key. No key created/loaded")
vk = self.sk.get_verifying_key()
vk_pem = vk.to_pem()
return vk_pem
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
@@ -1,828 +0,0 @@
:020000040003F7
:10C800007834002065CA030077CA030079CA0300A0
:10C810000000000000000000000000000000000018
:10C820000000000000000000000000007BCA0300C0
:10C8300000000000000000007DCA03007FCA030062
:10C8400081CA030081CA030081CA030081CA0300B0
:10C8500081CA030000000000ADDF030081CA0300AD
:10C8600081CA030081CA030081CA030081CA030090
:10C8700081CA030081CA030081CA030081CA030080
:10C8800081CA0300E9D8030081CA030081CA0300FA
:10C89000FFD8030081CA0300D5E4030081CA030066
:10C8A00081CA030081CA03000000000000000000EC
:10C8B0000000000000000000000000000000000078
:10C8C00000F002F800F040F80CA030C80838241836
:10C8D0002D18A246671EAB4654465D46AC4201D1B8
:10C8E00000F032F87E460F3E0FCCB64601263342AA
:10C8F00000D0FB1AA246AB4633431847583100001C
:10C9000078310000103A02D378C878C1FAD85207BB
:10C9100001D330C830C101D504680C6070470000F5
:10C920000023002400250026103A01D378C1FBD84B
:10C93000520700D330C100D50B6070471FB5C04609
:10C94000C0461FBD10B510BD03F03EF81146FFF7FD
:10C95000F5FF00F0BEF803F056F803B4FFF7F2FF5E
:10C9600003BC03F05BF80000026882F308884368A8
:10C9700018470000401E00BF00BF00BF00BF00BF3F
:10C9800000BF00BF00BF00BF00BF00BF00BFF1D1AC
:10C990007047000070B505460C46164602E00FCC05
:10C9A0000FC5103E102EFAD2082E02D303CC03C5B9
:10C9B000083E042E07D301CC01C5361F03E02178C1
:10C9C0002970641C6D1C761EF9D270BD10B500F084
:10C9D0001DF8002805D01F491D484860C8131E498E
:10C9E00088611E48018CC9B201290ED1818C0907CA
:10C9F0000BD1018D0906090F042906D1808D00068F
:10CA0000000F02D116490120886010BD1348018C27
:10CA1000C9B2012917D1818C090714D1018D0906EA
:10CA20000A0F03D1828D1206120F0ED0090F0129B1
:10CA300003D1828D1206120F07D0032903D1808DF6
:10CA40000006000F01D00020704701207047000051
:10CA5000DFFF07C000050040006C0040C00F00F081
:10CA6000000600400A4802680F210A430260094894
:10CA7000804709480047FEE7FEE7FEE7FEE7FEE7DE
:10CA8000FEE7000005480649064A074B70470000CC
:10CA900024050040CDC90300C1C803007828002048
:10CAA00078340020782C0020782C0020964800292B
:10CAB000016005D1012095490004C86000F0D8F854
:10CAC00070470A4601469248F0E710B501F0CEFDE6
:10CAD00010BD1CB50020694608718E490120086010
:10CAE0008C49103908608B49091F0860102000F03C
:10CAF000C7F80C2000F0C4F80F2000F0C1F8864DF4
:10CB000028680524A403A04204D084A2F2210020B6
:10CB1000FFF7CCFF79216869C902884204D07FA25F
:10CB2000F4210020FFF7C2FF012000070069012166
:10CB30008902884204D079A2F5210020FFF7B6FFD0
:10CB400079480090794B05220321002000F0FAFE7D
:10CB5000002803D071A2A421FFF7A8FF7349022087
:10CB6000283901F089FA002803D06CA29921FFF737
:10CB70009DFF65486E4B6F4A0121001D01F08DFB42
:10CB8000002803D065A2B421FFF790FF6A4B502222
:10CB90006A49082001F07AFC002803D05FA2D62160
:10CBA000FFF784FF664801F08DFC002803D05BA2EC
:10CBB000D921FFF77BFF614A14215032082001F090
:10CBC0001BF9002803D055A2E121FFF76FFF01F008
:10CBD000A3FB002803D051A2FF21FFF767FF01A9A3
:10CBE000082001F0B4FB002804D0FF214BA2033140
:10CBF000FFF75CFF01F09BFB002804D0FF2147A258
:10CC00000631FFF753FF68460079002804D120461B
:10CC100000F077FA00280FD101203C490003C860DA
:10CC200000F0EFFA002804D0FF213CA20E31FFF7FC
:10CC30003DFF0C2000F024F8204600F062FA0028A6
:10CC40000BD0102000F01CF80C2000F019F80F2079
:10CC500000F016F8204600F000FB102000F010F85D
:10CC60000C2000F00DF80F2000F00AF800F000F89A
:10CC7000BFF34F8F34493348C860BFF34F8FFEE78F
:10CC8000012181402148816070471CB501910090CD
:10CC90002E4A0821684601F0C3F81CBD1CB500905F
:10CCA000684601712A4A082101F0BAF81CBD10B586
:10CCB0000021284A084601F0B3F810BD10B504461B
:10CCC000082905D0FF2124A214310020FFF7EEFE31
:10CCD00021686068884710BD10B50446082904D053
:10CCE00029A29B210020FFF7E1FE216820798847D7
:10CCF00010BD10B5002904D02FA298210020FFF705
:10CD0000D5FE01F085FB10BD042000200005005079
:10CD1000EFBEADDE40070050001000102E2E5C6DFF
:10CD200061696E2E630000008BCC03003C21002063
:10CD30009DCC030066060000AFCC03007C230020DE
:10CD4000CBCA03000400FA0500ED00E0BDCC0300EF
:10CD5000D9CC0300F3CC03002E2E5C2E2E5C2E2E9D
:10CD60005C2E2E5C2E2E5C496E636C7564655C6176
:10CD700070705F636F6D6D6F6E5C6170705F746912
:10CD80006D65722E680000002E2E5C2E2E5C2E2EFD
:10CD90005C2E2E5C2E2E5C496E636C7564655C6146
:10CDA00070705F636F6D6D6F6E5C6170705F6275E8
:10CDB00074746F6E2E6800002E2E5C2E2E5C2E2E4C
:10CDC0005C2E2E5C2E2E5C496E636C7564655C7304
:10CDD000645F636F6D6D6F6E5C736F6674646576B0
:10CDE0006963655F68616E646C65722E680000003F
:10CDF00010460A4610B5B2494C68042C03D1022AE9
:10CE000001D1002806D0002803D0AEA24E21FFF7A2
:10CE10004DFE10BD8A69002AFBD01946904710BD0F
:10CE200010B5A74B01201870032000F0A3F910BD26
:10CE300010B5A34C2078002801D0082010BD6069EF
:10CE400000F056FE002803D09EA27121FFF72EFEAF
:10CE50000F2100224904606900F00DFE040003D098
:10CE600098A27421FFF722FE204610BDF0B59B4921
:10CE700087B09948924D08600024A1276C7029461C
:10CE8000BF026C802431954801F039FD00281CD187
:10CE90000520294680032431486028460146496A16
:10CEA000C1611C3051264760B60202A800F0FEF9AD
:10CEB0000498FE2802D13868401C0ED080483146C4
:10CEC0001C3001F06DFD002802D06C6007B0F0BD91
:10CED0000220019A009900F04DF97948804A00211A
:10CEE000143000F081FD002803D076A2A521FFF7C1
:10CEF000DDFD0F2100224904686900F0BCFD002817
:10CF000003D070A2A921FFF7D1FDEE6001202C61B2
:10CF100068600020DAE76A498861704770B5684C3C
:10CF20000546E068854201D90C2070BDA80701D0F4
:10CF3000062070BD6068012801D0082070BDFFF791
:10CF400077FF0028FAD10221A560616070BD70B53D
:10CF5000050004D0287A800703D0102070BD0E2071
:10CF600070BD574C6068022805D0032803D0042800
:10CF700003D0082070BD042060606868A168860046
:10CF800020698019884204D90020C04320610C2008
:10CF900070BDFFF74DFF0028FAD14948A968324615
:10CFA0001C30236901F0CCFC0028F1D121698919DA
:10CFB0002161A2689142EBD0092070BDF8B5404CC8
:10CFC00005466068022802D0032805D101E003204D
:10CFD00060602069002801D00820F8BDFFF728FF15
:10CFE0000028FAD13D4B0021403B08E0AA688E00A2
:10CFF000965962789700521CDE516270491C6A682B
:10D000008A42F3D8F8BD70B52D4C6068042805D16C
:10D0100005206060A1682069884201D0082516E0DB
:10D02000FFF706FF050012D1A12000228002A168AF
:10D0300001F0CAF929496080403962780988002ADC
:10D0400003D0884201D00B2070BD062060602846C6
:10D0500070BD3EB51A4C6068062802D008252846E7
:10D060003EBD606900F044FD002804D0FF2115A2F8
:10D070009631FFF71BFD1248A168243001F090FCA7
:10D08000002804D0FF210FA29A31FFF70FFD0C48B2
:10D0900000231C3041680830A26801F051FC0500F3
:10D0A000DDD1009061886A469180A2680292019960
:10D0B00000F060F8D3E710B5042000F05BF810BD75
:10D0C000142000202E2E5C6466755F6475616C5FB1
:10D0D00062616E6B2E630000F1CD03005C250020C1
:10D0E00021CE030010B57B480368012B02D1022931
:10D0F00000D10160100003D077A23421FFF7D6FCE5
:10D1000010BD38B505250024AD03401B15D1684678
:10D1100000F0F4F80098016801290ED181880029F7
:10D1200008D0C1680022284601F04EF9009989888C
:10D13000814201D1012400E00024204638BD10B511
:10D14000044664481021001D01F0B2FB002803D002
:10D1500061A28521FFF7AAFC5E4800231022214628
:10D16000001D01F027FB002803D05BA28B21FFF7F5
:10D170009DFC10BD17B581B0684600F0BFF801995D
:10D180005948544C002913D003291CD0FE220129F0
:10D1900023D002292CD0042909D101F0BAFD00289E
:10D1A00003D04DA2BE21FFF781FC042020601FBDEB
:10D1B0006946098981800399C1600121FF2282604B
:10D1C0000160216010E001F0A4FD002803D042A21C
:10D1D000A421FFF76BFC0320E8E7002181800260B7
:10D1E000C1600099896881603F48FFF7A8FF1FBDB3
:10D1F00000990B6803608B888380C9688260C16076
:10D20000F2E73EB5394800901020019001200290CD
:10D2100001F051FA00281FD12E496846091D01F07E
:10D2200071FA002818D1FFF721FE002814D101F06F
:10D230005FFE0546274C3DDF002803D026A246218D
:10D24000FFF734FC00F062FE2068022803D00328B8
:10D2500001D00428EFD128463EBD70B511DF00286B
:10D2600004D0FF211CA20A31FFF720FC2049002036
:10D270000B681F4C012180340A4682401A4204D0B8
:10D28000C506ED0E0A46AA402260401CC0B2202806
:10D29000F2D313DF002804D0FF210FA20F31FFF7D4
:10D2A00005FC0520800300F025F870BD1FB5094975
:10D2B000044600231022091D684601F0BAFA0098BE
:10D2C000206068468088A0800398E0600298A06093
:10D2D0001FBD0000402000202E2E5C626F6F746C1A
:10D2E0006F616465722E630068250020E5D003003D
:10D2F00000E100E010B5FFF737FB10BD0149016008
:10D300007047000000FC030030B585B0002822D033
:10D310000388F64CA34220D0F54B1B78002B1CD081
:10D32000F34B10255B1C1D705970002401259A7069
:10D33000032269460A820094019402940394C289EC
:10D340000A808D708C8004A902910393008869463D
:10D35000A6DF05B030BD0E20FBE70820F9E7F0B5E9
:10D3600089B004460227684607730D468783608AA2
:10D3700008AB07AA0021A5DF0026002804D0616AB7
:10D38000002917D0884715E06846008CC007C00FF9
:10D3900010D068460682208803A9A8DF002810D193
:10D3A000A97E0B0002F041FB093A0F11191B1D1F4A
:10D3B00038223A00FF20FE3069460882208803A9FF
:10D3C000A8DF09B0F0BD009601E001200CE0226A60
:10D3D0006946204690470020F3E70097F7E70320CF
:10D3E00002E0042000E005200090F0E7288B0328ED
:10D3F00005D2032208212046FFF786FFE1E7287FB8
:10D40000E97E000208436946888003D00620009028
:10D41000226ADEE70720FAE70920E5E70322EAE7C8
:10D4200030B585B00D46040032D0002D30D02868CC
:10D4300000282DD00020C043AE4B20800FCB04939A
:10D4400001AB07C3AC4869460880891C01A862DFAC
:10D4500000281CD1A21C69460120A0DF002816D19B
:10D46000684680782071204600F0C0F800280ED170
:10D47000204600F0F9F8002809D128682062686881
:10D48000002800D060629A4901200870002060E7FF
:10D490000E205EE73EB5002820D000291ED0026A8B
:10D4A000002A1BD00A88102A19D0112A28D0502A05
:10D4B00017D0512A12D10446891D087802280DD1AF
:10D4C0004888E289904209D1891C2046FFF747FF2E
:10D4D000002803D0616A002900D088473EBD8988B2
:10D4E00010E0CA88C3889A42F8D1082200928A7F45
:10D4F0006B461A7120310291026A694690473EBD1F
:10D500000021C94301803EBDF0B585B00A46050043
:10D510002DD02888754988422BD07548007800287E
:10D5200027D0734C1020641C2070072060700127E6
:10D53000A7700321684601820026E11C104600F016
:10D540004CF801466846008A091868460182009630
:10D55000019602960396E98901808770868004A867
:10D560000394029028886946A6DF05B0F0BD0E201E
:10D57000FBE70820F9E7F0B585B00A46050028D09A
:10D5800028885A49884226D059480078002822D055
:10D59000574C1120641C2070012768460782002622
:10D5A000611C104600F019F801466846008A091807
:10D5B000684601820096019602960396E9890180E9
:10D5C0008770868004A80394029028886946A6DFA5
:10D5D000CBE70E20C9E70820C7E70870020A4A70A7
:10D5E000020C8A70000EC8700420704730B58FB0EE
:10D5F00005461C21684602F024F969460878042192
:10D600000843694608700024019403940494059427
:10D610000694287908A9887037486946801C0884D0
:10D62000601C00070794000F0C77103048778A7F42
:10D63000F9200240921CE7200240012002438A7731
:10D64000142109A802F0FDF808A8099007A80A907B
:10D6500069468C851420CC8508860D946888AB1D9E
:10D6600009AAA2DF0FB030BD30B58FB005461C212E
:10D67000684602F0E6F86946087808210843102257
:10D68000104369460870002401940394049405949F
:10D690000694287908A9887017486946401C0884B0
:10D6A000601C00070794000F0C7710304877887FC4
:10D6B000F9210840801CF72108401043012108434C
:10D6C00069468877142109A802F0BBF808A80990D8
:10D6D00007A80A9069468C851720CC8508860D948A
:10D6E0002B4668880E3309AAA2DFBBE7FFFF0000C4
:10D6F0004C20002044FA0300301500008307FF226D
:10D70000DB0E9A408907090E994000280BDA0007C2
:10D71000000F08388308FC489B001B18D869904309
:10D720000843D86170478308F8489B001B181868A5
:10D730009043084318607047F0B5F54F28217C6886
:10D7400041430D19F9684A1C09D028224A43161989
:10D75000AB68B268934204D8D21AB2606962F860CA
:10D76000F0BD0A4602E00A46796A9B1B4E1C0BD0AC
:10D7700028264E433719BE689E42F4D328264E43CE
:10D780003619B768FF1AB760AB60696228214A434F
:10D7900011194862F0BDF8B5DD4CE568681C36D05B
:10D7A000DC48002640682169401A07023F0A1AE057
:10D7B0002820454360682A189068B84215D86369E4
:10D7C0003F1A8619556A002B0AD0116AD06998470A
:10D7D000002808D0FF21D0A25531FFF767F902E0F9
:10D7E000D169106A8847681CE2D1A178E07881424B
:10D7F00006D1401CC0B2E070022801D10020E070C8
:10D80000C3490006800D18310E5000F0D3F9F8BD61
:10D81000F8B50446BE48C1680091467856E0BC4859
:10D82000F10082688D184BE0601C07D0B84A2821AF
:10D8300052686143204689184C6A20E028781821F4
:10D8400041436A68401CC0B252182870A9788842C7
:10D8500001D100202870AE4B506828215B684143FD
:10D86000C9181368012B2DD10B7E002B2AD1936888
:10D87000CB60D3680B6113694B6152690A62A44A99
:10D88000CF681369BC46FA1A1202AF4F120ABA42A5
:10D8900002D20B69D21809E062469A1A12020B6989
:10D8A000120A934201D99A1A00E000228A600022EB
:10D8B000CA600A6101220A76921E4A62FFF73CFFA3
:10D8C000601CB1D1287869788842ADD13046761E87
:10D8D000F6B20028A3D18E48C1680098814201D0D9
:10D8E0000120F8BD0020F8BD98490020086048607C
:10D8F0008860C86095494039086048604BE7F0B5DA
:10D90000002087B0C043029081480669C568684618
:10D9100000F056F9074600F070F90446002F05D0D4
:10D9200002AA3146009800F0B0F901240298FFF7EE
:10D930006FFF002801D1002C02D0284600F0CEF95C
:10D9400007B0F0BDFFB59807002481B00F4615461B
:10D950001E4600280BD1002E09D000F01AF96C49A0
:10D960000A9848610F70324600204E6008E0072098
:10D9700005B0F0BD28234343D4509B181C76401CAF
:10D98000B842F7DB28204743BB19032048700F46F5
:10D9900018468B6019461830002218232E465E4325
:10D9A000D3005B181C705C709D7058603018521C5E
:10D9B000032AF5DB0020C043F860BC70FC70012432
:10D9C00063482405046003211420FFF797FE614893
:10D9D0000460504C0198A06003211120FFF78EFED7
:10D9E000606838610020C3E770B5494C6568002D58
:10D9F00006D0002A06D0002804D00023247809E0AD
:10DA0000082070BD072070BD28265E43AE59002E49
:10DA100004D05B1CA342F7DB042070BD2824012640
:10DA20005C432E516419E26161600360002070BDA7
:10DA300035494868C005C00D17D0103807D5020712
:10DA4000120F083A920892005118C96904E081083F
:10DA50002E4A8900891809688007C00EC1408804D1
:10DA6000000E012803D0032803D0022070470020B5
:10DA7000704701207047FEB50446254817464268A6
:10DA80000D46002A0CD001788C4201D2052D01D21E
:10DA90000720FEBD2146282359435358012B01D0AE
:10DAA0000820FEBD8818406801281DD00026FFF719
:10DAB000BFFFC0001649019089684018694600F010
:10DAC00050F9002812D001214460016011494968D1
:10DAD0000830E2C00E4901988968411800984870E2
:10DAE00000F068F80020FEBD2E46E0E70420FEBDF1
:10DAF000F8B5074D04466868002832D029788C4272
:10DB00002AD30720F8BD000000ED00E000E400E0AB
:10DB100054200020001501402E2E5C2E2E5C2E2E4F
:10DB20005C2E2E5C2E2E5C536F757263655C61708B
:10DB3000705F636F6D6D6F6E5C6170705F74696D47
:10DB400065722E6300000000FFFF7F00401101405E
:10DB500080E200E000E100E0282161434058012814
:10DB600001D00820CEE7FFF763FFC600A86869462A
:10DB7000301800F0F6F8002809D0022112C0A86879
:10DB800031180098487000F015F80020BAE704201A
:10DB9000B8E710B50121924A48041060914A40103C
:10DBA0009060904A403A90608F4841602F20FEF785
:10DBB000E1FE10BD01208A490005803108607047F0
:10DBC00010B58A4900238A78CC78A24212D0521C20
:10DBD000D2B28A70022A00D18B708A78834B92006D
:10DBE00018339A580260086910180002000A086188
:10DBF000012010BD0360002010BDF8B57B48C1684E
:10DC00000091457833E07948E90080680E1834784F
:10DC10002AE0182060437168641C0818B178E4B2E7
:10DC2000A14200D100240168022902D003291BD19E
:10DC300013E06E4A40682821526841438F18397EAC
:10DC4000002911D000F09FF8002038760CE028273A
:10DC50007843C0180276406A03E0644900224B68AA
:10DC6000C868471CF3D1C8607078A042D1D128465B
:10DC70006D1EEDB20028C6D15C48C1680098814293
:10DC800001D001203EE700203CE7F7B5574C0025C6
:10DC90006768E3681EE028215943C9198E688642E7
:10DCA00002D9301A886017E0801B751900268E6033
:10DCB0000E764E699C464B6AB646002E0AD0019EEF
:10DCC00076193602360ACE6076460E6116684E62C6
:10DCD00061461160591CDED1E360FEBDF8B54349D1
:10DCE000CA68531C3AD028235A434B68D218966806
:10DCF0003F4A54680F69401CE11B0D022D0AED1CC0
:10DD00000121002810D1374A08045060354A403AB2
:10DD10005060384A40001060314A803A1060324802
:10DD200001602F20FEF726FEB54200D23546E819E5
:10DD300000022F49000A403108602D494968001B44
:10DD4000091B0902090A0002C91C000A814204D900
:10DD500001202349400480310860D3E6FFF719FF12
:10DD6000D0E642788378521C934200D10022037897
:10DD7000934201D1002070470A6041684078182220
:10DD800050430818704770B5184DEA686B68144620
:10DD9000114606E0814207D00A4628267143C91879
:10DDA000496A4E1CF6D170BD002EFCD08A4204D1C7
:10DDB00028204443E018406AE86028204143C818FE
:10DDC000282481686243406AD2185062421CEAD01B
:10DDD00028225043C01882685118816070BD00002D
:10DDE00080E100E040130140001001405420002079
:10DDF0000015014080E200E030B5CB0008339DB251
:10DE000093070024002B01D0072030BD564B9A60A9
:10DE10005219DA605C701C7058809980002030BD07
:10DE2000F7B5514C82B060880F4681426CD8002013
:10DE3000694608704E494D4D4868C005C00D16D062
:10DE4000103807D50207120F083A920892005118AD
:10DE5000C96904E08108474A890089180968800770
:10DE6000C00EC1408804060E012E01D10AE004262E
:10DE700068462BDF02280BD0002803D03EA2592190
:10DE8000FEF714FE6078A188884203D2401C02E0AD
:10DE900072B6F7E700202278C0B2904207D06578CA
:10DEA0006078884201DA401C00E000206070012E9A
:10DEB0000BD062B6684600782CDF022805D0002817
:10DEC00003D02DA26121FEF7F1FD2848854219D02B
:10DED000A068EE0004998151029900290CD0002F0E
:10DEE0000AD060883A464543E068281801F04AFCA9
:10DEF000A0683018878002E000213018818000205F
:10DF000005B0F0BD0420FBE70920F9E70EB504E0F9
:10DF100068468188029A0098904702AA01A968463B
:10DF200000F003F80028F3D00EBD70B50E4B0524A9
:10DF30005D781E78B54215D01D781C789E88B44255
:10DF400001DA641C00E000241C705C88DE686C430D
:10DF5000A41904609B68E800C418A4880C801858B1
:10DF600000241060204670BD74200020FFFF0000D8
:10DF700000ED00E000E400E02E2E5C2E2E5C2E2E44
:10DF80005C2E2E5C2E2E5C536F757263655C617027
:10DF9000705F636F6D6D6F6E5C6170705F736368EF
:10DFA0006564756C65722E6300000000F8B59048DA
:10DFB000006900908F490020C863032504462D04A2
:10DFC00037E01421426861438B1801228068A24027
:10DFD00002422CD0D868C2430098424018680240E0
:10DFE000002001268640114631420FD0DF683946B5
:10DFF000314223D02946B743DF607F4E8700BE19E8
:10E000003768AF43376037680F433760401C2028BC
:10E01000E7D300989968164686433140009E5868B9
:10E020001640304002460A4301D01A699047641CEA
:10E03000E4B2724841788C42C3D3F8BD012149044F
:10E040003743D9E7F0B56D4A002153681422504395
:10E050000124694D03273F041E5822468A40164278
:10E0600006D08A0052191668BE43166016681660FC
:10E07000491C2029F0D3F0BD10B5002903D08A0730
:10E080000024002A01D0072010BD5C4A0B465160D5
:10E0900010701421547041431846946001F0D1FB74
:10E0A00000205749C0438860564840210160564AC5
:10E0B0001068FF231B0498430B0418431060534857
:10E0C0000160002010BDF8B54C4F84467D68002DDE
:10E0D00007D0002B07D078783C78A04205D30420E5
:10E0E000F8BD0820F8BD0720F8BD0E4614241643DD
:10E0F00044432E5164192361A26061606146087037
:10E10000411C7970FFF79EFF0020F8BDF0B53B4A37
:10E110005168002904D05378984203D30720F0BDFA
:10E120000820F0BD334B0025DD63314B1C69976837
:10E13000002F02D1324EDB057360012686403E433C
:10E140009660142250434218D560002201230D58D6
:10E1500093401D4216D025461D4202D003252D04B2
:10E1600005E001256D044618F7681F43F760224B50
:10E170009600F3181E6803273F04BE431E601E6806
:10E180002E431E60521C202AE0D30020F0BD70B543
:10E190001A4C05466068002804D06078854203D395
:10E1A000072070BD082070BD2846FFF74BFF0121F6
:10E1B000A068A9408843A06003D101201049C0078E
:10E1C0008860002070BD0D4B5A68002A04D05B782F
:10E1D000984203D307207047082070471423584300
:10E1E0008018034A12690068024000200A607047E4
:10E1F00000050050406100400007005084200020CE
:10E200000063004080E200E004E400E000E100E0A0
:10E21000F8B55D4C054669466078FFF7D4FF0028E5
:10E220002AD10099E0680B460140A0682E46984329
:10E230000843064020D000251BE00C20616868439D
:10E240004118087801228240324210D08A68002AA0
:10E250000DD06369002B09D001461046984700286D
:10E2600005D04AA22921FEF721FC00E090476D1C51
:10E27000EDB220788542E0D3F8BD70B5424D04463A
:10E280000E46A869FFF734FC002805D13443224626
:10E290002969A869FFF7EFFB70BDF8B50C46052AA0
:10E2A00001D20720F8BD384D002168602C70E9606C
:10E2B0006B612A61A9600A4617E00C2363431B18AF
:10E2C0001D785E683D4FB600AD00ED192E605E789A
:10E2D000002E01D0012500E000251F78BD40294314
:10E2E000002E17D00023BB401A432346641EE4B21D
:10E2F000002BE2D12448324B8260C160401CFFF702
:10E30000E2FE0028CED120482E4A00211830FFF727
:10E310006BFBF8BD0123E6E710B51B4841680029F7
:10E3200003D04078FFF7F2FE10BD082010BD10B5F5
:10E33000154C6068002808D06078FFF728FF002897
:10E3400002D1A069FFF7D4FB10BD082010BDF8B5BD
:10E350000D4C064660680D46002811D0694660786D
:10E36000FFF731FF00280AD101220098B240024293
:10E3700008D0E068104000D0012028700020F8BDCF
:10E380000820F8BDA068F5E7902000202E2E5C2E16
:10E390002E5C2E2E5C2E2E5C2E2E5C536F757263BF
:10E3A000655C6170705F636F6D6D6F6E5C617070E6
:10E3B0005F627574746F6E2E63000000000700507A
:10E3C0007BE2030011E2030010B50446002A02D0EC
:10E3D0001088002210E00A48FBE7030A000203430A
:10E3E000A05C584003061B0F43401803584083B2FB
:10E3F0001806C00C5840521C8A42EED310BD0000D3
:10E40000FFFF000010B508461146FEF75AFB10BD8D
:10E41000F8B5394C2078002837D02069002807D07B
:10E420000025E068002805D00026002D04D013E068
:10E430000125F6E70126F8E768464EDF052806D0F5
:10E44000002806D02DA26921FEF730FB04E001254B
:10E4500002E0216900988847002E12D16088694641
:10E460000880A06860DF052806D0002806D023A217
:10E470008021FEF71BFB04E0012602E0E168A068B2
:10E480008847002DD8D0002ECFD0F8BD70B5002918
:10E4900001D08C0701D0072070BD174C0125A16069
:10E4A00062802449636010DF0028F5D125701620B2
:10E4B00023DF70BD002803D00F49C86000207047DB
:10E4C0000E207047002803D00B49086100207047D8
:10E4D0000E20704710B508484068002808D08047D3
:10E4E000002804D0FF2105A23331FEF7DFFA10BD6A
:10E4F000FFF78EFF10BD0000AC2000202E2E5C2EFA
:10E500002E5C2E2E5C2E2E5C2E2E5C536F7572634D
:10E51000655C73645F636F6D6D6F6E5C736F667463
:10E520006465766963655F68616E646C65722E63AD
:10E530000000000005E4030018225043F94A0021BE
:10E540008018017181604161012281610261C160B5
:10E55000704770B5F34E18223078F34C504382194F
:10E56000121D13780F211069E568042B02D0022BCD
:10E570000DD024E001210907096989B201F074F97D
:10E58000401950DF01001AD1E068401C14E05169C5
:10E590009368526840194919521B01251818AD0299
:10E5A000AA4202D2920851DF02E0FF22013251DF7B
:10E5B000010004D1E0684019E0600120B070084615
:10E5C00070BDF8B5D74C0546A77826460420767866
:10E5D000002F01D1002E17D00A2E28D020788019C4
:10E5E000C0B20A2801D30A38C0B2182670430019F5
:10E5F0000571826106C98360426101610699C1604B
:10E600006078401C607011E0002020702571A261CC
:10E6100003C9A360616120610698E0600120607019
:10E62000FFF797FF002801D0112800D10020F8BD86
:10E6300038B50246BB4818230178594308180369C6
:10E640000179022B0CD014246343B64CF434E45803
:10E65000042909D08368009383691030A04738BD2E
:10E66000B14B10331C68F3E70023F4E710B5AD4954
:10E6700002468B780020012B1CD100238B70022ACC
:10E6800003D0032A16D10D2012E00A7818235A432A
:10E690005118091D0A78042A04D1A34A4968D2688E
:10E6A000914201D8FFF7C4FF00F0A8F9002801D07B
:10E6B000FFF7BEFF10BD70B500249B4D9948EC607C
:10E6C00004704470847026463046FFF735FF761C90
:10E6D0000A2EF9D3012109076C6048690969401EB7
:10E6E00089B24843EC60A8608E48F43004608460CE
:10E6F0000461C4608C48103004608480012028705C
:10E70000002070BDF0B5884D2A78002A1DD0002861
:10E710001DD000291BD00268002A18D0012424072C
:10E72000426823699BB29A420DD8102A0BD38368A2
:10E73000002B08D05343AA6866699B182769BFB2AB
:10E740007E43B34205D90720F0BD0820F0BD0E205E
:10E75000F0BD6B68012B1CD00B604A601946142574
:10E760006943704DF4354E19726007686F50416807
:10E77000B1608168F16041688068002541436D1C8B
:10E780002069ADB280B2884205D2206980B2091AF0
:10E7900002E00420F0BD0021206980B282182069C7
:10E7A00080B28842EBD960485B1C8260356143606F
:10E7B0000020F0BDF8B505465B481F4600781446BA
:10E7C0000E46002807D0002E07D0002D05D028685F
:10E7D000002818D103E00820F8BD0E20F8BD5148EC
:10E7E000F430016800290ED0C268816840684A434D
:10E7F00010186A68904206D9002C04D0A14202D3B6
:10E80000E019884201D90720F8BD304600F0F0F841
:10E8100000280CD0F01900F0EBF8002807D02346B0
:10E820003246294602200097FFF7CBFEF8BD1020A4
:10E83000F8BDF8B507463C481D46007816460C461C
:10E84000002807D0002C07D0002F05D02068002812
:10E8500018D103E00820F8BD0E20F8BD3148F4308F
:10E86000016800290ED0C268816840684A431018C8
:10E870006268904206D9002E04D0B14202D37019CA
:10E88000884201D90720F8BD384600F0B1F80028C9
:10E890000CD0781900F0ACF8002807D06068324638
:10E8A0004119384600F06EFF0020F8BD1020F8BD79
:10E8B00038B51D490978002905D0002805D0016820
:10E8C000002912D103E0082038BD0E2038BD154ABA
:10E8D0000021F4321368002B07D09468D368634397
:10E8E00054681B194468A34201D8072038BD136936
:10E8F0000091014600220420FFF763FE38BD0A4A5A
:10E900001278002A12D0002812D0002910D00268F4
:10E91000002A0DD0044A10321368002B0AD00420BC
:10E920007047000078250020C02000200820F7E76D
:10E930000E20F5E702230B60006810600020EFE76F
:10E94000F8B505463F481E46007817460C46002895
:10E9500007D0002C07D0002D05D0286802281BD135
:10E9600003E00820F8BD0E20F8BD364810300068DE
:10E97000002811D0084600F03BF800280ED0A0195E
:10E9800000F036F8002809D03B46224629460220EE
:10E990000096FFF716FEF8BD0720F8BD1020F8BD61
:10E9A00038B5044627480A460078002805D0002CD0
:10E9B00005D02068022819D103E0082038BD0E20B8
:10E9C00038BD20481030006800280FD00120000713
:10E9D000006981B2501E00F047FF0021431C0A4627
:10E9E000009121460420FFF7ECFD38BD072038BD1B
:10E9F000800701D0002093E7012091E770B5124D08
:10EA0000182128780F4C414349198968E2689142DE
:10EA100009D8FFF791FD0020E0606878401E68701B
:10EA20002878401C287068780024002807D0FFF759
:10EA300090FD040003D0112C01D0FFF7F9FD204612
:10EA400070BD0000C0200020782500204B48002128
:10EA500001704C484A4A02608160C160016108222D
:10EA60004161426081610846704710B500291DD0A0
:10EA700000220A60434A5368002B1BD0202817D875
:10EA80005B1E5360D0682423401CD060106914685A
:10EA90004343E3180B60012383409169401C1943F1
:10EAA0004007400F91611061002010BD0E2010BD85
:10EAB0000C2010BD042010BDF0B5324A0646916806
:10EAC00000292BD057691020791A4907490F14687B
:10EAD0000B4624254D436519B54206D1012495699D
:10EAE0008C4065400020956104E0491C4907490FAE
:10EAF0008F42EED1491C4E07760F956901210C46D5
:10EB00009C402B4623420AD19368002B07D05B1E02
:10EB1000936053685B1C53603346F0E70420F0BDFC
:10EB2000184A2423117C1268491E4907490F59438A
:10EB3000203150500020704770B500281AD00029AD
:10EB400018D0104AD368002B16D05B1ED360936890
:10EB500024265B1C9360536915681C467343EE18AA
:10EB600020330660E858641C08606007400F50615D
:10EB7000002070BD0E2070BD042070BDD820002084
:10EB800080260020A027002010B500280BD0FC48CC
:10EB9000FC49808888420FD0132176DF00280BD0F3
:10EBA000F9A2702106E00846FFF786FF002803D08F
:10EBB000F5A27621FDF77AFF10BD08280CD004DC01
:10EBC000002807D006280FD108E00B280AD00C280F
:10EBD0000AD105E0012070470220704703207047EA
:10EBE00004207047042901D0062070470520704793
:10EBF00010B50A46044603211046FFF7DEFF024621
:10EC000003212046FEF780FB002803D0DEA2B821B6
:10EC1000FDF74CFF10BDF0B5054608790E4685B0EE
:10EC200081070AD0032211462846FEF76DFB002813
:10EC300021D0FF21D4A2253146E0D14900901031E6
:10EC4000FFF713FF010013D1CD4CB168009A206982
:10EC500000F098FD0098FFF763FF002801D00146FF
:10EC600006E0C74869461030FFF766FF010004D090
:10EC70002846FFF7BDFF05B0F0BD00988008029060
:10EC8000032001902069039001A8FEF760F90700B6
:10EC90000CD0092F1BD02069FFF70EFF002803D0EE
:10ECA00001462846FFF7A4FF3946E1E73079E188BD
:10ECB00001224018E08003212846FEF725FB0028AA
:10ECC000D9D0FF21B0A25531FDF7F0FED3E730795E
:10ECD000E188401881B2E18060780028CBD060895B
:10ECE000401E0004000C6081C5D12846FEF743FC9D
:10ECF000002804D0FF21A4A26631FDF7D7FE2089A9
:10ED00006081B8E710B5FF219FA2A131FDF7CEFECB
:10ED100010BD10B59A4C9B49A088884208D0132199
:10ED200076DF002811D098A29D49FDF7BFFE0CE0C8
:10ED3000A078002809D074DF002804D0984992A256
:10ED4000FF39FDF7B3FE0020A07000F05CFA002848
:10ED500004D093498CA20931FDF7A8FE002010BD14
:10ED600070B50D6804460120854A2B0000F05DFE59
:10ED70000A333032061624464B354F23FEF743F94B
:10ED80000421FFF71AFF024604212046FEF7BCFAD1
:10ED9000002810D0FF217CA2D33140E0FFF7B9FF5B
:10EDA000002804D0FF2178A2D931FDF77FFEFEF7BD
:10EDB00050F9002809D170BDFFF7ABFF002804D03F
:10EDC000FF2171A2E531FDF771FEFEF774F970BD08
:10EDD000022000E00320D06070BDD2682046012AE6
:10EDE00006D0022A07D0032AF6D1FFF714FF70BD20
:10EDF00000F0E8F870BD00F00EF970BD5070888822
:10EE00001081508170BD00205070108170BDD1887C
:10EE10002046FEF779FB0028F8D05BA26149FDF798
:10EE200045FE70BD10B5564CA07800280AD15E484A
:10EE300073DF002804D05B4953A21331FDF736FE7F
:10EE40000120A07010BD10B54D4C0188A388132976
:10EE500025D007DC102917D0112914D120780028DB
:10EE600017D018E0522925D055290CD180790028D7
:10EE700009D11321184676DF002804D0494942A25F
:10EE80005C31FDF713FE10BD8088A0800020A070CB
:10EE900010BDFFF7C7FF0020C043A08010BD384A57
:10EEA0001846143200217FDF0028F7D03D4936A2F2
:10EEB0005431E6E7002211461846A9DF0028EDD0BC
:10EEC0004D2131A2C900DCE710B5044600F0CCF9B1
:10EED000354821461430FEF7DDFA2046FFF7B3FF30
:10EEE00010BD10B5B72128A28900FDF7DFFD10BDC8
:10EEF00010B5234888B00024C4602C48FFF7DAFA24
:10EF000000283BD12A48FEF706F8FFF79FFD0028AE
:10EF100034D100F0B1F827480090274801902248EA
:10EF200069461430FEF77CFA002804D01C4916A26A
:10EF30003B39FDF7BBFD00F0C3F81C21684600F02B
:10EF400080FC1E4801900120800302900094032160
:10EF500068460173C4810474194806900594684694
:10EF600000F02DF9002804D0FF2107A2B831FDF7E9
:10EF70009DFD00F0DAF8FFF755FF002008B010BD46
:10EF8000E0200020FFFF00002E2E5C6466755F7499
:10EF900072616E73706F72745F626C652E630000D5
:10EFA0002A03000006020000BC270020C9EE03006F
:10EFB00089EB030061ED0300E3EE0300CD0C0000DC
:10EFC00005ED030070B505460879042809D0032231
:10EFD00001212846FEF798F900281BD05B4ACC2176
:10EFE00016E08C68204600F02EFCE1780002000A52
:10EFF00009060843FDF792FF0121FFF7DEFD0246F7
:10F0000001212846FEF780F9002803D04F4ADD2170
:10F01000FDF74CFD70BDFEB50446012000908868E8
:10F0200002900879002283070FD08007800F042206
:10F03000121A0020034606E00E79029D3618B6002B
:10F04000401CAB51C0B29042F6D3087980188008BA
:10F0500001906846FDF7B2FF0221FFF7AEFD0246C0
:10F0600002212046FEF750F9002804D0FF21374A3C
:10F070001031FDF71BFDFEBD0EB51120694608726B
:10F08000072233A102A87CDF002803D02F4A32498F
:10F09000FDF70CFD002000900922694601900A80CE
:10F0A0000C224A808880FF209130C88068467ADF31
:10F0B000002804D05521254AC900FDF7F7FC0EBDF4
:10F0C00010B592B00621684601712448017968465E
:10F0D0008170234901803C2102A800F0B2FB02208C
:10F0E00002900024684644730121018201A8059022
:10F0F000684681830890214602A800F025FA00287E
:10F1000004D01549114A2831FDF7D0FC13481421C9
:10F11000143800F096FB11481438047044600472EF
:10F1200028210182448212B029E70E491E2008805E
:10F13000887801221043E12210400C30DF22104079
:10F1400088700720C87010200871704788EF03008E
:10F1500044667554617267009E020000D02700204B
:10F1600030150000F420002038B56749674A488808
:10F1700090420FD04A78664C521CD2B24A70237B20
:10F18000934208D3083175DF002803D0A169002914
:10F1900000D0884738BD00254D70217C002907D05C
:10F1A0003B2176DF002803D0A169002900D08847E1
:10F1B00061690029EED068460095884738BD70B572
:10F1C000054601461C225248FDF7E4FB4E4C002642
:10F1D00026702968002907D00822A01800F0D2FA6A
:10F1E000204608307ADF02E0474808307BDF0028FD
:10F1F00008D1401E608044486670464A0021001DC8
:10F20000FEF7F2FB70BD10B53F484068FEF770FC9A
:10F2100010BDF8B53C48103000F069F800263A4DB2
:10F220003B4C002806D06169002919D001200090CC
:10F23000684614E02878002804D0616900290FD0BE
:10F240000096F5E7687800280CD0A168002268686D
:10F25000FEF711FC002803D0A169002900D08847DF
:10F260002E70F8BD6168F1E7F8B5294C02880027D7
:10F27000254DE689102A18D029464968112A21D03F
:10F28000122A2DD0502A0FD1801D0288B2420BD1F4
:10F29000028B022A08D1C27E837E10021843C00767
:10F2A000C00F13D0FFF7B5FFF8BD81886980014614
:10F2B000154808220E31103000F064FA6F70002EED
:10F2C000F0D0F8BD0020C04368806F700846FEF79C
:10F2D0000FFC0028F5D0A1690029F2D08847F8BDBD
:10F2E000811D09480822103000F04CFADAE7418805
:10F2F000054808300288914204D34088814201D8F1
:10F300000120704700207047FC200020FFFF000014
:10F31000F827002069F10300FFB583B007460020FD
:10F320000C9C8646267805463AE07868A900411884
:10F330000A88684682804988C1800022694601A8FF
:10F3400064DF002810D1684601780598814226D1F3
:10F350007046002801D0002200E00222207889189F
:10F3600041181F2902D90C2007B0F0BD71460029B1
:10F3700008D1401CC0B2411C069B049A21701A544B
:10F3800001208646217806980A18694601A864DF9C
:10F390000028E9D1694620780978401820706D1C52
:10F3A0003888A842C1DC7046002804D0207806992D
:10F3B000801B401E88550020D6E7F8B51546069CF0
:10F3C0001E46074602220094FFF7A6FF002806D13A
:10F3D00033461022294638460094FFF79DFFF8BDBA
:10F3E000F7B582B00026054616700068144600285E
:10F3F00005D02846039900F0DFF806002DD1687982
:10F4000000281BD02078039F001D1F2824D86846A1
:10F4100079DF002821D121780322481C20707A54FA
:10F4200021781922481C20707A542078C119684626
:10F43000008800F0BCF82178401820702989002944
:10F4400023D001208446EA680398002A07D0227856
:10F4500053189B1C1F2B04D90C2005B0F0BD0720AE
:10F46000FBE71346521C491C2270C15422786746A0
:10F47000511C2170875423782A891818E96800F0F4
:10F4800081F92078297A401820702869002815D041
:10F490000021415622788C46D01C03991F28DBD8C6
:10F4A000501C022320708B5422780A23501C207099
:10F4B0008B5420786246431C23700A54A88A002883
:10F4C00009D028460094062202211430039BFFF73E
:10F4D00074FF0600C1D1A88B002809D028460094EB
:10F4E000072203211C30039BFFF767FF0600B4D1FE
:10F4F000A88C002809D02846009415221421243015
:10F50000039BFFF75AFF0600A7D1E86A002805D041
:10F510002246039900F085F806009ED1286B00284A
:10F5200005D02246039900F0BBF8060095D138209B
:10F53000405D002806D022462846039900F0E2F8F4
:10F5400006008AD1304688E770B50D4692B000219A
:10F550006A46117007241171002812D00189002910
:10F5600005D0C168002902D00978490702D4204695
:10F5700012B070BD02A9FFF733FF0028F8D102AE28
:10F5800000E00026002D0BD028890028EFD101AA29
:10F590000AA92846FFF724FF0028E9D10AAA00E0BB
:10F5A0000022684603790178304672DFE0E7087090
:10F5B000000A487002207047F8B514780746A01C6E
:10F5C00015460E461F2803D83879801C1F2801D9FC
:10F5D0000C20F8BD1D20001B80B2694686460880BD
:10F5E0003019801C7DDF0028F3D13868022805D14E
:10F5F00068460088704501D8092107E0387908215C
:10F60000002801D0704501D968460088421C325557
:10F61000641CE2B2B1542978801C081828700020BC
:10F62000F8BDF8B50D4611780646881D14461F280A
:10F6300001D90C20F8BD33880720062BFAD31927EF
:10F64000FF01BB4202D94E4A9342F3D17288062A87
:10F65000F0D3BA4202D94A4FBA42EBD1484FBB422B
:10F6600003D0BA4201D09342E4D8481C052220704E
:10F670006A5420781222411C21702A5420784119A2
:10F680003088FFF794FF21784018C0B220704119EC
:10F690007088FFF78CFF2178401820700020F8BD9B
:10F6A00070B5054600790E46801C1446C0B211782C
:10F6B000821C8A181F2A01D90C2070BD0A46491CD9
:10F6C000401C2170B0542078FF22411C217032541C
:10F6D000207881192888FFF76AFF21784018C0B286
:10F6E0002070AA88002A09D0A968002908D08019AA
:10F6F00000F048F82078297940182070002070BD6B
:10F70000072070BDF7B582B002981446406B0F46D3
:10F71000002832D0029800252030009028E002987E
:10F72000416B0C2068430E18217830794A1CC01CAC
:10F730002270785420781622411C21703A54207887
:10F74000C1193088FFF733FF21784018C0B220700C
:10F75000B288002A09D0B16800290ED0C01900F083
:10F7600011F820783179401820706D1C0098EDB2A6
:10F77000007EA842D3D800206FE607206DE6000087
:10F78000FFFF0000F8B5042A2CD3830712D00B78B2
:10F79000491C0370401C521E83070BD00B78491C78
:10F7A0000370401C521E830704D00B78491C037061
:10F7B000401C521E8B079B0F05D0C91ADF00202367
:10F7C000DE1B08C90AE0FDF7E5F8F8BD1D4608C9CB
:10F7D000FD401C46B4402C4310C0121F042AF5D231
:10F7E000F308C91A521EF0D40B78491C0370401C50
:10F7F000521EEAD40B78491C0370401C521EE4D4FC
:10F8000009780170F8BD01E004C0091F0429FBD28A
:10F810008B0701D50280801CC90700D00270704799
:10F8200000290BD0C30702D00270401C491E0229D8
:10F8300004D3830702D50280801C891EE3E70022DF
:10F84000EEE70022DFE70378C27819464378120614
:10F850001B0219438378C0781B0419431143090222
:10F86000090A000608437047002203098B422CD383
:10F87000030A8B4211D300239C464EE003460B4300
:10F880003CD4002243088B4231D303098B421CD362
:10F89000030A8B4201D394463FE0C3098B4201D354
:10F8A000CB01C01A524183098B4201D38B01C01A8C
:10F8B000524143098B4201D34B01C01A5241030903
:10F8C0008B4201D30B01C01A5241C3088B4201D3B2
:10F8D000CB00C01A524183088B4201D38B00C01A5F
:10F8E000524143088B4201D34B00C01A5241411A86
:10F8F00000D201465241104670475DE0CA0F00D069
:10F900004942031000D34042534000229C46030961
:10F910008B422DD3030A8B4212D3FC22890112BAE7
:10F92000030A8B420CD3890192118B4208D38901BF
:10F9300092118B4204D389013AD0921100E08909D7
:10F94000C3098B4201D3CB01C01A524183098B42B8
:10F9500001D38B01C01A524143098B4201D34B01A1
:10F96000C01A524103098B4201D30B01C01A524104
:10F97000C3088B4201D3CB00C01A524183088B428B
:10F9800001D38B00C01A5241D9D243088B4201D314
:10F990004B00C01A5241411A00D2014663465241FF
:10F9A0005B10104601D34042002B00D549427047FE
:10F9B00063465B1000D3404201B50020C046C046FC
:10F9C00002BD704770477047754600F023F8AE4699
:10F9D000050069465346C008C000854618B020B5EA
:10F9E000FDF750F860BC00274908B6460026C0C5A0
:10F9F000C0C5C0C5C0C5C0C5C0C5C0C5C0C5403DE7
:10FA000049008D4670470446C046C0462046FCF774
:10FA1000A4FF000000487047142800200149182066
:10FA2000ABBEFEE726000200704730B47446641E89
:10FA30002578641CAB4200D21D46635D5B00E31871
:10FA400030BC184723D1BCEA5F782315DEEF1212D1
:10FA50000000000074FA03000020002014010000E0
:10FA600004C9030088FB0300142100206413000074
:10FA700020C903000024F40000000000080000007A
:10FA80000300000000000000000000000000000073
:10FA90000000000000000000000000000000000066
:10FAA0000000000000000000000000000000000056
:10FAB0000000000000000000000000000000000046
:10FAC0000000000000000000000000000000000036
:10FAD0000000000000000000000000000000000026
:10FAE0000000000000000000000000000000000016
:10FAF0000000000000000000000000000000000006
:10FB000000000000000000000000000000000000F5
:10FB100000000000000000000000000000000000E5
:10FB200000000000000000000000000000000000D5
:10FB300000000000000000000000000000000000C5
:10FB400000000000000000000000000000000000B5
:10FB50000000000000000000FFFF000000000000A7
:10FB60000000000000000000000000000000000095
:10FB70000000000000000000000000000000000085
:08FB800000000000000000007D
:040000050003C8C16B
:00000001FF
File diff suppressed because it is too large. Load diff
@@ -1,894 +0,0 @@
:020000040000FA
:10000000C0070000D1060000D1000000B1060000CA
:1000100000000000000000000000000000000000E0
:100020000000000000000000000000005107000078
:100030000000000000000000DB000000E500000000
:10004000EF000000F9000000030100000D010000B6
:1000500017010000210100002B0100003501000004
:100060003F01000049010000530100005D01000054
:1000700067010000710100007B01000085010000A4
:100080008F01000099010000A3010000AD010000F4
:10009000B7010000C1010000CB010000D501000044
:1000A000DF010000E9010000F3010000FD01000094
:1000B00007020000110200001B02000025020000E0
:1000C0001FB5C046C04600F0EFFA04B00FB41FBD24
:1000D00008205A49096809580847382057490968CB
:1000E000095808473C2055490968095808474020E5
:1000F0005249096809580847442050490968095875
:10010000084748204D490968095808474C204B4981
:10011000096809580847502048490968095808479C
:100120005420464909680958084758204349096836
:10013000095808475C204149096809580847602068
:100140003E4909680958084764203C49096809582C
:100150000847682039490968095808476C20374919
:100160000968095808477020344909680958084740
:100170007420324909680958084778202F490968CE
:10018000095808477C202D490968095808478020EC
:100190002A490968095808478420284909680958E4
:1001A0000847882025490968095808478C202349B1
:1001B00009680958084790202049096809580847E4
:1001C00094201E4909680958084798201B49096866
:1001D000095808479C201949096809580847A02070
:1001E0001649096809580847A4201449096809589C
:1001F0000847A8201149096809580847AC200F4949
:10020000096809580847B0200C4909680958084787
:10021000B4200A49096809580847B82007490968FD
:1002200009580847BC2005490968095808470000D3
:1002300003480449024A034B7047000000000020B5
:10024000C0070000C00700000122D84B5A6000BF61
:10025000D74A1268002AFBD0016000BFD44A126856
:10026000002AFBD00022D14B5A6000BFD04A12684E
:10027000002AFBD07047F0B505460E46174600240D
:1002800006E0A200B158A2005019FFF7DDFF641C80
:10029000BC42F6D30020F0BD0120C043C549086030
:1002A000401048607047014601229204086890425D
:1002B00001D9102070470020FCE7F0B505460C4638
:1002C0001646002706E028462168FFF7BDFF2D1DD2
:1002D000241D7F1CB742F6D3F0BD70B505460C4611
:1002E0002E460BE0304600F075F9FF2C01D80024B3
:1002F00001E0FF3C013C012080023618002CF1D1C6
:1003000070BD0146012212044868904201D90920BB
:100310007047A9484069401C01D10F20F8E7002030
:10032000F6E7FEB504462068030000F037FA05043E
:100330002B4249598B00201DFFF7E3FF0546002D96
:1003400001D02846FEBDFFF7A7FF0120C00200F044
:1003500041F9042221469948FFF78DFF002801D07A
:100360000320EFE708222146944800F06DF90028A9
:1003700006D1002192480068FFF766FF00F00CF9F3
:100380000320DFE7A768E6686068019031463846D9
:10039000FFF7A3FF324638460199FFF78EFFB20000
:1003A0003846019900F050F9002800D1CAE703202F
:1003B000C8E700F0E3F9834800688349086041E03A
:1003C00060680190E668A0680090B200009901980A
:1003D00000F03AF90746002F00D1B3E70E20B1E74D
:1003E000201DFFF760FF0546002D01D02846A9E734
:1003F0006068002807D1FFF74FFF0320800200F05C
:10040000E9F800F0C9F8FFF747FF0120C00200F04B
:10041000E1F8042221466948FFF72DFF002801D0AA
:1004200003208FE708222146644800F00DF90028D8
:1004300006D1002162480068FFF706FF00F0ACF823
:1004400003207FE700BF00207CE770B505460C461F
:10045000182D04D12068FFF764FF206002E001201E
:10046000206000BF00BF70BDF0B589B05248406940
:1004700003905248806881000398081802900398FE
:10048000000B01900121090302984018401E000B47
:1004900000900124002520462946019A00F0C4F866
:1004A0000022401E91410791069001260027304608
:1004B0003946009A00F0B8F80022401E914105919B
:1004C0000490049BDB43059AD2430698184307998E
:1004D00011430791069037490698086007984860CD
:1004E00009B0F0BD70B53448446934488568466841
:1004F000AA003146204600F0A7F8002801D00020CD
:1005000070BD0120FCE72D484068002801D0012083
:1005100000E000200546FFF7E5FF002807D0FFF7C1
:10052000BBFE0320800200F055F800F035F8FFF71D
:100530009BFF002D0ED020484669204884684768FC
:1005400021463046FFF7C9FE224639463046FFF7BE
:10055000B4FE00BF00F020F810B5184844681A48EF
:100560000460204600F0DCF810BD15480068006803
:10057000401C01D100BFFEE710480068002802D0EF
:10058000042806D101E0FFF7BEFFFFF7E5FF00BF3B
:10059000FEE700BF00BFFEE7BFF34F8F0B480C49DB
:1005A000C860BFF34F8F00BFFEE7000000E50140C9
:1005B00000E40140000600400010001000080000A8
:1005C000B8070000BC070000000000200400FA0586
:1005D00000ED00E010B50146104B1A6808460223F2
:1005E0000F4C636000BF0F4B1B68002BFBD0531CEC
:1005F00004D0904202D20A4B186101E0084B986087
:1006000000BF084B1B68002BFBD00023044C636029
:1006100000BF044B1B68002BFBD010BD0010001066
:1006200000E5014000E4014010B5202A04DB01464A
:10063000203A9140002010BD914020239C1A03468F
:10064000E3401943904010BD034610B50B439B0790
:100650000FD1042A0DD308C810C9121FA342F8D025
:1006600018BA21BA884201D9012010BD0020C04328
:1006700010BD002A03D0D30703D0521C07E000208E
:1006800010BD03780C78401C491C1B1B07D1037854
:100690000C78401C491C1B1B01D1921EF1D118463D
:1006A00010BD70477047704710B500F007F810BDD7
:1006B000014B1B68DB6818470000002019481A49E5
:1006C0007047FFF7FBFFFFF7FBFC00BD20BFFDE716
:1006D0001649174C24688C420BD1164B1B68994263
:1006E0000CD1154B154A1360186810498842EDD09B
:1006F0000AE0134880F30888124B18470F4A13602A
:1007000018680A498842E1D080F308880E49884277
:1007100004DD0E48026802210A4302605B68184744
:100720000346DFE7C0070000C0070000FFFFFFFF30
:10073000000C000014100010001000000000002049
:10074000000400206B05000000200020240500406C
:100750000D48704502D1EFF3098101E0EFF3088104
:10076000886902380078182802D1C046074A104725
:10077000074A12682C3212681047000000B5054B7A
:10078000054A9B58984700BDFDFFFFFF4B04000042
:1007900000000020001000000400000030B4744687
:1007A000641E2578641CAB4204D3635D5B00E318D0
:1007B00030BC18471D46F8E7000C00000010000090
:10100000F0210020FDB101005D22000063B101006C
:1010100000000000000000000000000000000000D0
:101020000000000000000000000000006DB20100A0
:1010300000000000000000005D2200005D220000B2
:10104000D9B20100DFB201005D2200005D22000084
:101050005D2200005D2200005D2200005D22000094
:10106000E5B201005D2200005D220000EBB201004C
:101070005D220000F1B20100F7B20100FDB20100F3
:101080005D2200005D2200005D2200005D22000064
:101090005D2200005D2200005D2200005D22000054
:1010A00003B3010009B301005D2200005D220000CE
:1010B0005D2200005D2200005D2200005D22000034
:1010C00000F002F81AF07BF80CA030C80838241899
:1010D0002D18A246671EAB4654465D46AC4201D170
:1010E0001AF06DF87E460F3E0FCCB646012633420D
:1010F00000D0FB1AA246AB46334318477CA301003D
:10110000ACA30100103A02D378C878C1FAD85207CC
:1011100001D330C830C101D504680C6070470000AD
:101120000023002400250026103A01D378C1FBD803
:10113000520700D330C100D50B6070471FB5C046C1
:10114000C04619F0DEFF04B00FB41FBDF0B4404636
:10115000494652465B460FB402A0013001B506482D
:10116000004700BF01BC86460FBC804689469246B8
:101170009B46F0BC70470000C11000008269024924
:101180008161024810447047911100000100000085
:1011900001B41EB400B501F000FF01B40198864609
:1011A00001BC01B01EBD0000401E00BF00BF00BF5B
:1011B00000BF00BF00BF00BF00BF00BF00BF00BF37
:1011C00000BFF1D17047000070B505460C461646C9
:1011D00002E00FCC0FC5103E102EFAD2082E02D31B
:1011E00003CC03C5083E042E07D301CC01C5361F2E
:1011F00003E021782970641C6D1C761EF9D270BD45
:101200008307FF22DB0E9A408907090E99400028C8
:101210000BDA0007000F0838830828489B001818CD
:10122000C36993430B43C3617047830824489B0001
:101230001B181868904308431860704710B504469F
:1012400000210120FFF7DCFF00211820FFF7D8FF65
:1012500000210B20FFF7D4FF02211920FFF7D0FF58
:1012600002210D20FFF7CCFF02210E20FFF7C8FF5F
:1012700002210F20FFF7C4FF0221C81FFFF7C0FFA4
:1012800003211620FFF7BCFF03211520FFF7B8FF4D
:10129000204600F019F8002010BD6721018070473A
:1012A00010B500F020F810BD0648704710B500F0EA
:1012B00022F810BD704770477047000000ED00E055
:1012C00000E400E003F9004370B505462D4C08200A
:1012D0002070A01CFFF7E1FF5920A080294620467E
:1012E00000F0B3FB70BD10B500F0B8FB254900203D
:1012F000891E087010BDF8B5224E0446B61E30781F
:1013000001270D46002807D0204660380B2808D852
:10131000204600F059FF2BE0602CF9D01A480860F5
:10132000F8BD20466C38032803D8204600F08DFF16
:101330001EE0204670381F2803D8204600F047F9E9
:1013400016E0204690380F2803D8204600F0EAF82F
:101350000EE02046A0380F2803D8204600F076F88B
:1013600006E02046B0380F2804D8204600F0E2F905
:10137000286000E02F60602CD2D128680028CFD1EF
:101380003770F8BD1A000020013000000120254907
:10139000C003086024490020087007202349C005C5
:1013A0008860704770B5204D04462878A04207D069
:1013B000002C05D0002803D01DA14D2019F0CBFE34
:1013C0002878A0420ED000211E4A18482C70002C0C
:1013D0001BD01D4B012C06D0022C0DD014A168206F
:1013E00019F0B9FE70BD1160022111605361032133
:1013F00009068160416070BD116003211160536175
:101400000121C9058160416070BD11601160072133
:10141000C905816070BD10B505A1712019F09BFE52
:1014200010BD000080E100E02000002000F5014038
:101430007372635C68616C5F63636D5F6161722E80
:101440006300000000F500408401002010B5A038C2
:10145000030019F0A1FF0B070E172028313A414B6A
:10146000525C65004B6808788A68194603F0D9F920
:1014700010BD88888A6883B20888194680B203F054
:10148000DFF910BD08884C68CB688A6880B22146B5
:1014900003F0DAF910BD08884B688A6880B21946F3
:1014A00003F0EEF910BD88888A6883B2088819466F
:1014B00080B203F0FAF910BD88888A6883B2088880
:1014C000194680B203F034FA10BD08884A6880B229
:1014D000114603F073FA10BD088982B2888883B27E
:1014E0000888194680B203F074FA10BD08884A686B
:1014F00080B2114603F091FA10BD08894C6882B29F
:101500000888CB6880B2214603F00AFB10BD08882A
:101510004C68CB688A6880B2214603F01BFC10BD82
:10152000012010BD10B59038030019F035FF0906F1
:101530000F161D242C363F464E0088888A6883B2D9
:101540000888194680B204F01DF910BD08884A6861
:1015500080B2114604F051F910BD08884A6880B283
:10156000114604F056F910BD08884A6880B2114649
:1015700004F05CF910BD08884B688A6880B219468F
:1015800004F067F910BD088982B2888883B20888A0
:10159000194680B204F066F910BD08894B6882B222
:1015A0000888194680B204F07CF910BD08884A68A2
:1015B00080B2114604F087F910BD888882B208888D
:1015C000114680B204F0DBF910BD012010BD10B54A
:1015D0007038030019F0E0FE1B0F15192125282F84
:1015E000363B4044484C53585F68707881889095EA
:1015F000999CA2A5AC004A680878114607F019FC2E
:1016000010BD086807F066FC10BD0C790B7B8A687A
:101610000868214607F06FFC10BD086807F000FD60
:1016200010BD07F08CF910BD08884A6880B21146D9
:1016300007F034FE10BD0A790888114680B207F021
:10164000C4FE10BD087840B207F0CDFE10BD08887A
:1016500080B207F0E1FE10BD086807F0EFFE10BD94
:10166000086801F0ECFB10BD086801F016FC10BD25
:10167000088982B209C9194607F0F8FE10BD05C9EC
:10168000114607F042FF10BD08884A6880B2114633
:1016900009F0FAF910BD0C790888CB688A6880B225
:1016A000214609F0CDFA10BD0B7908888A6880B20E
:1016B000194609F07DFC10BD08884B688A6880B225
:1016C000194609F0EEFC10BD08884C68CB688A68A2
:1016D00080B2214609F053FD10BD08884A6880B2E7
:1016E000114609F08CFD10BD0B7908880A7A80B28A
:1016F000194607F02DFF10BD088880B207F02DFFB6
:1017000010BD086807F030FF10BD07F0FCF810BDF1
:101710008A6809C9194607F08CFF10BD07F0DCF88C
:1017200010BD08884A6880B2114608F05BF810BD09
:10173000012010BD10B5B02805D0B12808D0B228BE
:101740000BD0012010BD088880B20AF056F910BDF8
:10175000088880B20AF070F910BD08884B688A6862
:1017600080B219460AF079F910BD000010B50300E7
:1017700019F012FE0A0609060C0C0F0F06060612D7
:1017800007F005F910BD09F027FF10BD01F042FA7E
:1017900010BD06F075FA10BDFAA1FE4819F0DBFC89
:1017A00010BD7FB5FC49054603C901900291132085
:1017B000800169468881F94A0F2310460A2128389A
:1017C0000AF043FE0024F6480AF05DFE641CE4B211
:1017D0000A2CF8D304200090F04801231A4603A9EC
:1017E000F0300AF05DFA002804D0FF20E5A1533064
:1017F00019F0B1FC686800F024FC00211E220846A4
:1018000004F040F907F0C6FA02222421E54801F06D
:101810007FFBE44801222C214C3001F079FBE149A7
:101820000B20B03901F000FA002804D0FF20D5A128
:10183000673019F090FC09F09FFE02F075F901ABDA
:1018400000220821D8A007F085F9002804D0FF2045
:10185000CCA16D3019F07FFC284602F0C2FC0028B4
:1018600004D0FF20C7A16F3019F075FCDB2189007F
:10187000D04819F045FBCF48012141710221817107
:101880000621C1717FBD10B5CA4CA078092804D3C8
:10189000FF20BCA1A73019F05EFC207860214843EE
:1018A000001900210173417BF722C908C900C91C36
:1018B0001140EF22114041730121E1700C3010BD45
:1018C00070B50E4600211C4619801546030019F01C
:1018D00063FD0723050B1711231D2300224629460C
:1018E000304609F096FE70BD22462946304606F085
:1018F00098FE70BD22462946304601F0C2FF70BDF9
:1019000022462946304603F0C0FD70BD22462946D6
:10191000304600F010FC70BD9E489AA1D53819F0F1
:101920001AFC032070BD70B5A24CE078002818D0D6
:101930002078602148430019407B00254007400F74
:1019400001190879401E08712078401CC0B220702F
:10195000092800D12570A078401CA0700AF01DFF56
:10196000E57070BD9348C079002800D08BE77047C0
:1019700070B5904DA86800280CD0FFF7F3FF002841
:1019800062D06022A968FFF71FFCFFF7CCFF0020A0
:10199000A860EFE76879002856D0FFF774FF044687
:1019A00080484C3001F0C4FA6060002804D1C9209E
:1019B00074A1800019F0CFFB60680AF0EAF80028F3
:1019C0000DD0204606F011FD6078010703D5C00850
:1019D000C000401C2BE0734861684C302DE071481A
:1019E00061684C3001F0ADFA00F05AFB00282BD1B1
:1019F000FFF749FF04466B4801F09AFA606000283F
:101A000004D164485FA16D3019F0A5FB60680AF04D
:101A1000C4F8002814D0606800886080204609F06F
:101A20002BFE6078010706D5C008C000801C6070DE
:101A3000FFF779FF9EE75B48616801F082FA99E75A
:101A40005848616801F07DFA70BD10B55A4CE160EC
:101A5000A0605A4800F034FC607010BD5649002068
:101A60000870704770B5564E0546706A94B00C46C3
:101A7000401C04D1B06AC0430004000C0BD0306A93
:101A8000C007C00F2870706A19F03CFAB06A207164
:101A9000000A607114E02B206946087009A96846A5
:101AA0000AF04BF8002804D0972036A1800019F0E6
:101AB00052FB0120287006220AA9204619F0C1F91C
:101AC0002878002803D06079C0210843607114B0E1
:101AD00070BDF0B53A4C0646206895B00D463746C5
:101AE0000837401C08D16068401C05D1A068401C24
:101AF00002D1E068401C11D02068314619F002FA8A
:101B00006068311D19F0FEF9A068394619F0FAF93C
:101B1000E06831460C3119F0F5F925E02B206946D3
:101B2000087009A968460AF008F8002804D0194886
:101B300014A1553819F00FFB08220AA9304619F0F4
:101B400080F92B206946087009A9684609F0F5FF5D
:101B5000002804D0A3200BA1800019F0FCFA082271
:101B60000AA9384619F06DF920692E460836401C3E
:101B700029D16069401C26D1A069401C23D1E069AD
:101B8000401C1FE07372635C686F73745F636F72F5
:101B9000652E6300DA020000B4B30100D801002012
:101BA0006D170000A40B00206E52463531383232DA
:101BB00000000000880700202400002071190000A8
:101BC0008000001012D02069294619F09BF9606945
:101BD000291D19F097F9A069314619F093F9E069C8
:101BE00029460C3119F08EF915B0F0BD2B2468464A
:101BF000047009A909F0A1FF002803D0F649F748AD
:101C000019F0A9FA082209AF28460AA919F019F90A
:101C10006846047009A909F090FF002804D0EF4835
:101C2000ED49C01D19F097FA0822391D304619F008
:101C300008F9D9E770B5EA4C0546A068002804D039
:101C40000320E549000219F086FAA56070BD10B5C1
:101C50000146E44801F075F9E1498879401CC0B2B9
:101C60008871012803D1E048407800F04DFB10BD99
:101C700070B50446DD4816460D46814204D1D7486A
:101C8000D549CB3019F067FA012E05D0E120D249B1
:101C9000800019F060FA70BD66202070002020726C
:101CA000A5810120A07370BD70B515460C4606468F
:101CB000FFF758FE00280CD06621017046800121F4
:101CC000017221680161A18881820573FFF72BFEF3
:101CD00070BD1321304607F078FB70BDC2494968DA
:101CE000884201D210207047032101700020704704
:101CF00070B5BD4C05462078002694B0002801D070
:101D00000820E4E6BA4A6260954201D21020DEE67D
:101D10006868002809D00921D82804D3C31C9B086F
:101D20009B00834205D00846D1E60320400268604C
:101D30000EE0012109074B6B896B4B43AD49511AEA
:101D40000122591AD202891A814201D20421EAE7FA
:101D500000F052FF6178A0680CF04EFBE068401E76
:101D600007280BD8302269460A70887068460DF043
:101D700088FF002802D009A80CF0FBFC2846FFF7DA
:101D800010FD012020703046A1E6F8B504469648C3
:101D90000F464068814208D3002C01D0844204D30E
:101DA000E01C80088000A04201D01020F8BD8C48C3
:101DB0008178002911D039880091417860225143FF
:101DC0000D18287B0C350007000F3B4600222946E2
:101DD000FFF776FD060004D015E0002038800520CE
:101DE000F8BD002C13D039880098814201D90C2607
:101DF0000DE028783B460007000F22462946FFF7F2
:101E00005FFD060005D00C2E01D000203880304642
:101E1000F8BD734C6078401CC0B26070092801D1D5
:101E200000206070A078401EA07068784107490FBC
:101E300001290ED0022906D003291AD066496E481E
:101E400019F089F9E3E7C006E1D46868FFF7FFFEFF
:101E5000DDE7644869684C3001F073F86079401C34
:101E6000C0B260710128D2D15F48407800F04CFACE
:101E7000CDE7E079401CE071C9E7604A10B59042B7
:101E800009D3594A0124A4045268A04201D39042C4
:101E900001D3914201D2102010BD00F0FEFE10BD12
:101EA000564B10B5994209D34F4B0124A4045B68EB
:101EB000A14201D3994201D39A4201D2102010BD10
:101EC000022803D0102801D0092010BD00F00BFF1C
:101ED0000028FAD0052010BD484B10B598420DD30C
:101EE000414B0124A4045B68A04201D3984205D36E
:101EF000994203D3002A03D09A4201D2102010BD88
:101F000000F017FF0028FAD0072010BD10B50446D6
:101F1000354894B04068844202D2102014B010BDFD
:101F20000F2008A9087369460BA809F006FE0028CF
:101F3000F4D16846007A207068464089608068461F
:101F40008089A0800020E9E710B500290BD0264A3F
:101F50005268914202D30B68934201D2102010BD07
:101F60008A88002A02D001F037FE10BD092010BD7A
:101F700010B5224A94B091420ED31B4A01239B0410
:101F80005268994201D3914206D3441E1E2C41D877
:101F9000994203D3914201D21020BFE7012837D1E3
:101FA00008780024C007C00F002803D0032069462A
:101FB000887001E06846847038206946087009A975
:101FC000684609F0BAFD002804D004480CA18B38FB
:101FD00019F0C1F82046A1E7841B0000AA02000006
:101FE00088070020A40B002024000020FFFF000031
:101FF00000220020000000202104000000C0010099
:102000007372635C686F73745F636F72652E6300D5
:10201000072083E70246203A1F2AF9D806F001FE7E
:102020007CE710B5604A5268914201D2102010BD81
:102030000246203A1F2A02D806F068FE10BD07208B
:1020400010BD70B50546594C002020702046461939
:1020500055484660E01C80088000A04204D0FF2064
:102060005349293019F077F801200007C06AC043AE
:102070000006000E03D14F480068401C03D04E48B4
:102080004E49301AC862A8B20422214604F00DF964
:10209000002804D0FF204649393019F05CF870BDA3
:1020A000F0B595B03B2008A9087369460BA809F064
:1020B00044FD002804D0FF203D49813019F04BF841
:1020C0003F4E00246D4630E02F19B87DC10706D081
:1020D000400704D460004019C08809F0E9FB394882
:1020E000807900281FD0B87D80071CD5600040197A
:1020F000C0880022062109F0F7FB002813D03C21FC
:1021000008A8017360004019C1886846C185694606
:102110000BA809F012FD06000BD0FF2024499630D1
:1021200019F019F805E0641CE4B268460079A04291
:10213000CAD8304658E5F7B50546007800270009AB
:102140000C463E46062804D0FF201949BF3019F03E
:1021500002F8287A00280ED0012814D0FF20144954
:10216000E03018F0F8FF0298002C068001D027809C
:1021700066800020FEBD02270926002C10D0A88909
:10218000A080A87B0AE003271426002C08D06888CA
:10219000A0802869E060A88A2082287B2072E2E77C
:1021A00002980680E5E700002400002000220020BD
:1021B000002000000010001000000020000500407A
:1021C000043000008807002010B56038030019F0C3
:1021D000E3F80A060A0F13181F252930353A086854
:1021E000FFF786FD10BD05C91146FFF7CEFD10BDF6
:1021F0000868FFF773FD10BD05C91146FFF73DFEE6
:1022000010BD4B6808788A681946FFF749FE10BD73
:102210008A6809C91946FFF75FFE10BD0868FFF715
:1022200075FE10BD08884A6880B21146FFF78CFE23
:1022300010BD05C91146FFF79BFE10BD05C911462B
:10224000FFF7EFFE10BD012010BD01207047000018
:102250000E4A12680C498A420AD118470B4A126882
:10226000094B9A4204D101B500F08EFE03BC8E46A4
:10227000074909680958084706480749054A064BAF
:102280007047000000000000BEBAFECA64000020D3
:1022900004000020F0210020F021002001203F490F
:1022A000400608603E4908603E490A68FF231B0259
:1022B0009A4383121A430A6038498039086070478C
:1022C00010B502460420384904E0C3005B181B79AE
:1022D000002B0AD00346401EC0B2002BF5D133A11B
:1022E000432018F038FFFF2010BDC300CA50002261
:1022F00059184A718A7101220A7110BD2A4A0021B7
:10230000C00080180171704710B50446042803D33B
:1023100026A1522018F01FFF2348E1000C18207955
:10232000012803D021A1532018F015FF6079A1796D
:10233000401CC0B2814200D06071012017494006A4
:102340008031086010BD70B5164804250068164E2F
:102350000004800F1B4C02281AD014A1692018F029
:10236000FAFE15E02078C10088190279012A07D108
:10237000427983799A4203D04279827170588047BA
:102380002078401CC0B22070042801D300202070A7
:1023900028466D1EEDB20028E4D170BD80E100E05A
:1023A00080E200E018E400E0200C00207372635C1F
:1023B000736F635F7369676E616C6C696E672E63C0
:1023C000000000003400002010B5EFF31080C407B7
:1023D000E40F72B6D2484178491C41704078012818
:1023E00001D10AF0FFF9002C00D162B610BD70B522
:1023F000CB4CE07800280AD10125E570FFF7E4FF17
:102400000AF0F8F9002804D000200AF0CBF90020E7
:1024100070BDC44865714560F9E770B5EFF3108091
:10242000C507ED0F72B6BE4C6078002803D1BEA17F
:102430008F2018F090FE6078401E60706078002851
:1024400001D10AF0D3F9002D00D162B670BD10B5EC
:10245000B348C178002904D000214171C170FFF751
:10246000DCFF002010BD10B504460AF0C3F9AC49EA
:10247000C978084000D001202060002010BDF8B5C8
:102480000246A74C0026A67108200421012510272A
:10249000130018F081FF0D080A0C0E101214161EFE
:1024A000262123252800257122E0022001E0217148
:1024B0001EE020711CE027711AE02020F9E70126B8
:1024C00016E0FFF781FF0AF095F90028FBD00226FD
:1024D0000EE02171A5710BE02771FBE7202000E0E1
:1024E00040202071F6E7FF208FA1763018F033FEF0
:1024F0000AF08CF9002809D00AF08EF9B04205D113
:1025000030460AF08CF90028FAD02CE00120800730
:10251000C560894900224A60884A9661814B02223F
:102520005A60856086480269D243D206D51702698F
:1025300010231A4302610F466D1C00E020BF78682B
:102540000028FBD030460AF06AF90028FAD0002DA6
:1025500004D17B48026910218A430261714902203B
:10256000886000207860A07900280CD00AF042F939
:1025700005460AF09FF8734A002D02D0A260E06081
:1025800001E0E260A060002E01D100F0A5F8F8BDE6
:1025900010B504460AF034F9002805D0604901203E
:1025A000C8704A78521C4A702046FFF768FF10BD79
:1025B000F8B5614DA8680026012802D1AE600AF086
:1025C000F1F86868012800D16E6028680127544C32
:1025D000012812D12E606079002803D000200AF073
:1025E000E1F866712078002807D00AF003F9002886
:1025F00003D0012080070761A770286901282AD12C
:102600002E6100F05FF8012080074761A079002863
:1026100015D00AF0EFF800900AF04CF80099002964
:1026200001D0E16800E0A168411A022901DA8A1CA0
:1026300011DC0099002901D0E06000E0A060FFF704
:10264000C3FE0AF0D7F8002804D0012080070761F4
:10265000A77000E02770E868012812D100F032F876
:1026600000F030F800F02EF8A078002804D1FF2008
:102670002DA1033018F06FFDEE60A6702670FFF7F5
:10268000CCFEF8BD10B5264CE078002801D10AF048
:10269000ADF801208107886100F014F8A0780028C7
:1026A0000BD0254CE068002803D10AF0B8F80028C8
:1026B000F8D10020E06000F005F800201949C0437F
:1026C000886010BD08B55020694608806A461088A9
:1026D000411E1180FAD208BDF8B51248192787604B
:1026E000154900200860C8600AF084F8BE0701247C
:1026F0000B4D002802D03461AC7000E02C70FFF765
:1027000063FE084847600D4928798863FFF7DAFFC0
:10271000B461FFF7D7FF0849002008617461F8BD74
:1027200038000020000300407372635C736F635FC6
:10273000636C6F636B2E6300000100400005004076
:1027400000ED00E0FFFFFF7F8107C90E002808DAD7
:102750000007000F083880082E4A80008018C069E2
:1027600004E080082C4A800080180068C8400006F9
:10277000800F704710B50D20FFF7E6FFC4B20420AC
:10278000C043FFF7E1FFC0B2844203D023A11A2067
:1027900018F0E1FC26490120486010BD0121254ABE
:1027A00048031060244B00221A60244A5160244AD6
:1027B0001060244A11601F49803908607047012168
:1027C0001C4A480310601F4A51601B4A00211160D7
:1027D0001B490860704710B517490868012804D0E4
:1027E0000EA1572018F0B7FC10BD114880680022D8
:1027F000C0B20A6009F0BEFC10BD10B50E480168F9
:102800000029FCD0FFF7E7FF01200D4940030860D5
:1028100010BD000000ED00E000E400E07372635CB6
:10282000736F635F68616C5F726E672E6300000098
:1028300000D5004080E100E000D1004000D300401E
:1028400080E200E000D0004030B40121BC48C90261
:102850000160CD1005604A030260BA4803681B029C
:102860001B0A036004680023240A24020460B6489B
:102870000468240A24020460B4480124446084608B
:10288000B34C23606360A360B24B19601D601A6093
:10289000B14B19601A600121016030BC704710B45F
:1028A0000121A748CA0202600B0203600C06046003
:1028B000A64841608160A94841680029FCD1A4492B
:1028C0000020086048608860A248026003600460DD
:1028D00010BC704701219F48C9020160C910016006
:1028E0007047002805D0012805D0022805D19C4852
:1028F00070479C4870479C48704710B59BA18B203F
:1029000018F029FC002010BD70B500219E4C9F4D91
:102910009F4A8F4B002808D001281DD0022822D0C2
:1029200092A1B32018F017FC70BD01200004A06034
:10293000A86011601960974BC2039A60964A906034
:102940007F4A0012106095480160864801609448F3
:1029500001609448017070BD01204004A060A8602F
:102960005160596070BD01208004A060A860916032
:10297000996070BDF8B59446834A8B4F834D00240F
:102980000126002808D0012832D0022840D077A1A3
:10299000E82018F0E0FBF8BD891E0902090A0120B1
:1029A000000490603C6468606C4A1164012B1DD087
:1029B00000217C4A7D4B51706146DC63DE637C4BB9
:1029C0005C6002249C6004241C61744B3D311960DE
:1029D00073490E605F4B891519606F4B58605E48F4
:1029E00001606C49C00548601670F8BD0121E0E740
:1029F0000120704E4004704F012B04D134645060AC
:102A000068603964F8BD9060346468603964F8BD0A
:102A100001206A4E80046A4F012BF4D1EEE74F4843
:102A20004068704770B54A4D28680026564C01280A
:102A300006D1A068C00303D501200004A0602E6069
:102A40006868012809D1A068800306D501204004E8
:102A5000A0606E6001200AF0B9FEA868012809D1C3
:102A6000A068400306D501208004A060AE6002206B
:102A70000AF0ACFE70BD10B54A490878002818D09D
:102A80000120444AC0079060434AC00B90602C4A22
:102A900000121060414A00201060324A1060404A23
:102AA000106008704A78002A02D048700AF08EFE42
:102AB00010BD0320FAE70120424900060860704774
:102AC0000120244900060860704701203D49400567
:102AD0000860704701201F4940050860704733496E
:102AE0000020C86388151B4908607047410A364AB0
:102AF000C005C00D5043801C5143400A0818704760
:102B000010B4324C430B63431B0C5C020C602E4C24
:102B10006343C31A2E485C0258432B4B400D43437A
:102B2000E31A0124DB0324041B191B1613700A6823
:102B30001018086010BC704710B50AF01BFF10BDDC
:102B400080E100E008E400E018E400E000B00040AC
:102B500040B1004080E200E000E100E000B500404C
:102B600048B100404081004044B100407372635C52
:102B700072656D5F68616C5F6576656E745F7469C0
:102B80006D65722E6300000000B3004040B300404A
:102B900040B5004000F50140008300404085004002
:102BA000008200404800002000B10040C08F00407B
:102BB0000085004004B1004004B5004008B1004069
:102BC00008B5004000E200E0093D00003786000043
:102BD0006F0C010010B50AF0B9FE10BD00200449C9
:102BE000C863012001218140024A116000BF704783
:102BF000C01F004080E200E010B50DF05DF909F063
:102C0000F7F9FEF7C3FB0FF0F5FA0DF08FFF0DF0AB
:102C10001BFF10BD70B50C46054603F0A7FA214610
:102C200028460EF0C2FF70BD70B50D46040012D0EC
:102C3000002D10D02101284618F060F910225449C7
:102C4000284618F0FEF852480121083801804480D7
:102C50004560002070BD012070BD70B54C4E002451
:102C60000546083E11E0716820014018817BAA7B6F
:102C7000914209D1C17BEA7B914205D10C222946C0
:102C800018F0B2F8002806D0641C30888442EADBD1
:102C90000020C04370BD204670BD70B50D460600D3
:102CA0000AD0002D08D03A4C083C20886188401C8E
:102CB000884203D9042070BD102070BD3046FFF754
:102CC000CCFF002801DB401C0AE02088616800017D
:102CD00040181022314618F0B4F82088401C20809B
:102CE0002870002070BD70B514460D001FD0002C58
:102CF0001DD00021A170022802D0102817D108E0B1
:102D0000687829780002084311D00121A170108051
:102D10000BE02846FFF7A1FF002808DB401CA0704D
:102D2000687B297B000208432080002070BD0120C1
:102D300070BD70B5054614460E000AD000203070F4
:102D4000A878012807D004D9114908390A88904287
:102D50000BD9012070BD002C04D028782070288861
:102D6000000A50700220087010E0002C0CD0496856
:102D70000001411810222046103918F062F8287816
:102D800020732888000A607310203070002070BD06
:102D9000540000205A4910B5884207D30121890404
:102DA000884205D357490968884201D2102010BDD6
:102DB0000146012005F0CBF810BD30B5044693B0B4
:102DC00000200D46079014210BA818F099F81C213B
:102DD000684618F095F86A46112010770020507761
:102DE000107802210843107007A80C90012008AA4F
:102DF000907245486A4610850AA80B902088108476
:102E000060885084A0889084E088D084907FF921E5
:102E10000840801C4008400090770820908610876A
:102E200008A80F9010AA0BA9684600F05CFF0028C4
:102E300003D110A800882880002013B030BD3EB513
:102E400004460820694608802D48844207D30120A3
:102E50008004844205D32B480068844201D21020AC
:102E60003EBD2146012005F072F80028F8D12088E7
:102E7000694688806088C880A0880881E088488189
:102E800005F065FE01AB6A46002101F0BBFB694617
:102E900009880829E4D003203EBD1FB50446002060
:102EA000029008206946088115480391844207D39F
:102EB00001208004844206D312480068844202D272
:102EC000102004B010BD05F042FE014602AA0F48D2
:102ED00001F02EFD0028F4D169460989082901D0A6
:102EE0000320EEE7694609882180694649886180A8
:102EF00069468988A1806946C988E180E1E70000C8
:102F000000C0010028000020042A0000FFFF00008C
:102F100010B5031D03600020521E04E05C181C6005
:102F2000401C2346C0B29042F8DB0020186010BD60
:102F300001460A680020002A02D0104612680A6082
:102F4000704702680A6001607047000010B50146D2
:102F50002022094817F075FF07490020C877084666
:102F600010BD0649012048610548064A01689142A2
:102F700001D1002101607047B00E00200005004023
:102F800064000020BEBAFECA0C4908784A78401C8A
:102F9000C0B2904200D008707047094A074820BF6D
:102FA00040BF20BF4178037843701368002B02D1E3
:102FB00003788B42F3D00020704700006B000020A4
:102FC00000E200E00A4A022151600A490B68002B26
:102FD000FCD0906008680028FCD000205060086891
:102FE0000028FCD0704701200007406970470000AE
:102FF00000E5014000E401407047704770477047AA
:1030000010FFFFFFDBE5B15100C001006700FFFFCB
:1030100003B40148019001BD09000020002803D03D
:103020008178012939D101E0102070470188FE4ADA
:10303000881A914233D01BDCFC4A881A91422ED068
:103040000BDC00292BD00320C002081A27D001284E
:1030500025D001210903401A07E001281FD00228CA
:103060001DD0FF281BD0FF380138002815D116E0ED
:10307000FF220132811A904211D008DC01280ED0C3
:1030800002280CD0FE280AD0FF2806D107E001292B
:1030900005D0022903D0032901D0002070470F205A
:1030A000704700B50B2826D009DC030018F074F92E
:1030B0000B1D2125251B25292325271F1B00112832
:1030C0001BD008DC0C2816D00D281CD00F2814D0DB
:1030D000102808D10FE0822809D084280FD0852835
:1030E0000FD0872811D0032000BD002000BD05208F
:1030F00000BDCF4800BD072000BD0F2000BD04204B
:1031000000BD062000BD0C2000BD0D20800200BDCA
:1031100070B500290BD0CB1FFA3B81241E46CDB2DF
:10312000112B1BD2012805D0022806D009E000206F
:1031300010701DE0FF20043001E0FF2003308142C9
:1031400018D0330018F028F9111613131613161699
:103150001316161613131313161316000846FF380A
:1031600081381F2803D9FF39FE39022902D815708A
:10317000002070BD1470072070BD00B5030018F06A
:103180000BF9060406040C080A0C002000BD1120EF
:1031900000BD072000BD082000BD032000BD007851
:1031A0000207120F04D0012A05D0022A0AD10EE02C
:1031B000000907D108E00009012805D0022803D042
:1031C000032801D0072070470870002070470620B0
:1031D0007047002807D0012807D0022807D003280D
:1031E00007D007207047002004E0112002E02120D2
:1031F00000E0312008700020704738B50C4605000B
:103200004FD06946FFF7CBFF002822D12088032149
:1032100089028843694609788907090D0843208097
:103220006946681CFFF7BBFF002812D121880320E4
:1032300000038143684600788007800C01432180A9
:10324000A8784007820F2020012A03D0022A03D049
:10325000072038BD814300E00143218088B2010589
:10326000890F08D0012189038843A9780907C90F6C
:1032700089030843208080B28104890F0AD0A9788D
:103280004004C906C90F400CC903084320808004CC
:10329000800F02D12088400403D5208840210843B4
:1032A0002080002038BD70B50446002008801546F7
:1032B0006068FFF7A2FF002815D12189A08981420B
:1032C00010D861688978C90708D00121490288426D
:1032D00008D8491C17F01EFE298009E0FF21FF31A4
:1032E000884201D90C2070BDFF30FF3003302880A8
:1032F000002070BD10B5137804785B08E4075B000C
:10330000E40F23431370FD2423400478A407E40F43
:10331000640023431370FB24234004786407E40F04
:10332000A40023431370F724234004782407E40FF8
:10333000E40023431370EF2423400478E406E40FF1
:10334000240123431370DF2423400478A406E40FF0
:103350006401234313700078BF244006C00F23404C
:10336000800103431370002906D00878C10701D1FA
:10337000800701D5012000E00020C0015906490E58
:103380000843107010BD30B50A8803239B020488DF
:103390009A4323059D0F02D1A3049C0F01D09B0FDC
:1033A00000E001239B021A4303230A801B039A4374
:1033B00003889804840F02D11805830F01D0800F71
:1033C00000E00120000302430A8030BDF3B593B052
:1033D0000D000FD0139800280FD01221284617F0A7
:1033E0008DFD03AAFF21012003F0D5F80024264615
:1033F00037467AE0102015B0F0BD0720FBE768469D
:10340000807D01280BD16846818A0520C002081AF8
:1034100010D0012810D0022812D0032812D0042C7A
:1034200014D0052C15D113E002290000012800005A
:1034300003300000012400E002246846468A08E0C8
:10344000032406E068460424478A02E0052400E0DD
:1034500006246846418A1398814246D12C74002E76
:1034600041D00DAA0EA905200292019100901023CF
:103470000022FF21304603F02FF9002823D16846AF
:10348000808E2A46C0B20EA9FFF72DFC00281AD163
:10349000AE81002F27D00DA9052008AE0291009023
:1034A000132300220196FF21384603F015F9002866
:1034B00009D16846808EF11CC01EC0B22A1DFFF7DC
:1034C00012FC002801D0032095E708A881784278F3
:1034D00008021043E881062C05D16846807DA87259
:1034E0006846808A2881002085E703A803F05CF8FD
:1034F000002884D0FFF7D5FD7DE7002805D0FE4ADF
:10350000012903D0022903D003207047518800E02D
:103510009188814201D1002070470720704770B523
:103520000C4605461C21204617F0E8FC00202080B0
:10353000002D08D0012D04D0F0A1F54817F00BFEA6
:1035400070BD062000E00520A07070BD70B592B07F
:103550001546064601206A461071107453740846D9
:1035600008300395029048889082FEF7FBF904002A
:1035700019D06580172069468883203600940AABED
:103580007178023307AA01A80EF017F90646607891
:10359000000701D5FEF7C7F9002E0AD03046FFF725
:1035A000ECFD12B070BD1321284605F00EFF03207C
:1035B000F7E708A800906846838B0422012128467B
:1035C00007F0B3FEEDE770B506468AB000200D4661
:1035D00007900590069003A90490052402460291E5
:1035E0000190102300942946304603F075F8002816
:1035F0000DD108A804A9009102900194684683891E
:1036000000222946304602F083FE002801D0FFF751
:1036100048FD0AB070BD10B50EF0D5FA10BDF0B57A
:1036200089B000260546059600780C460827030059
:1036300017F0B2FE0CFD070C390B75759BBEFCD361
:10364000E3FD68680A38FEF702FB07E1A88800225C
:1036500080B20421009008F067FB0290002C04D097
:10366000AB48A6A16E3017F076FD0298002804D171
:10367000A748A2A16F3017F06EFD0298009908309C
:103680000DF0D0FCFEF76EF9040007D060783843E7
:10369000607000986080FEF746F9E1E01321009821
:1036A00005F093FEEAE0002C04D1BD2093A1800038
:1036B00017F051FD60880022042108F035FB0090CE
:1036C000002804D192488DA1883017F044FD00995C
:1036D000002008802A7994461EE0C3005B199B688D
:1036E00007936B469B8B1A0708D5DA0606D560460A
:1036F000C20050194038C08F088006E05B0409D52D
:103700000871C2005019C0884880607838436070E2
:103710000226A3E0401CC0B28445DED89EE0E888C3
:10372000694608800090002C04D1794873A1983034
:1037300017F011FD2878062813D10098C00B10D07F
:1037400060880022042108F0EFFA060004D17048D6
:103750006AA1A23017F0FFFC00203071A8887080A9
:1037600039E060783843607078E0002C04D1684814
:1037700062A1B43017F0EFFC60880022042108F049
:10378000D3FA0090002804D161485CA1B73017F04B
:10379000E2FC009808300EF068FA0121484002D19E
:1037A000E888C00B5AD0009861880226C180D8E70B
:1037B000002C04D1564851A1D03017F0CCFC6088C1
:1037C0000022042108F0B0FA002804D150484BA18F
:1037D000D33017F0C0FC0226C3E7002C04D14C48BC
:1037E00046A1DC3017F0B7FC022661880122204692
:1037F000FEF73EFA01200590B3E7A889002280B2C7
:103800000421009008F090FA0746002C04D04048AC
:103810003AA1EE3017F09FFC002F04D13C4837A1AD
:10382000EF3017F098FC6868029001E009E010E0C2
:10383000288969468881012202A90098FEF734FA96
:103840000CE0002C8DD16D202CA1C00017F083FC62
:1038500087E72F4829A1FE3017F07DFC002C0DD002
:10386000607800070AD50598002807D184202070C9
:103870002046582229460830FDF7A6FC304609B0FC
:10388000F0BDF7B50C460546007A224688B00A32EC
:103890000492921C01920027811E16323E4602922B
:1038A0000B0017F079FD08F405F348488ED0F2F3C9
:1038B00068880022042108F037FA0190002803D11B
:1038C0000EA1144817F047FC01980088002802D088
:1038D0005227072600E151271E26002C70D0688849
:1038E000A0800120A071019804990079C0004019BE
:1038F000C089FFF76BFD0FE0400C00207372635C22
:1039000067617474735F636F72652E6300000000FB
:103910006F0200008603000000287DD10198007925
:10392000C0004019C089208101980079C000401969
:10393000408AA083F0E0698A0091062820D1E889B6
:10394000C00B1DD008462230512786B2002CC5D0AE
:10395000A8890199FFF73AFD002872D16888A080F4
:103960000220A071A88920810120A072288AE0830A
:10397000009820846969009A029817F062FACBE0F7
:1039800008462030502786B2002CA7D0A889049979
:10399000FFF71CFD002854D16888A080A889E0802A
:1039A000287A06280AD002202072288AA08300984C
:1039B000E083204669692030009ADEE70120F3E7C2
:1039C0008FE068880022042108F0AEF90690688A2A
:1039D00000900698002803D1FD49FE4817F0BBFB74
:1039E000069808300EF041F90121484002D1E889DB
:1039F000C00B25D000985127223086B2002C7AD0F7
:103A00006888A080A8890199FFF7E0FC002818D1F8
:103A10000220A071A88900E013E020810420A07298
:103A2000288AE083009820846969009A029817F038
:103A300008FA0699002008710698A98941806BE070
:103A400003200BB0F0BD688804F0DDF900906888B1
:103A50000022042108F068F901900098002804D1A0
:103A6000DC48DB492C3017F076FB0198002804D1A4
:103A7000D848D7492D3017F06EFB0198D649C08839
:103A8000884205D05127222604E01EE03FE035E0C1
:103A900050272026002C2ED06888A080502F07D0D9
:103AA0000220A0712146287B0831FFF738FD33E062
:103AB000287BA11DFFF733FD6A8800230199009838
:103AC000FFF744FD0028BCD126E0C449A889C98875
:103AD000814207D154270626002C0CD06888A0808C
:103AE0001AE008E053270826002C04D06888A0803C
:103AF000A889E08010E00A98068013E05527072681
:103B0000002CF8D0A889A0800020A07104E08D20AE
:103B1000AF49C00017F01FFB0A98002C068001D0A7
:103B20002780668000208CE7AC4900200870704731
:103B300030B585B00C4601F0DBF90546FF2804D10D
:103B4000A448A349953017F006FB0020208020717F
:103B50006080401EE0802046294608300DF056FA6D
:103B60006A462946012002F016FD102412E068463C
:103B7000808800070ED56846C0882946FFF723FDD8
:103B800068468188FF2321438180C0882946019AA5
:103B900002F02CFE684602F007FD0028E7D005B0D1
:103BA00030BD0A46014610B5104608300DF042FA05
:103BB00010BD70B505460022042108F0B5F80400D8
:103BC00004D184488249B73017F0C5FA2046294607
:103BD00008300DF027FA70BDF0B591B00C460746DD
:103BE00004F011F9050005D02878222804D2082015
:103BF00011B0F0BD7A48FBE700220421384608F0F6
:103C000093F80646002C02D0A08800280CD0012092
:103C1000694608710220087400204874002C05D001
:103C2000A0880883206802E00920E1E70883059066
:103C30003046083003970290FDF794FE040018D038
:103C40006780172069468883203500940AAB69781D
:103C5000023307AA01A80DF0B0FD05466078000701
:103C600001D5FDF760FE002D09D02846FFF785FA43
:103C7000BEE71321384605F0A8FB0320B8E708A8E3
:103C800000906846838B04220121384607F04DFBE3
:103C90000021C943F180ABE7FFB585B00E9E778860
:103CA000384604F0B0F8054600220421384608F0F2
:103CB0003BF80446002D03D145494A4817F04BFA1A
:103CC000002C04D147484249401C17F044FA0834FC
:103CD000089869460394C1C105A80DC820356978C4
:103CE0000DF0DAF9CBE5F0B50446002099B00D46A9
:103CF00001460D9010A88181164601818180374AC6
:103D000068469180018510A80180684601878185F9
:103D100081841078012808D0022806D0032804D016
:103D2000042802D0082019B0F0BD2F4A944273D362
:103D30002E4F0121890438688C4201D3844278D304
:103D4000294A954275D3012189048D4201D38542C8
:103D50006FD36168002913D0234A914269D30122AD
:103D60009204914201D3814263D3608921898842C0
:103D700003D801225202914201D90C20D3E70D90C1
:103D800016AA0EA92846FFF78EFA0028CBD168683C
:103D900080784007800F02280AD16846008F80048F
:103DA000800F05D02869002802D03968884240D3A6
:103DB0000AA92069FFF721FA0028B4D12069002858
:103DC0001CD0607880076846008D14D580040FE011
:103DD000FC380000EE030000FFFF0000400C002054
:103DE000023000000C05000000C001002800002087
:103DF000800F68D002E08004800F64D16846008D97
:103E0000810618D58004800F606806D0002812D083
:103E1000396888420DD302E00BE000280BD0FE4940
:103E2000884206D301218904884204D33968884234
:103E300001D2102077E709A96069FFF7DEF90028B1
:103E40009CD16069002808D06846808C0105890FE4
:103E5000012938D18004800F35D00BA9A069FFF764
:103E6000CCF900288AD16846808C80062BD468461D
:103E7000808D810627D4A169002906D00105890F0C
:103E8000012920D18004800F1DD0E068002804D0D3
:103E90000078002817D01C2815D204AA611C2046DF
:103EA000FFF728FA0121890210A80180012768463E
:103EB0008773DA49818104AA033217A92868FEF7BB
:103EC00038FF002801D007202DE710A8007F15A992
:103ED000C01CC2B200200C920190FF320090034639
:103EE0000291FF3203A80332109902F0ACFA0028C5
:103EF00026D110A9888A0F902A892969C84801917A
:103F00000092029010A90A8B6B8928680E9902F022
:103F10009AFA01007ED1C2480025001F81886846B8
:103F20004174090A8174052104A86A4623C210A8B5
:103F30002A46FF21808A0C9B02F0EAF9002802D071
:103F4000FFF7AFF8EFE66846007C0322C1090020C6
:103F5000920290430122920280181490002928D0E6
:103F6000014610A8018068462921877309028181D2
:103F7000058608A8007C0023410860784900C00736
:103F8000C00F014308A80174FD2001406078A54AD4
:103F90008007C00F4000014308A801740CA902204B
:103FA00001910090029503A8109902F04CFA0100CB
:103FB00030D16068002828D0206900280DD10AA9D6
:103FC0000EA8FFF7E0F96078800706D46946088DEF
:103FD0000321090388436946088590496846877329
:103FE000FE3181818F492089891E16F093FF626816
:103FF0000D9811AB0192009002930A46002303A88A
:00000001FF
@@ -1,910 +0,0 @@
:020000040000FA
:10000000C0080000DD0700000D050000BD0700006E
:1000100017050000210500002B050000000000006E
:100020000000000000000000000000006108000067
:100030000000000000000000350500003F05000042
:1000400049050000530500005D050000670500003C
:10005000710500007B050000850500008F0500008C
:1000600099050000A3050000AD050000B7050000DC
:10007000C1050000CB050000D5050000DF0500002C
:10008000E9050000F3050000FD050000070600007B
:10009000110600001B060000250600002F060000C8
:1000A00039060000430600004D0600005706000018
:1000B000610600006B060000750600007F06000068
:1000C00089060000930600009D060000A7060000B8
:1000D000B1060000BB060000C5060000CF06000008
:1000E000D9060000E3060000ED060000F706000058
:1000F000010700000B070000150700001F070000A4
:100100002B070000370700001FB500F003F88DE84B
:100110000F001FBD00F058BB2DE9F04105460E460B
:100120001746002406E056F8241005EB840000F082
:10013000D9F9641CBC42F6D30020BDE8F081014629
:100140000868B0F5002F01D3102070470020FCE7AD
:100150002DE9F04105460C461646002706E02846E4
:10016000216800F0BFF92D1D241D7F1CB742F6D376
:10017000BDE8F08170B505460C462E460BE03046D2
:1001800000F09EF9B4F5806F01D2002401E0A4F5DF
:10019000806406F58056002CF1D170BD0146D1E98E
:1001A000000200EB8200B0F5002F09D84FF01020BC
:1001B000406904234A6803FB0200B0F5002F01D90F
:1001C000092070474FF010204069401C08B90F20EB
:1001D000F7E70020F5E72DE9F041044620680528FF
:1001E00047D2DFE800F0032A40475700201DFFF701
:1001F000D5FF054615B12846BDE8F08100F044F969
:1002000000BF4FF4805000F05BF900BF042221468C
:100210009148FFF781FF08B10320EDE7082221464E
:100220008D4800F09BFA30B900218C48006800F03E
:1002300059F900F002F90320DEE7A668E56867686F
:1002400029463046FFF796FF2A4639463046FFF7E3
:100250007FFFAA003946304600F080FA08B9002036
:10026000CAE70320C8E700F013FB4FF440507C4975
:10027000086041E06568E668A768B200394628462C
:1002800000F06CFA8046B8F1000F01D10020B3E70E
:100290000E20B1E7201DFFF752FF05460DB128469D
:1002A000AAE7606848B900F0EFF800BF4FF40050CB
:1002B00000F006F900BF00F0C0F800F0E5F800BF5C
:1002C0004FF4805000F0FCF800BF04222146624841
:1002D000FFF722FF08B103208EE7082221465E487F
:1002E00000F03CFA30B900215C48006800F0FAF8F0
:1002F00000F0A3F803207FE700BF00207CE770B583
:1003000005460C46182D04D12068FFF764FF2060D5
:1003100002E00120206000BF00BF70BD2DE9FF4159
:100320004FF0102044694C48806804EB8005260B90
:1003300005F6FF70070B00200090019002900390DB
:1003400000BF0BE041095DF8211000F01F030122FE
:100350009A40114342094DF82210401CB042F1D39B
:1003600038460BE041095DF8211000F01F0301221F
:100370009A40114342094DF82210401C8028F1D3C5
:10038000684600F073F8BDE8FF8170B54FF01020AB
:100390004469314885684668AA003146204600F025
:1003A000DDF908B1002070BD0120FCE72A48406853
:1003B00008B1012000E000200546FFF7E6FF48B144
:1003C00000F062F800BF4FF4005000F079F800BF71
:1003D00000F033F8FFF7A2FF7DB14FF0102046691F
:1003E0001D488468476821463046FFF7C3FE224611
:1003F00039463046FFF7ACFE00BF00F01EF810B5DE
:100400001548446816480460204600F015FA10BDEF
:10041000124800680068401C08B900BFFEE70E489B
:10042000006810B1042806D101E0FFF7BFFFFFF715
:10043000E6FF00BFFEE700BFFEE7BFF34F8F0948AE
:10044000006800F4E06008490843001D05490860A1
:10045000BFF34F8F00BFFEE700100000B40800009C
:10046000000000200CED00E00000FA050F4A0168D2
:100470001160121D416811600C4A103281681160D0
:10048000121DC168116070476FF0060007490860CF
:10049000C010064914310860091F08600349091D8E
:1004A000086070470249086070470000000600407D
:1004B00008E5014000BF134800680028FBD07047E2
:1004C00010B50446022010490860FFF7F3FF2046EC
:1004D000FFF7E8FFFFF7EEFF00200B490860FFF78A
:1004E000E9FF10BD00B502460120074B1860FFF779
:1004F000E1FF1160FFF7DEFF0020034B1860FFF7FC
:10050000D9FF00BD00E4014004E501400820904906
:1005100009680958084710208D4909680958084793
:1005200014208B4909680958084718208849096828
:1005300009580847382086490968095808473C2067
:1005400083490968095808474020814909680958C2
:10055000084744207E4909680958084748207C49D3
:100560000968095808474C2079490968095808471B
:100570005020774909680958084754207449096888
:1005800009580847582072490968095808475C20EB
:100590006F4909680958084760206D49096809587A
:1005A000084764206A49096809580847682068496B
:1005B0000968095808476C206549096809580847BF
:1005C0007020634909680958084774206049096820
:1005D0000958084778205E490968095808477C206F
:1005E0005B49096809580847802059490968095832
:1005F0000847842056490968095808478820544903
:100600000968095808478C20514909680958084762
:1006100090204F4909680958084794204C490968B7
:100620000958084798204A490968095808479C20F2
:100630004749096809580847A020454909680958E9
:100640000847A4204249096809580847A82040499A
:10065000096809580847AC203D4909680958084706
:10066000B0203B49096809580847B420384909684F
:1006700009580847B8203649096809580847BC2076
:100680003349096809580847C020314909680958A1
:100690000847C4202E49096809580847C8202C4932
:1006A000096809580847CC202949096809580847AA
:1006B000D0202749096809580847D82024490968E3
:1006C00009580847DC202249096809580847E020F2
:1006D0001F49096809580847E4201D490968095855
:1006E0000847E8201A49096809580847EC201849C2
:1006F000096809580847F02015490968095808474A
:10070000F4201349096809580847F8201049096876
:1007100009580847FC200E490968095808475FF442
:1007200080700B490968095808475FF482700849CE
:100730000968095808475FF4847005490968095831
:100740000847000003480449024A034B7047000071
:1007500000000020C0080000C008000040EA0103BB
:1007600010B59B070FD1042A0DD310C808C9121F5A
:100770009C42F8D020BA19BA884201D9012010BD94
:100780004FF0FF3010BD1AB1D30703D0521C07E061
:10079000002010BD10F8013B11F8014B1B1B07D1C5
:1007A00010F8013B11F8014B1B1B01D1921EF1D136
:1007B000184610BD7047704770470000014B1B681A
:1007C000DB681847000000201C481D497047FFF7F0
:1007D000FBFFFFF799FC00BD20BFFDE74FF0FF31A5
:1007E000184C24688C420DD1174B1B6899420ED1CE
:1007F000164B1B68164A136018684FF0FF31884289
:10080000EAD00BE0134880F30888134B1847104ACE
:10081000136018684FF0FF318842DDD080F30888FC
:100820004FF02021884204DD0C48026802210A436F
:1008300002605B68184700000346DBE7C008000061
:10084000C00800000020000014100010B0080000D4
:1008500000000020000400201104000024050040D6
:100860006FF00200704502D1EFF3098101E0EFF370
:100870000881886902380078182803D100E0000058
:10088000074A1047074A12682C32126810470000C6
:1008900000B5054B1B68054A9B58984700BD0000F2
:1008A000FF02000000000020B0080000040000006B
:0C08B00000300000002000000024F400D4
:10300000F0210020C1D50100E14100001FD50100E1
:10301000E1410000E1410000E1410000000000004A
:1030200000000000000000000000000025D60100A4
:10303000E141000000000000E1410000E14100002A
:103040008DD6010093D60100E1410000E14100006E
:10305000E1410000E1410000E1410000E1410000E8
:1030600099D60100E1410000E14100009FD6010036
:10307000E1410000A5D60100ABD60100B1D60100A8
:10308000E1410000E1410000E1410000E1410000B8
:10309000E1410000E1410000E1410000E1410000A8
:1030A000B7D60100BDD60100E1410000E1410000BA
:1030B000E1410000E1410000E1410000E141000088
:1030C000E1410000E1410000E1410000E141000078
:1030D000E1410000E1410000E1410000E141000068
:1030E000E1410000E1410000E1410000E141000058
:1030F000E1410000E1410000E1410000E141000048
:10310000E1410000E141000000F002F81AF035FA58
:103110000AA090E8000C82448344AAF10107DA4532
:1031200001D11AF02AFAAFF2090EBAE80F0013F033
:10313000010F18BFFB1A43F00103184788A60100CE
:10314000B8A601000A4410F8014B14F00F0508BF9F
:1031500010F8015B240908BF10F8014B6D1E05D063
:1031600010F8013B6D1E01F8013BF9D1641E03D03C
:10317000641E01F8015BFBD19142E4D3704700006B
:10318000103A24BF78C878C1FAD8520724BF30C893
:1031900030C144BF04680C60704700000023002465
:1031A00000250026103A28BF78C1FBD8520728BF57
:1031B00030C148BF0B6070471FB51AF09CFA00F091
:1031C00031F88DE80F001FBDF0B440464946524625
:1031D0005B460FB402A0013001B50648004700BFAE
:1031E00001BC86460FBC8046894692469B46F0BC91
:1031F00070470000093100008269034981614FF086
:1032000001001044704700000D32000001B41EB4EC
:1032100000B501F0E0FE01B40198864601BC01B0A2
:103220001EBD00001AF0A6B910B504460021012009
:1032300000F034F80021182000F030F800210B20B5
:1032400000F02CF80221192000F028F802210D20AE
:1032500000F024F802210E2000F020F802210F20B7
:1032600000F01CF80221C81F00F018F803211620F6
:1032700000F014F80321152000F010F8204600F0AB
:103280001FF8002010BD68210180704700F028B8A9
:103290000A48704700F02CB8704770474907090E7C
:1032A000002806DA00F00F0000F1E02080F8141D7D
:1032B000704700F1E02080F80014704703F90043E4
:1032C00070B5304C054608202070A01CFFF7DBFFCE
:1032D0005920A08029462046BDE8704000F0C5BBBB
:1032E00010B500F0CCFB27490020891E087010BDE6
:1032F0002DE9F041234E0446B61E0D4630780127D5
:1033000038B1A4F160000B280AD8204600F024FF51
:103310002DE0602CF9D043F201000860BDE8F08197
:10332000A4F16C00032803D8204600F050FF1EE0F3
:10333000A4F170001F2803D8204600F041F916E0E0
:10334000A4F190000F2803D8204600F0EEF80EE01C
:10335000A4F1A0000F2803D8204600F079F806E079
:10336000A4F1B0000F2804D8204600F0E2F928604C
:1033700000E02F60602CD1D128680028CED13770B2
:10338000CCE700001A0000204FF0E0214FF400408D
:10339000C1F8800124490020087024494FF0607072
:1033A0000860704770B5204D04462878A0421CBFC5
:1033B000002C002803D01EA14C201AF0AAF828786F
:1033C000A04208BF70BD2C701E49184A00200CB3E3
:1033D0001D4DDFF878C0131F012C07D0022C0FD031
:1033E000BDE8704012A167201AF093B8086002206F
:1033F0000860CCF800504FF040701060186070BD4D
:10340000086003200860CCF800504FF40000106002
:10341000186070BD086008604FF06070106070BD8B
:1034200003A170201AF075B82000002008F50140B3
:103430007372635C68616C5F63636D5F6161722E60
:103440006300000000F500408801002014F50040F2
:1034500030B4A0380B2865D2DFE800F0060D161F47
:10346000273039404A515B00D1E90132087830BC3D
:10347000194603F06CB988888A6883B2088830BC22
:1034800080B2194603F073B9D1E9022308884C6869
:1034900080B2214630BC03F06BB9D1E90132088813
:1034A00030BC80B2194603F07EB988888A6883B23E
:1034B000088830BC80B2194603F08AB988888A68C7
:1034C00083B2088830BC80B2194603F0C8B90888B6
:1034D0004A6830BC80B2114603F00DBA088982B246
:1034E000888883B2088830BC80B2194603F00DBAD0
:1034F00008884A6830BC80B2114603F02CBA0889AB
:103500004C6882B20888CB68214630BC80B203F098
:1035100090BAD1E9022308884C6880B2214630BCB9
:1035200003F08DBB30BC012070479038092845D28C
:10353000DFE800F0050D13191F262F373D0088889E
:103540008A6883B20888194680B204F0B3B8088844
:103550004A6880B2114604F0F0B808884A6880B220
:10356000114604F0F8B808884A6880B2114604F0A1
:1035700000B9D1E901320888194680B204F00EB9C9
:10358000088982B2888883B20888194680B204F01C
:103590000AB908894B6882B20888194680B204F0DB
:1035A00023B908884A6880B2114604F02EB9888889
:1035B00082B20888114680B204F088B901207047B1
:1035C00030B470381B287DD2DFE800F00E141820CC
:1035D00024272E353A3F43474B535960697179840C
:1035E0008B93989C9FA6A90008784A6830BC114626
:1035F00007F025BC086830BC07F070BC0C790B7B69
:103600008A680868214630BC07F078BC086830BC7E
:1036100007F009BD30BC07F056B908884A6830BCCD
:1036200080B2114607F027BE08880A7930BC80B204
:10363000114607F0BEBE087830BC40B207F0C9BEE4
:10364000088830BC80B207F0DFBE086830BC07F0E5
:10365000EDBE086830BC01F011BC086830BC01F058
:103660003DBC088982B2D1E9000330BC194607F09D
:10367000FFBED1E9000230BC114607F04ABF0888FE
:103680004A6830BC80B2114609F011BAD1E9022370
:103690000C790888214630BC80B209F0D0BA08887D
:1036A0000B798A6830BC80B2194609F07BBCD1E93D
:1036B0000132088830BC80B2194609F0EBBCD1E970
:1036C000022300E032E008884C6880B2214630BC1A
:1036D00009F046BD08884A6830BC80B2114609F03E
:1036E0007ABD08880A7A0B7930BC80B2194607F097
:1036F00031BF088830BC80B207F02FBF086830BCEB
:1037000007F030BF30BC07F0BFB8D1E900038A68CA
:1037100030BC194607F08EBF30BC07F09EB8088851
:103720004A6830BC80B2114608F055B830BC012060
:103730007047B02805D0B12807D0B22809D00120A1
:103740007047088880B20AF035B9088880B20AF05C
:1037500050B9D1E901320888194680B20AF05AB945
:103760000A280ED2DFE800F005070509090B0B0552
:10377000050507F0D0B809F0FFBE01F060BA06F009
:103780002DBAFEA140F2E22019F0C3BE7FB5FF4979
:103790000646FF4AD1E90001CDE901014FF49860E6
:1037A000ADF80C000F230A21A2F128000AF02FFE29
:1037B0000024AFF253000AF04BFE641CE4B20A2C62
:1037C000F7D304200090F24801231A4603A9F030F1
:1037D0000AF031FA20B1E9A14FF4AD7019F099FE69
:1037E000EC4C002075682070EB4920462844486066
:1037F000E01C20F00300A04204D0E8A14FF4977031
:1038000019F087FEA8B20422214604F09CFC20B1E6
:10381000E2A14FF4A07019F07CFE00211E220846A0
:1038200004F0A0F807F0CCFA02222421DF4801F0CE
:103830008DFBDE4801222C214C3001F087FBDB4957
:103840000B20B03901F006FA20B1CCA14FF4B770CB
:1038500019F05FFE09F062FE02F045F901AB0022AB
:103860000821D3A007F06AF920B1C4A14FF4BA70BF
:1038700019F04FFE304602F06EFC20B1BFA14FF4AC
:10388000BB7019F046FE4FF45B71CC4819F00DFE89
:10389000CA4801214171022181710621C1717FBD98
:1038A00010B5C64CA078092804D3B4A14FF4D77042
:1038B00019F02FFE207800EB400004EB401010F8C8
:1038C0000C1F21F0FF010170417821F00701C91C94
:1038D00021F0180141700121E17010BD70B50D4655
:1038E000002114461980072828D2DFE800F02704B9
:1038F0000B191227200021462846BDE870401A46C1
:1039000009F05BBE21462846BDE870401A4606F025
:1039100041BE21462846BDE870401A4601F08CBFE2
:1039200021462846BDE870401A4603F003BD2146F3
:103930002846BDE870401A4600F0D1BB8FA140F286
:103940000D2019F0E6FD032070BD70B59B4CE078AA
:10395000002819D02078002500EB400004EB40102F
:10396000407B00F0070001190879401E087120789B
:10397000401CC0B22070092800D12570A078401CDE
:10398000A0700AF015FFE57070BD8C48C079002862
:1039900000D085E7704770B5884DA86860B1FFF723
:1039A000F4FF002860D06022A96819F02AFDFFF713
:1039B000CCFF0020A860F0E76879002854D0FFF71A
:1039C0006FFF044679484C3001F0D0FA606020B9AE
:1039D0006AA14FF44B7019F09CFD60680AF0AAF8D8
:1039E00068B1204606F0AEFC6078010703D520F0F0
:1039F0000700401C29E06D4861684C302BE06B48A3
:103A000061684C3001F0BBFA00F01EFB00282BD19E
:103A1000FFF746FF0446654801F0A8FA606020B948
:103A200056A140F24F3019F074FD60680AF084F836
:103A3000A0B1606800886080204609F0F3FD6078DE
:103A4000010706D520F00700801C6070FFF77DFF9E
:103A5000A3E75648616801F092FA9EE76168BDE805
:103A60007040524801F08BBA70BD10B54A4CC4E9A1
:103A70000201AFF2DD0000F0E2FB607010BD4649CC
:103A800000200870704730B505464FF080500C4656
:103A9000D0F8A41095B0491C05D1D0F8A810C9439E
:103AA0000904090C08D050F8A01F01F00101297089
:103AB00041682160806812E02B208DF8000009A980
:103AC00068460AF00FF820B12CA14FF4197019F0D4
:103AD00020FD012028700A982060BDF82C00A080ED
:103AE0002878002803D0607940F0C000607115B0DC
:103AF00030BDF0B54FF080540746D4F8800095B043
:103B00000D462B26401C0BD1D4F88400401C07D155
:103B1000D4F88800401C03D1D4F88C00401C0BD092
:103B2000D4F880003860D4F884007860D4F8880035
:103B3000B860D4F88C001EE08DF82C6069460BA8A4
:103B400009F0D0FF20B10DA140F28D2019F0E1FC69
:103B500001983860029878608DF82C6069460BA84F
:103B600009F0C0FF20B105A14FF4257019F0D1FC78
:103B70000198B8600298F86022E000007372635CFC
:103B8000686F73745F636F72652E630000D7010006
:103B9000DC01002000220020240000207372635CFE
:103BA000686F73745F636F72652E6300A80B0020EB
:103BB0006E52463531383232000000008C0700204A
:103BC000D4F89000401C0BD1D4F89400401C07D1CD
:103BD000D4F89800401C03D1D4F89C00401C08D0B5
:103BE00054F8900F286060686860A068A860E0687A
:103BF00020E08DF8006009A9684609F073FF28B13C
:103C0000AFF2880140F2B22019F083FC0A982860D4
:103C10000B9868608DF8006009A9684609F062FF9A
:103C200028B1AFF2A80140F2B92019F072FC0A984D
:103C3000A8600B98E86015B0F0BD70B5F84C05466B
:103C4000A06828B1AFF2CC014FF4427019F061FCCA
:103C5000A56070BD10B50146F24801F090F9F04939
:103C60008879401CC0B28871012805D1EE4840789F
:103C7000BDE8104000F005BB10BD70B50446A1F5CD
:103C80007F4016460D46FF3805D1AFF2101140F2C5
:103C90007D3019F03EFC012E07D0AFF22011BDE8B7
:103CA00070404FF4637019F034BC207820F00F009E
:103CB000801D20F0F0006030207000202072A5816F
:103CC0000120A07370BD70B515460C460646FFF77F
:103CD0005CFE90B1017821F00F01891D21F0F00107
:103CE0006031017046800121017221680161A18863
:103CF00081820573BDE8704027E63046BDE870401C
:103D0000132107F056BBC8494968884201D21020E8
:103D10007047032101700020704770B5C24C054602
:103D200094B02078002610B1082014B070BDBF4AAE
:103D30006260954201D21020F7E7686848B1092116
:103D4000D82804D3C31C23F00303834205D00846BC
:103D5000EBE74FF4C06068600DE0B549891A4FF099
:103D60008052D2F80C2101EB8221A1F50061814241
:103D700001D20421EBE700F053FF6178A0680CF05A
:103D800048FCE068401E07280BD830218DF8001051
:103D90008DF8020068460EF018F810B109A80CF072
:103DA000F3FD2846FFF7F2FC012020703046BCE707
:103DB0002DE9F05FDFF870B204460F46DBF804002F
:103DC000814207D30CB1844204D3E01C20F00300ED
:103DD000A04202D01020BDE8F09F91484FF00008AB
:103DE000817899B14178824601EB410100EB4115A0
:103DF000B7F8009015F80C0F3B4600F00F000022BA
:103E00002946FFF76BFD060004D013E0A7F80080F9
:103E10000520E0E794B13988494501D90C260DE029
:103E200028783B4600F00F0022462946FFF756FD52
:103E3000060005D00C2E01D0A7F800803046CAE756
:103E40009AF801005446401CC0B28AF801000928C3
:103E500001D184F80180A078401EA070687800F03D
:103E60000701012910D0022908D003291CD0AFF284
:103E7000F42140F2294019F04CFBDFE7C006DDD405
:103E80006868FFF7E7FED9E7664869684C3001F0DB
:103E900076F86079401CC0B260710128CED19BF8E1
:103EA000010000F0EEF9C9E7E079401C8AF807004C
:103EB000C4E7604A904208D35B4AB0F5802F52684D
:103EC00001D3904201D3914201D21020704700F0FB
:103ED000F8BE584B10B5994208D3534BB1F5802F1B
:103EE0005B6801D3994201D39A4201D2102010BDE0
:103EF000022803D0102801D0092010BD00F006FFD1
:103F00000028FAD0052010BD4A4B10B598420BD3BB
:103F1000454BB0F5802F5B6801D3984204D399429A
:103F200002D31AB19A4201D2102010BD00F00DFF49
:103F30000028FAD0072010BD10B504463A4894B0C6
:103F40004068844202D2102014B010BD0F208DF8BA
:103F5000000009A9684609F0C5FD0028F4D19DF8C4
:103F60002C002070BDF82E006080BDF83000A080CD
:103F70000020E9E751B12C4A5268914202D30B6804
:103F8000934201D2102070478A880AB101F008BE1E
:103F90000920704710B5274A94B091420ED3224AA7
:103FA0004FF480239942526801D3914206D3441EB4
:103FB0001E2C25D8994203D3914201D21020C3E789
:103FC00001281BD108784FF0000410F0010F03D036
:103FD00003208DF8020001E08DF8024038208DF8B2
:103FE000000009A9684609F07DFD28B1AFF25441EF
:103FF00040F2272019F08DFA2046A5E70720A3E715
:10400000A0F120021F2AF9D814B0BDE8104006F034
:1040100019BE054A526891420ED210207047000026
:104020008C070020A80B0020240000200022002084
:104030000000002000F00100A0F120021F2A01D89A
:1040400006F07ABE0720E9E7F0B595B03B208DF881
:104050002C0069460BA809F045FD28B1AFF2C44118
:104060004FF4C47019F055FA43F2040600246D466B
:104070002FE02F19B87DC10706D0400704D405EB07
:104080004400C08809F0F3FB32488079F8B1B87D6C
:1040900080071CD505EB44000022C088062109F0EA
:1040A00003FCA0B13C208DF82C0005EB44006946D0
:1040B000C088ADF82E000BA809F014FD06000CD046
:1040C000AFF2285140F29D1019F023FA05E0641C6C
:1040D000E4B29DF80400A042CBD83046ABE52DE910
:1040E000F04105460C4600270078062190463E46E2
:1040F000B1EB101F05D0AFF25C514FF4E37019F033
:1041000008FA287A80B1012815D0AFF2705140F238
:10411000E71019F0FEF900BFA8F800600CB1278085
:1041200066800020BDE8F081022709267CB1A889BD
:10413000A080A87B09E00327142644B16888A080EA
:104140002869E060A88A2082287B2072E4E7A8F82A
:104150000060E6E78C07002060380A2835D2DFE8E7
:1041600000F005080D10151B21242A2F0868FFF701
:10417000D4BDD1E900021146FFF71ABE0868FFF767
:10418000C2BDD1E900021146FFF793BED1E9013269
:1041900008781946FFF79DBED1E900038A681946E1
:1041A000FFF7B2BE0868FFF7C7BE08884A6880B24A
:1041B0001146FFF7DFBED1E900021146FFF7EABE64
:1041C000D1E900021146FFF724BF0120704701200A
:1041D000704700000E4A12680C498A420AD11847FB
:1041E0000B4A1268094B9A4204D101B500F0EAFE6D
:1041F00003BC8E460749096809580847064807491D
:10420000054A064B7047000000000000BEBAFECA17
:104210006400002004000020F0210020F021002094
:104220004FF0E0214FF00070C1F88001C1F880022A
:10423000394B402283F80024C1F80001704710B5C3
:1042400002460420354903E001EBC0031B7943B16A
:10425000401EC0B2F8D232A1432019F05AF9FF2013
:1042600010BD41F8302001EBC00100224A718A7173
:1042700001220A7110BD294A002102EBC000017120
:10428000704710B50446042803D325A1522019F025
:1042900040F9224800EBC4042079012803D020A172
:1042A000532019F036F96079A179401CC0B28142DF
:1042B00000D060714FF0E0214FF00070C1F80002B3
:1042C00010BD70B51448042590F80004134E400941
:1042D000194C02281BD012A1692019F01AF916E016
:1042E000217806EBC1000279012A08D1427983794D
:1042F0009A4204D04279827156F831008047207882
:10430000401CC0B22070042801D3002020706D1E14
:10431000EDB2E5D270BD000019E000E0240C0020F1
:104320007372635C736F635F7369676E616C6C69F2
:104330006E672E63000000003400002010B5EFF31C
:10434000108000F0010472B6D0484178491C4170D9
:104350004078012801D10AF053FA002C00D162B64E
:1043600010BD70B5C94CE07848B90125E570FFF77C
:10437000E5FF0AF04DFA20B100200AF020FA0020F3
:1043800070BD4FF08040A571C0F80453F7E770B5D9
:10439000EFF3108000F0010572B6BC4C607818B9DC
:1043A000BBA1912019F0B5F86078401E607060786C
:1043B00008B90AF029FA002D00D162B670BDB348E1
:1043C00010B5C17821B100218171C170FFF7DFFF05
:1043D000002010BD10B504460AF01AFAAB49C9789E
:1043E000084000D001202060002010BD2DE9F05FC2
:1043F0000026A64C08210422102320270125B046C0
:10440000E6714FF0020A0D282CD2DFE800F0070910
:104410000C0E101214161F2124262800657126E0A8
:1044200084F805A023E0627121E061711FE06371EF
:104430001DE067711BE0012619E0FFF77FFF00BF59
:104440000AF0E6F90028FBD0022610E0627100E0D5
:104450006171E5710BE06371FBE76771F9E740207B
:104460006071F6E78AA140F2651019F052F80AF07F
:10447000DCF948B10AF0E0F9B04205D130460AF063
:10448000DFF90028FAD032E04FF08047FD60C7F82E
:10449000048183490E60C7F804A3BD60C7F810818A
:1044A000DFF800B2DBF80010C94341F3001101F15D
:1044B0000109DBF8001041F01001CBF8001000E01A
:1044C00020BFD7F804010028FAD030460AF0B8F926
:1044D0000028FAD0B9F1000F05D1DBF8001021F067
:1044E0001001CBF80010C7F808A3C7F80481E079E1
:1044F00060B10AF08DF907460AF0DAF86FF0004172
:1045000017B1C4E9021001E0C4E902011EB184F848
:104510000480BDE8F09F2571BDE8F05F00F094B81D
:1045200010B504460AF07AF928B158490120C8703C
:104530004A78521C4A702046BDE8104056E72DE9E3
:10454000F0414FF08045D5F808010026012803D13D
:10455000C5F808610AF033F9D5F80401012801D142
:10456000C5F80461D5F800010127484C01280ED197
:10457000C5F80061A07918B100200AF020F9A671F1
:10458000207820B10AF044F908B12F61A770207992
:1045900030B3D5F81001012824D1C5F810616F613E
:1045A000E079B0B10AF034F980460AF081F8B8F148
:1045B000000F01D0E16800E0A168411A022902DA87
:1045C00011F1020F0EDCB8F1000F01D0E06000E045
:1045D000A060FFF7B3FE0AF01BF910B12F61A770BE
:1045E00000E02770D5F80C0101280ED1A07818B989
:1045F00027A1F12018F08DFFC5F80C612A4800684A
:10460000A6702670BDE8F041C1E6BDE8F08170B546
:104610001E4DE87808B90AF0F7F801208407A06178
:10462000A87850B1D4F80C0120B900200AF008F99C
:104630000028F7D10020C4F80C014FF0FF30C4F877
:1046400008031A48006870BD2DE9F0411927BC071E
:10465000C4F808734FF00008C4F80081C4F80C8156
:104660000AF0D6F8094E012510B12561B57000E0B9
:104670003570FFF763FEC4F804730949707920317F
:104680000860A561C4F810816561BEE738000020AC
:104690007372635C736F635F636C6F636B2E630035
:1046A0001805004010ED00E00C0100400803004038
:1046B00010B50D2000F06DF8C4B26FF0040000F0EA
:1046C00068F8C0B2844203D039A11B2018F021FF42
:1046D0003C490120086010BD70B50D2000F043F882
:1046E000394C0020C4F800010125C4F804530D2002
:1046F00000F044F825604FF0E0216014C1F800019B
:1047000070BD10B50D2000F02EF82F48012141603A
:104710000021C0F800112D480068BDE810400D20B0
:1047200000F02CB82849D1F80001012803D020A1BD
:104730005E2018F0EEBE2348001D00680022C0B2C3
:10474000C1F800212149096809F0C3BC10B51E4811
:10475000D0F800110029FBD0FFF7E4FFBDE81040BE
:104760000D2000F00BB800F01F020121914040091C
:10477000800000F1E020C0F88011704700F01F02B7
:10478000012191404009800000F1E020C0F8801232
:104790007047002806DA00F00F0000F1E02090F8E2
:1047A000140D03E000F1E02090F800044009704788
:1047B0007372635C736F635F68616C5F726E672EA8
:1047C0006300000004D5004000D0004000D100404C
:1047D00030B44FF0E0204FF400644FF0010C0021A2
:1047E000C0F88041E510C0F880516303C0F8803103
:1047F000E34A82F80014D21E82F80014E14A82F8DB
:104800000014E14AC2F804C0C2F808C0C2F840115E
:10481000C2F84411C2F84811DC490968C0F8804266
:10482000C0F88052C0F88032C0F80041C0F80031B2
:10483000C2F800C030BC704770B401204FF0E023D4
:10484000C6024FF0000CC3F880610402C3F8804137
:104850000506C3F88051CC4A50609060CC4801688E
:104860000029FCD1C2F840C1C2F844C1C2F848C115
:10487000C6480068C3F88062C3F88042C3F880521B
:1048800070BC70474FF0E0204FF40061C0F8801218
:10489000C910C0F880127047002804BFBD48704797
:1048A000012804BFBC487047022804BFB7487047BE
:1048B00010B59120B9A118F02CFE002010BDB2490E
:1048C000002238B1012825D002282FD0B3A1BF2063
:1048D00018F01FBE4FF48030C1F80803C1F8480338
:1048E000B54B1A60C1F84021B4490968B44BC10303
:1048F0001960B449C1F808034FF0E0230012C3F86F
:104900008001B1480260C1F84021C1F80022AF48DF
:10491000027070474FF40030C1F80803C1F8480333
:10492000AB480260C1F844219B480AE04FF4802064
:10493000C1F80803C1F84803A6480260C1F848213D
:10494000924800687047F0B4DFF83CC204260025A6
:10495000012440B101283FD0022857D0F0BC8FA1DC
:10496000F42018F0D6BD881E20F07F414FF480302F
:10497000CCF80803CCF84051CCF84403CCF84015EF
:10498000012B14BF00210121904B59708D494C60BF
:10499000CC60DFF844C2CCF80050904D4FF0020CD0
:1049A000C5F800C0DFF838C2CCF80060DFF818C2E4
:1049B0003D32CCF80020C1F800424FF0E02C8A15BF
:1049C000CCF88022C1F80403CCF800210804854902
:1049D00008601C70F0BC704783484FF40032012B14
:1049E0000AD100BFC0F84051CCF80423CCF84423CE
:1049F000C0F84015F0BC7047CCF80823C0F840510F
:104A0000CCF84423C0F84015F0BC704777484FF409
:104A10008022012BF0D1E5E75D480068704770B552
:104A2000594CD4F84001002501280AD1D4F80803D4
:104A300010F4803F05D04FF48030C4F80803C4F868
:104A40004051D4F8440101280DD1D4F8080310F4E2
:104A5000003F08D04FF40030C4F80803C4F84451B4
:104A600001200AF0CCFFD4F8480101280DD1D4F878
:104A7000080310F4802F08D04FF48020C4F80803F6
:104A8000C4F8485102200AF0BAFF4048006870BDDF
:104A90004E490878E0B14A4A4FF000401060494A58
:104AA000C00BC2F8080303124FF0E02C0020CCF832
:104AB0008031454B1860C2F84001C2F8000208700E
:104AC0004A78002A08BF7047487000200AF097BF54
:104AD00003200AF094BF4FF0E0214FF08070C1F83E
:104AE000000270474FF0E0214FF08070C1F8800263
:104AF00070474FF0E0214FF40010C1F800027047FA
:104B00004FF0E0214FF40010C1F8800270472D48AB
:104B100001214160C1604FF0E0218015C1F88002A1
:104B20007047410A43F609525143C0F3080010FB95
:104B300002F000F5807001EB50207047430B48F203
:104B4000376C03FB0CF31B0C4FEA432CC1F800C07D
:104B5000DFF89CC003FB0C0326484CF2F72C5843AB
:104B6000400D10FB0CFC0CEB432303F580735B1230
:104B700013700A681044086070470BF045B80000D5
:104B80000BE000E018E000E000B0004048B1004059
:104B900004B500404081004044B100407372635C42
:104BA00072656D5F68616C5F6576656E745F746970
:104BB0006D65722E6300000040B5004040B10040BA
:104BC00008F501400080004040850040480000207A
:104BD00044B5004048B500400485004008850040C9
:104BE0001085004004F5014004B0004008B00040CA
:104BF000F7C2FFFF6F0C010010B50AF0EAFF10BD0D
:104C0000002005490860012001218140034A430931
:104C100042F8231000BF7047FC1F004080E200E014
:104C200010B50DF0EDF909F094F9FEF7ADFB0FF0BA
:104C30004FFB0EF0ADF8BDE810400EF02FB870B588
:104C40000C46054603F0E2F921462846BDE87040CF
:104C50000FF06FB870B50D46040011D085B1210179
:104C6000284618F000FC10224F49284618F084FB13
:104C70004D4801210838018044804560002070BD06
:104C8000012070BD70B5484E00240546083E10E076
:104C90007068AA7B00EB0410817B914208D1C17B34
:104CA000EA7B914204D10C22294618F039FB30B13D
:104CB000641C30888442EBDB4FF0FF3070BD20462F
:104CC00070BD70B50D46060009D045B1364C083CA4
:104CD00020886188401C884203D9042070BD1020C0
:104CE00070BD3046FFF7CEFF002801DB401C0AE014
:104CF00021886068102200EB0110314618F03CFB5F
:104D00002088401C20802870002070BD70B514469B
:104D10000D0018D0BCB10021A170022802D01028CB
:104D200011D105E0288870B10121A170108008E040
:104D30002846FFF7A7FF002805DB401CA070A889C4
:104D40002080002070BD012070BD70B5054614465E
:104D50000E000BD000203070A878012808D005D9AB
:104D60001149A1F108010A8890420AD9012070BDB9
:104D700024B1287820702888000A5070022008701A
:104D80000FE064B14968102201EB00112046103990
:104D900018F0F2FA287820732888000A607310202F
:104DA0003070002070BD000054000020654988422A
:104DB00006D3B0F5802F05D363490968884201D234
:104DC000102070470146012005F074B830B593B04B
:104DD000044600200D460090142101A818F065FB40
:104DE0001C2108A818F061FB9DF80000CDF808D040
:104DF00020F00F00401C20F0F00010308DF8000073
:104E00009DF8010006AA20F0FF008DF801009DF832
:104E1000200001A940F002008DF8200001208DF84B
:104E2000460042F60420ADF8440011A80190208805
:104E3000ADF83C006088ADF83E00A088ADF84000B9
:104E4000E088ADF842009DF8020020F00600801CCA
:104E500020F001008DF802000820ADF80C00ADF83C
:104E600010000FA8059008A800F02AFF002803D121
:104E7000BDF818002880002013B030BD3EB50446B0
:104E80000820ADF800002F48844206D3B4F5802FE7
:104E900005D32D480068844201D210203EBD214632
:104EA000012005F007F80028F8D12088ADF80400AB
:104EB0006088ADF80600A088ADF80800E088ADF87D
:104EC0000A0005F038FE01AB6A46002101F03CFB08
:104ED000BDF800100829E1D003203EBD1FB50446EF
:104EE000002002900820ADF808001648CDF80CD03C
:104EF000844206D3B4F5802F06D313480068844259
:104F000002D2102004B010BD05F015FE014602AA21
:104F10004FF6FF7001F0A3FC0028F3D1BDF8081094
:104F2000082901D00320EDE7BDF800102180BDF86D
:104F300002106180BDF80410A180BDF80610E18068
:104F4000E0E7000000F001002800002010B5031D7C
:104F500003600020521E04E05C181C60401C2346C5
:104F6000C0B29042F8DB0020186010BD024600205D
:104F70001168002902D0084609681160704702686C
:104F80000A6001607047000010B501462022094800
:104F900018F0F2F907490020C877084610BD064905
:104FA000012008600548064A0168914201D10021AC
:104FB00001607047B40E002014050040640000201A
:104FC000BEBAFECA0C4908784A78401CC0B290426A
:104FD00000D00870704708484FF0E02220BF40BF63
:104FE00020BF417803784370D2F8003213B90378B8
:104FF0008B42F3D0002070476B0000207047704751
:1050000010FFFFFFDBE5B15100F001006800FFFF7A
:1050100040F2090CC2F2000C6047000018B1817820
:1050200001293CD101E010207047018842F60213AB
:10503000C81A4FF48072994233D01CDC42F6010347
:10504000A1EB030099422CD00CDCF9B1B1F5C05FA3
:1050500027D06FF4C050081823D0A0F57060FF3837
:105060001DD11EE001281CD002281AD0FF2818D01C
:10507000904214D115E0904213D008DC012810D0E2
:1050800002280ED0FE280CD0FF2808D109E0A0F598
:105090008070013805D0012803D0022801D00020FB
:1050A00070470F2070470B2826D008DC1BD2DFE8A2
:1050B00000F01C2025251A25292325271E0011284C
:1050C0001CD008DC0C2817D00D281DD00F2815D0B7
:1050D000102808D110E0822809D0842810D0852813
:1050E00010D0872812D00320704700207047052079
:1050F000704743F203007047072070470F20704746
:1051000004207047062070470C2070474FF4505021
:10511000704730B551B1A1F201158123CCB2112DE8
:105120001CD2012805D0022808D00AE00020107007
:105130001DE0A1F5807003381BD002E0B1F5817F3E
:1051400017D0112D15D2DFE805F014111114111428
:10515000141114141411111111141100A1F5C070BF
:105160001F2803D9A1F2FD11022902D814700020D2
:1051700030BD1370072030BD06280CD2DFE800F0E8
:105180000305030B07090020704711207047072013
:1051900070470820704703207047007810F00F0216
:1051A00004D0012A05D0022A0AD10EE0000907D155
:1051B00008E00009012805D0022803D0032801D007
:1051C000072070470870002070470620704738B1EC
:1051D000012809D002280FD0032815D007207047D6
:1051E000087820F0FF0016E0087820F00F00401C3F
:1051F00020F0F00010300EE0087820F00F00401C86
:1052000020F0F000203006E0087820F00F00401C6D
:1052100020F0F000303008700020704738B50C46A0
:10522000050041D06946FFF7B8FF002819D19DF865
:105230000010208861F38B2020806946681CFFF7EE
:10524000ACFF00280DD19DF80010208861F30D30CF
:105250002080A978C1F34101012903D0022904D09B
:10526000072038BD20F0200001E040F02000208021
:1052700080B210F4406F04D0A978C90861F38E3071
:10528000208080B210F4405F07D0A978090961F34B
:10529000CF30208010F4405F02D12088400403D535
:1052A000208840F040002080002038BD70B50446C2
:1052B0000020088015466068FFF7B0FF002816D16F
:1052C0002089A189884211D860688078C0070AD0F7
:1052D000B1F5007F0AD840F20120B1FBF0F200FBEB
:1052E0001210288007E0B1F5FF7F01D90C2070BDB6
:1052F00001F201212980002070BD10B504781378D7
:1053000064F3000313700478640864F341031370BA
:105310000478A40864F3820313700478E40864F347
:10532000C30313700478240964F30413137004781E
:10533000640964F3451313700078800960F38613E1
:10534000137031B10878C10701D1800701D5012060
:1053500000E0002060F3C713137010BD028812F440
:10536000406F02D0C2F3812306E012F4405F02D006
:10537000C2F3013300E001230A8863F38B220A8021
:10538000008810F4405F02D0C0F3013006E010F452
:10539000406F02D0C0F3812000E0012060F30D32A5
:1053A0000A8070472DE9F04792B00D00804613D077
:1053B000B8F1000F14D01221284618F054F803AAAF
:1053C000FF21012003F04BF80024264637464FF416
:1053D00020596FF4205A6DE0102012B0BDE8F0871C
:1053E0000720FAE79DF8160001280AD1BDF814003D
:1053F00048450BD010EB0A000AD001280CD0022837
:105400000CD0042C0ED0052C0FD10DE0012400E0AF
:105410000224BDF8126008E0032406E00424BDF86D
:10542000127002E0052400E00624BDF81210414588
:1054300040D12C7486B34FF005090DF134080EAA43
:10544000CDF80090CDE9012810230022FF2130463D
:1054500003F0A1F8F0B9BDF834002A46C0B20EA995
:10546000FFF754FCB0B9AE81B7B108AECDF80090EB
:10547000CDE9016813230022FF21384603F08BF8A1
:1054800040B9BDF83400F11CC01EC0B22A1DFFF7A0
:105490003DFC10B10320A0E70AE0BDF82100E8813F
:1054A000062C05D19DF81600A872BDF814002881BD
:1054B000002092E703A802F0DAFF002892D0FFF75D
:1054C000F2FD8AE7002805D0FE4A012903D002290F
:1054D00003D003207047518800E09188814201D1B8
:1054E000002070470720704770B50C4605461C2108
:1054F000204617F0B8FF0020208055B1012D06D0BE
:10550000BDE87040F0A140F26F2018F002B806200C
:1055100000E00520A07070BD70B592B00646012075
:105520008DF814008DF808008DF8153001F1080091
:10553000CDE9030248881546ADF81800FEF725FAB4
:10554000040018D065801720ADF80400009496F888
:1055500021100DF12A0301AA02A80EF004FA064652
:105560006078000701D5FEF7F0F956B13046FFF735
:1055700003FE12B070BD1321284605F01AFF032068
:10558000F7E708A80090BDF804300422012128465E
:1055900007F0ABFEEDE770B506468AB000200D4679
:1055A000059005240490069003A900940790CDE986
:1055B0000101024610232946304602F0ECFF68B98B
:1055C00004A9009108A8CDE90140BDF80C300022E3
:1055D0002946304602F0F0FD002801D0FFF763FDB8
:1055E0000AB070BD0EF0B3BB2DE9FC47054600279D
:1055F00000780C46B846B9460C286FD2DFE800F0B8
:10560000FF060B360A6F6F95B5F7C8D768680A387A
:10561000FEF720FBF8E0A888002280B28146042132
:1056200008F04CFB064624B1A7A140F2DD2017F09C
:1056300070FF26B9A4A140F2DE2017F06AFF4946A8
:1056400006F108000DF019FEFEF79FF9040008D0DE
:10565000607840F008006070A4F80290FEF775F9D9
:10566000D3E01321484605F0A4FEE2E024B996A158
:105670004FF43D7017F04DFF60880022042108F0C0
:105680001DFB060004D190A140F2F72017F041FF66
:10569000A6F80090002029791DE000BF05EBC002AC
:1056A000128992B2130707D5D30605D505EBC100C1
:1056B00030F8020C308006E052040AD5307105EB58
:1056C000C000C08870806078022740F008006070D9
:1056D0009AE0401CC0B28142E0D895E08FE0E888B3
:1056E000ADF8000024B978A140F2073017F011FF9F
:1056F0002878062814D1BDF80000000410D5608871
:105700000022042108F0DAFA060004D16EA140F26A
:10571000113017F0FEFE86F80490A888708035E0FE
:10572000607840F0080060706EE024B966A140F235
:10573000233017F0EEFE60880022042108F0BEFA44
:10574000060004D160A140F2263017F0E2FE06F117
:1057500008000EF050FB90F0010F02D1E888000421
:1057600052D560880227F080DAE724B956A140F2CA
:105770003F3017F0CEFE60880022042108F09EFA28
:1057800020B951A140F2423017F0C3FE0227C7E70B
:1057900024B94DA140F24B3017F0BBFE02276188BF
:1057A00001222046FEF769FA4FF00108B8E7A88900
:1057B000002280B28146042108F080FA064624B116
:1057C00041A140F25D3017F0A4FE26B93EA140F29F
:1057D0005E3017F09EFE686800902889ADF80400DE
:1057E000012269464846FEF76EFA0DE0FFE7002CFD
:1057F00096D135A14FF45A7017F08BFE90E732A185
:1058000040F26D3017F085FE9CB16078000710D52E
:10581000B8F1000F0DD12078582220F00F00001DA4
:1058200020F0F00080302070294604F1080017F0C5
:10583000E8FD3846BDE8FC872DE9FE4F05460C46DD
:10584000007A0A31029104F10C010191904600277F
:105850001631821E3E464FF0020B4FF0010A0091B6
:10586000082A7DD2DFE802F0F5047C43438CCFF4B4
:1058700068880022042108F021FA5FEA000904D1B7
:1058800011A140F2863017F044FEB9F8000010B1C3
:105890005227072601E151271E26002C6FD0688869
:1058A000A08084F806A099F80400029905EBC000D6
:1058B000C089FFF777FD00287DD199F8040005EB3A
:1058C000C0000BE0440C00207372635C6761747469
:1058D000735F636F72652E6300000000C0892081D2
:1058E00099F8040005EBC000408AA083F4E0B5F805
:1058F0001290062821D1E88900041ED5512709F10C
:10590000220086B2002CC9D0A8890199FFF74AFD70
:10591000002876D16888A08084F806B0A889208104
:1059200084F80AA0288AE083A4F820904A4669698E
:10593000DDF8000017F020FDCEE0502709F120002F
:1059400086B2002CAAD0A8890299FFF72BFD002867
:1059500057D16888A080A889E080287A062800E0CE
:10596000B4E00AD002202072288AA083A4F81E90F6
:105970004A4604F120006969DCE70120F3E790E082
:1059800068880022042108F099F9B5F812A05FEAAE
:10599000000905D1AFF2D00140F2EE3017F0B9FDA9
:1059A00009F108000EF027FA90F0010F02D1E88902
:1059B000000425D500E024E00AF12200512786B238
:1059C000002C77D06888A080A8890199FFF7EAFCAD
:1059D000002816D184F806B0A88920810420A0727E
:1059E000288AE083A4F820A052466969009817F03D
:1059F000C3FC002089F80400A989A9F802106BE013
:105A00000320BDE8FE8F688804F0AEF982466888FE
:105A10000022042108F052F98146BAF1000F05D1A5
:105A2000AFF25C1140F21A4017F073FDB9F1000FAC
:105A300005D1AFF26C1140F21B4017F06AFDB9F8C6
:105A40000600A0F57F41FF3904D05127222603E04C
:105A50001CE032E0502720261CB36888A080502F1D
:105A600007D084F806B0287B04F10801FFF73CFD5D
:105A700032E0287BA11DFFF737FD6A8800234946E5
:105A80005046FFF749FD0028BBD125E0FE49A88913
:105A9000C988814206D15427062614B16888A0809F
:105AA0001AE007E05327082624B16888A080A88957
:105AB000E08011E0A8F8006013E055270726002CCD
:105AC000F8D0A889A0800020A07105E0AFF20821DD
:105AD0004FF48D6017F01DFDA8F800600CB1278011
:105AE000668000208DE7E84900200870704730B5D7
:105AF00085B00C4601F079F90546FF2805D1AFF2D3
:105B0000382140F2834017F004FD002020802071EE
:105B100060804FF6FF70E080294604F108000DF028
:105B2000A0FB6A462946012002F099FC16E000BF5E
:105B3000BDF80400000711D5BDF806002946FFF79F
:105B40002AFDBDF80400FF2340F01000ADF804006A
:105B5000BDF806002946019A02F0B2FD684602F03F
:105B600086FC0028E4D005B030BD0A46014602F1AB
:105B700008000DF088BB70B505460022042108F02E
:105B80009DF8040005D1AFF2C02140F2A54017F006
:105B9000C0FC294604F10800BDE870400DF06DBB63
:105BA000F0B591B00C46074604F0DEF8050005D0CC
:105BB0002878222805D2082011B0F0BD43F2020057
:105BC000FAE700220421384608F078F806460CB1BE
:105BD000A08870B101208DF8040002208DF810001B
:105BE00000208DF8110034B1A088ADF818002068AD
:105BF00003E00920E0E7ADF81800059006F1080081
:105C0000CDE90207FDF7C1FE040017D06780172019
:105C1000ADF81C00009495F821100DF12A0307AA95
:105C200001A80DF0A0FE05466078000701D5FDF73C
:105C30008CFE4DB12846FFF79FFABDE71321384689
:105C400005F0B7FB0320B7E708A80090BDF81C30AB
:105C500004220121384607F048FB4FF6FF71F1801E
:105C6000AAE72DE9FF5F83460E9E98469146778806
:105C70008A46384604F078F8054600220421384662
:105C800008F01CF804462DB9AFF2C43140F20C50B4
:105C900017F03FFC2CB9AFF2D03140F20D5017F0A5
:105CA00038FC0834CDE90274CDE9008695F821105E
:105CB0004B46524658460DF013FB04B0BDE8F09F2A
:105CC0002DE9F04F9BB00D464FF000096E49ADF83D
:105CD0001490ADF81890ADF81C90A1F80490ADF8B0
:105CE0000C90ADF810900446ADF82490ADF82090DB
:105CF00008781646CB46012809D0022807D0032889
:105D000005D0042803D008201BB0BDE8F08F5F4801
:105D100084425FD35E4F4FF480229442396801D3AE
:105D20008C4257D38046454554D39246554501D3BE
:105D30008D424FD3606878B140454BD3504501D375
:105D4000884247D360892189884202D8B1F5007F13
:105D500001D90C20D8E781460CAA04A92846FFF7F0
:105D6000A5FA0028D0D168688078C0F341000228E5
:105D700009D1BDF8100010F4405F04D0286910B1BB
:105D80003968884226D303A92069FFF747FA00281B
:105D9000BAD1206948B160788007BDF80C0000F4E2
:105DA000405001D5F0B300E0E0BBBDF80C00810627
:105DB00012D510F4405F606804D068B13968884239
:105DC00008D300E040B1404504D3504504D33968BE
:105DD000884201D2102097E708A96069FFF71EFAF0
:105DE000002891D1606940B1BDF82000C0F3812145
:105DF000012937D110F4405F34D009A9A069FFF719
:105E00000DFA002880D1BDF8200080062AD4BDF804
:105E10002400810626D4A16941B1C0F38121012962
:105E200020D100E01EE010F4405F1BD0E06818B104
:105E30000078B8B11C2815D20DAA611C2046FFF7C6
:105E40005CFA01278DF84A7042F60300DA46ADF895
:105E500048004FF4806B0DF1370215A92868FEF752
:105E600074FF08B107204FE79DF8540014A9C01C27
:105E7000CDF800A0CDE901A100F0FF08002308F251
:105E80000122594612A805E0440C002000F0010050
:105E90002800002002F02DFA30BBBDF850000A9017
:105EA000FD492A8928690092CDE901016B89BDF875
:105EB00030202868049902F01CFA01007ED1DFF836
:105EC000D8B35546ABF1040B0521BBF80400ADF87F
:105ED00035000DA88DE8230043460022FF21BDF8C0
:105EE000500002F069F910B1FFF7DDF80CE79DF8FA
:105EF00034004FF0020A01064FF48060804622D53C
:105F000001468DF84A704FF42450ADF84800ADF8C2
:105F10004C5062789DF84C00002362F300008DF82D
:105F20004C006278CDF800A0520862F341008DF871
:105F30004C0013AACDE9012540F2032212A802F079
:105F4000D8F901003AD1606840B3206960B903A96B
:105F500004A8FFF703FA6078800705D4BDF80C00A9
:105F600020F44050ADF80C008DF84A7042F6011054
:105F7000ADF84800208940F20121B0FBF1F201FBAD
:105F80001202606807ABCDF80090CDE90103002351
:105F900012A8039902F0ADF901000FD12078C106D3
:105FA00001D480062CD5ADF82C50606968B908A9D9
:105FB00004A8FFF7D3F9BDF8200000E077E020F453
:105FC000406000F58060ADF82000BDF8200006A913
:105FD00040F0C800ADF820008DF84A7042F602107B
:105FE000ADF848000BAACDF800A0CDE901210023AF
:105FF00040F2032212A8089902F07BF9010056D161
:00000001FF
@@ -1,5 +0,0 @@
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEID2WUBCe/4kLhl5ekJ+O8PtprcahUNFE3RIm5htQzDedoAoGCCqGSM49
AwEHoUQDQgAEZY2i7duYH2l9rnIg1oIXq+0/uHAF7IoFubVru6oX9GCQm67NrXIm
wgS2ErZi/0/MvRsMkIQQkNg6Wc2tbJgdTA==
-----END EC PRIVATE KEY-----
@@ -1,136 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import logging
import os
import unittest
# Nordic Semiconductor imports
import sys
from nordicsemi.dfu.dfu_transport import DfuEvent
from nordicsemi.dfu import crc16
from nordicsemi.dfu.init_packet import PacketField, Packet
from nordicsemi.dfu.model import HexType
from nordicsemi.dfu.dfu_transport_serial import DfuTransportSerial
def setup_logging():
root = logging.getLogger()
root.setLevel(logging.DEBUG)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
root.addHandler(ch)
@unittest.skip('Ignoring these tests since they take too much time to run.')
class TestDfuTransportSerial(unittest.TestCase):
DEVKEY_PORT = "NORDICSEMI_PCA10028_1_PORT"
def setUp(self):
setup_logging()
# Assert that environment variables are setUp before starting tests.
# TODO: create generic functionality for fetching environment variables that map
# TODO: communication ports to PCA versions
# TODO: setup target nRF5X device to a given state (bootloader+sd+application)
if self.DEVKEY_PORT not in os.environ:
self.fail("Environment variable {0} not found. "
"Must specify serial port with development kit connected."
.format(self.DEVKEY_PORT))
self.transport = DfuTransportSerial(os.environ[self.DEVKEY_PORT],
baud_rate=38400,
flow_control=True)
def tearDown(self):
if self.transport and self.transport.is_open():
self.transport.close()
def test_open_close(self):
self.transport.open()
self.assertTrue(self.transport.is_open())
self.transport.close()
self.assertFalse(self.transport.is_open())
def test_dfu_methods(self):
def timeout_callback(log_message):
logging.debug("timeout_callback. Message: %s", log_message)
def progress_callback(progress, log_message, done):
logging.debug("Log message: %s, Progress: %d, done: %s", log_message, progress, done)
def error_callback(log_message=""):
logging.error("Log message: %s", log_message)
self.transport.register_events_callback(DfuEvent.TIMEOUT_EVENT, timeout_callback)
self.transport.register_events_callback(DfuEvent.PROGRESS_EVENT, progress_callback)
self.transport.register_events_callback(DfuEvent.ERROR_EVENT, error_callback())
firmware = ''
test_firmware_path = os.path.join("firmwares", "pca10028_nrf51422_xxac_blinky.bin")
with open(test_firmware_path, 'rb') as f:
while True:
data = f.read()
if data:
firmware += data
else:
break
crc = crc16.calc_crc16(firmware, 0xffff)
self.transport.open()
# Sending start DFU command to target
self.transport.send_start_dfu(HexType.APPLICATION,
app_size=len(firmware),
softdevice_size=0,
bootloader_size=0)
# Sending DFU init packet to target
init_packet_vars = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 0xfffa,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [0x005a],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16: crc
}
pkt = Packet(init_packet_vars)
self.transport.send_init_packet(pkt.generate_packet())
# Sending firmware to target
self.transport.send_firmware(firmware)
# Validating firmware
self.transport.send_validate_firmware()
self.transport.send_activate_firmware()
self.transport.close()
@@ -1,123 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import unittest
from nordicsemi.dfu.init_packet import *
class TestInitPacket(unittest.TestCase):
def setUp(self):
pass
def test_generate_packet_a(self):
init_packet_vars = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 3,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [1111, 2222, 3333, 4444],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID: 2,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH:
"\xc9\xd3\xbfi\xf2\x1e\x88\xa01\x1e\r\xd2BSa\x12\xf8BW\x9b\xef&Z$\xbd\x02U\xfdD?u\x9e",
PacketField.NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS:
'1\xd7B8\x129\xaa\xc3\xe6\x8b\xe2\x01\xd11\x17\x01\x00\xae\x1e\x04\xf9~q\xcd\xbfv"\xdan\xc0f2\xd49' +
'\xdc\xc7\xf8\xae\x16VV\x17\x90\xa3\x96\xadxPa\x0bs\xfe\xbdi]\xb2\x95\x81\x99\xe4\xb0\xcf\xe9\xda'
}
ip = Packet(init_packet_vars)
data = ip.generate_packet()
self.assertEqual(data, ("\x01\x00" # Device type
"\x02\x00" # Device revision
"\x03\x00\x00\x00" # App version
"\x04\x00" # Softdevice array length
"\x57\x04" # Softdevice entry #1
"\xae\x08" # Softdevice entry #2
"\x05\x0d" # Softdevice entry #3
"\x5c\x11" # Softdevice entry #4
"\x02\x00\x00\x00" # ext packet id
"\xc9\xd3\xbfi\xf2\x1e\x88\xa01\x1e\r\xd2BSa\x12" # Firmware hash, part one
"\xf8BW\x9b\xef&Z$\xbd\x02U\xfdD?u\x9e" # Firmware hash, part two
'1\xd7B8\x129\xaa\xc3\xe6\x8b\xe2\x01\xd11\x17\x01' # Init packet ECDS, part 1
'\x00\xae\x1e\x04\xf9~q\xcd\xbfv"\xdan\xc0f2\xd49' # Init packet ECDS, part 2
'\xdc\xc7\xf8\xae\x16VV\x17\x90\xa3\x96\xadxPa\x0b' # Init packet ECDS, part 3
's\xfe\xbdi]\xb2\x95\x81\x99\xe4\xb0\xcf\xe9\xda' # Init packet ECDS, part 4
)
)
def test_generate_packet_b(self):
init_packet_vars = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 0xffeeffee,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [1111, 2222, 3333],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID: 1,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH:
"\xc9\xd3\xbfi\xf2\x1e\x88\xa01\x1e\r\xd2BSa\x12\xf8BW\x9b\xef&Z$\xbd\x02U\xfdD?u\x9e"
}
ip = Packet(init_packet_vars)
data = ip.generate_packet()
self.assertEqual(data, ("\x01\x00" # Device type
"\x02\x00" # Device revision
"\xee\xff\xee\xff" # App version
"\x03\x00" # Softdevice array length
"\x57\x04" # Softdevice entry #1
"\xae\x08" # Softdevice entry #2
"\x05\x0d" # Softdevice entry #3
"\x01\x00\x00\x00" # ext packet id
"\xc9\xd3\xbfi\xf2\x1e\x88\xa01\x1e\r\xd2BSa\x12" # Firmware hash, part one
"\xf8BW\x9b\xef&Z$\xbd\x02U\xfdD?u\x9e" # Firmware hash, part two
)
)
def test_generate_packet_c(self):
init_packet_vars = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 0xffeeffee,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [1111, 2222, 3333],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID: 0,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16: 0xfaae
}
ip = Packet(init_packet_vars)
data = ip.generate_packet()
self.assertEqual(data, ("\x01\x00" # Device type
"\x02\x00" # Device revision
"\xee\xff\xee\xff" # App version
"\x03\x00" # Softdevice array length
"\x57\x04" # Softdevice entry #1
"\xae\x08" # Softdevice entry #2
"\x05\x0d" # Softdevice entry #3
"\x00\x00\x00\x00" # ext packet id
"\xae\xfa" # CRC-16 checksum for firmware
)
)
if __name__ == '__main__':
unittest.main()
@@ -1,201 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import copy
import json
import unittest
from nordicsemi.dfu.init_packet import PacketField
from nordicsemi.dfu.manifest import ManifestGenerator, Manifest
from nordicsemi.dfu.model import HexType
from nordicsemi.dfu.package import FirmwareKeys
class TestManifest(unittest.TestCase):
def setUp(self):
self.firmwares_data_a = {}
init_packet_data_a = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 1000,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [22, 11],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID: 2,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH: 1234,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH:
'\xc9\xd3\xbfi\xf2\x1e\x88\xa01\x1e\r\xd2BSa\x12\xf8BW\x9b\xef&Z$\xbd\x02U\xfdD?u\x9e',
PacketField.NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS:
'1\xd7B8\x129\xaa\xc3\xe6\x8b\xe2\x01\xd11\x17\x01\x00\xae\x1e\x04\xf9~q\xcd\xbfv"\xdan\xc0f2\xd49' +
'\xdc\xc7\xf8\xae\x16VV\x17\x90\xa3\x96\xadxPa\x0bs\xfe\xbdi]\xb2\x95\x81\x99\xe4\xb0\xcf\xe9\xda'
}
self.firmwares_data_a[HexType.APPLICATION] = {
FirmwareKeys.BIN_FILENAME: "app_fw.bin",
FirmwareKeys.DAT_FILENAME: "app_fw.dat",
FirmwareKeys.INIT_PACKET_DATA: init_packet_data_a,
FirmwareKeys.ENCRYPT: False}
self.firmwares_data_a[HexType.SD_BL] = {
FirmwareKeys.BIN_FILENAME: "sd_bl_fw.bin",
FirmwareKeys.DAT_FILENAME: "sd_bl_fw.dat",
FirmwareKeys.INIT_PACKET_DATA: copy.copy(init_packet_data_a), # Fake the hash
FirmwareKeys.BL_SIZE: 50,
FirmwareKeys.SD_SIZE: 90
}
self.firmwares_data_b = {}
init_packet_data_b = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 1000,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [22, 11],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16: 0xfaae
}
self.firmwares_data_b[HexType.APPLICATION] = {
FirmwareKeys.BIN_FILENAME: "app_fw.bin",
FirmwareKeys.DAT_FILENAME: "app_fw.dat",
FirmwareKeys.INIT_PACKET_DATA: init_packet_data_b
}
self.firmwares_data_b[HexType.BOOTLOADER] = {
FirmwareKeys.BIN_FILENAME: "bootloader_fw.bin",
FirmwareKeys.DAT_FILENAME: "bootloader_fw.dat",
FirmwareKeys.INIT_PACKET_DATA: copy.copy(init_packet_data_b), # Fake the hash
}
self.firmwares_data_c = {}
init_packet_data_c = {
PacketField.DEVICE_TYPE: 1,
PacketField.DEVICE_REVISION: 2,
PacketField.APP_VERSION: 1000,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [22, 11],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_CRC16: 0xfaae
}
self.firmwares_data_c[HexType.SOFTDEVICE] = {
FirmwareKeys.BIN_FILENAME: "softdevice_fw.bin",
FirmwareKeys.DAT_FILENAME: "softdevice_fw.dat",
FirmwareKeys.INIT_PACKET_DATA: init_packet_data_c
}
def test_generate_manifest(self):
r = ManifestGenerator(0.5, self.firmwares_data_a)
_json = json.loads(r.generate_manifest())
# Test for presence of attributes in document
self.assertIn('manifest', _json)
manifest = _json['manifest']
self.assertIn('application', manifest)
application = manifest['application']
self.assertIn('init_packet_data', application)
self.assertIn('dat_file', application)
self.assertIn('bin_file', application)
init_packet_data = application['init_packet_data']
self.assertIn('firmware_hash', init_packet_data)
self.assertIn('softdevice_req', init_packet_data)
self.assertIn('device_revision', init_packet_data)
self.assertIn('device_type', init_packet_data)
self.assertIn('application_version', init_packet_data)
# Test for values in document
self.assertEqual("app_fw.bin", application['bin_file'])
self.assertEqual("app_fw.dat", application['dat_file'])
self.assertEqual(2, init_packet_data['ext_packet_id'])
self.assertEqual(1234, init_packet_data['firmware_length'])
self.assertEqual('c9d3bf69f21e88a0311e0dd242536112f842579bef265a24bd0255fd443f759e',
init_packet_data['firmware_hash'])
self.assertEqual('31d742381239aac3e68be201d131170100ae1e04f97e71cdbf7622da6ec06632d439dcc7f8ae1656561790a396ad7850610b73febd695db2958199e4b0cfe9da',
init_packet_data['init_packet_ecds'])
self.assertEqual(1000, init_packet_data['application_version'])
self.assertEqual(1, init_packet_data['device_type'])
self.assertEqual(2, init_packet_data['device_revision'])
self.assertEqual([22, 11], init_packet_data['softdevice_req'])
# Test softdevice_bootloader
bl_sd = manifest['softdevice_bootloader']
self.assertIsNotNone(bl_sd)
self.assertEqual(90, bl_sd['sd_size'])
self.assertEqual(50, bl_sd['bl_size'])
# Test for values in document
self.assertEqual("sd_bl_fw.bin", bl_sd['bin_file'])
self.assertEqual("sd_bl_fw.dat", bl_sd['dat_file'])
def test_manifest_a(self):
r = ManifestGenerator(0.5, self.firmwares_data_a)
m = Manifest.from_json(r.generate_manifest())
self.assertIsNotNone(m)
self.assertIsNotNone(m.application)
self.assertEqual("app_fw.bin", m.application.bin_file)
self.assertEqual("app_fw.dat", m.application.dat_file)
self.assertIsNone(m.bootloader)
self.assertIsNone(m.softdevice)
self.assertIsNotNone(m.softdevice_bootloader)
self.assertEqual(90, m.softdevice_bootloader.sd_size)
self.assertEqual(50, m.softdevice_bootloader.bl_size)
self.assertEqual("sd_bl_fw.bin", m.softdevice_bootloader.bin_file)
self.assertEqual("sd_bl_fw.dat", m.softdevice_bootloader.dat_file)
def test_manifest_b(self):
r = ManifestGenerator("0.5", self.firmwares_data_b)
m = Manifest.from_json(r.generate_manifest())
self.assertIsNotNone(m)
self.assertIsNotNone(m.application)
self.assertEqual("app_fw.bin", m.application.bin_file)
self.assertEqual("app_fw.dat", m.application.dat_file)
self.assertIsNotNone(m.bootloader)
self.assertEqual("bootloader_fw.bin", m.bootloader.bin_file)
self.assertEqual("bootloader_fw.dat", m.bootloader.dat_file)
self.assertIsNone(m.softdevice)
self.assertIsNone(m.softdevice_bootloader)
self.assertEqual(0xfaae, m.application.init_packet_data.firmware_crc16)
self.assertEqual(0xfaae, m.bootloader.init_packet_data.firmware_crc16)
def test_manifest_c(self):
r = ManifestGenerator("0.5", self.firmwares_data_c)
m = Manifest.from_json(r.generate_manifest())
self.assertIsNotNone(m)
self.assertIsNone(m.application)
self.assertIsNone(m.bootloader)
self.assertIsNotNone(m.softdevice)
self.assertEqual('softdevice_fw.bin', m.softdevice.bin_file)
self.assertEqual('softdevice_fw.dat', m.softdevice.dat_file)
self.assertIsNone(m.softdevice_bootloader)
self.assertEqual(0xfaae, m.softdevice.init_packet_data.firmware_crc16)
if __name__ == '__main__':
unittest.main()
@@ -1,134 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import os
import unittest
import nordicsemi.dfu.nrfhex as nrfhex
import nordicsemi.dfu.intelhex as intelhex
class TestnRFHex(unittest.TestCase):
def setUp(self):
script_abspath = os.path.abspath(__file__)
script_dirname = os.path.dirname(script_abspath)
os.chdir(script_dirname)
def comparefiles(self, actual, wanted):
actualfile = intelhex.IntelHex()
actualfile.loadfile(actual, format="bin")
wantedfile = intelhex.IntelHex()
wantedfile.loadfile(wanted, format="bin")
self.assertEqual(actualfile.minaddr(), wantedfile.minaddr())
self.assertEqual(actualfile.maxaddr(), wantedfile.maxaddr())
minaddress = actualfile.minaddr()
maxaddress = actualfile.maxaddr()
length = maxaddress - minaddress
actualfile_data = actualfile.gets(minaddress, length)
wantedfile_data = wantedfile.gets(minaddress, length)
self.assertEqual(actualfile_data, wantedfile_data)
def test_tobinfile_single_file_without_uicr_content(self):
nrf = nrfhex.nRFHex("firmwares/bar.hex")
nrf.tobinfile("firmwares/bar.bin")
self.comparefiles("firmwares/bar.bin", "firmwares/bar_wanted.bin")
def test_tobinfile_single_file_with_uicr_content(self):
nrf = nrfhex.nRFHex("firmwares/foo.hex")
nrf.tobinfile("firmwares/foo.bin")
self.comparefiles("firmwares/foo.bin", "firmwares/foo_wanted.bin")
def test_tobinfile_single_bin_file(self):
nrf = nrfhex.nRFHex("firmwares/bar_wanted.bin")
nrf.tobinfile("firmwares/bar.bin")
self.comparefiles("firmwares/bar.bin", "firmwares/bar_wanted.bin")
def test_tobinfile_two_hex_files(self):
nrf = nrfhex.nRFHex("firmwares/foo.hex", "firmwares/bar.hex")
nrf.tobinfile("firmwares/foobar.bin")
self.comparefiles("firmwares/foobar.bin", "firmwares/foobar_wanted.bin")
def test_tobinfile_one_hex_one_bin(self):
nrf = nrfhex.nRFHex("firmwares/foo_wanted.bin", "firmwares/bar.hex")
nrf.tobinfile("firmwares/foobar.bin")
self.comparefiles("firmwares/foobar.bin", "firmwares/foobar_wanted.bin")
def test_tobinfile_one_bin_one_hex(self):
nrf = nrfhex.nRFHex("firmwares/foo.hex", "firmwares/bar_wanted.bin")
nrf.tobinfile("firmwares/foobar.bin")
self.comparefiles("firmwares/foobar.bin", "firmwares/foobar_wanted.bin")
def test_tobinfile_two_bin(self):
nrf = nrfhex.nRFHex("firmwares/foo_wanted.bin", "firmwares/bar_wanted.bin")
nrf.tobinfile("firmwares/foobar.bin")
self.comparefiles("firmwares/foobar.bin", "firmwares/foobar_wanted.bin")
def test_sizes(self):
nrf = nrfhex.nRFHex("firmwares/foo.hex", "firmwares/bar.hex")
self.assertEqual(nrf.get_mbr_end_address(), 0x1000)
self.assertEqual(nrf.minaddr(), 0x1000)
self.assertEqual(nrf.size(), 73152)
self.assertEqual(nrf.bootloadersize(), 13192)
nrf = nrfhex.nRFHex("firmwares/s132_nrf52_mini.hex")
self.assertEqual(nrf.get_mbr_end_address(), 0x3000)
self.assertEqual(nrf.minaddr(), 0x3000)
self.assertEqual(nrf.size(), 12288)
self.assertEqual(nrf.bootloadersize(), 0)
def test_get_softdevice_variant(self):
nrf = nrfhex.nRFHex("firmwares/foo.hex")
self.assertEqual(nrf.get_softdevice_variant(), "unknown")
nrf = nrfhex.nRFHex("firmwares/s130_nrf51_mini.hex")
self.assertEqual(nrf.get_softdevice_variant(), "s1x0")
nrf = nrfhex.nRFHex("firmwares/s132_nrf52_mini.hex")
self.assertEqual(nrf.get_softdevice_variant(), "s132")
if __name__ == '__main__':
unittest.main()
@@ -1,164 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import json
import os
import tempfile
import unittest
from zipfile import ZipFile
import shutil
from nordicsemi.dfu.package import Package
class TestPackage(unittest.TestCase):
def setUp(self):
self.work_directory = tempfile.mkdtemp(prefix="nrf_dfu_tests_")
def tearDown(self):
shutil.rmtree(self.work_directory, ignore_errors=True)
def test_generate_package_application(self):
self.p = Package(
dev_type=1,
dev_rev=2,
app_version=100,
sd_req=[0x1000, 0xfffe],
app_fw="firmwares/bar.hex"
)
pkg_name = "mypackage.zip"
self.p.generate_package(pkg_name, preserve_work_directory=False)
expected_zip_content = ["manifest.json", "bar.bin", "bar.dat"]
with ZipFile(pkg_name, 'r') as pkg:
infolist = pkg.infolist()
for file_information in infolist:
self.assertTrue(file_information.filename in expected_zip_content)
self.assertGreater(file_information.file_size, 0)
# Extract all and load json document to see if it is correct regarding to paths
pkg.extractall(self.work_directory)
with open(os.path.join(self.work_directory, 'manifest.json'), 'r') as f:
_json = json.load(f)
self.assertEqual(u'bar.bin', _json['manifest']['application']['bin_file'])
self.assertEqual(u'bar.dat', _json['manifest']['application']['dat_file'])
self.assertTrue(u'softdevice' not in _json['manifest'])
self.assertTrue(u'softdevice_bootloader' not in _json['manifest'])
self.assertTrue(u'bootloader' not in _json['manifest'])
def test_generate_package_sd_bl(self):
self.p = Package(dev_type=1,
dev_rev=2,
app_version=100,
sd_req=[0x1000, 0xfffe],
softdevice_fw="firmwares/foo.hex",
bootloader_fw="firmwares/bar.hex")
pkg_name = "mypackage.zip"
self.p.generate_package(pkg_name, preserve_work_directory=False)
expected_zip_content = ["manifest.json", "sd_bl.bin", "sd_bl.dat"]
with ZipFile(pkg_name, 'r') as pkg:
infolist = pkg.infolist()
for file_information in infolist:
self.assertTrue(file_information.filename in expected_zip_content)
self.assertGreater(file_information.file_size, 0)
# Extract all and load json document to see if it is correct regarding to paths
pkg.extractall(self.work_directory)
with open(os.path.join(self.work_directory, 'manifest.json'), 'r') as f:
_json = json.load(f)
self.assertEqual(u'sd_bl.bin', _json['manifest']['softdevice_bootloader']['bin_file'])
self.assertEqual(u'sd_bl.dat', _json['manifest']['softdevice_bootloader']['dat_file'])
def test_unpack_package_a(self):
self.p = Package(dev_type=1,
dev_rev=2,
app_version=100,
sd_req=[0x1000, 0xffff],
softdevice_fw="firmwares/bar.hex",
dfu_ver=0.6)
pkg_name = os.path.join(self.work_directory, "mypackage.zip")
self.p.generate_package(pkg_name, preserve_work_directory=False)
unpacked_dir = os.path.join(self.work_directory, "unpacked")
manifest = self.p.unpack_package(os.path.join(self.work_directory, pkg_name), unpacked_dir)
self.assertIsNotNone(manifest)
self.assertEqual(u'bar.bin', manifest.softdevice.bin_file)
self.assertEqual(0, manifest.softdevice.init_packet_data.ext_packet_id)
self.assertIsNotNone(manifest.softdevice.init_packet_data.firmware_crc16)
def test_unpack_package_b(self):
self.p = Package(dev_type=1,
dev_rev=2,
app_version=100,
sd_req=[0x1000, 0xffff],
softdevice_fw="firmwares/bar.hex",
dfu_ver=0.7)
pkg_name = os.path.join(self.work_directory, "mypackage.zip")
self.p.generate_package(pkg_name, preserve_work_directory=False)
unpacked_dir = os.path.join(self.work_directory, "unpacked")
manifest = self.p.unpack_package(os.path.join(self.work_directory, pkg_name), unpacked_dir)
self.assertIsNotNone(manifest)
self.assertEqual(u'bar.bin', manifest.softdevice.bin_file)
self.assertEqual(1, manifest.softdevice.init_packet_data.ext_packet_id)
self.assertIsNone(manifest.softdevice.init_packet_data.firmware_crc16)
self.assertIsNotNone(manifest.softdevice.init_packet_data.firmware_hash)
def test_unpack_package_c(self):
self.p = Package(dev_type=1,
dev_rev=2,
app_version=100,
sd_req=[0x1000, 0xffff],
softdevice_fw="firmwares/bar.hex",
key_file="key.pem")
pkg_name = os.path.join(self.work_directory, "mypackage.zip")
self.p.generate_package(pkg_name, preserve_work_directory=False)
unpacked_dir = os.path.join(self.work_directory, "unpacked")
manifest = self.p.unpack_package(os.path.join(self.work_directory, pkg_name), unpacked_dir)
self.assertIsNotNone(manifest)
self.assertEqual(u'bar.bin', manifest.softdevice.bin_file)
self.assertEqual(2, manifest.softdevice.init_packet_data.ext_packet_id)
self.assertIsNone(manifest.softdevice.init_packet_data.firmware_crc16)
self.assertIsNotNone(manifest.softdevice.init_packet_data.firmware_hash)
self.assertIsNotNone(manifest.softdevice.init_packet_data.init_packet_ecds)
self.assertEqual(manifest.dfu_version, 0.8)
if __name__ == '__main__':
unittest.main()
@@ -1,155 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import binascii
import os
import shutil
import tempfile
import unittest
from nordicsemi.dfu.signing import Signing
from nordicsemi.dfu.init_packet import Packet, PacketField
class TestSinging(unittest.TestCase):
def setUp(self):
script_abspath = os.path.abspath(__file__)
script_dirname = os.path.dirname(script_abspath)
os.chdir(script_dirname)
def test_gen_key(self):
self.work_directory = tempfile.mkdtemp(prefix="nrf_signing_tests_")
key_file_name = 'key.pem'
key_file_path = os.path.join(self.work_directory, key_file_name)
signing = Signing()
signing.gen_key(key_file_path)
self.assertTrue(os.path.exists(key_file_path))
shutil.rmtree(self.work_directory, ignore_errors=True)
def test_load_key(self):
key_file_name = 'key.pem'
signing = Signing()
signing.load_key(key_file_name)
self.assertEqual(64, len(binascii.hexlify(signing.sk.to_string())))
def test_sign_and_verify(self):
key_file_name = 'key.pem'
signing = Signing()
signing.load_key(key_file_name)
init_packet_fields = {
PacketField.DEVICE_TYPE: 0xFFFF,
PacketField.DEVICE_REVISION: 0xFFFF,
PacketField.APP_VERSION: 0xFFFFFFFF,
PacketField.REQUIRED_SOFTDEVICES_ARRAY: [0xFFFE],
PacketField.NORDIC_PROPRIETARY_OPT_DATA_EXT_PACKET_ID: 2,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_LENGTH: 1234,
PacketField.NORDIC_PROPRIETARY_OPT_DATA_FIRMWARE_HASH:
'\xc9\xd3\xbfi\xf2\x1e\x88\xa01\x1e\r\xd2BSa\x12\xf8BW\x9b\xef&Z$\xbd\x02U\xfdD?u\x9e',
}
init_packet = Packet(init_packet_fields)
init_packet_data = init_packet.generate_packet()
signature = signing.sign(init_packet_data)
self.assertTrue(signing.verify(init_packet_data, signature))
init_packet_fields[PacketField.NORDIC_PROPRIETARY_OPT_DATA_INIT_PACKET_ECDS] = signature
init_packet = Packet(init_packet_fields)
init_packet_data = init_packet.generate_packet()
self.assertFalse(signing.verify(init_packet_data, signature))
def test_get_vk(self):
key_file_name = 'key.pem'
signing = Signing()
signing.load_key(key_file_name)
vk_str = signing.get_vk('hex')
vk_hex = signing.get_vk_hex()
self.assertEqual(vk_hex, vk_str)
vk_str = signing.get_vk('code')
vk_code = signing.get_vk_code()
self.assertEqual(vk_code, vk_str)
vk_str = signing.get_vk('pem')
vk_pem = signing.get_vk_pem()
self.assertEqual(vk_pem, vk_str)
def test_get_vk_hex(self):
key_file_name = 'key.pem'
expected_vk_hex = "Verification key Qx: 658da2eddb981f697dae7220d68217abed3fb87005ec8a05b9b56bbbaa17f460\n" \
"Verification key Qy: 909baecdad7226c204b612b662ff4fccbd1b0c90841090d83a59cdad6c981d4c"
signing = Signing()
signing.load_key(key_file_name)
vk_hex = signing.get_vk_hex()
self.assertEqual(expected_vk_hex, vk_hex)
def test_get_vk_code(self):
key_file_name = 'key.pem'
expected_vk_code = "static uint8_t Qx[] = { 0x65, 0x8d, 0xa2, 0xed, 0xdb, 0x98, 0x1f, 0x69, 0x7d, " \
"0xae, 0x72, 0x20, 0xd6, 0x82, 0x17, 0xab, 0xed, 0x3f, 0xb8, 0x70, 0x05, 0xec, " \
"0x8a, 0x05, 0xb9, 0xb5, 0x6b, 0xbb, 0xaa, 0x17, 0xf4, 0x60 };\n" \
"static uint8_t Qy[] = { 0x90, 0x9b, 0xae, 0xcd, 0xad, 0x72, 0x26, 0xc2, 0x04, " \
"0xb6, 0x12, 0xb6, 0x62, 0xff, 0x4f, 0xcc, 0xbd, 0x1b, 0x0c, 0x90, 0x84, 0x10, " \
"0x90, 0xd8, 0x3a, 0x59, 0xcd, 0xad, 0x6c, 0x98, 0x1d, 0x4c };"
signing = Signing()
signing.load_key(key_file_name)
vk_code = signing.get_vk_code()
self.assertEqual(expected_vk_code, vk_code)
def test_get_vk_pem(self):
key_file_name = 'key.pem'
expected_vk_pem = "-----BEGIN PUBLIC KEY-----\n" \
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEZY2i7duYH2l9rnIg1oIXq+0/uHAF\n" \
"7IoFubVru6oX9GCQm67NrXImwgS2ErZi/0/MvRsMkIQQkNg6Wc2tbJgdTA==\n" \
"-----END PUBLIC KEY-----\n"
signing = Signing()
signing.load_key(key_file_name)
vk_pem = signing.get_vk_pem()
self.assertEqual(expected_vk_pem, vk_pem)
-179
View File
@@ -1,179 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Nordic libraries
from nordicsemi.exceptions import NordicSemiException
# TODO: Create query function that maps query-result strings with functions
def query_func(question, default=False):
"""
Ask a string question
No input defaults to "no" which results in False
"""
valid = {"yes": True, "y": True, "no": False, "n": False}
if default is True:
prompt = " [Y/n]"
else:
prompt = " [y/N]"
while True:
print "%s %s" % (question, prompt)
choice = raw_input().lower()
if choice == '':
return default
elif choice in valid:
return valid[choice]
else:
print "Please respond with y/n"
def convert_uint16_to_array(value):
"""
Converts a int to an array of 2 bytes (little endian)
:param int value: int value to convert to list
:return list[int]: list with 2 bytes
"""
byte0 = value & 0xFF
byte1 = (value >> 8) & 0xFF
return [byte0, byte1]
def convert_uint32_to_array(value):
"""
Converts a int to an array of 4 bytes (little endian)
:param int value: int value to convert to list
:return list[int]: list with 4 bytes
"""
byte0 = value & 0xFF
byte1 = (value >> 8) & 0xFF
byte2 = (value >> 16) & 0xFF
byte3 = (value >> 24) & 0xFF
return [byte0, byte1, byte2, byte3]
def slip_parts_to_four_bytes(seq, dip, rp, pkt_type, pkt_len):
"""
Creates a SLIP header.
For a description of the SLIP header go to:
http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00093.html
:param int seq: Packet sequence number
:param int dip: Data integrity check
:param int rp: Reliable packet
:param pkt_type: Payload packet
:param pkt_len: Packet length
:return: str with SLIP header
"""
ints = [0, 0, 0, 0]
ints[0] = seq | (((seq + 1) % 8) << 3) | (dip << 6) | (rp << 7)
ints[1] = pkt_type | ((pkt_len & 0x000F) << 4)
ints[2] = (pkt_len & 0x0FF0) >> 4
ints[3] = (~(sum(ints[0:3])) + 1) & 0xFF
return ''.join(chr(b) for b in ints)
def int32_to_bytes(value):
"""
Converts a int to a str with 4 bytes
:param value: int value to convert
:return: str with 4 bytes
"""
ints = [0, 0, 0, 0]
ints[0] = (value & 0x000000FF)
ints[1] = (value & 0x0000FF00) >> 8
ints[2] = (value & 0x00FF0000) >> 16
ints[3] = (value & 0xFF000000) >> 24
return ''.join(chr(b) for b in ints)
def int16_to_bytes(value):
"""
Converts a int to a str with 4 bytes
:param value: int value to convert
:return: str with 4 bytes
"""
ints = [0, 0]
ints[0] = (value & 0x00FF)
ints[1] = (value & 0xFF00) >> 8
return ''.join(chr(b) for b in ints)
def slip_decode_esc_chars(data):
"""Decode esc characters in a SLIP package.
Replaces 0xDBDC with 0xCO and 0xDBDD with 0xDB.
:return: str decoded data
:type str data: data to decode
"""
result = []
while len(data):
char = data.pop(0)
if char == 0xDB:
char2 = data.pop(0)
if char2 == 0xDC:
result.append(0xC0)
elif char2 == 0xDD:
result.append(0xDB)
else:
raise NordicSemiException('Char 0xDB NOT followed by 0xDC or 0xDD')
else:
result.append(char)
return result
def slip_encode_esc_chars(data_in):
"""Encode esc characters in a SLIP package.
Replace 0xCO with 0xDBDC and 0xDB with 0xDBDD.
:type str data_in: str to encode
:return: str with encoded packet
"""
result = []
data = []
for i in data_in:
data.append(ord(i))
while len(data):
char = data.pop(0)
if char == 0xC0:
result.extend([0xDB, 0xDC])
elif char == 0xDB:
result.extend([0xDB, 0xDD])
else:
result.append(char)
return ''.join(chr(i) for i in result)
@@ -1,60 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
class NordicSemiException(Exception):
"""
Exception used as based exception for other exceptions defined in this package.
"""
pass
class NotImplementedException(NordicSemiException):
"""
Exception used when functionality has not been implemented yet.
"""
pass
class InvalidArgumentException(NordicSemiException):
""""
Exception used when a argument is of wrong type
"""
pass
class MissingArgumentException(NordicSemiException):
""""
Exception used when a argument is missing
"""
pass
class IllegalStateException(NordicSemiException):
""""
Exception used when program is in an illegal state
"""
pass
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.s
"""Package marker file."""
@@ -1,121 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import re
import os
import json
from abc import ABCMeta, abstractmethod
class TargetDatabase(object):
__metaclass__ = ABCMeta
@abstractmethod
def get_targets(self):
pass
@abstractmethod
def get_target(self, target_id):
pass
@abstractmethod
def refresh(self):
pass
@staticmethod
def find_target(targets, target_id):
for target in targets:
if target["id"] == target_id:
return target
return None
class EnvTargetDatabase(TargetDatabase):
def __init__(self):
self.targets = None
def get_targets(self):
if self.targets is None:
self.targets = []
for key, value in os.environ.iteritems():
match = re.match("NORDICSEMI_TARGET_(?P<target>\d+)_(?P<key>[a-zA-Z_]+)", key)
if match:
key_value = match.groupdict()
if "key" in key_value and "target" in key_value:
target_id = int(key_value["target"])
target = self.find_target(self.targets, target_id)
if target is None:
target = {"id": int(target_id)}
self.targets.append(target)
target[key_value["key"].lower()] = value
return self.targets
def refresh(self):
self.targets = None
def get_target(self, target_id):
return self.find_target(self.get_targets(), target_id)
class FileTargetDatabase(TargetDatabase):
def __init__(self, filename):
self.filename = filename
self.targets = None
def get_targets(self):
if not self.targets:
self.targets = json.load(open(self.filename, "r"))["targets"]
return self.targets
def get_target(self, target_id):
return self.find_target(self.get_targets(), target_id)
def refresh(self):
self.targets = None
class TargetRegistry(object):
def __init__(self, target_db=EnvTargetDatabase()):
self.target_db = target_db
def find_one(self, target_id=None):
if target_id:
return self.target_db.get_target(target_id)
else:
return None
def get_all(self):
return self.target_db.get_targets()
@@ -1,29 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Package marker file."""
@@ -1,90 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import os
import unittest
from nordicsemi.utility.target_registry import TargetRegistry, EnvTargetDatabase
from nordicsemi.utility.target_registry import FileTargetDatabase
class TestTargetRegistry(unittest.TestCase):
def setUp(self):
script_abspath = os.path.abspath(__file__)
script_dirname = os.path.dirname(script_abspath)
os.chdir(script_dirname)
# Setup the environment variables
os.environ["NORDICSEMI_TARGET_1_SERIAL_PORT"] = "COM1"
os.environ["NORDICSEMI_TARGET_1_PCA"] = "PCA10028"
os.environ["NORDICSEMI_TARGET_1_DRIVE"] = "D:\\"
os.environ["NORDICSEMI_TARGET_1_SEGGER_SN"] = "1231233333"
os.environ["NORDICSEMI_TARGET_2_SERIAL_PORT"] = "COM2"
os.environ["NORDICSEMI_TARGET_2_PCA"] = "PCA10028"
os.environ["NORDICSEMI_TARGET_2_DRIVE"] = "E:\\"
os.environ["NORDICSEMI_TARGET_2_SEGGER_SN"] = "3332222111"
def test_get_targets_from_file(self):
target_database = FileTargetDatabase("test_targets.json")
target_repository = TargetRegistry(target_db=target_database)
target = target_repository.find_one(target_id=1)
assert target is not None
assert target["drive"] == "d:\\"
assert target["serial_port"] == "COM7"
assert target["pca"] == "PCA10028"
assert target["segger_sn"] == "123123123123"
target = target_repository.find_one(target_id=2)
assert target is not None
assert target["drive"] == "e:\\"
assert target["serial_port"] == "COM8"
assert target["pca"] == "PCA10028"
assert target["segger_sn"] == "321321321312"
def test_get_targets_from_environment(self):
target_database = EnvTargetDatabase()
target_repository = TargetRegistry(target_db=target_database)
target = target_repository.find_one(target_id=1)
assert target is not None
assert target["drive"] == "D:\\"
assert target["serial_port"] == "COM1"
assert target["pca"] == "PCA10028"
assert target["segger_sn"] == "1231233333"
target = target_repository.find_one(target_id=2)
assert target is not None
assert target["drive"] == "E:\\"
assert target["serial_port"] == "COM2"
assert target["pca"] == "PCA10028"
assert target["segger_sn"] == "3332222111"
if __name__ == '__main__':
unittest.main()
@@ -1,17 +0,0 @@
{
"targets":
[{
"id": 1,
"drive": "d:\\",
"serial_port": "COM7",
"pca": "PCA10028",
"segger_sn": "123123123123"
},
{
"id": 2,
"drive": "e:\\",
"serial_port": "COM8",
"pca": "PCA10028",
"segger_sn": "321321321312"
}]
}
-33
View File
@@ -1,33 +0,0 @@
#!/usr/bin/env python
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
""" Version definition for nrfutil. """
NRFUTIL_VERSION = "0.5.2d"
-5
View File
@@ -1,5 +0,0 @@
pyserial >= 2.7
enum34 >= 1.0.4
click == 5.1
ecdsa >= 0.13
behave
-133
View File
@@ -1,133 +0,0 @@
#!/usr/bin/env python
#
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
Setup script for nrfutil.
USAGE:
python setup.py install
python setup.py py2exe
"""
import os
import platform
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
#from setuptools_behave import behave_test
from nordicsemi import version
if platform.system() == 'Windows':
import py2exe # Required even if it is not used in this file. This import adds py2exe to distutils.
excludes = ["Tkconstants",
"Tkinter",
"tcl",
"pickle",
"unittest",
"pyreadline"]
# DFU component cli interface
includes = ["nordicsemi.dfu.dfu"]
packages = []
dll_excludes = [
"w9xpopen.exe",
"OLEAUT32.DLL",
"OLE32.DLL",
"USER32.DLL",
"SHELL32.DLL",
"ADVAPI32.DLL",
"KERNEL32.DLL",
"WS2_32.DLL",
"GDI32.DLL"]
build_dir = os.environ.get("NRFUTIL_BUILD_DIR", "./{}".format(version.NRFUTIL_VERSION))
description = """A Python package that includes the nrfutil utility and the nordicsemi library"""
class NoseTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import nose
nose.run_exit(argv=['nosetests', '--with-xunit', '--xunit-file=test-reports/unittests.xml'])
common_requirements=[]
setup(
name="nrfutil",
version=version.NRFUTIL_VERSION,
license="Nordic Semicondictor proprietary license",
url="https://github.com/NordicSemiconductor/pc-nrfutil",
description="Nordic Semiconductor nrfutil utility and Python library",
long_description=description,
packages=find_packages(exclude=["tests.*", "tests"]),
include_package_data=False,
install_requires=common_requirements,
setup_requires=common_requirements,
zipfile=None,
tests_require=[
"nose >= 1.3.4",
"behave"
],
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 2.7",
],
cmdclass={
'test': NoseTestCommand
# 'bdd_test': behave_test
},
entry_points='''
[console_scripts]
nrfutil = nordicsemi.__main__:cli
''',
console=[{
"script": "./nordicsemi/__main__.py",
"dest_base": "nrfutil"
}],
options={
"py2exe": {
"includes": includes,
"excludes": excludes,
"ascii": False,
"bundle_files": 1, # 1 for bunding into exe, 3 for to distdir
"dist_dir": build_dir,
"verbose": True,
"dll_excludes": dll_excludes
}
}
)
@@ -1,37 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import logging
logging.basicConfig(format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
datefmt='%m-%d %H:%M:%S ', level=logging.DEBUG)
def before_all(context):
pass
@@ -1,673 +0,0 @@
# Notice:
# It can be smart to use the function util.generate_options_table_for_cucumber() to generate entries in Examples for
# the options. It will save you a lot of time :-)
Feature: Generate DFU package
Scenario Outline: package generation
Given the user wants to generate a DFU package with application <application>, bootloader <bootloader> and SoftDevice <softdevice> with name <package>
And with option --application-version <app_ver>
And with option --dev-revision <dev_rev>
And with option --dev-type <dev_type>
And with option --dfu-ver <dfu_ver>
And with option --sd-req <sd_req>
And with option --key-file <pem_file>
When user press enter
Then the generated DFU package <package> contains correct data
Examples:
| application | bootloader | softdevice | app_ver | dev_rev | dev_type | dfu_ver | sd_req | pem_file | package |
| blinky.bin | dfu_test_bootloader_b.hex | dfu_test_softdevice_b.hex | none | none | none | not_set | none | not_set | 111_000000.zip |
| blinky.bin | dfu_test_bootloader_b.hex | not_set | none | none | none | not_set | none | not_set | 110_000000.zip |
| blinky.bin | not_set | dfu_test_softdevice_b.hex | none | none | none | not_set | none | not_set | 101_000000.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | none | not_set | 100_000000.zip |
| not_set | dfu_test_bootloader_b.hex | dfu_test_softdevice_b.hex | none | none | none | not_set | none | not_set | 011_000000.zip |
| not_set | dfu_test_bootloader_b.hex | not_set | none | none | none | not_set | none | not_set | 010_000000.zip |
| not_set | not_set | dfu_test_softdevice_b.hex | none | none | none | not_set | none | not_set | 001_000000.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | none | not_set | 100_000000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | not_set | none | not_set | 100_000001.zip |
| blinky.bin | not_set | not_set | 0xd3 | none | none | not_set | none | not_set | 100_000002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | not_set | none | not_set | 100_000010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | not_set | none | not_set | 100_000011.zip |
| blinky.bin | not_set | not_set | 0xcb | not_set | none | not_set | none | not_set | 100_000012.zip |
| blinky.bin | not_set | not_set | none | 0x4c | none | not_set | none | not_set | 100_000020.zip |
| blinky.bin | not_set | not_set | not_set | 0xb6 | none | not_set | none | not_set | 100_000021.zip |
| blinky.bin | not_set | not_set | 0x07 | 0x22 | none | not_set | none | not_set | 100_000022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | not_set | none | not_set | 100_000100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | not_set | none | not_set | 100_000101.zip |
| blinky.bin | not_set | not_set | 0xdd | none | not_set | not_set | none | not_set | 100_000102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | not_set | none | not_set | 100_000110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | not_set | none | not_set | 100_000111.zip |
| blinky.bin | not_set | not_set | 0x19 | not_set | not_set | not_set | none | not_set | 100_000112.zip |
| blinky.bin | not_set | not_set | none | 0x19 | not_set | not_set | none | not_set | 100_000120.zip |
| blinky.bin | not_set | not_set | not_set | 0x92 | not_set | not_set | none | not_set | 100_000121.zip |
| blinky.bin | not_set | not_set | 0x28 | 0xe6 | not_set | not_set | none | not_set | 100_000122.zip |
| blinky.bin | not_set | not_set | none | none | 0xe9 | not_set | none | not_set | 100_000200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x26 | not_set | none | not_set | 100_000201.zip |
| blinky.bin | not_set | not_set | 0xea | none | 0xcf | not_set | none | not_set | 100_000202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x57 | not_set | none | not_set | 100_000210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x53 | not_set | none | not_set | 100_000211.zip |
| blinky.bin | not_set | not_set | 0xbb | not_set | 0x36 | not_set | none | not_set | 100_000212.zip |
| blinky.bin | not_set | not_set | none | 0x01 | 0x1a | not_set | none | not_set | 100_000220.zip |
| blinky.bin | not_set | not_set | not_set | 0x39 | 0x0e | not_set | none | not_set | 100_000221.zip |
| blinky.bin | not_set | not_set | 0x29 | 0x6d | 0x7b | not_set | none | not_set | 100_000222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.5 | none | not_set | 100_001000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.5 | none | not_set | 100_001001.zip |
| blinky.bin | not_set | not_set | 0x70 | none | none | 0.5 | none | not_set | 100_001002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.5 | none | not_set | 100_001010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.5 | none | not_set | 100_001011.zip |
| blinky.bin | not_set | not_set | 0x57 | not_set | none | 0.5 | none | not_set | 100_001012.zip |
| blinky.bin | not_set | not_set | none | 0x2f | none | 0.5 | none | not_set | 100_001020.zip |
| blinky.bin | not_set | not_set | not_set | 0xc9 | none | 0.5 | none | not_set | 100_001021.zip |
| blinky.bin | not_set | not_set | 0x7c | 0x05 | none | 0.5 | none | not_set | 100_001022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.5 | none | not_set | 100_001100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.5 | none | not_set | 100_001101.zip |
| blinky.bin | not_set | not_set | 0x18 | none | not_set | 0.5 | none | not_set | 100_001102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.5 | none | not_set | 100_001110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.5 | none | not_set | 100_001111.zip |
| blinky.bin | not_set | not_set | 0xec | not_set | not_set | 0.5 | none | not_set | 100_001112.zip |
| blinky.bin | not_set | not_set | none | 0x4d | not_set | 0.5 | none | not_set | 100_001120.zip |
| blinky.bin | not_set | not_set | not_set | 0xa1 | not_set | 0.5 | none | not_set | 100_001121.zip |
| blinky.bin | not_set | not_set | 0xb1 | 0xb1 | not_set | 0.5 | none | not_set | 100_001122.zip |
| blinky.bin | not_set | not_set | none | none | 0x0f | 0.5 | none | not_set | 100_001200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x1f | 0.5 | none | not_set | 100_001201.zip |
| blinky.bin | not_set | not_set | 0x75 | none | 0xf4 | 0.5 | none | not_set | 100_001202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x72 | 0.5 | none | not_set | 100_001210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x37 | 0.5 | none | not_set | 100_001211.zip |
| blinky.bin | not_set | not_set | 0x41 | not_set | 0x02 | 0.5 | none | not_set | 100_001212.zip |
| blinky.bin | not_set | not_set | none | 0xb6 | 0x96 | 0.5 | none | not_set | 100_001220.zip |
| blinky.bin | not_set | not_set | not_set | 0xaf | 0x38 | 0.5 | none | not_set | 100_001221.zip |
| blinky.bin | not_set | not_set | 0xbe | 0x81 | 0x37 | 0.5 | none | not_set | 100_001222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.6 | none | not_set | 100_002000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.6 | none | not_set | 100_002001.zip |
| blinky.bin | not_set | not_set | 0x7f | none | none | 0.6 | none | not_set | 100_002002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.6 | none | not_set | 100_002010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.6 | none | not_set | 100_002011.zip |
| blinky.bin | not_set | not_set | 0x15 | not_set | none | 0.6 | none | not_set | 100_002012.zip |
| blinky.bin | not_set | not_set | none | 0xb8 | none | 0.6 | none | not_set | 100_002020.zip |
| blinky.bin | not_set | not_set | not_set | 0x92 | none | 0.6 | none | not_set | 100_002021.zip |
| blinky.bin | not_set | not_set | 0x6f | 0xf6 | none | 0.6 | none | not_set | 100_002022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.6 | none | not_set | 100_002100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.6 | none | not_set | 100_002101.zip |
| blinky.bin | not_set | not_set | 0xfd | none | not_set | 0.6 | none | not_set | 100_002102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.6 | none | not_set | 100_002110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.6 | none | not_set | 100_002111.zip |
| blinky.bin | not_set | not_set | 0x19 | not_set | not_set | 0.6 | none | not_set | 100_002112.zip |
| blinky.bin | not_set | not_set | none | 0xfc | not_set | 0.6 | none | not_set | 100_002120.zip |
| blinky.bin | not_set | not_set | not_set | 0xf3 | not_set | 0.6 | none | not_set | 100_002121.zip |
| blinky.bin | not_set | not_set | 0x2c | 0x97 | not_set | 0.6 | none | not_set | 100_002122.zip |
| blinky.bin | not_set | not_set | none | none | 0x54 | 0.6 | none | not_set | 100_002200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xe7 | 0.6 | none | not_set | 100_002201.zip |
| blinky.bin | not_set | not_set | 0x71 | none | 0x8c | 0.6 | none | not_set | 100_002202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x74 | 0.6 | none | not_set | 100_002210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x4b | 0.6 | none | not_set | 100_002211.zip |
| blinky.bin | not_set | not_set | 0x40 | not_set | 0xd0 | 0.6 | none | not_set | 100_002212.zip |
| blinky.bin | not_set | not_set | none | 0x72 | 0x5c | 0.6 | none | not_set | 100_002220.zip |
| blinky.bin | not_set | not_set | not_set | 0x5f | 0x85 | 0.6 | none | not_set | 100_002221.zip |
| blinky.bin | not_set | not_set | 0x6b | 0x9b | 0xaf | 0.6 | none | not_set | 100_002222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.7 | none | not_set | 100_003000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.7 | none | not_set | 100_003001.zip |
| blinky.bin | not_set | not_set | 0x0d | none | none | 0.7 | none | not_set | 100_003002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.7 | none | not_set | 100_003010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.7 | none | not_set | 100_003011.zip |
| blinky.bin | not_set | not_set | 0x54 | not_set | none | 0.7 | none | not_set | 100_003012.zip |
| blinky.bin | not_set | not_set | none | 0xfc | none | 0.7 | none | not_set | 100_003020.zip |
| blinky.bin | not_set | not_set | not_set | 0x79 | none | 0.7 | none | not_set | 100_003021.zip |
| blinky.bin | not_set | not_set | 0xb8 | 0x20 | none | 0.7 | none | not_set | 100_003022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.7 | none | not_set | 100_003100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.7 | none | not_set | 100_003101.zip |
| blinky.bin | not_set | not_set | 0xd0 | none | not_set | 0.7 | none | not_set | 100_003102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.7 | none | not_set | 100_003110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.7 | none | not_set | 100_003111.zip |
| blinky.bin | not_set | not_set | 0x69 | not_set | not_set | 0.7 | none | not_set | 100_003112.zip |
| blinky.bin | not_set | not_set | none | 0x65 | not_set | 0.7 | none | not_set | 100_003120.zip |
| blinky.bin | not_set | not_set | not_set | 0xd2 | not_set | 0.7 | none | not_set | 100_003121.zip |
| blinky.bin | not_set | not_set | 0x48 | 0x65 | not_set | 0.7 | none | not_set | 100_003122.zip |
| blinky.bin | not_set | not_set | none | none | 0x19 | 0.7 | none | not_set | 100_003200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xe7 | 0.7 | none | not_set | 100_003201.zip |
| blinky.bin | not_set | not_set | 0x34 | none | 0x65 | 0.7 | none | not_set | 100_003202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x21 | 0.7 | none | not_set | 100_003210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x3b | 0.7 | none | not_set | 100_003211.zip |
| blinky.bin | not_set | not_set | 0x5c | not_set | 0x1f | 0.7 | none | not_set | 100_003212.zip |
| blinky.bin | not_set | not_set | none | 0x88 | 0xb3 | 0.7 | none | not_set | 100_003220.zip |
| blinky.bin | not_set | not_set | not_set | 0xe1 | 0xb5 | 0.7 | none | not_set | 100_003221.zip |
| blinky.bin | not_set | not_set | 0x4c | 0xeb | 0x4d | 0.7 | none | not_set | 100_003222.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | not_set | not_set | 100_010000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | not_set | not_set | not_set | 100_010001.zip |
| blinky.bin | not_set | not_set | 0x33 | none | none | not_set | not_set | not_set | 100_010002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | not_set | not_set | not_set | 100_010010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | not_set | not_set | not_set | 100_010011.zip |
| blinky.bin | not_set | not_set | 0x78 | not_set | none | not_set | not_set | not_set | 100_010012.zip |
| blinky.bin | not_set | not_set | none | 0xf7 | none | not_set | not_set | not_set | 100_010020.zip |
| blinky.bin | not_set | not_set | not_set | 0x23 | none | not_set | not_set | not_set | 100_010021.zip |
| blinky.bin | not_set | not_set | 0x06 | 0xf5 | none | not_set | not_set | not_set | 100_010022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | not_set | not_set | not_set | 100_010100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | not_set | not_set | not_set | 100_010101.zip |
| blinky.bin | not_set | not_set | 0x88 | none | not_set | not_set | not_set | not_set | 100_010102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | not_set | not_set | not_set | 100_010110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | not_set | not_set | not_set | 100_010111.zip |
| blinky.bin | not_set | not_set | 0x15 | not_set | not_set | not_set | not_set | not_set | 100_010112.zip |
| blinky.bin | not_set | not_set | none | 0x52 | not_set | not_set | not_set | not_set | 100_010120.zip |
| blinky.bin | not_set | not_set | not_set | 0x0b | not_set | not_set | not_set | not_set | 100_010121.zip |
| blinky.bin | not_set | not_set | 0x49 | 0x52 | not_set | not_set | not_set | not_set | 100_010122.zip |
| blinky.bin | not_set | not_set | none | none | 0x66 | not_set | not_set | not_set | 100_010200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x62 | not_set | not_set | not_set | 100_010201.zip |
| blinky.bin | not_set | not_set | 0x1f | none | 0xdf | not_set | not_set | not_set | 100_010202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x23 | not_set | not_set | not_set | 100_010210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x98 | not_set | not_set | not_set | 100_010211.zip |
| blinky.bin | not_set | not_set | 0x28 | not_set | 0x8f | not_set | not_set | not_set | 100_010212.zip |
| blinky.bin | not_set | not_set | none | 0xce | 0x5a | not_set | not_set | not_set | 100_010220.zip |
| blinky.bin | not_set | not_set | not_set | 0x8d | 0x50 | not_set | not_set | not_set | 100_010221.zip |
| blinky.bin | not_set | not_set | 0x44 | 0xb3 | 0x8f | not_set | not_set | not_set | 100_010222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.5 | not_set | not_set | 100_011000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.5 | not_set | not_set | 100_011001.zip |
| blinky.bin | not_set | not_set | 0x54 | none | none | 0.5 | not_set | not_set | 100_011002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.5 | not_set | not_set | 100_011010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.5 | not_set | not_set | 100_011011.zip |
| blinky.bin | not_set | not_set | 0xbe | not_set | none | 0.5 | not_set | not_set | 100_011012.zip |
| blinky.bin | not_set | not_set | none | 0xaa | none | 0.5 | not_set | not_set | 100_011020.zip |
| blinky.bin | not_set | not_set | not_set | 0xf0 | none | 0.5 | not_set | not_set | 100_011021.zip |
| blinky.bin | not_set | not_set | 0x19 | 0x4a | none | 0.5 | not_set | not_set | 100_011022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.5 | not_set | not_set | 100_011100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.5 | not_set | not_set | 100_011101.zip |
| blinky.bin | not_set | not_set | 0x74 | none | not_set | 0.5 | not_set | not_set | 100_011102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.5 | not_set | not_set | 100_011110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.5 | not_set | not_set | 100_011111.zip |
| blinky.bin | not_set | not_set | 0x8b | not_set | not_set | 0.5 | not_set | not_set | 100_011112.zip |
| blinky.bin | not_set | not_set | none | 0xc7 | not_set | 0.5 | not_set | not_set | 100_011120.zip |
| blinky.bin | not_set | not_set | not_set | 0x02 | not_set | 0.5 | not_set | not_set | 100_011121.zip |
| blinky.bin | not_set | not_set | 0x98 | 0xb1 | not_set | 0.5 | not_set | not_set | 100_011122.zip |
| blinky.bin | not_set | not_set | none | none | 0xe5 | 0.5 | not_set | not_set | 100_011200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xad | 0.5 | not_set | not_set | 100_011201.zip |
| blinky.bin | not_set | not_set | 0x30 | none | 0x8d | 0.5 | not_set | not_set | 100_011202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x1c | 0.5 | not_set | not_set | 100_011210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x74 | 0.5 | not_set | not_set | 100_011211.zip |
| blinky.bin | not_set | not_set | 0xf6 | not_set | 0xdb | 0.5 | not_set | not_set | 100_011212.zip |
| blinky.bin | not_set | not_set | none | 0xd9 | 0xe4 | 0.5 | not_set | not_set | 100_011220.zip |
| blinky.bin | not_set | not_set | not_set | 0x84 | 0x1a | 0.5 | not_set | not_set | 100_011221.zip |
| blinky.bin | not_set | not_set | 0x8c | 0x4f | 0xe2 | 0.5 | not_set | not_set | 100_011222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.6 | not_set | not_set | 100_012000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.6 | not_set | not_set | 100_012001.zip |
| blinky.bin | not_set | not_set | 0x20 | none | none | 0.6 | not_set | not_set | 100_012002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.6 | not_set | not_set | 100_012010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.6 | not_set | not_set | 100_012011.zip |
| blinky.bin | not_set | not_set | 0xae | not_set | none | 0.6 | not_set | not_set | 100_012012.zip |
| blinky.bin | not_set | not_set | none | 0x1a | none | 0.6 | not_set | not_set | 100_012020.zip |
| blinky.bin | not_set | not_set | not_set | 0x18 | none | 0.6 | not_set | not_set | 100_012021.zip |
| blinky.bin | not_set | not_set | 0x33 | 0x65 | none | 0.6 | not_set | not_set | 100_012022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.6 | not_set | not_set | 100_012100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.6 | not_set | not_set | 100_012101.zip |
| blinky.bin | not_set | not_set | 0x38 | none | not_set | 0.6 | not_set | not_set | 100_012102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.6 | not_set | not_set | 100_012110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.6 | not_set | not_set | 100_012111.zip |
| blinky.bin | not_set | not_set | 0xe5 | not_set | not_set | 0.6 | not_set | not_set | 100_012112.zip |
| blinky.bin | not_set | not_set | none | 0x74 | not_set | 0.6 | not_set | not_set | 100_012120.zip |
| blinky.bin | not_set | not_set | not_set | 0xc4 | not_set | 0.6 | not_set | not_set | 100_012121.zip |
| blinky.bin | not_set | not_set | 0x45 | 0x51 | not_set | 0.6 | not_set | not_set | 100_012122.zip |
| blinky.bin | not_set | not_set | none | none | 0x64 | 0.6 | not_set | not_set | 100_012200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x80 | 0.6 | not_set | not_set | 100_012201.zip |
| blinky.bin | not_set | not_set | 0x0c | none | 0x39 | 0.6 | not_set | not_set | 100_012202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x96 | 0.6 | not_set | not_set | 100_012210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x33 | 0.6 | not_set | not_set | 100_012211.zip |
| blinky.bin | not_set | not_set | 0xba | not_set | 0xbb | 0.6 | not_set | not_set | 100_012212.zip |
| blinky.bin | not_set | not_set | none | 0x11 | 0x28 | 0.6 | not_set | not_set | 100_012220.zip |
| blinky.bin | not_set | not_set | not_set | 0x91 | 0x81 | 0.6 | not_set | not_set | 100_012221.zip |
| blinky.bin | not_set | not_set | 0x2b | 0x60 | 0x0c | 0.6 | not_set | not_set | 100_012222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.7 | not_set | not_set | 100_013000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.7 | not_set | not_set | 100_013001.zip |
| blinky.bin | not_set | not_set | 0xcf | none | none | 0.7 | not_set | not_set | 100_013002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.7 | not_set | not_set | 100_013010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.7 | not_set | not_set | 100_013011.zip |
| blinky.bin | not_set | not_set | 0x2f | not_set | none | 0.7 | not_set | not_set | 100_013012.zip |
| blinky.bin | not_set | not_set | none | 0xc3 | none | 0.7 | not_set | not_set | 100_013020.zip |
| blinky.bin | not_set | not_set | not_set | 0x54 | none | 0.7 | not_set | not_set | 100_013021.zip |
| blinky.bin | not_set | not_set | 0x2c | 0x67 | none | 0.7 | not_set | not_set | 100_013022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.7 | not_set | not_set | 100_013100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.7 | not_set | not_set | 100_013101.zip |
| blinky.bin | not_set | not_set | 0x04 | none | not_set | 0.7 | not_set | not_set | 100_013102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.7 | not_set | not_set | 100_013110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.7 | not_set | not_set | 100_013111.zip |
| blinky.bin | not_set | not_set | 0xe6 | not_set | not_set | 0.7 | not_set | not_set | 100_013112.zip |
| blinky.bin | not_set | not_set | none | 0x68 | not_set | 0.7 | not_set | not_set | 100_013120.zip |
| blinky.bin | not_set | not_set | not_set | 0x72 | not_set | 0.7 | not_set | not_set | 100_013121.zip |
| blinky.bin | not_set | not_set | 0x84 | 0x81 | not_set | 0.7 | not_set | not_set | 100_013122.zip |
| blinky.bin | not_set | not_set | none | none | 0xba | 0.7 | not_set | not_set | 100_013200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x7d | 0.7 | not_set | not_set | 100_013201.zip |
| blinky.bin | not_set | not_set | 0xb8 | none | 0x1a | 0.7 | not_set | not_set | 100_013202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0xff | 0.7 | not_set | not_set | 100_013210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0xb8 | 0.7 | not_set | not_set | 100_013211.zip |
| blinky.bin | not_set | not_set | 0x94 | not_set | 0x9e | 0.7 | not_set | not_set | 100_013212.zip |
| blinky.bin | not_set | not_set | none | 0xc7 | 0x4b | 0.7 | not_set | not_set | 100_013220.zip |
| blinky.bin | not_set | not_set | not_set | 0x80 | 0x20 | 0.7 | not_set | not_set | 100_013221.zip |
| blinky.bin | not_set | not_set | 0xb5 | 0x77 | 0xbf | 0.7 | not_set | not_set | 100_013222.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | 0x9eee,0x7e19,0x1f29 | not_set | 100_020000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | not_set | 0x48b3 | not_set | 100_020001.zip |
| blinky.bin | not_set | not_set | 0xc5 | none | none | not_set | 0x358c,0x21ba | not_set | 100_020002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | not_set | 0xd4a1,0x0744 | not_set | 100_020010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | not_set | 0xcdc3 | not_set | 100_020011.zip |
| blinky.bin | not_set | not_set | 0xa4 | not_set | none | not_set | 0x65ea,0x9a9e,0x167d | not_set | 100_020012.zip |
| blinky.bin | not_set | not_set | none | 0x11 | none | not_set | 0x6b24,0xf50d | not_set | 100_020020.zip |
| blinky.bin | not_set | not_set | not_set | 0x8c | none | not_set | 0x7f3f,0x14df | not_set | 100_020021.zip |
| blinky.bin | not_set | not_set | 0x94 | 0x0e | none | not_set | 0x36aa,0x5f86 | not_set | 100_020022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | not_set | 0x97fc,0x7d68,0x1350 | not_set | 100_020100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | not_set | 0x4487 | not_set | 100_020101.zip |
| blinky.bin | not_set | not_set | 0xa9 | none | not_set | not_set | 0x9abf | not_set | 100_020102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | not_set | 0xe61d,0x394f | not_set | 100_020110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | not_set | 0xf6ab,0x6ed8 | not_set | 100_020111.zip |
| blinky.bin | not_set | not_set | 0x07 | not_set | not_set | not_set | 0x7d1d | not_set | 100_020112.zip |
| blinky.bin | not_set | not_set | none | 0x85 | not_set | not_set | 0xfde4,0xd40c,0xe81f | not_set | 100_020120.zip |
| blinky.bin | not_set | not_set | not_set | 0xb0 | not_set | not_set | 0x14fd,0x2dab | not_set | 100_020121.zip |
| blinky.bin | not_set | not_set | 0xc5 | 0x16 | not_set | not_set | 0x2d78,0x08da,0x2505 | not_set | 100_020122.zip |
| blinky.bin | not_set | not_set | none | none | 0xe6 | not_set | 0xbb52 | not_set | 100_020200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x2d | not_set | 0x748c | not_set | 100_020201.zip |
| blinky.bin | not_set | not_set | 0xdc | none | 0x54 | not_set | 0xc7c2,0xd360,0xad5b,0x1b87 | not_set | 100_020202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x81 | not_set | 0x6b14,0x534f | not_set | 100_020210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x47 | not_set | 0x9bf0,0x5d81,0xe2dd,0x02b2 | not_set | 100_020211.zip |
| blinky.bin | not_set | not_set | 0x53 | not_set | 0x96 | not_set | 0x8d27,0x1c8d | not_set | 100_020212.zip |
| blinky.bin | not_set | not_set | none | 0x0b | 0x0f | not_set | 0x0f66,0xae4b,0xe10e,0x5687 | not_set | 100_020220.zip |
| blinky.bin | not_set | not_set | not_set | 0xf5 | 0x9f | not_set | 0xee32,0x81dd | not_set | 100_020221.zip |
| blinky.bin | not_set | not_set | 0xce | 0x39 | 0x77 | not_set | 0xe3fc | not_set | 100_020222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.5 | 0x6c13,0xc805 | not_set | 100_021000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.5 | 0xa3ef,0xd077,0xa2f5,0x00e7 | not_set | 100_021001.zip |
| blinky.bin | not_set | not_set | 0xcf | none | none | 0.5 | 0xff23,0x5981,0xbedf,0xb817 | not_set | 100_021002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.5 | 0x238d | not_set | 100_021010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.5 | 0xac00,0xaffa,0xb51c,0x8049 | not_set | 100_021011.zip |
| blinky.bin | not_set | not_set | 0xcb | not_set | none | 0.5 | 0xf549,0x0cb6,0xa55b | not_set | 100_021012.zip |
| blinky.bin | not_set | not_set | none | 0x8b | none | 0.5 | 0xa774,0x2904,0x44ed | not_set | 100_021020.zip |
| blinky.bin | not_set | not_set | not_set | 0x0f | none | 0.5 | 0x4f42,0x959d,0x1802,0x7ab4 | not_set | 100_021021.zip |
| blinky.bin | not_set | not_set | 0x2e | 0xc7 | none | 0.5 | 0x8dd8,0xc966,0xba0a | not_set | 100_021022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.5 | 0x9ae1,0xec05 | not_set | 100_021100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.5 | 0xe650 | not_set | 100_021101.zip |
| blinky.bin | not_set | not_set | 0x18 | none | not_set | 0.5 | 0x0d63,0x8d8a | not_set | 100_021102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.5 | 0x8400,0x49e3 | not_set | 100_021110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.5 | 0x2ae0,0x08ed,0xb09e,0xdd0c | not_set | 100_021111.zip |
| blinky.bin | not_set | not_set | 0xab | not_set | not_set | 0.5 | 0x86f8,0xb4ff,0x6ff7 | not_set | 100_021112.zip |
| blinky.bin | not_set | not_set | none | 0xa8 | not_set | 0.5 | 0xbb0e,0x2ffd | not_set | 100_021120.zip |
| blinky.bin | not_set | not_set | not_set | 0x57 | not_set | 0.5 | 0xe2ad,0xfdda,0x3d3b | not_set | 100_021121.zip |
| blinky.bin | not_set | not_set | 0x66 | 0x49 | not_set | 0.5 | 0x8ed0 | not_set | 100_021122.zip |
| blinky.bin | not_set | not_set | none | none | 0x96 | 0.5 | 0x85e9 | not_set | 100_021200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x53 | 0.5 | 0x7434 | not_set | 100_021201.zip |
| blinky.bin | not_set | not_set | 0x5f | none | 0xa9 | 0.5 | 0xdeab,0xccda,0x7ee3,0x2c2f | not_set | 100_021202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x8a | 0.5 | 0xb7ac,0xc007,0xad41,0xfe30 | not_set | 100_021210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x28 | 0.5 | 0x0942 | not_set | 100_021211.zip |
| blinky.bin | not_set | not_set | 0xcd | not_set | 0x3c | 0.5 | 0x590d,0x49e9 | not_set | 100_021212.zip |
| blinky.bin | not_set | not_set | none | 0x08 | 0xe1 | 0.5 | 0xb01e,0xe190,0x4825 | not_set | 100_021220.zip |
| blinky.bin | not_set | not_set | not_set | 0x27 | 0x7e | 0.5 | 0x2fbb | not_set | 100_021221.zip |
| blinky.bin | not_set | not_set | 0xf2 | 0x15 | 0xba | 0.5 | 0x3b61,0x8636 | not_set | 100_021222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.6 | 0xfc23,0x3777 | not_set | 100_022000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.6 | 0x7930,0xbc19 | not_set | 100_022001.zip |
| blinky.bin | not_set | not_set | 0x87 | none | none | 0.6 | 0x51ee,0x9228 | not_set | 100_022002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.6 | 0x583c,0x8601 | not_set | 100_022010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.6 | 0x2a67,0x0283,0xdc4b | not_set | 100_022011.zip |
| blinky.bin | not_set | not_set | 0xcb | not_set | none | 0.6 | 0xa044 | not_set | 100_022012.zip |
| blinky.bin | not_set | not_set | none | 0x50 | none | 0.6 | 0x3afc,0xd36a,0x68c8,0xf66b | not_set | 100_022020.zip |
| blinky.bin | not_set | not_set | not_set | 0xa6 | none | 0.6 | 0xb26b | not_set | 100_022021.zip |
| blinky.bin | not_set | not_set | 0x24 | 0x26 | none | 0.6 | 0x23c6 | not_set | 100_022022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.6 | 0xe825 | not_set | 100_022100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.6 | 0xbe95 | not_set | 100_022101.zip |
| blinky.bin | not_set | not_set | 0x28 | none | not_set | 0.6 | 0x061e,0x1c6d,0xa02d,0xeb9f | not_set | 100_022102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.6 | 0xccc6 | not_set | 100_022110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.6 | 0x2cf4,0x3dbf,0x3015,0x3a11 | not_set | 100_022111.zip |
| blinky.bin | not_set | not_set | 0x69 | not_set | not_set | 0.6 | 0x49d8 | not_set | 100_022112.zip |
| blinky.bin | not_set | not_set | none | 0x07 | not_set | 0.6 | 0x5816,0xeae2,0x4c5c,0x164b | not_set | 100_022120.zip |
| blinky.bin | not_set | not_set | not_set | 0x14 | not_set | 0.6 | 0x3513,0x0464 | not_set | 100_022121.zip |
| blinky.bin | not_set | not_set | 0xba | 0x44 | not_set | 0.6 | 0x98cb,0x3f0b,0xea9a | not_set | 100_022122.zip |
| blinky.bin | not_set | not_set | none | none | 0x7f | 0.6 | 0xa301,0xb7c7,0x8baa,0xf91a | not_set | 100_022200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xf6 | 0.6 | 0x79f4,0x0a71,0x7153 | not_set | 100_022201.zip |
| blinky.bin | not_set | not_set | 0xa1 | none | 0x6e | 0.6 | 0x12d3,0xbd74,0xd1ce,0xf24f | not_set | 100_022202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x12 | 0.6 | 0xa75c,0xc411,0xe043 | not_set | 100_022210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x3f | 0.6 | 0x5e94,0x434e,0xfba2,0x672b | not_set | 100_022211.zip |
| blinky.bin | not_set | not_set | 0x84 | not_set | 0xa8 | 0.6 | 0x639e | not_set | 100_022212.zip |
| blinky.bin | not_set | not_set | none | 0x57 | 0x8a | 0.6 | 0x7689,0xbecb,0xb70a,0x7aed | not_set | 100_022220.zip |
| blinky.bin | not_set | not_set | not_set | 0x75 | 0xaf | 0.6 | 0x6f95 | not_set | 100_022221.zip |
| blinky.bin | not_set | not_set | 0xdd | 0x35 | 0xe1 | 0.6 | 0x77ee,0xcfcb,0xe477 | not_set | 100_022222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.7 | 0x8d22,0x01b5,0x8215,0xc099 | not_set | 100_023000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.7 | 0x6f64,0x88f7,0xb87e,0xedd2 | not_set | 100_023001.zip |
| blinky.bin | not_set | not_set | 0x1c | none | none | 0.7 | 0x22d0 | not_set | 100_023002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.7 | 0xd22b,0x47d4,0xdc8c,0x2e63 | not_set | 100_023010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.7 | 0xfbef | not_set | 100_023011.zip |
| blinky.bin | not_set | not_set | 0x04 | not_set | none | 0.7 | 0x4d1b,0x4fd9,0x2909,0x57b6 | not_set | 100_023012.zip |
| blinky.bin | not_set | not_set | none | 0x02 | none | 0.7 | 0x0601,0xfadf,0xa309 | not_set | 100_023020.zip |
| blinky.bin | not_set | not_set | not_set | 0x2e | none | 0.7 | 0xeeb4,0x296c,0xb5d5 | not_set | 100_023021.zip |
| blinky.bin | not_set | not_set | 0x1c | 0xa7 | none | 0.7 | 0xf8d5,0x69d5,0x8470 | not_set | 100_023022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.7 | 0x2e79,0x0f64 | not_set | 100_023100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.7 | 0x11a0 | not_set | 100_023101.zip |
| blinky.bin | not_set | not_set | 0x5d | none | not_set | 0.7 | 0x4f17 | not_set | 100_023102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.7 | 0x9cda,0x7c3b | not_set | 100_023110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.7 | 0x1770,0x889f | not_set | 100_023111.zip |
| blinky.bin | not_set | not_set | 0xd1 | not_set | not_set | 0.7 | 0x0e09,0x2c98 | not_set | 100_023112.zip |
| blinky.bin | not_set | not_set | none | 0x20 | not_set | 0.7 | 0x2c87,0x36e8,0xc2aa | not_set | 100_023120.zip |
| blinky.bin | not_set | not_set | not_set | 0x67 | not_set | 0.7 | 0x12b8,0x60ec,0x39da | not_set | 100_023121.zip |
| blinky.bin | not_set | not_set | 0xfe | 0x37 | not_set | 0.7 | 0xe971,0xc49e | not_set | 100_023122.zip |
| blinky.bin | not_set | not_set | none | none | 0x4a | 0.7 | 0x655d,0x595d | not_set | 100_023200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xed | 0.7 | 0x1bb3,0xcb67,0x4c69 | not_set | 100_023201.zip |
| blinky.bin | not_set | not_set | 0x5f | none | 0xe1 | 0.7 | 0x4aca,0xbea2 | not_set | 100_023202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x09 | 0.7 | 0xc4bd,0x086d,0xb12a,0x5218 | not_set | 100_023210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x43 | 0.7 | 0x4336,0x7805 | not_set | 100_023211.zip |
| blinky.bin | not_set | not_set | 0x5a | not_set | 0x57 | 0.7 | 0x5d40,0xf31f | not_set | 100_023212.zip |
| blinky.bin | not_set | not_set | none | 0x22 | 0xcc | 0.7 | 0xe5c8 | not_set | 100_023220.zip |
| blinky.bin | not_set | not_set | not_set | 0xc0 | 0x6c | 0.7 | 0xfe83 | not_set | 100_023221.zip |
| blinky.bin | not_set | not_set | 0x7d | 0xa2 | 0xe5 | 0.7 | 0xd584,0xbbbb,0x2804 | not_set | 100_023222.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | none | test.pem | 100_100000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | not_set | none | test.pem | 100_100001.zip |
| blinky.bin | not_set | not_set | 0x11 | none | none | not_set | none | test.pem | 100_100002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | not_set | none | test.pem | 100_100010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | not_set | none | test.pem | 100_100011.zip |
| blinky.bin | not_set | not_set | 0xbe | not_set | none | not_set | none | test.pem | 100_100012.zip |
| blinky.bin | not_set | not_set | none | 0x43 | none | not_set | none | test.pem | 100_100020.zip |
| blinky.bin | not_set | not_set | not_set | 0xa6 | none | not_set | none | test.pem | 100_100021.zip |
| blinky.bin | not_set | not_set | 0xd8 | 0x0a | none | not_set | none | test.pem | 100_100022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | not_set | none | test.pem | 100_100100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | not_set | none | test.pem | 100_100101.zip |
| blinky.bin | not_set | not_set | 0xae | none | not_set | not_set | none | test.pem | 100_100102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | not_set | none | test.pem | 100_100110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | not_set | none | test.pem | 100_100111.zip |
| blinky.bin | not_set | not_set | 0x91 | not_set | not_set | not_set | none | test.pem | 100_100112.zip |
| blinky.bin | not_set | not_set | none | 0x35 | not_set | not_set | none | test.pem | 100_100120.zip |
| blinky.bin | not_set | not_set | not_set | 0xfe | not_set | not_set | none | test.pem | 100_100121.zip |
| blinky.bin | not_set | not_set | 0xfc | 0x45 | not_set | not_set | none | test.pem | 100_100122.zip |
| blinky.bin | not_set | not_set | none | none | 0xf7 | not_set | none | test.pem | 100_100200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x7a | not_set | none | test.pem | 100_100201.zip |
| blinky.bin | not_set | not_set | 0x5f | none | 0x93 | not_set | none | test.pem | 100_100202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x51 | not_set | none | test.pem | 100_100210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0xce | not_set | none | test.pem | 100_100211.zip |
| blinky.bin | not_set | not_set | 0xe5 | not_set | 0xd1 | not_set | none | test.pem | 100_100212.zip |
| blinky.bin | not_set | not_set | none | 0xd4 | 0xc3 | not_set | none | test.pem | 100_100220.zip |
| blinky.bin | not_set | not_set | not_set | 0xed | 0xa4 | not_set | none | test.pem | 100_100221.zip |
| blinky.bin | not_set | not_set | 0xac | 0x6f | 0x9c | not_set | none | test.pem | 100_100222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.5 | none | test.pem | 100_101000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.5 | none | test.pem | 100_101001.zip |
| blinky.bin | not_set | not_set | 0x1f | none | none | 0.5 | none | test.pem | 100_101002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.5 | none | test.pem | 100_101010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.5 | none | test.pem | 100_101011.zip |
| blinky.bin | not_set | not_set | 0x5d | not_set | none | 0.5 | none | test.pem | 100_101012.zip |
| blinky.bin | not_set | not_set | none | 0xec | none | 0.5 | none | test.pem | 100_101020.zip |
| blinky.bin | not_set | not_set | not_set | 0x6e | none | 0.5 | none | test.pem | 100_101021.zip |
| blinky.bin | not_set | not_set | 0x55 | 0x2d | none | 0.5 | none | test.pem | 100_101022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.5 | none | test.pem | 100_101100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.5 | none | test.pem | 100_101101.zip |
| blinky.bin | not_set | not_set | 0xfc | none | not_set | 0.5 | none | test.pem | 100_101102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.5 | none | test.pem | 100_101110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.5 | none | test.pem | 100_101111.zip |
| blinky.bin | not_set | not_set | 0xdb | not_set | not_set | 0.5 | none | test.pem | 100_101112.zip |
| blinky.bin | not_set | not_set | none | 0xb1 | not_set | 0.5 | none | test.pem | 100_101120.zip |
| blinky.bin | not_set | not_set | not_set | 0x10 | not_set | 0.5 | none | test.pem | 100_101121.zip |
| blinky.bin | not_set | not_set | 0xd4 | 0x9a | not_set | 0.5 | none | test.pem | 100_101122.zip |
| blinky.bin | not_set | not_set | none | none | 0xac | 0.5 | none | test.pem | 100_101200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x2e | 0.5 | none | test.pem | 100_101201.zip |
| blinky.bin | not_set | not_set | 0x8d | none | 0x93 | 0.5 | none | test.pem | 100_101202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x4e | 0.5 | none | test.pem | 100_101210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x5e | 0.5 | none | test.pem | 100_101211.zip |
| blinky.bin | not_set | not_set | 0x78 | not_set | 0x53 | 0.5 | none | test.pem | 100_101212.zip |
| blinky.bin | not_set | not_set | none | 0x76 | 0x7e | 0.5 | none | test.pem | 100_101220.zip |
| blinky.bin | not_set | not_set | not_set | 0x3b | 0x97 | 0.5 | none | test.pem | 100_101221.zip |
| blinky.bin | not_set | not_set | 0x71 | 0xe9 | 0xbc | 0.5 | none | test.pem | 100_101222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.6 | none | test.pem | 100_102000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.6 | none | test.pem | 100_102001.zip |
| blinky.bin | not_set | not_set | 0xe9 | none | none | 0.6 | none | test.pem | 100_102002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.6 | none | test.pem | 100_102010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.6 | none | test.pem | 100_102011.zip |
| blinky.bin | not_set | not_set | 0xa2 | not_set | none | 0.6 | none | test.pem | 100_102012.zip |
| blinky.bin | not_set | not_set | none | 0x26 | none | 0.6 | none | test.pem | 100_102020.zip |
| blinky.bin | not_set | not_set | not_set | 0x99 | none | 0.6 | none | test.pem | 100_102021.zip |
| blinky.bin | not_set | not_set | 0x72 | 0x3e | none | 0.6 | none | test.pem | 100_102022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.6 | none | test.pem | 100_102100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.6 | none | test.pem | 100_102101.zip |
| blinky.bin | not_set | not_set | 0x17 | none | not_set | 0.6 | none | test.pem | 100_102102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.6 | none | test.pem | 100_102110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.6 | none | test.pem | 100_102111.zip |
| blinky.bin | not_set | not_set | 0x9c | not_set | not_set | 0.6 | none | test.pem | 100_102112.zip |
| blinky.bin | not_set | not_set | none | 0xb9 | not_set | 0.6 | none | test.pem | 100_102120.zip |
| blinky.bin | not_set | not_set | not_set | 0x91 | not_set | 0.6 | none | test.pem | 100_102121.zip |
| blinky.bin | not_set | not_set | 0x5a | 0x17 | not_set | 0.6 | none | test.pem | 100_102122.zip |
| blinky.bin | not_set | not_set | none | none | 0x11 | 0.6 | none | test.pem | 100_102200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x8b | 0.6 | none | test.pem | 100_102201.zip |
| blinky.bin | not_set | not_set | 0x61 | none | 0x01 | 0.6 | none | test.pem | 100_102202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0xf4 | 0.6 | none | test.pem | 100_102210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x3e | 0.6 | none | test.pem | 100_102211.zip |
| blinky.bin | not_set | not_set | 0xb9 | not_set | 0xe4 | 0.6 | none | test.pem | 100_102212.zip |
| blinky.bin | not_set | not_set | none | 0xf3 | 0xcb | 0.6 | none | test.pem | 100_102220.zip |
| blinky.bin | not_set | not_set | not_set | 0x8d | 0xdd | 0.6 | none | test.pem | 100_102221.zip |
| blinky.bin | not_set | not_set | 0x69 | 0xa7 | 0xf3 | 0.6 | none | test.pem | 100_102222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.7 | none | test.pem | 100_103000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.7 | none | test.pem | 100_103001.zip |
| blinky.bin | not_set | not_set | 0xfe | none | none | 0.7 | none | test.pem | 100_103002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.7 | none | test.pem | 100_103010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.7 | none | test.pem | 100_103011.zip |
| blinky.bin | not_set | not_set | 0xdb | not_set | none | 0.7 | none | test.pem | 100_103012.zip |
| blinky.bin | not_set | not_set | none | 0xfa | none | 0.7 | none | test.pem | 100_103020.zip |
| blinky.bin | not_set | not_set | not_set | 0x3d | none | 0.7 | none | test.pem | 100_103021.zip |
| blinky.bin | not_set | not_set | 0xe1 | 0xc7 | none | 0.7 | none | test.pem | 100_103022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.7 | none | test.pem | 100_103100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.7 | none | test.pem | 100_103101.zip |
| blinky.bin | not_set | not_set | 0x74 | none | not_set | 0.7 | none | test.pem | 100_103102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.7 | none | test.pem | 100_103110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.7 | none | test.pem | 100_103111.zip |
| blinky.bin | not_set | not_set | 0xc2 | not_set | not_set | 0.7 | none | test.pem | 100_103112.zip |
| blinky.bin | not_set | not_set | none | 0x0a | not_set | 0.7 | none | test.pem | 100_103120.zip |
| blinky.bin | not_set | not_set | not_set | 0x3b | not_set | 0.7 | none | test.pem | 100_103121.zip |
| blinky.bin | not_set | not_set | 0x64 | 0xda | not_set | 0.7 | none | test.pem | 100_103122.zip |
| blinky.bin | not_set | not_set | none | none | 0x22 | 0.7 | none | test.pem | 100_103200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x32 | 0.7 | none | test.pem | 100_103201.zip |
| blinky.bin | not_set | not_set | 0xc8 | none | 0x2a | 0.7 | none | test.pem | 100_103202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x46 | 0.7 | none | test.pem | 100_103210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0xf5 | 0.7 | none | test.pem | 100_103211.zip |
| blinky.bin | not_set | not_set | 0xb6 | not_set | 0x5e | 0.7 | none | test.pem | 100_103212.zip |
| blinky.bin | not_set | not_set | none | 0x75 | 0xf6 | 0.7 | none | test.pem | 100_103220.zip |
| blinky.bin | not_set | not_set | not_set | 0xd7 | 0xc6 | 0.7 | none | test.pem | 100_103221.zip |
| blinky.bin | not_set | not_set | 0xe0 | 0xe5 | 0xb2 | 0.7 | none | test.pem | 100_103222.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | not_set | test.pem | 100_110000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | not_set | not_set | test.pem | 100_110001.zip |
| blinky.bin | not_set | not_set | 0xd4 | none | none | not_set | not_set | test.pem | 100_110002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | not_set | not_set | test.pem | 100_110010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | not_set | not_set | test.pem | 100_110011.zip |
| blinky.bin | not_set | not_set | 0x15 | not_set | none | not_set | not_set | test.pem | 100_110012.zip |
| blinky.bin | not_set | not_set | none | 0x5d | none | not_set | not_set | test.pem | 100_110020.zip |
| blinky.bin | not_set | not_set | not_set | 0x0e | none | not_set | not_set | test.pem | 100_110021.zip |
| blinky.bin | not_set | not_set | 0x08 | 0x5e | none | not_set | not_set | test.pem | 100_110022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | not_set | not_set | test.pem | 100_110100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | not_set | not_set | test.pem | 100_110101.zip |
| blinky.bin | not_set | not_set | 0xf9 | none | not_set | not_set | not_set | test.pem | 100_110102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | not_set | not_set | test.pem | 100_110110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | not_set | not_set | test.pem | 100_110111.zip |
| blinky.bin | not_set | not_set | 0x38 | not_set | not_set | not_set | not_set | test.pem | 100_110112.zip |
| blinky.bin | not_set | not_set | none | 0xb6 | not_set | not_set | not_set | test.pem | 100_110120.zip |
| blinky.bin | not_set | not_set | not_set | 0x19 | not_set | not_set | not_set | test.pem | 100_110121.zip |
| blinky.bin | not_set | not_set | 0x9d | 0xae | not_set | not_set | not_set | test.pem | 100_110122.zip |
| blinky.bin | not_set | not_set | none | none | 0xaf | not_set | not_set | test.pem | 100_110200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xdc | not_set | not_set | test.pem | 100_110201.zip |
| blinky.bin | not_set | not_set | 0xfa | none | 0x14 | not_set | not_set | test.pem | 100_110202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0xc5 | not_set | not_set | test.pem | 100_110210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x1a | not_set | not_set | test.pem | 100_110211.zip |
| blinky.bin | not_set | not_set | 0x7f | not_set | 0xd9 | not_set | not_set | test.pem | 100_110212.zip |
| blinky.bin | not_set | not_set | none | 0xc1 | 0x25 | not_set | not_set | test.pem | 100_110220.zip |
| blinky.bin | not_set | not_set | not_set | 0x88 | 0xb9 | not_set | not_set | test.pem | 100_110221.zip |
| blinky.bin | not_set | not_set | 0x7f | 0x12 | 0x58 | not_set | not_set | test.pem | 100_110222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.5 | not_set | test.pem | 100_111000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.5 | not_set | test.pem | 100_111001.zip |
| blinky.bin | not_set | not_set | 0x15 | none | none | 0.5 | not_set | test.pem | 100_111002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.5 | not_set | test.pem | 100_111010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.5 | not_set | test.pem | 100_111011.zip |
| blinky.bin | not_set | not_set | 0x15 | not_set | none | 0.5 | not_set | test.pem | 100_111012.zip |
| blinky.bin | not_set | not_set | none | 0x47 | none | 0.5 | not_set | test.pem | 100_111020.zip |
| blinky.bin | not_set | not_set | not_set | 0xfa | none | 0.5 | not_set | test.pem | 100_111021.zip |
| blinky.bin | not_set | not_set | 0x2b | 0x25 | none | 0.5 | not_set | test.pem | 100_111022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.5 | not_set | test.pem | 100_111100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.5 | not_set | test.pem | 100_111101.zip |
| blinky.bin | not_set | not_set | 0x39 | none | not_set | 0.5 | not_set | test.pem | 100_111102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.5 | not_set | test.pem | 100_111110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.5 | not_set | test.pem | 100_111111.zip |
| blinky.bin | not_set | not_set | 0x33 | not_set | not_set | 0.5 | not_set | test.pem | 100_111112.zip |
| blinky.bin | not_set | not_set | none | 0x87 | not_set | 0.5 | not_set | test.pem | 100_111120.zip |
| blinky.bin | not_set | not_set | not_set | 0xe1 | not_set | 0.5 | not_set | test.pem | 100_111121.zip |
| blinky.bin | not_set | not_set | 0x53 | 0x4a | not_set | 0.5 | not_set | test.pem | 100_111122.zip |
| blinky.bin | not_set | not_set | none | none | 0x9b | 0.5 | not_set | test.pem | 100_111200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x06 | 0.5 | not_set | test.pem | 100_111201.zip |
| blinky.bin | not_set | not_set | 0xa5 | none | 0x3f | 0.5 | not_set | test.pem | 100_111202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x01 | 0.5 | not_set | test.pem | 100_111210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0xc7 | 0.5 | not_set | test.pem | 100_111211.zip |
| blinky.bin | not_set | not_set | 0xd7 | not_set | 0x80 | 0.5 | not_set | test.pem | 100_111212.zip |
| blinky.bin | not_set | not_set | none | 0x5d | 0x3f | 0.5 | not_set | test.pem | 100_111220.zip |
| blinky.bin | not_set | not_set | not_set | 0x91 | 0x15 | 0.5 | not_set | test.pem | 100_111221.zip |
| blinky.bin | not_set | not_set | 0xfd | 0x1a | 0xb6 | 0.5 | not_set | test.pem | 100_111222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.6 | not_set | test.pem | 100_112000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.6 | not_set | test.pem | 100_112001.zip |
| blinky.bin | not_set | not_set | 0x7f | none | none | 0.6 | not_set | test.pem | 100_112002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.6 | not_set | test.pem | 100_112010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.6 | not_set | test.pem | 100_112011.zip |
| blinky.bin | not_set | not_set | 0x72 | not_set | none | 0.6 | not_set | test.pem | 100_112012.zip |
| blinky.bin | not_set | not_set | none | 0x3d | none | 0.6 | not_set | test.pem | 100_112020.zip |
| blinky.bin | not_set | not_set | not_set | 0xbb | none | 0.6 | not_set | test.pem | 100_112021.zip |
| blinky.bin | not_set | not_set | 0xf7 | 0x20 | none | 0.6 | not_set | test.pem | 100_112022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.6 | not_set | test.pem | 100_112100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.6 | not_set | test.pem | 100_112101.zip |
| blinky.bin | not_set | not_set | 0x3d | none | not_set | 0.6 | not_set | test.pem | 100_112102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.6 | not_set | test.pem | 100_112110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.6 | not_set | test.pem | 100_112111.zip |
| blinky.bin | not_set | not_set | 0x2a | not_set | not_set | 0.6 | not_set | test.pem | 100_112112.zip |
| blinky.bin | not_set | not_set | none | 0x3d | not_set | 0.6 | not_set | test.pem | 100_112120.zip |
| blinky.bin | not_set | not_set | not_set | 0xdf | not_set | 0.6 | not_set | test.pem | 100_112121.zip |
| blinky.bin | not_set | not_set | 0x7a | 0x58 | not_set | 0.6 | not_set | test.pem | 100_112122.zip |
| blinky.bin | not_set | not_set | none | none | 0x80 | 0.6 | not_set | test.pem | 100_112200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x9f | 0.6 | not_set | test.pem | 100_112201.zip |
| blinky.bin | not_set | not_set | 0xd5 | none | 0x12 | 0.6 | not_set | test.pem | 100_112202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0xea | 0.6 | not_set | test.pem | 100_112210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x87 | 0.6 | not_set | test.pem | 100_112211.zip |
| blinky.bin | not_set | not_set | 0x39 | not_set | 0x84 | 0.6 | not_set | test.pem | 100_112212.zip |
| blinky.bin | not_set | not_set | none | 0x7f | 0x82 | 0.6 | not_set | test.pem | 100_112220.zip |
| blinky.bin | not_set | not_set | not_set | 0x6b | 0x66 | 0.6 | not_set | test.pem | 100_112221.zip |
| blinky.bin | not_set | not_set | 0x53 | 0xce | 0xe5 | 0.6 | not_set | test.pem | 100_112222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.7 | not_set | test.pem | 100_113000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.7 | not_set | test.pem | 100_113001.zip |
| blinky.bin | not_set | not_set | 0xed | none | none | 0.7 | not_set | test.pem | 100_113002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.7 | not_set | test.pem | 100_113010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.7 | not_set | test.pem | 100_113011.zip |
| blinky.bin | not_set | not_set | 0x4c | not_set | none | 0.7 | not_set | test.pem | 100_113012.zip |
| blinky.bin | not_set | not_set | none | 0x7d | none | 0.7 | not_set | test.pem | 100_113020.zip |
| blinky.bin | not_set | not_set | not_set | 0x7a | none | 0.7 | not_set | test.pem | 100_113021.zip |
| blinky.bin | not_set | not_set | 0x59 | 0x4a | none | 0.7 | not_set | test.pem | 100_113022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.7 | not_set | test.pem | 100_113100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.7 | not_set | test.pem | 100_113101.zip |
| blinky.bin | not_set | not_set | 0x3f | none | not_set | 0.7 | not_set | test.pem | 100_113102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.7 | not_set | test.pem | 100_113110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.7 | not_set | test.pem | 100_113111.zip |
| blinky.bin | not_set | not_set | 0x71 | not_set | not_set | 0.7 | not_set | test.pem | 100_113112.zip |
| blinky.bin | not_set | not_set | none | 0x9e | not_set | 0.7 | not_set | test.pem | 100_113120.zip |
| blinky.bin | not_set | not_set | not_set | 0xc4 | not_set | 0.7 | not_set | test.pem | 100_113121.zip |
| blinky.bin | not_set | not_set | 0xe8 | 0xa5 | not_set | 0.7 | not_set | test.pem | 100_113122.zip |
| blinky.bin | not_set | not_set | none | none | 0x57 | 0.7 | not_set | test.pem | 100_113200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xae | 0.7 | not_set | test.pem | 100_113201.zip |
| blinky.bin | not_set | not_set | 0xb7 | none | 0xd0 | 0.7 | not_set | test.pem | 100_113202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0xe1 | 0.7 | not_set | test.pem | 100_113210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x76 | 0.7 | not_set | test.pem | 100_113211.zip |
| blinky.bin | not_set | not_set | 0xa2 | not_set | 0x80 | 0.7 | not_set | test.pem | 100_113212.zip |
| blinky.bin | not_set | not_set | none | 0x75 | 0xff | 0.7 | not_set | test.pem | 100_113220.zip |
| blinky.bin | not_set | not_set | not_set | 0xb1 | 0xc8 | 0.7 | not_set | test.pem | 100_113221.zip |
| blinky.bin | not_set | not_set | 0x64 | 0x64 | 0x79 | 0.7 | not_set | test.pem | 100_113222.zip |
| blinky.bin | not_set | not_set | none | none | none | not_set | 0xedc8 | test.pem | 100_120000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | not_set | 0x2c1d | test.pem | 100_120001.zip |
| blinky.bin | not_set | not_set | 0xe8 | none | none | not_set | 0x3ace,0x2f36 | test.pem | 100_120002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | not_set | 0x81ef,0xab1e | test.pem | 100_120010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | not_set | 0x6be6,0xaa70,0x769d | test.pem | 100_120011.zip |
| blinky.bin | not_set | not_set | 0x27 | not_set | none | not_set | 0x4ae0,0x9c9b,0x37ab | test.pem | 100_120012.zip |
| blinky.bin | not_set | not_set | none | 0x84 | none | not_set | 0x6387,0x1cbb,0x2307,0x917e | test.pem | 100_120020.zip |
| blinky.bin | not_set | not_set | not_set | 0x43 | none | not_set | 0x238c,0xedab | test.pem | 100_120021.zip |
| blinky.bin | not_set | not_set | 0xb8 | 0x96 | none | not_set | 0xa0e9,0x7477,0x4831,0x675c | test.pem | 100_120022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | not_set | 0x631f,0x300a | test.pem | 100_120100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | not_set | 0x30de | test.pem | 100_120101.zip |
| blinky.bin | not_set | not_set | 0x53 | none | not_set | not_set | 0xfb81 | test.pem | 100_120102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | not_set | 0xba05,0xd884,0xf29d,0x42b4 | test.pem | 100_120110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | not_set | 0x7fd8 | test.pem | 100_120111.zip |
| blinky.bin | not_set | not_set | 0x79 | not_set | not_set | not_set | 0x5100 | test.pem | 100_120112.zip |
| blinky.bin | not_set | not_set | none | 0x0f | not_set | not_set | 0x9246,0x5db5,0x96b6 | test.pem | 100_120120.zip |
| blinky.bin | not_set | not_set | not_set | 0xae | not_set | not_set | 0x3eff | test.pem | 100_120121.zip |
| blinky.bin | not_set | not_set | 0x44 | 0x27 | not_set | not_set | 0xb087,0x70da | test.pem | 100_120122.zip |
| blinky.bin | not_set | not_set | none | none | 0xe6 | not_set | 0xd3b0 | test.pem | 100_120200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x2c | not_set | 0x9c41,0x953e | test.pem | 100_120201.zip |
| blinky.bin | not_set | not_set | 0x78 | none | 0x36 | not_set | 0x6453,0xe79c,0x9a72,0x0054 | test.pem | 100_120202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x70 | not_set | 0xac7a | test.pem | 100_120210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x52 | not_set | 0xebe0,0x77a8,0x2fb2 | test.pem | 100_120211.zip |
| blinky.bin | not_set | not_set | 0x58 | not_set | 0x08 | not_set | 0xb475 | test.pem | 100_120212.zip |
| blinky.bin | not_set | not_set | none | 0x3b | 0xf2 | not_set | 0xfd44 | test.pem | 100_120220.zip |
| blinky.bin | not_set | not_set | not_set | 0x7d | 0x6e | not_set | 0x484e,0xa1e1,0xee6e,0x23e6 | test.pem | 100_120221.zip |
| blinky.bin | not_set | not_set | 0xc7 | 0x2d | 0xdf | not_set | 0x87c8,0x4c7a | test.pem | 100_120222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.5 | 0xa594,0xd782,0xd2de,0x10a5 | test.pem | 100_121000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.5 | 0x49a7,0xccdb | test.pem | 100_121001.zip |
| blinky.bin | not_set | not_set | 0x50 | none | none | 0.5 | 0x4d22,0x7c0a,0x1b8b,0x8ac1 | test.pem | 100_121002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.5 | 0x2486,0x5254,0x4d24,0xf56b | test.pem | 100_121010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.5 | 0x76de | test.pem | 100_121011.zip |
| blinky.bin | not_set | not_set | 0x34 | not_set | none | 0.5 | 0x6bbc,0xcea5,0xb74b | test.pem | 100_121012.zip |
| blinky.bin | not_set | not_set | none | 0xb8 | none | 0.5 | 0x825c,0x4269 | test.pem | 100_121020.zip |
| blinky.bin | not_set | not_set | not_set | 0xf7 | none | 0.5 | 0x9bcf | test.pem | 100_121021.zip |
| blinky.bin | not_set | not_set | 0xea | 0x46 | none | 0.5 | 0x6cf7 | test.pem | 100_121022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.5 | 0xe7ce,0xba8c,0x9a8c,0x61bf | test.pem | 100_121100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.5 | 0x7926,0xf847 | test.pem | 100_121101.zip |
| blinky.bin | not_set | not_set | 0x9b | none | not_set | 0.5 | 0x6f8c | test.pem | 100_121102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.5 | 0x6d71,0xdddd,0x4388 | test.pem | 100_121110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.5 | 0x0daf,0xb6d7 | test.pem | 100_121111.zip |
| blinky.bin | not_set | not_set | 0x33 | not_set | not_set | 0.5 | 0x2ec2,0xc08c,0x54cb,0x69f9 | test.pem | 100_121112.zip |
| blinky.bin | not_set | not_set | none | 0x57 | not_set | 0.5 | 0x3760 | test.pem | 100_121120.zip |
| blinky.bin | not_set | not_set | not_set | 0x2d | not_set | 0.5 | 0xba4e,0x93b4,0x1a91 | test.pem | 100_121121.zip |
| blinky.bin | not_set | not_set | 0xd4 | 0x7b | not_set | 0.5 | 0x326e,0x5fb1 | test.pem | 100_121122.zip |
| blinky.bin | not_set | not_set | none | none | 0x07 | 0.5 | 0x6e23,0xd2d5,0x28f0 | test.pem | 100_121200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x74 | 0.5 | 0x5ceb,0x3e76,0x3d4f | test.pem | 100_121201.zip |
| blinky.bin | not_set | not_set | 0xe3 | none | 0x24 | 0.5 | 0xccc6,0xd5cc,0x48af,0x26fd | test.pem | 100_121202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x50 | 0.5 | 0x9ed9,0x3d56,0x3464,0x14a0 | test.pem | 100_121210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x8b | 0.5 | 0x8ce3,0xe7ed,0x6a8e,0x2f5e | test.pem | 100_121211.zip |
| blinky.bin | not_set | not_set | 0xc0 | not_set | 0x98 | 0.5 | 0x281c,0xde91,0x829d | test.pem | 100_121212.zip |
| blinky.bin | not_set | not_set | none | 0xe5 | 0x99 | 0.5 | 0x7bc5,0xd7f9,0x3f17 | test.pem | 100_121220.zip |
| blinky.bin | not_set | not_set | not_set | 0xf7 | 0x2d | 0.5 | 0xb170,0x2cb4,0x6d74,0xc280 | test.pem | 100_121221.zip |
| blinky.bin | not_set | not_set | 0xda | 0x15 | 0x21 | 0.5 | 0xcc28 | test.pem | 100_121222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.6 | 0xbd91,0xb19f | test.pem | 100_122000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.6 | 0xe15e,0xb1a8,0xb30f | test.pem | 100_122001.zip |
| blinky.bin | not_set | not_set | 0x15 | none | none | 0.6 | 0x1cb4,0xe663,0x990c | test.pem | 100_122002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.6 | 0xd0c7,0xd442,0x4b54,0xe00a | test.pem | 100_122010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.6 | 0x4589,0x2a0f,0x2dad | test.pem | 100_122011.zip |
| blinky.bin | not_set | not_set | 0x46 | not_set | none | 0.6 | 0xc3d8,0xbfb4,0xb477,0x44fb | test.pem | 100_122012.zip |
| blinky.bin | not_set | not_set | none | 0x2e | none | 0.6 | 0xc508,0x6ad9 | test.pem | 100_122020.zip |
| blinky.bin | not_set | not_set | not_set | 0xff | none | 0.6 | 0x37bf,0x3db0,0x53c5 | test.pem | 100_122021.zip |
| blinky.bin | not_set | not_set | 0x1f | 0x00 | none | 0.6 | 0xf7e7 | test.pem | 100_122022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.6 | 0x768d,0x6506,0x49b0,0xe4f4 | test.pem | 100_122100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.6 | 0xb2ce | test.pem | 100_122101.zip |
| blinky.bin | not_set | not_set | 0x57 | none | not_set | 0.6 | 0x9f32,0x1aec,0x0c11,0xe22a | test.pem | 100_122102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.6 | 0x002a,0x56ea,0xa835,0x4ff8 | test.pem | 100_122110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.6 | 0x5d36 | test.pem | 100_122111.zip |
| blinky.bin | not_set | not_set | 0x3a | not_set | not_set | 0.6 | 0x860a,0x335c,0xd037 | test.pem | 100_122112.zip |
| blinky.bin | not_set | not_set | none | 0xab | not_set | 0.6 | 0x46a7 | test.pem | 100_122120.zip |
| blinky.bin | not_set | not_set | not_set | 0x7f | not_set | 0.6 | 0xbf23,0x00d4 | test.pem | 100_122121.zip |
| blinky.bin | not_set | not_set | 0x99 | 0x1b | not_set | 0.6 | 0xfac2 | test.pem | 100_122122.zip |
| blinky.bin | not_set | not_set | none | none | 0x47 | 0.6 | 0x7548,0x8a18 | test.pem | 100_122200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0xcb | 0.6 | 0x4f4e | test.pem | 100_122201.zip |
| blinky.bin | not_set | not_set | 0xa2 | none | 0xbb | 0.6 | 0x0dac | test.pem | 100_122202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0x70 | 0.6 | 0x9b2d,0x89fa | test.pem | 100_122210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x27 | 0.6 | 0x6353,0x7647 | test.pem | 100_122211.zip |
| blinky.bin | not_set | not_set | 0x11 | not_set | 0xff | 0.6 | 0x8ca7,0x2665 | test.pem | 100_122212.zip |
| blinky.bin | not_set | not_set | none | 0x39 | 0xb7 | 0.6 | 0x644e,0xc60b,0xbf44 | test.pem | 100_122220.zip |
| blinky.bin | not_set | not_set | not_set | 0xad | 0x71 | 0.6 | 0x1fa6,0x5cf3,0x430b,0x4fd2 | test.pem | 100_122221.zip |
| blinky.bin | not_set | not_set | 0x27 | 0x3d | 0xd8 | 0.6 | 0x3b4a,0x45f0,0xc4c7,0x8af3 | test.pem | 100_122222.zip |
| blinky.bin | not_set | not_set | none | none | none | 0.7 | 0xa000,0x4356,0x70dc,0x2304 | test.pem | 100_123000.zip |
| blinky.bin | not_set | not_set | not_set | none | none | 0.7 | 0xfe10,0x31db | test.pem | 100_123001.zip |
| blinky.bin | not_set | not_set | 0xe4 | none | none | 0.7 | 0xf113,0x84fd | test.pem | 100_123002.zip |
| blinky.bin | not_set | not_set | none | not_set | none | 0.7 | 0xdad5,0x5b52,0xb732,0x0445 | test.pem | 100_123010.zip |
| blinky.bin | not_set | not_set | not_set | not_set | none | 0.7 | 0x2be7,0x9f38 | test.pem | 100_123011.zip |
| blinky.bin | not_set | not_set | 0x58 | not_set | none | 0.7 | 0xeb9d | test.pem | 100_123012.zip |
| blinky.bin | not_set | not_set | none | 0xbb | none | 0.7 | 0x399c | test.pem | 100_123020.zip |
| blinky.bin | not_set | not_set | not_set | 0x5c | none | 0.7 | 0x140d | test.pem | 100_123021.zip |
| blinky.bin | not_set | not_set | 0x17 | 0x83 | none | 0.7 | 0x48b7,0xd0a3,0xbec0,0x1b48 | test.pem | 100_123022.zip |
| blinky.bin | not_set | not_set | none | none | not_set | 0.7 | 0x2506,0xe218,0x6d03 | test.pem | 100_123100.zip |
| blinky.bin | not_set | not_set | not_set | none | not_set | 0.7 | 0x9e42,0x629e | test.pem | 100_123101.zip |
| blinky.bin | not_set | not_set | 0xbf | none | not_set | 0.7 | 0x6314 | test.pem | 100_123102.zip |
| blinky.bin | not_set | not_set | none | not_set | not_set | 0.7 | 0x7f87,0xbb8e,0xa3d9 | test.pem | 100_123110.zip |
| blinky.bin | not_set | not_set | not_set | not_set | not_set | 0.7 | 0xb55b | test.pem | 100_123111.zip |
| blinky.bin | not_set | not_set | 0x07 | not_set | not_set | 0.7 | 0x855b | test.pem | 100_123112.zip |
| blinky.bin | not_set | not_set | none | 0x88 | not_set | 0.7 | 0x661b,0x6082,0x0add,0x5f93 | test.pem | 100_123120.zip |
| blinky.bin | not_set | not_set | not_set | 0xfa | not_set | 0.7 | 0x1f06,0x7c8b,0x53dc,0xf342 | test.pem | 100_123121.zip |
| blinky.bin | not_set | not_set | 0xf8 | 0xd5 | not_set | 0.7 | 0x8381,0x3cc5,0x1392 | test.pem | 100_123122.zip |
| blinky.bin | not_set | not_set | none | none | 0xf3 | 0.7 | 0x46c6,0xa2a9 | test.pem | 100_123200.zip |
| blinky.bin | not_set | not_set | not_set | none | 0x00 | 0.7 | 0x5127,0xed30,0x194c,0x8c7a | test.pem | 100_123201.zip |
| blinky.bin | not_set | not_set | 0xe4 | none | 0xd3 | 0.7 | 0xd2a4,0xb1a6,0x4cd6,0x2fa5 | test.pem | 100_123202.zip |
| blinky.bin | not_set | not_set | none | not_set | 0xd2 | 0.7 | 0x63d4,0x01f2,0x5a63 | test.pem | 100_123210.zip |
| blinky.bin | not_set | not_set | not_set | not_set | 0x9b | 0.7 | 0xa64e,0x9586,0xc0b5 | test.pem | 100_123211.zip |
| blinky.bin | not_set | not_set | 0x6f | not_set | 0x0e | 0.7 | 0x4b13 | test.pem | 100_123212.zip |
| blinky.bin | not_set | not_set | none | 0xf8 | 0xcc | 0.7 | 0xa27a,0x1aab,0x7677 | test.pem | 100_123220.zip |
| blinky.bin | not_set | not_set | not_set | 0x89 | 0x00 | 0.7 | 0x1595,0x01e3,0x5b1b | test.pem | 100_123221.zip |
| blinky.bin | not_set | not_set | 0x2c | 0x2b | 0xc8 | 0.7 | 0xba47,0x8a49 | test.pem | 100_123222.zip |
@@ -1,10 +0,0 @@
Feature: Help information
Scenario: User types --help
Given user types 'nrfutil dfu genpkg --help'
When user press enter
Then output contains 'Generate a zipfile package for distribution to Apps supporting Nordic DFU' and exit code is 0
Scenario: User does not type mandatory arguments
Given user types 'nrfutil dfu genpkg'
When user press enter
Then output contains 'Error: Missing argument "zipfile".' and exit code is 2
@@ -1,84 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from Queue import Queue
import logging
import os
import subprocess
from threading import Thread
from util import process_pipe, ON_POSIX
logger = logging.getLogger(__file__)
class Exec(object):
def __init__(self, exec_path):
self.path = exec_path
self.name = os.path.basename(self.path)
self.dir = os.path.dirname(self.path)
self.out_queue = Queue()
self.stdout_thread = None
self.stderr_thread = None
self.process = None
def execute(self, args, working_directory):
args = args
shell = False
args.insert(0, self.path)
self.process = subprocess.Popen(args=args,
bufsize=0,
cwd=working_directory,
executable=self.path,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
close_fds=ON_POSIX,
universal_newlines=True,
shell=shell)
if self.process.poll() is not None:
raise Exception("Error starting {} application {}, return code is {}".format(
self.path,
self.process.poll()))
self.stdout_thread = Thread(target=process_pipe, args=(self.process.stdout, self.out_queue))
self.stdout_thread.start()
self.stderr_thread = Thread(target=process_pipe, args=(self.process.stderr, self.out_queue))
self.stderr_thread.start()
def kill(self):
if self.process is not None:
self.process.kill()
self.process.stdin.close()
def get_resources_path():
return os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "resources")
@@ -1,250 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import json
import logging
import os
from zipfile import ZipFile
from behave import given, then, when
from click.testing import CliRunner
from nordicsemi.__main__ import cli, int_as_text_to_int
from common_steps import get_resources_path
logger = logging.getLogger(__file__)
@given(u'the user wants to generate a DFU package with application {application}, bootloader {bootloader} and SoftDevice {softdevice} with name {package}')
def step_impl(context, application, bootloader, softdevice, package):
runner = CliRunner()
context.runner = runner
args = ['dfu', 'genpkg']
if application != u'not_set':
args.extend(['--application', os.path.join(get_resources_path(), application)])
context.application = application
else:
context.application = None
if bootloader != u'not_set':
args.extend(['--bootloader', os.path.join(get_resources_path(), bootloader)])
context.bootloader = bootloader
else:
context.bootloader = None
if softdevice != u'not_set':
args.extend(['--softdevice', os.path.join(get_resources_path(), softdevice)])
context.softdevice = softdevice
else:
context.softdevice = None
args.append(package)
context.args = args
@given(u'with option --application-version {app_ver}')
def step_impl(context, app_ver):
context.application_version = None
if app_ver == u'not_set':
context.application_version = 0xFFFFFFFF
elif app_ver == u'none':
context.args.extend(['--application-version', 'None'])
else:
context.args.extend(['--application-version', app_ver])
context.application_version = int_as_text_to_int(app_ver)
@given(u'with option --dev-revision {dev_rev}')
def step_impl(context, dev_rev):
context.dev_revision = None
if dev_rev == u'not_set':
context.dev_revision = 0xFFFF
elif dev_rev == u'none':
context.args.extend(['--dev-revision', 'None'])
else:
context.args.extend(['--dev-revision', dev_rev])
context.dev_revision = int_as_text_to_int(dev_rev)
@given(u'with option --dev-type {dev_type}')
def step_impl(context, dev_type):
context.dev_type = None
if dev_type == u'not_set':
context.dev_type = 0xFFFF
elif dev_type == u'none':
context.args.extend(['--dev-type', 'None'])
else:
context.args.extend(['--dev-type', dev_type])
context.dev_type = int_as_text_to_int(dev_type)
@given(u'with option --dfu-ver {dfu_ver}')
def step_impl(context, dfu_ver):
context.firmware_hash = None
context.ext_packet_id = None
context.init_packet_ecds = None
if dfu_ver == u'not_set':
context.dfu_ver = 0.5
context.ext_packet_id = 0
else:
if dfu_ver == 0.5:
pass
elif dfu_ver == 0.6:
context.ext_packet_id = 0
elif dfu_ver == 0.7:
context.ext_packet_id = 1
context.firmware_hash = 'exists'
elif dfu_ver == 0.8:
context.ext_packet_id = 2
context.firmware_hash = 'exists'
context.init_packet_ecds = 'exists'
context.args.extend(['--dfu-ver', dfu_ver])
context.dfu_ver = float(dfu_ver)
@given(u'with option --sd-req {sd_reqs}')
def step_impl(context, sd_reqs):
context.sd_req = None
if sd_reqs == u'not_set':
context.sd_req = [0xFFFE]
elif sd_reqs == u'none':
context.args.extend(['--sd-req', 'None'])
else:
context.args.extend(['--sd-req', sd_reqs])
sd_reqs = sd_reqs.split(",")
sd_reqs_value = []
for sd_req in sd_reqs:
sd_reqs_value.append(int_as_text_to_int(sd_req))
context.sd_req = sd_reqs_value
@given(u'with option --key-file {pem_file}')
def step_impl(context, pem_file):
if pem_file != u'not_set':
context.args.extend(['--key-file', os.path.join(get_resources_path(), pem_file)])
context.dfu_ver = 0.8
@when(u'user press enter')
def step_impl(context):
pass
@then(u'the generated DFU package {package} contains correct data')
def step_impl(context, package):
with context.runner.isolated_filesystem():
pkg_full_name = os.path.join(os.getcwd(), package)
logger.debug("Package full name %s", pkg_full_name)
result = context.runner.invoke(cli, context.args)
logger.debug("exit_code: %s, output: \'%s\'", result.exit_code, result.output)
assert result.exit_code == 0
with ZipFile(pkg_full_name, 'r') as pkg:
infolist = pkg.infolist()
expected_zip_content = ["manifest.json"]
if context.bootloader and context.softdevice:
expected_zip_content.append("sd_bl.bin")
expected_zip_content.append("sd_bl.dat")
elif context.bootloader:
expected_zip_content.append(context.bootloader.split(".")[0] + ".bin")
expected_zip_content.append(context.bootloader.split(".")[0] + ".dat")
elif context.softdevice:
expected_zip_content.append(context.softdevice.split(".")[0] + ".bin")
expected_zip_content.append(context.softdevice.split(".")[0] + ".dat")
if context.application:
expected_zip_content.append(context.application.split(".")[0] + '.bin')
expected_zip_content.append(context.application.split(".")[0] + '.dat')
for file_information in infolist:
assert file_information.filename in expected_zip_content
assert file_information.file_size > 0
# Extract all and load json document to see if it is correct regarding to paths
pkg.extractall()
with open('manifest.json', 'r') as f:
_json = json.load(f)
if context.dfu_ver:
assert 'dfu_version' in _json['manifest']
assert _json['manifest']['dfu_version'] == context.dfu_ver
if context.bootloader and context.softdevice:
data = _json['manifest']['softdevice_bootloader']['init_packet_data']
assert_init_packet_data(context, data)
elif context.bootloader:
data = _json['manifest']['bootloader']['init_packet_data']
assert_init_packet_data(context, data)
elif context.softdevice:
data = _json['manifest']['softdevice']['init_packet_data']
assert_init_packet_data(context, data)
if context.application:
data = _json['manifest']['application']['init_packet_data']
assert_init_packet_data(context, data)
def assert_init_packet_data(context, data):
if context.application_version:
assert 'application_version' in data
assert data['application_version'] == context.application_version
if context.dev_revision:
assert 'device_revision' in data
assert data['device_revision'] == context.dev_revision
if context.dev_type:
assert 'device_type' in data
assert data['device_type'] == context.dev_type
if context.sd_req:
assert 'softdevice_req' in data
assert data['softdevice_req'] == context.sd_req
if context.ext_packet_id:
assert 'ext_packet_id' in data
assert data['ext_packet_id'] == context.ext_packet_id
if context.firmware_hash:
assert 'firmware_hash' in data
if context.init_packet_ecds:
assert 'init_packet_ecds' in data
@@ -1,64 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from Queue import Empty
import logging
import os
import time
import sys
from click.testing import CliRunner
from behave import then, given, when
from nordicsemi.__main__ import cli, int_as_text_to_int
logger = logging.getLogger(__file__)
STDOUT_TEXT_WAIT_TIME = 50 # Number of seconds to wait for expected output from stdout
@given(u'user types \'{command}\'')
def step_impl(context, command):
args = command.split(' ')
assert args[0] == 'nrfutil'
exec_args = args[1:]
runner = CliRunner()
context.runner = runner
context.args = exec_args
@then(u'output contains \'{stdout_text}\' and exit code is {exit_code}')
def step_impl(context, stdout_text, exit_code):
result = context.runner.invoke(cli, context.args)
logger.debug("exit_code: %s, output: \'%s\'", result.exit_code, result.output)
assert result.exit_code == int_as_text_to_int(exit_code)
assert result.output != None
assert result.output.find(stdout_text) >= 0
-154
View File
@@ -1,154 +0,0 @@
# Copyright (c) 2015, Nordic Semiconductor
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from random import randint
import time
import sys
import math
ON_POSIX = 'posix' in sys.builtin_module_names
def process_pipe(pipe, queue):
for line in iter(pipe.readline, b''):
queue.put({'type': 'output', 'data': line})
pipe.close()
queue.put({'type': 'output_terminated'})
def kill_process(target):
if 'proc' in target:
target['proc'].kill()
# Close file descriptors
target['proc'].stdin.close()
time.sleep(1) # Let the application terminate before proceeding
def kill_processes(context):
targets = context.target_registry.get_all()
for target in targets:
kill_process(target)
def generate_options_table_for_cucumber():
retval = ""
number_of_2_option_options = 1
number_of_3_option_options = 4
number_of_4_option_options = 1
number_of_optional_option_permutations = 1
number_of_optional_option_permutations *= int(math.pow(2, number_of_2_option_options))
number_of_optional_option_permutations *= int(math.pow(3, number_of_3_option_options))
number_of_optional_option_permutations *= int(math.pow(4, number_of_4_option_options))
for x in xrange(0, number_of_optional_option_permutations):
retval += "{0:<8}".format(" ")
retval += "| {0:<12}| {1:<29}| {2:<29}|".format("blinky.bin", "not_set", "not_set")
permutation_name = ""
options_factor = 1
option = int(x / options_factor % 3)
options_factor *= 3
permutation_name = str(option) + permutation_name
if option == 0:
retval += " {0:<8}|".format("none")
if option == 1:
retval += " {0:<8}|".format("not_set")
if option == 2:
retval += " {0:<8}|".format("0x{0:02x}".format(randint(0, 255)))
option = int(x / options_factor % 3)
options_factor *= 3
permutation_name = str(option) + permutation_name
if option == 0:
retval += " {0:<8}|".format("none")
if option == 1:
retval += " {0:<8}|".format("not_set")
if option == 2:
retval += " {0:<8}|".format("0x{0:02x}".format(randint(0, 255)))
option = int(x / options_factor % 3)
options_factor *= 3
permutation_name = str(option) + permutation_name
if option == 0:
retval += " {0:<9}|".format("none")
if option == 1:
retval += " {0:<9}|".format("not_set")
if option == 2:
retval += " {0:<9}|".format("0x{0:02x}".format(randint(0, 255)))
option = int(x / options_factor % 4)
options_factor *= 4
permutation_name = str(option) + permutation_name
if option == 0:
retval += " {0:<8}|".format("not_set")
if option == 1:
retval += " {0:<8}|".format("0.5")
if option == 2:
retval += " {0:<8}|".format("0.6")
if option == 3:
retval += " {0:<8}|".format("0.7")
option = int(x / options_factor % 3)
options_factor *= 3
permutation_name = str(option) + permutation_name
if option == 0:
retval += " {0:<28}|".format("none")
if option == 1:
retval += " {0:<28}|".format("not_set")
if option == 2:
sd_reqs = []
for i in xrange(0, randint(1, 4)):
sd_reqs.append("0x{0:04x}".format(randint(0, 65535)))
retval += " {0:<28}|".format(",".join(sd_reqs))
option = int(x / options_factor % 2)
permutation_name = str(option) + permutation_name
if option == 0:
retval += " {0:<9}|".format("not_set")
if option == 1:
retval += " {0:<9}|".format("test.pem")
retval += " {0:<15}|".format("100_{0:0>6}.zip".format(permutation_name))
retval += "\n"
return retval
Binary file not shown.
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,8 +0,0 @@
:020000040003F7
:10C00000103C0020C9EE0300E3EE0300E5EE030060
:10C010000000000000000000000000000000000020
:10C02000000000000000000000000000D5C0030078
:10C030000000000000000000E9EE0300EBEE03004A
:10C04000EDEE0300EDEE0300EDEE0300EDEE030078
:10C05000EDEE030000000000EDEE0300EDEE030046
:00000001FF
@@ -1,3 +0,0 @@
:020000040000FA
:0869100000000000000000007F
:00000001FF
@@ -1,5 +0,0 @@
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEID2WUBCe/4kLhl5ekJ+O8PtprcahUNFE3RIm5htQzDedoAoGCCqGSM49
AwEHoUQDQgAEZY2i7duYH2l9rnIg1oIXq+0/uHAF7IoFubVru6oX9GCQm67NrXIm
wgS2ErZi/0/MvRsMkIQQkNg6Wc2tbJgdTA==
-----END EC PRIVATE KEY-----