Page MenuHomeAleph Objects Inc

Firmware flash failures under Linux
Closed, ResolvedPublic

Description

Firmware upgrade occasionally fails with error "Firmware update failed due to a communications error." The log shows the following:

2017-06-30 13:35:34,774 - DEBUG - USBPrinting.USBPrinterOutputDeviceManager.getDefaultFirmwareName [212]: Found firmware for machine lulzbot_taz6_dual_v2.
2017-06-30 13:35:34,774 - DEBUG - USBPrinting.USBPrinterOutputDeviceManager.getDefaultFirmwareName [212]: Found firmware for machine lulzbot_taz6_dual_v2.
2017-06-30 13:35:42,766 - DEBUG - AutoSave.AutoSave._onTimeout [48]: Autosaving preferences, instances and profiles
2017-06-30 13:36:38,271 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyUSB0: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:39,909 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyACM1: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:41,519 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyACM0: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:43,158 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/serial/by-id/usb-UltiMachineultimachine.comRAMBo_74037343536351B01101-if00: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:44,866 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:46,475 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/serial/by-id/usb-UltiMachineultimachine.comRAMBo_5553334363735150B012-if00: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:46,476 - INFO - USBPrinting.USBPrinterOutputDevice.updateFirmware [363]: Updating firmware of None using /home/aleph/git-repos/marlin-unified/Marlin/build/Marlin_oliveoil-universal-Yellowfin_Dual_v1.0.2.22_d9c5bf94.hex
2017-06-30 13:36:46,477 - DEBUG - USBPrinting.USBPrinterOutputDevice._updateFirmware [269]: Attempting to update firmware
QXcbConnection: XCB error: 3 (BadWindow), sequence: 3385, resource id: 11285907, major code: 40 (TranslateCoords), minor code: 0
2017-06-30 13:36:47,668 - ERROR - USBPrinting.USBPrinterOutputDevice._updateFirmware [296]: Unable to connect with serial. Could not update firmware
2017-06-30 13:36:47,676 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [418]: Attempting to connect to None
2017-06-30 13:36:49,386 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyUSB0: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:51,024 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyACM1: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:52,632 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyACM0: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:54,271 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/serial/by-id/usb-UltiMachineultimachine.comRAMBo_74037343536351B01101-if00: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:55,978 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0: 'Timeout'. Device is not arduino based.
2017-06-30 13:36:57,588 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/serial/by-id/usb-UltiMachineultimachine.comRAMBo_5553334363735150B012-if00: 'Timeout'. Device is not arduino based.

Event Timeline

marcio created this task.Jun 30 2017, 1:43 PM

Printer reboots after the failure.

I saw same issue on my system:

