UpdateFirmware.py FAILED (White screen) [Solved]

I went to update my firmware today by running updateFirmware.py First it failed because on line 115 of updateFirmware.py, the word “Spark” needed to be changed to “Particle” (read that in another thread).
Then I ran updateFirmware.py again and this time it failed because it could not configure port.
Also, now my controller has a grey screen and I can’t make any connection now.

Here’s the last log…please help!
Thank you!

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

Stopping any
running instances of BrewPi to check/update controller…

Checking current
firmware version…
Dec 26 2015 15:07:54
Opening serial port
Current firmware
version on controller: 0.2.11

Checking GitHub for
latest release…
Latest version on
GitHub: 0.4.2

Version on GitHub is
newer than your current version, downloading new version…
Downloading latest
firmware…
downloading
https://github.com/BrewPi/firmware/releases/download/0.4.2/brewpi-0.4.2-photon.bin
Latest firmware
downloaded to
/home/brewpi/utils/downloads/0.4.2/brewpi-0.4.2-photon.bin
**** Photon
Program script started ****
Settings will be
restored if possible
Devices will be
restored if possible
Dec 26 2015 15:07:56
Opening serial port
Checking old
version before programming.
Checking current
version: Found BrewPi v0.2.11 build 0.2.11-0-ga28c22d, running on a
Particle Photon with a V2 shield on port /dev/ttyACM0

Requesting old
settings from Photon…
Saved old settings
to file settings-Dec-26-2015-15-07-59.json

sent packet nr 0

sent packet nr 1

sent packet nr 2

sent packet nr 3

sent packet nr 4

sent packet nr 5

sent packet nr 6

sent packet nr 7

sent packet nr 8

sent packet nr 9

sent packet nr 10

sent packet nr 11

sent packet nr 12

sent packet nr 13

sent packet nr 14

sent packet nr 15

sent packet nr 16

sent packet nr 17

sent packet nr 18

sent packet nr 19

sent packet nr 20

sent packet nr 21

sent packet nr 22

sent packet nr 23

sent packet nr 24

sent packet nr 25

sent packet nr 26

sent packet nr 27

sent packet nr 28

sent packet nr 29

sent packet nr 30

sent packet nr 31

sent packet nr 32

sent packet nr 33

sent packet nr 34

sent packet nr 35

sent packet nr 36

sent packet nr 37

sent packet nr 38

sent packet nr 39

sent packet nr 40

sent packet nr 41

sent packet nr 42

sent packet nr 43

sent packet nr 44

sent packet nr 45

sent packet nr 46

sent packet nr 47

sent packet nr 48

sent packet nr 49

sent packet nr 50

sent packet nr 51

sent packet nr 52

sent packet nr 53

sent packet nr 54

sent packet nr 55

sent packet nr 56

sent packet nr 57

sent packet nr 58

sent packet nr 59

sent packet nr 60

sent packet nr 61

sent packet nr 62

sent packet nr 63

sent packet nr 64

sent packet nr 65

sent packet nr 66

sent packet nr 67

sent packet nr 68

sent packet nr 69

sent packet nr 70

sent packet nr 71

sent packet nr 72

sent packet nr 73

sent packet nr 74

sent packet nr 75

sent packet nr 76

sent packet nr 77

sent packet nr 78

sent packet nr 79

sent packet nr 80

sent packet nr 81

sent packet nr 82

sent packet nr 83

sent packet nr 84

sent packet nr 0

File flashed
successfully
Waiting for device
to reset.
Dec 26 2015 15:08:02
Opening serial port
Traceback (most
recent call last):
File
"updateFirmware.py", line 144, in
result =
updateFromGitHub(userInput)
File
"updateFirmware.py", line 124, in updateFromGitHub
{‘settings’:
restoreSettings, ‘devices’: restoreDevices})
File
"/home/brewpi/utils/…/programController.py", line 160, in
programController
return
programmer.program(hexFile, restoreWhat)
File
"/home/brewpi/utils/…/programController.py", line 228, in
program

self.fetch_new_version()
File
"/home/brewpi/utils/…/programController.py", line 311, in
fetch_new_version
self.versionNew
= self.fetch_version(“Checking new version: “)
File
”/home/brewpi/utils/…/programController.py”, line 296, in
fetch_version
version =
brewpiVersion.getVersionFromSerial(self.ser)
File
"/home/brewpi/utils/…/brewpiVersion.py", line 29, in
getVersionFromSerial

ser.setTimeout(1)
File
"/usr/local/lib/python2.7/dist-packages/serial/serialutil.py",
line 402, in setTimeout
if self._isOpen:
self._reconfigurePort()
File
"/usr/local/lib/python2.7/dist-packages/serial/serialposix.py",
line 325, in _reconfigurePort
raise
SerialException(“Could not configure port: %s” % msg)
serial.serialutil.SerialException:
Could not configure port: (5, ‘Input/output error’)
rdh@YeastFeast:/home/brewpi/utils$

It sounds like you are trying to work with an outdated version of the script and are making changes to fix things that I have already fixed.

Please run updater.py first to update the python scripts and update the firmware last.

Because you did not use the latest version, you did not update the system firmware, only the user part. This is why you now have a white screen.

To fix this, you will have to put your Photon in DFU mode and run flashDfu.py. (after running updater.py)

Think I’m good now.

I did this:
1.) Ran updater.py
2.) Jammed two micro screwdrivers into the RESET & SETUP holes of my BrewPi Spark v2 Photon box until the status LED light turned from blue to yellow (gets you into DFU mode).
3.) Ran flashDfu.py script.

Looks like it’s in test mode now (which is the first I’ve seen of this) but might be helpful when I finally get around to connecting my fridge up to this thing.

Yes, test mode is the new default mode after a settins reset. As soon as you apply a beer or fridge setpoint it will go out of test mode. It is useful when you are connecting your sensors and SSRs to see whether they work.