Photon upgrade problem

I’ve been using my BrewPi system for a while last year then nothing for several months. I fired it up yesterday for a new brew. Had some issues with controlling the devices, which I fixed. Then the heating SSR when closed circuit - (always on). That’s been replaced. Was working for an hour or so then the screen went blank. I think I rebooted it, after that nothing so…

After pursuing the forum and trying a few things…none of which worked I set the photon back to factory then have been attempting to flash the latest software…to no avail…The photon doesn’t behave consistently when getting into flash mode…Sometime the yellow flashes come on…other times I can’t get it into learn mode.

When I can get it into learn mode and attempt a flash this is what happens:
(I’ve tried this a number of times and with a couple of alternate USB cables, one of which I’ve been using for months successfully. I also have the Photon plugged into a separate power supply. Basically nothing has changed until the white screen then the inability to flash the latest firmware).

pi@raspberrypi /home/brewpi $ 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.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
…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.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 = 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 = 86820
dfuse_download: libusb_control_transfer returned -9
Error during special command download
Programming done
Now resetting EEPROM to defaults
Opening serial port
Nov 06 2016 13:23:09 Opening serial port
Nov 06 2016 13:23:19 Errors while opening serial port:
Could not find compatible serial devices

Nov 06 2016 13:23:20 Opening serial port
Nov 06 2016 13:23:30 Errors while opening serial port:
Could not find compatible serial devices

Have bought a new USB cable and tried again…and the download is successful…still get apparent errors though…

pi@raspberrypi /home/brewpi $ 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.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
Nov 06 2016 14:16:39 Opening serial port
Nov 06 2016 14:16:49 Errors while opening serial port:
Could not find compatible serial devices

Nov 06 2016 14:16:50 Opening serial port
Nov 06 2016 14:17:00 Errors while opening serial port:
Could not find compatible serial devices

Does it beep twice when it starts?

The last log seems successful. Just a wild guess, but how are you powering the raspberry pi? Maybe low power there could cause trouble. Do you have your sensors and SSRs disconnected when trying?

No…it does not start…still has the blank screen…the RPI. and the Spark are powered by separate supplies…they are connected by a new USB cable…which seems to have been the solution to the problematic download although why the old cable should be a problem after all this time is beyond me…the Spark has no sensors connected nor any of the SSR output cables…

After it powers up there us only the small blue light…I can set it info blinking yellow mode easily and attempt the flash again but I get the same thing…

I’ve ordered a new Photon as it seems that is the most likely culprit but…as far as this one is concerned I am lost.

The flashing blue light sounds like the default blink program that comes with the factory default firmware.
What I would try is this:

  • Reset the photon to factory firmware: hold the setup button and reset. It will start flashing yellow (DFU mode). Keep holding the setup button until it starts flashing white. Wait until the white flashing is over. You are now back to factory firmware.
  • Remove all previous downloads from the pi to be sure it’s not a corrupt download causing the trouble:
    sudo rm -R /home/brewpi/utils/downloads
  • Run flashDfu again

That’s the main LED which is unlit…The one that’s blue, which is the only lit LED is the small blue LED underneath the right reset button.

I’ve tried resetting using your first instruction, several times.

  1. I get white flash, yellow flashing, green flashing, white flashing…then I release the button and get white flash, red SOS, red flash, red SOS, white flash, red flash, red SOS, red flash, red SOS.

  2. I try again and it goes straight into red, white, red SOS, red, red SOS - repeat.

  3. try again and I get sequence No. 1…then sometimes it freezes on green…

Mostly it just flashes red, red SOS, white, red, red SOS repeatedly which seems to indicate a hardware failure.

I can get it into DFU mode…so I removed all previous downloads…and ran
sudo python /home/brewpi/utils/flashDfu.py and get this…

pi@raspberrypi /home $ sudo python /home/brewpi/utils/flashDfu.py
dfu-util not found, downloading dfu-util…
downloading http://dfu-util.sourceforge.net/releases/dfu-util-0.7-binaries/linux-armel/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.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
Nov 06 2016 23:46:52 Opening serial port
Nov 06 2016 23:47:02 Errors while opening serial port:
Could not find compatible serial devices

pretty much same as before.

Now my Spark has gone back to it’s original state with just the tiny right hand led glowing blue.

…and still the screen is blank and I get no sounds on rebooting.

That tiny blue LED is D7…nothing else is lit.

That does sound like an issue with the photon. Can you identify which SOS code you get?

Where SOS is dot dot dot dash dash dash dot dot dot, I get:

white flash, red SOS, red flash, red SOS, white flash, red flash, red SOS, red flash, red SOS.

I don’t know how better to describe it. I don’t have a list of SOS codes from which to select the meaning…sorry.

I’ll try and upload a video of the LEDs.

After a night of being switched off I now cant get the LED to flash red so I’m interpreting this as a good thing…I’ve followed your instructions

  • Reset the photon to factory firmware: hold the setup button and reset. It will start flashing yellow (DFU mode). Keep holding the setup button until it starts flashing white. Wait until the white flashing is over. You are now back to factory firmware.
  • Remove all previous downloads from the pi to be sure it’s not a corrupt download causing the trouble:
    From pi@raspberrypi - pls confirm this is correct
    sudo rm -R /home/brewpi/utils/downloads
  • Run flashDfu again
    From pi@raspberrypi/home/brewpi - pls confirm this is correct
    sudo python /home/brewpi/utils/flashDfu.py