2017-06-30 14:06:50,948 - ERROR - USBPrinting.USBPrinterOutputDevice._updateFirmware [296]: Unable to connect with serial. Could not update firmware
2017-06-30 14:06:50,950 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [418]: Attempting to connect to None
2017-06-30 14:06:52,183 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [443]: Attempting to connect to printer with serial /dev/ttyACM1 on baud rate 250000
2017-06-30 14:06:54,276 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [468]: Correct response for connection
2017-06-30 14:06:54,277 - INFO - USBPrinting.USBPrinterOutputDevice._listen [664]: Printer connection listen thread started for /dev/ttyACM1
2017-06-30 14:06:54,277 - INFO - USBPrinting.USBPrinterOutputDevice._connect_thread_function [473]: Established printer connection on port /dev/ttyACM1
QXcbConnection: XCB error: 3 (BadWindow), sequence: 50455, resource id: 11640768, major code: 40 (TranslateCoords), minor code: 0
2017-06-30 14:07:00,508 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyACM1: 'Timeout'. Device is not arduino based.
2017-06-30 14:07:01,112 - ERROR - USBPrinting.USBPrinterOutputDevice._readline [963]: Unexpected error while reading serial port. read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2017-06-30 14:07:01,113 - DEBUG - USBPrinting.USBPrinterOutputDevice._close [543]: Closing the USB printer connection.
2017-06-30 14:07:01,114 - DEBUG - UM.Qt.QtApplication.preventComputerFromSleeping [415]: Prevent computer from sleeping? False
2017-06-30 14:07:01,133 - INFO - USBPrinting.USBPrinterOutputDevice.updateFirmware [363]: Updating firmware of /dev/serial/by-id/usb-UltiMachineultimachine.comRAMBo_55539333937351516281-if00 using /usr/share/cura2/resources/firmware/TAZ6_Single_Extruder_v1.0.2.22.hex
2017-06-30 14:07:01,133 - DEBUG - USBPrinting.USBPrinterOutputDevice._updateFirmware [269]: Attempting to update firmware
2017-06-30 14:07:01,134 - DEBUG - USBPrinting.USBPrinterOutputDevice._close [543]: Closing the USB printer connection.
2017-06-30 14:07:01,136 - DEBUG - UM.Qt.QtApplication.preventComputerFromSleeping [415]: Prevent computer from sleeping? False
2017-06-30 14:07:01,150 - WARNING - UM.Qt.Bindings.Theme.getIcon [70]: No icon tab_status_stopped defined in Theme
2017-06-30 14:07:01,158 - INFO - USBPrinting.USBPrinterOutputDevice._listen [776]: Printer connection listen thread stopped for None
2017-06-30 14:07:01,173 - WARNING - UM.Qt.Bindings.Theme.getIcon [70]: No icon tab_status_connected defined in Theme
2017-06-30 14:07:02,392 - ERROR - USBPrinting.USBPrinterOutputDevice._updateFirmware [296]: Unable to connect with serial. Could not update firmware
2017-06-30 14:07:02,396 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [418]: Attempting to connect to None
2017-06-30 14:07:03,632 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [443]: Attempting to connect to printer with serial /dev/ttyACM1 on baud rate 250000
2017-06-30 14:07:05,725 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [468]: Correct response for connection
2017-06-30 14:07:05,726 - INFO - USBPrinting.USBPrinterOutputDevice._listen [664]: Printer connection listen thread started for /dev/ttyACM1
2017-06-30 14:07:05,726 - INFO - USBPrinting.USBPrinterOutputDevice._connect_thread_function [473]: Established printer connection on port /dev/ttyACM1
2017-06-30 14:07:08,391 - ERROR - USBPrinting.USBPrinterOutputDevice._readline [963]: Unexpected error while reading serial port. read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2017-06-30 14:07:08,391 - DEBUG - USBPrinting.USBPrinterOutputDevice._close [543]: Closing the USB printer connection.
2017-06-30 14:07:08,393 - DEBUG - UM.Qt.QtApplication.preventComputerFromSleeping [415]: Prevent computer from sleeping? False
2017-06-30 14:07:08,425 - INFO - USBPrinting.USBPrinterOutputDevice._listen [776]: Printer connection listen thread stopped for None
2017-06-30 14:07:09,403 - INFO - USBPrinting.USBPrinterOutputDevice._detectSerialPort [407]: Could not establish connection on /dev/ttyACM1: 'Timeout'. Device is not arduino based.
2017-06-30 14:07:10,018 - INFO - USBPrinting.USBPrinterOutputDevice.updateFirmware [363]: Updating firmware of /dev/serial/by-id/usb-UltiMachineultimachine.comRAMBo_55539333937351516281-if00 using /usr/share/cura2/resources/firmware/TAZ6_Single_Extruder_v1.0.2.22.hex
2017-06-30 14:07:10,019 - DEBUG - USBPrinting.USBPrinterOutputDevice._updateFirmware [269]: Attempting to update firmware
2017-06-30 14:07:10,222 - WARNING - UM.Qt.Bindings.Theme.getIcon [70]: No icon tab_status_connected defined in Theme
2017-06-30 14:07:10,224 - WARNING - UM.Qt.Bindings.Theme.getIcon [70]: No icon tab_status_connected defined in Theme
2017-06-30 14:07:11,852 - DEBUG - USBPrinting.avr_isp.ispBase.programChip [26]: Flashing 157756 bytes
2017-06-30 14:07:11,853 - DEBUG - USBPrinting.avr_isp.stk500v2.writeFlash [90]: Writing flash
2017-06-30 14:07:34,582 - DEBUG - USBPrinting.avr_isp.ispBase.programChip [28]: Verifying 157756 bytes
2017-06-30 14:07:52,195 - DEBUG - USBPrinting.avr_isp.ispBase.programChip [30]: Completed
2017-06-30 14:07:52,197 - DEBUG - UM.Qt.QtApplication.preventComputerFromSleeping [415]: Prevent computer from sleeping? False
2017-06-30 14:07:52,253 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [418]: Attempting to connect to None
2017-06-30 14:07:53,486 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [443]: Attempting to connect to printer with serial /dev/ttyACM1 on baud rate 250000
2017-06-30 14:07:55,579 - DEBUG - USBPrinting.USBPrinterOutputDevice._connect_thread_function [468]: Correct response for connection

alexei triaged this task as High priority.
alexei added subscribers: victor_larchenko, alexei.
victor_larchenko closed this task as Resolved.Jul 4 2017, 2:17 AM