I just received a new Photon because of a defect in my original, and through reading the forums I need to flash it first before I can use it. I’ve been trying to run /home/brewpi/utils/flashDfu.py and haven’t had any success. I’ve tried a number of different USB cables (including two brand new ones I have), powering the brewpi from power supply in addition to USB power, making sure the USB is inserted all the way and various different serial port settings in settings/default.cfg (port = auto, port = /dev/ttyACM0, port = /dev/ttyACM1) with no luck. Below is my default.cfg output at the moment.
scriptPath = /home/brewpi/
wwwPath = /var/www/
port = auto
altport = None
boardType = l
beerName = My First BrewPi Run
interval = 120.0
dataLogging = active
I know that it detects then Particle Photon device while in DFUMode, but it looks like after downloading the firmware its cannot connect to the device. Below is my output.
$ python flashDfu.py
Detecting DFU devices
Found 1 devices: ['2b04:d006']
Device identified as Particle Photon
Downloading latest firmware...
Latest stable version on GitHub: 0.2.11
downloading https://github.com/BrewPi/firmware/releases/download/0.2.11/brewpi-0.2.11-photon.bin
Firmware downloaded to /home/brewpi/utils/downloads/0.2.11/brewpi-0.2.11-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.2.11/system-part1-09dd809-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.2.11/system-part2-09dd809-photon.bin
Release contains updated system firmware for the photon
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
Cannot open device
Opening DFU capable USB device... 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
Cannot open device
Opening DFU capable USB device... Now writing BrewPi firmware /home/brewpi/utils/downloads/0.2.11/brewpi-0.2.11-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
Cannot open device
Opening DFU capable USB device... Programming done, now resetting EEPROM to defaults
Opening serial port
Nov 09 2015 23:48:24 Opening serial port
Nov 09 2015 23:48:34 Errors while opening serial port:
Could not find compatible serial devices
Nov 09 2015 23:48:35 Opening serial port
Nov 09 2015 23:48:45 Errors while opening serial port:
Could not find compatible serial devices
Nov 09 2015 23:48:46 Opening serial port
Nov 09 2015 23:48:56 Errors while opening serial port:
Could not find compatible serial devices
Nov 09 2015 23:48:57 Opening serial port
Nov 09 2015 23:49:07 Errors while opening serial port:
Could not find compatible serial devices
Nov 09 2015 23:49:08 Opening serial port
Nov 09 2015 23:49:18 Errors while opening serial port:
Could not find compatible serial devices
Nov 09 2015 23:49:19 Opening serial port
^CTraceback (most recent call last):
File "flashDfu.py", line 194, in <module>
if programmer.open_serial(config, 57600, 0.2):
File "/home/brewpi/utils/../programController.py", line 287, in open_serial
self.ser = util.setupSerial(config, baud, timeout)
File "/home/brewpi/utils/../BrewPiUtil.py", line 138, in setupSerial
time.sleep(1)
KeyboardInterrupt