BrewPi 0.4.0/0.4.1 upgrade issue

I attempted this upgrade without success using this process:

login to brew using SSH…

And then ran the following commands:

cd ~/brewpi-tools
sudo python updater.py

The Spark now has a blank screen and a flashing centre blue light.

I haven’t changed anything in the hardware…the USB lead is still connected…I’ve rebooted both RPi and Spark several times…I’ve reset the Spark to factory and redone the upgrade but i can’t get past the “unable to connect to controller”

Here is the script:

[pi@raspberrypi / $ sudo ~/brewpi-tools/updater.py
######################################################

Welcome to the BrewPi Updater!

######################################################

Checking whether the update script is up to date
/home/pi/brewpi-tools is up-to-date.

*** Updating BrewPi script repository ***

Stopping running instances of BrewPi
Quit message sent to BrewPi instance with pid 984!
You are on branch master
The latest commit in /home/brewpi is 970fda18bc5fb1f9f7a14b6bb6abc04d82c0babe on Sat, 12 Dec 2015 12:42:00
The latest commit on origin/master is 970fda18bc5fb1f9f7a14b6bb6abc04d82c0babe on Sat, 12 Dec 2015 12:42:00
Your local version of /home/brewpi is up to date!

*** Updating BrewPi web interface repository ***
You are on branch master
The latest commit in /var/www is 3418ec082d881463aa3ef80984930c50fef70bd3 on Thu, 03 Dec 2015 17:02:58
The latest commit on origin/master is 3418ec082d881463aa3ef80984930c50fef70bd3 on Thu, 03 Dec 2015 17:02:58
Your local version of /var/www is up to date!

No changes were made, skipping runAfterUpdate.sh.
If you encounter problems, you can start it manually with:
sudo /home/brewpi/utils/runAfterUpdate.sh

The update script can automatically check your controller firmware version and program it with the latest release on GitHub, would you like to do this now? [Y/n]:Y
Stopping any running instances of BrewPi to check/update controller…

Checking current firmware version…
Dec 17 2015 12:49:41 Opening serial port
Unable to connect to controller, perhaps it is disconnected or otherwise unavailable.

*** Done updating BrewPi! ***

In case this is material…

$ sudo python /home/brewpi/autoSerial.py
All ports: ((’/dev/ttyACM0’, ‘ttyACM0’, ‘USB VID:PID=2b04:c006 SNR=00000000050C’),)
Compatible ports: ((’/dev/ttyACM0’, ‘Particle Photon’),)
Selected port: (’/dev/ttyACM0’, ‘Particle Photon’)

I set the Spark into DFU mode and attempted a direct flash…still cannot get the serial port opened…Spark screen is still blank and the light on the bottom is out…

I’ve got 5 gallons of Pale in the middle of fermenting…I guess the moral of the story is if it ain’t broke…which it wasn’t …don’t try to upgrade it!

Any ideas?

sudo python /home/brewpi/utils/flashDfu.py
Using dfu-util binary at /home/brewpi/utils/downloads/dfu-util
Detecting DFU devices
Found 1 devices: [‘2b04:d006’]
Device identified as Particle Photon
Downloading latest firmware…
Latest stable version on GitHub: 0.4.1
downloading https://github.com/BrewPi/firmware/releases/download/0.4.1/brewpi-0.4.1-photon.bin
Firmware downloaded to /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
Updated system firmware for the photon found in release 0.4.0
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part1-0.4.7-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part2-0.4.7-photon.bin
Downloaded new system firmware to:

/home/brewpi/utils/downloads/0.4.0/system-part1-0.4.7-photon.bin and

First updating system firmware for the Photon
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08020000, size = 249740

File downloaded successfully
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08060000, size = 169832

File downloaded successfully
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 85216

File downloaded successfully
Error during download get_status
Error during download get_status
Programming done
Now resetting EEPROM to defaults
Opening serial port
Dec 17 2015 15:10:57 Opening serial port
Dec 17 2015 15:11:08 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 15:11:09 Opening serial port
Dec 17 2015 15:11:19 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 15:11:20 Opening serial port
Dec 17 2015 15:11:30 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 15:11:31 Opening serial port
Dec 17 2015 15:11:41 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 15:11:42 Opening serial port
^CTraceback (most recent call last):
File “/home/brewpi/utils/flashDfu.py”, line 260, in
if programmer.open_serial(config, 57600, 0.2):
File “/home/brewpi/utils/…/programController.py”, line 332, in open_serial
self.ser = util.setupSerial(config, baud, timeout)
File “/home/brewpi/utils/…/BrewPiUtil.py”, line 138, in setupSerial
time.sleep(1)
KeyboardInterrupt

pi@raspberrypi / $ sudo python /home/brewpi/autoSerial.py
All ports: ()
Compatible ports: ()
Selected port: (None, None)

Now the Spark is flashing red…nothing I do seems to change that…In novice terms how do I recover from this?

Just to be sure, reset to factory default firmware from Particle by holding the setup button during reset for 10 seconds. It will start blinking fast. When done, your photon is flashing blue.

Enter DFU mode by holding the setup button for 5 seconds during reset.
When in DFU mode, run flashDfu.py

Keep an eye on your controller to go through the touch screen calibration when it asks for it.

When your controller is communicating with the script again, reset to factory defaults in the web interface under advanced settings.

Thanks Elco…I’ll try that and report back…

I’ve tried this 5 times and the photon flashes several different colours then when I release the button it flashes red…I’ve tried slightly les than 10 seconds and slightly more but it only ever flashes red…

That is strange. A factory reset should always be possible.

If you can still put it in DFU mode, can you try just running flashDFU.py again?

It looks like I can do that…i.e. it flashes amber after 5 secs or so and this is what I get…

$ sudo python /home/brewpi/utils/flashDfu.py

Traceback (most recent call last):
File “/home/brewpi/utils/flashDfu.py”, line 153, in
dfuUtilVersion = re.search(’(?<=dfu-util\s)\S*’, output).group()
AttributeError: ‘NoneType’ object has no attribute ‘group’

OK…I had to go to the root directory and execute the command before it works…the same as before…cannot open the serial port…

$ sudo python /home/brewpi/utils/flashDfu.py
Using dfu-util binary at /home/brewpi/utils/downloads/dfu-util
Detecting DFU devices
Did not find any DFU devices.
Is your Photon or Spark Core running in DFU mode (blinking yellow)?
Waiting until a DFU device is connected…
Found 1 devices: [‘2b04:d006’]
Device identified as Particle Photon
Downloading latest firmware…
Latest stable version on GitHub: 0.4.1
downloading https://github.com/BrewPi/firmware/releases/download/0.4.1/brewpi-0.4.1-photon.bin
Firmware downloaded to /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
Updated system firmware for the photon found in release 0.4.0
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part1-0.4.7-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part2-0.4.7-photon.bin
Downloaded new system firmware to:

/home/brewpi/utils/downloads/0.4.0/system-part1-0.4.7-photon.bin and

First updating system firmware for the Photon
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08020000, size = 249740

File downloaded successfully
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08060000, size = 169832
…dfuse_download: libusb_control_transfer returned -1
Error during download
Failed to write whole chunk: -1 of 4096 bytes
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNBUSY, status = 0
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 85216
dfuse_download: libusb_control_transfer returned -9
Error during special command download
Programming done
Now resetting EEPROM to defaults
Opening serial port
Dec 17 2015 19:20:34 Opening serial port
Dec 17 2015 19:20:44 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:20:45 Opening serial port
Dec 17 2015 19:20:55 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:20:56 Opening serial port
Dec 17 2015 19:21:06 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:21:07 Opening serial port
Dec 17 2015 19:21:17 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:21:18 Opening serial port
Dec 17 2015 19:21:29 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:21:30 Opening serial port
Dec 17 2015 19:21:40 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:21:41 Opening serial port
Dec 17 2015 19:21:51 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:21:52 Opening serial port
Dec 17 2015 19:22:02 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:22:03 Opening serial port
Dec 17 2015 19:22:13 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 19:22:14 Opening serial port
Dec 17 2015 19:22:24 Errors while opening serial port:
Could not find compatible serial devices

Could not open serial port after programming
pi@raspberrypi / $

$ sudo python /home/brewpi/autoSerial.py
All ports: ()
Compatible ports: ()
Selected port: (None, None)

Flashing the first binary was successful, but there were errors during the second and third file.

I think this is because the USB communication is unreliable. Most likely due to a bad USB cable, or if you pulled on the cable a bit too much, an unreliable connector on the photon. Third option is a too small power supply on the Pi.

Please try with a different USB cable.

I have 2 cables…This is the 2nd. Looks oike I’m getting the exact same error…

I have a 2 amp PS for both the RPi and the Spark.

$ sudo python /home/brewpi/utils/flashDfu.py
Using dfu-util binary at /home/brewpi/utils/downloads/dfu-util
Detecting DFU devices
Found 1 devices: [‘2b04:d006’]
Device identified as Particle Photon
Downloading latest firmware…
Latest stable version on GitHub: 0.4.1
downloading https://github.com/BrewPi/firmware/releases/download/0.4.1/brewpi-0.4.1-photon.bin
Firmware downloaded to /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
Updated system firmware for the photon found in release 0.4.0
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part1-0.4.7-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part2-0.4.7-photon.bin
Downloaded new system firmware to:

/home/brewpi/utils/downloads/0.4.0/system-part1-0.4.7-photon.bin and

First updating system firmware for the Photon
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08020000, size = 249740

File downloaded successfully
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08060000, size = 169832
…dfuse_download: libusb_control_transfer returned -1
Error during download
Failed to write whole chunk: -1 of 4096 bytes
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNBUSY, status = 0
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 85216
dfuse_download: libusb_control_transfer returned -9
Error during special command download
Programming done
Now resetting EEPROM to defaults
Opening serial port
Dec 17 2015 20:15:00 Opening serial port
Dec 17 2015 20:15:10 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:15:11 Opening serial port
Dec 17 2015 20:15:21 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:15:22 Opening serial port
Dec 17 2015 20:15:32 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:15:33 Opening serial port
Dec 17 2015 20:15:43 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:15:44 Opening serial port
Dec 17 2015 20:15:54 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:15:55 Opening serial port
Dec 17 2015 20:16:06 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:16:07 Opening serial port
Dec 17 2015 20:16:17 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:16:18 Opening serial port
Dec 17 2015 20:16:28 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:16:29 Opening serial port
Dec 17 2015 20:16:39 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:16:40 Opening serial port
Dec 17 2015 20:16:50 Errors while opening serial port:
Could not find compatible serial devices

Could not open serial port after programming

I’ve plugged the 2nd cable in again…wiggled it a bit in the Spark…and this looks better, I think…

Still can’t open the serial port…

$ sudo python /home/brewpi/utils/flashDfu.py
Using dfu-util binary at /home/brewpi/utils/downloads/dfu-util
Detecting DFU devices
Did not find any DFU devices.
Is your Photon or Spark Core running in DFU mode (blinking yellow)?
Waiting until a DFU device is connected…
Found 1 devices: [‘2b04:d006’]
Device identified as Particle Photon
Downloading latest firmware…
Latest stable version on GitHub: 0.4.1
downloading https://github.com/BrewPi/firmware/releases/download/0.4.1/brewpi-0.4.1-photon.bin
Firmware downloaded to /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
Updated system firmware for the photon found in release 0.4.0
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part1-0.4.7-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.4.0/system-part2-0.4.7-photon.bin
Downloaded new system firmware to:

/home/brewpi/utils/downloads/0.4.0/system-part1-0.4.7-photon.bin and

First updating system firmware for the Photon
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08020000, size = 249740

File downloaded successfully
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08060000, size = 169832

File downloaded successfully
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.4.1/brewpi-0.4.1-photon.bin
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device… ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03016Ka,01016Kg,01064Kg,07128Kg"
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 85216

File downloaded successfully
Error during download get_status
Error during download get_status
Programming done
Now resetting EEPROM to defaults
Opening serial port
Dec 17 2015 20:24:40 Opening serial port
Dec 17 2015 20:24:50 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:24:51 Opening serial port
Dec 17 2015 20:25:02 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:25:03 Opening serial port
Dec 17 2015 20:25:13 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:25:14 Opening serial port
Dec 17 2015 20:25:24 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:25:25 Opening serial port
Dec 17 2015 20:25:35 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:25:36 Opening serial port
Dec 17 2015 20:25:46 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:25:47 Opening serial port
Dec 17 2015 20:25:57 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:25:58 Opening serial port
Dec 17 2015 20:26:08 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:26:09 Opening serial port
Dec 17 2015 20:26:19 Errors while opening serial port:
Could not find compatible serial devices

Dec 17 2015 20:26:20 Opening serial port
Dec 17 2015 20:26:31 Errors while opening serial port:
Could not find compatible serial devices

Could not open serial port after programming

Ok, at least that looks like it flashed correctly.

That does confirm my suspicion of the Photon’s USB port. I think if you reset the BrewPi Spark and then use the factory defaults button in the web interface, it will be updated correctly. However, the USB port will remain unreliable.

It does look like that port is a tad unreliable…

How do I reset the BrewPi Spark?
Presumably the web interface is the RPi?

Thanks for the help, Elco…/David

I’ve rebooted the Spark…and there are no beeps…and the screen is blank…and the LED is a solid red…

It sounds like it is a good idea to replace that Photon anyway. At least for the USB port.

Could you send it back for investigation? I can ship you a new one.

Sure…happy to do that tomorrow…what address shall I send it to? Shall I send the whole unit?

Just the photon is enough, so you can use a envelope that fits through the mail slot.
Address is listed here: https://store.brewpi.com/about-brewpi