I get this: (still flashing yellow, can’t find serial port, blank screen and no beeps when restarting)

pi@raspberrypi /home/brewpi $ sudo python /home/brewpi/utils/flashDfu.py
dfu-util not found, downloading dfu-util…
downloading http://dfu-util.sourceforge.net/releases/dfu-util-0.7-binaries/linux-armel/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.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
Nov 07 2016 08:29:35 Opening serial port
Nov 07 2016 08:29:45 Errors while opening serial port:
Could not find compatible serial devices

Starting state

http://i1032.photobucket.com/albums/a405/fatbaldingoldgit/IMG_1578.jpg

Reset

http://vid1032.photobucket.com/albums/a405/fatbaldingoldgit/Photon%20reset.mp4

I’m now stuck in blinking yellow / DFU mode.
Seems to me like the USB port is suspect because it can’t write the new firmware to the Photon.
Could it be a driver problem or is it a hardware issue?

http://vid1032.photobucket.com/albums/a405/fatbaldingoldgit/DFU%20mode.mp4

I think I may have control now…have the main LED flashing blue…after following instructions here while connecting the Photon directly to my Mac:

more later…fingers crossed

OK…so put this into DFU mode again and ran

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

Got this: (still no serial port access, screen is blank, no beeps on startup and the LED is flashing red
red, red SOS, red, red SOS etc…

back to square one…

pi@raspberrypi /home/brewpi $ sudo python /home/brewpi/utils/flashDfu.py
dfu-util not found, downloading dfu-util…
downloading http://dfu-util.sourceforge.net/releases/dfu-util-0.7-binaries/linux-armel/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.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
…dfuse_download: libusb_control_transfer returned -1
Error during download
Failed to write whole chunk: -1 of 4096 bytes
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 = 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 = 0x08060000, size = 181428
dfuse_download: libusb_control_transfer returned -9
Error during special command download
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
Nov 07 2016 12:31:19 Opening serial port
Nov 07 2016 12:31:29 Errors while opening serial port:
Could not find compatible serial dev

So…summary so far.
Accessing the Spark and Photon via my Mac USB I can load firmware, connect to it via my iPhone, upgrade the firmware via my Mac.
I can do everything on the Photon that Particle say I should be able to do.
Accessing it via my RPi I can download the latest Brewpi firmware but it fails at the point where the USB port is accessed.

I’m stumped…thoughts anyone?

After you have flashed it via DFU on the pi, is it running BrewPi? Do you see stuff on the screen? Does it beep twice at startup?

The DFU uploads seem to succeed, so it looks like there is nothing wrong with the USB communication.

No…nothing on the screen and no beeps.

What is the significance of the serial port failure?

What do you think is the issue?..do you need more information?

I don’t think the serial port failure is the main issue here. If the controller doesn’t run properly, the serial port will not work either. Your new photon will be delivered tomorrow probably. Will be good to know whether that fixes it.

Then I think it would be good if I can get my hands on the broken photon to investigate.

Fedex tried to deliver this morning but we were out…being delivered tomorrow…should be able to hook it up later tomorrow to test. I think I’ve now got the Photon into base Particle delivered mode…No problem with doing that, curiously…I’ve even connected via Wifi and upgraded the firmware.

For now I’ve hooked up my duplicate RPI…currently upgrading to latest RPI code and firmware…then I’ll try and refresh the photon with the latest Brewpi code and firmware…see if I get stuck the same way again.

This issue seems very similar to the last time we replaced the Photon and I sent that one back for investigation. What was wrong with that one?..Maybe something to learn from that?

Assuming I have no luck using a different RPi and reflashing I’ll send this Photon back for investigation.

*** SUCCESS ***

OK…so with my duplicate RPi and my Photon in base Particle mode
I ran these:

sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
sudo reboot
sudo ~/brewpi-tools/updater.py
cd ~
wget http://dfu-util.sourceforge.net/releases/dfu-util-0.7-binaries/linux-armel/dfu-util
sudo chmod 777 dfu-util
cd /home/brewpi/utils
sudo python flashDfu.py

and I got this:
pi@raspberrypi /home/brewpi/utils $ sudo python flashDfu.py
dfu-util not found, downloading dfu-util…
downloading http://dfu-util.sourceforge.net/releases/dfu-util-0.7-binaries/linux-armel/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.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
Nov 08 2016 16:19:52 Opening serial port
Success! Found BrewPi v0.4.3 build 0.4.3-0-g4d00879, running on a Particle Photon with a V2 shield on port /dev/ttyACM0

Resetting EEPROM to default settings
INFO MESSAGE 15: EEPROM initialized

My Spark screen is now running in hardware test mode and it rebooted with 2 beeps.

Now to hook it all up to the sensors and see where my Galaxy singe hop has got to.

So…what does all this mean?..