Photon firmware loads successfully but can't read back

Hi all.

I had a load of bits left over at home so have made myself a Brewpi Spark board. I’m using a particle photon rather than a spark core and when I update the firmware, it loads fine but says at the end that it can’t read a version number.

Any ideas?

It is connected directly to Raspberry Pi 2 via USB and the USB connection all looks fine. I’ve also tried multiple leads. Output from update is below.

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

/home/brewpi/utils/downloads/0.4.3/system-part1-0.4.9-photon.bin and

/home/brewpi/utils/downloads/0.4.3/system-part2-0.4.9-photon.bin

First updating system firmware for the Photon, part 1: /home/brewpi/utils/downloads/0.4.3/system-part1-0.4.9-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 = 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 = 249916

File downloaded successfully
Continuing updating system firmware for the Photon, part 2: /home/brewpi/utils/downloads/0.4.3/system-part2-0.4.9-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 = 0x08060000, size = 181428

File downloaded successfully
Now writing BrewPi firmware /home/brewpi/utils/downloads/0.4.3/brewpi-photon-0.4.3.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 = 86820

File downloaded successfully
Programming done
Now resetting EEPROM to defaults
Opening serial port
Jul 11 2016 11:12:11 Opening serial port
Warning: Cannot receive version number from controller. Your controller is either not programmed yet or running a very old version of BrewPi. It will be reset to defaults.
Resetting EEPROM to default settings
pi@raspberrypi:/home/brewpi/utils $

This did actually seem to work at one point and I had the testing screen on my LCD screen where I could turn on the 3 actuators I have and I also had the Testing appear in my brewpi web page. I didn’t have the temp probes plugged in at the time so they weren’t showing. Unfortunately, I accidentally reset the device and it went back to this.

The screen also shows the brewpi logo and just a small message saying to tap to re-calibrate but it doesn’t do anything. I tested and calibrated the screen when I fired it up for the first time so I know that is ok.

Brewpi on the Raspberry pi won’t start the scripts as it says it can’t get the firmware version from the device.

Thanks,
Rich

I seem to have fixed this… I had a couple of bad joints on my Shield which must have been preventing it running properly.

I now need to do a real world test. Both temp sensors are working fine. I am a little worried that I don’t seem to be getting 5v through act 1 2 and 3. I only seem to be able to get 5v through 1 and 3.

Will attach my SSR and fridge tomorrow and test to see if it works. If not, find out why the outputs aren’t working correctly. That’s down to my home made shield though!