Hi, could use a little help with a firmware update problem.
The output below is from a new clean install of brewpi on a raspberry pi 3 and new / never used spark v2
The update seems to download and install part 1 ok and then ‘hangs’ sending the first byte of part 2.
Thanks in advance for any assistance.
Greg
brewpi@rasp-pi3:~/utils$ python updateFirmware.py
Stopping any running instances of BrewPi to check/update controller…
Checking current firmware version…
Jul 05 2018 11:35:28 Background thread for serial started
Jul 05 2018 11:35:28 Serial (re)connected for Photon with WiFi [00000000050C] at port: ttyACM0
Jul 05 2018 11:35:30 Background thread for serial stopped
Current firmware version on controller: 0.4.3
Checking GitHub for available release…
Available releases:
[0] 0.5.5
[1] 0.5.2
[2] 0.5.1
[3] 0.5.0
[4] 0.4.4
[5] 0.4.3
[6] 0.4.2
[7] 0.4.1
[8] 0.4.0
[9] 0.2.11
[10] Cancel firmware update
Enter the number [0-10] of the version you want to program [default = 0 (0.5.5)] : 0
Would you like me to try to restore you settings after programming? [Y/n]:
n
Would you like me to try to restore your configured devices after programming? [Y/n]:
n
Downloading firmware…
downloading https://github.com/BrewPi/firmware/releases/download/0.5.5/brewpi-ph oton-0.5.5.bin
Updated system firmware for the photon found in release 0.5.5
downloading https://github.com/BrewPi/firmware/releases/download/0.5.5/system-pa rt1-0.8.0-rc.3-photon.bin
downloading https://github.com/BrewPi/firmware/releases/download/0.5.5/system-pa rt2-0.8.0-rc.3-photon.bin
Downloaded new system firmware to:
/home/brewpi/utils/downloads/0.5.5/system-part1-0.8.0-rc.3-photon.bin
and
/home/brewpi/utils/downloads/0.5.5/system-part2-0.8.0-rc.3-photon.bin
Latest firmware downloaded to:
/home/brewpi/utils/downloads/0.5.5/brewpi-photon-0.5.5.bin
Updating firmware…
**** Photon Program script started ****
Settings will not be restored
Devices will not be restored
Jul 05 2018 11:35:55 Background thread for serial started
Jul 05 2018 11:35:55 Background thread for serial stopped
Jul 05 2018 11:35:55 Opening serial port
Flashing system part 1.
Triggering a firmware update with the ymodem protocol on the controller
Flashing file /home/brewpi/utils/downloads/0.5.5/system-part1-0.8.0-rc.3-photon. bin
File flashed successfully
Waiting 15 seconds for device to reset and come back as serial port.
15/15
Jul 05 2018 12:07:39 Opening serial port
Flashing system part 2.
Triggering a firmware update with the ymodem protocol on the controller
Flashing file /home/brewpi/utils/downloads/0.5.5/system-part2-0.8.0-rc.3-photon. bin
Traceback (most recent call last):
File “updateFirmware.py”, line 265, in
result = updateFromGitHub(userInput=userInput, beta=beta, useDfu=useDfu)
File “updateFirmware.py”, line 236, in updateFromGitHub
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/utils/…/programController.py”, line 169, in programControl ler
return programmer.program(hexFile, system1File, system2File, useDfu, restore What)
File “/home/brewpi/utils/…/programController.py”, line 261, in program
if not self.flash_file(system2File):
File “/home/brewpi/utils/…/programController.py”, line 578, in flash_file
result = LightYModem().transfer(file, self.ser, stderr)
File “/home/brewpi/utils/…/programController.py”, line 155, in transfer
response = self.send_packet(binFile, output)
File “/home/brewpi/utils/…/programController.py”, line 130, in send_packet
response = self._send_ymodem_packet(data) # resend requested
File “/home/brewpi/utils/…/programController.py”, line 109, in _send_ymodem_p acket
response = self._read_response()
File “/home/brewpi/utils/…/programController.py”, line 87, in _read_response
ch1 = self.ymodem.read(1)
File “/usr/local/lib/python2.7/dist-packages/serial/serialposix.py”, line 501, in read
'device reports readiness to read but returned no data ’
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
brewpi@rasp-pi3:~/utils$