Skip to content

An example application written in Python, developed to implement Cypress's Device Firmware Update (DFU) host protocol and send a new firmware image to a target device.

Notifications You must be signed in to change notification settings

eewiki/psoc_ble_ota_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Usage

This application depends on the bluepy and crcmod packages, so be sure they are installed in your environment. By default, the application expects a virtual environment to be setup as follows:

$ sudo apt install python3-venv python3-pip libglib2.0-dev
$ python3 -m venv env
$. env/bin/activate
(env) $ python3 -m pip install bluepy crcmod
(env) $ deactivate

Setting up the environment in a different manner may require the first line of the update.py file to be modified. The usage of the application is as follows:

$ update.py application_file [target_MAC_address]

The first argument is required and is the path to the application image file. The second argument is optional. If the MAC address of the target device is known, the user can provide it here and skip the process of scanning for available devices. If the second argument is not provided, the application will present the user with a list of available BLE devices from which the user must choose a device to update.

Documentation

See the article PSoC Device Firmware Updates with Python for more information.

About

An example application written in Python, developed to implement Cypress's Device Firmware Update (DFU) host protocol and send a new firmware image to a target device.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages