This version is outdated by a newer approved version.DiffThis version (2017/08/01 08:51) is a draft.
Approvals: 0/1

This is an old revision of the document!

Updating system firmware with DFU

The firmware on the BrewPi Spark with a Photon or P1 consists of 2 layers:

  • The BrewPi application
  • The Particle system framework

If you want to update to a version of BrewPi that requires a new system framework, you need to update over USB in DFU mode. This can be done with our python script.

If you have installed BrewPi using docker, you probably did not start the container with USB forwarding. That's okay, we don't need to use your existing container to update the firmware, we can just create another one for the update and destroy it afterwards.

For a raspberry pi, ssh into your docker host (use putty if you are on windows):

ssh pirate@

Make sure you have the latest docker image:

docker pull brewpi/brewpi-raspbian

Confirm that the BrewPi Spark is on serial port /dev/ttyACM0

ls /dev/ttyA*

We can start a docker container for single use that is destroyed afterwards (–rm) and run the script directly:

docker run --name brewpi-dfu --rm  -–device=/dev/ttyACM0:/dev/ttyACM0 brewpi/brewpi-raspbian python utils/ --tag=0.5.3