guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.49k stars 368 forks source link

OctoPi Serial Port Failure During Print #532

Open JabawokJayUK opened 6 years ago

JabawokJayUK commented 6 years ago

Linked to Issue raised in OctoPrint: https://github.com/foosel/OctoPrint/issues/2647?_pjax=%23js-repo-pjax-container

During a normal print operation (tested in both safe mode and normal), the print will stop but the temps will remain steady on the printer.

Evaluating serial.log a serial connection issue occurs:

018-05-20 18:53:04,982 - Send: N114890 G1 X222.788 Y103.174 E0.2691*110 2018-05-20 18:53:04,993 - Recv: ok 2018-05-20 18:53:04,997 - Send: N114891 G1 X222.657 Y103.318 E0.2769*98 2018-05-20 18:53:05,163 - Unexpected error while reading serial port, please consult octoprint.log for details: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2417 2018-05-20 18:53:05,165 - Please see https://faq.octoprint.org/serialerror for possible reasons of this. 2018-05-20 18:53:05,177 - Changing monitoring state from "Printing" to "Offline (Error: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2417)" 2018-05-20 18:53:05,189 - Connection closed, closing down monitor

This is due to a failure of the FTDI Drivers in the kernel as shown in syslog:

Syslog would indicate that the serial driver is dropping: May 20 18:53:05 octopi kernel: [194758.424374] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 May 20 18:53:05 octopi kernel: [194758.424479] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 May 20 18:53:05 octopi kernel: [194758.562635] usb 1-1.3: USB disconnect, device number 9 May 20 18:53:05 octopi kernel: [194758.562930] ftdi_sio ttyUSB0: error from flowcontrol urb May 20 18:53:05 octopi kernel: [194758.563302] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 May 20 18:53:05 octopi kernel: [194758.563339] ftdi_sio 1-1.3:1.0: device disconnected May 20 18:53:05 octopi kernel: [194758.855333] usb 1-1.3: new full-speed USB device number 10 using dwc_otg May 20 18:53:05 octopi kernel: [194759.013986] usb 1-1.3: New USB device found, idVendor=0403, idProduct=6001 May 20 18:53:05 octopi kernel: [194759.013995] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 May 20 18:53:05 octopi kernel: [194759.013999] usb 1-1.3: Product: FT232R USB UART May 20 18:53:05 octopi kernel: [194759.014002] usb 1-1.3: Manufacturer: FTDI May 20 18:53:05 octopi kernel: [194759.014006] usb 1-1.3: SerialNumber: A907S16M May 20 18:53:05 octopi kernel: [194759.022120] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected May 20 18:53:05 octopi kernel: [194759.022310] usb 1-1.3: Detected FT232RL May 20 18:53:05 octopi kernel: [194759.023110] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

This behavior has only just started wince the most recent updates.

guysoft commented 6 years ago

Does it happen in OctoPi 0.15.x?

JabawokJayUK commented 6 years ago

Issue observed in OctoPi 0.14.0 after most recent auto-update to ervsion 1.3.8 of OctoPrint

c10l commented 6 years ago

I get the same with OctoPi 0.15.0 and Octoprint 1.3.8. I've been running Octoprint 1.3.7 for a few hours now with no issues, but will report back if I have any.

taw-pi commented 6 years ago

I am running OctoPi 0.15.1 and it happened to me today :(

guysoft commented 6 years ago

At this point its Beyond OctoPi. If there is any information you can contribute to https://github.com/foosel/OctoPrint/issues/2647 that might help @foosel figure out what the problem is.

taw-pi commented 6 years ago

I did not have anything useful from the logs so I have enabled debug logging and am running the print again. I will add the logs if it fails again.

taw-pi commented 6 years ago

Fortunately or unfortunately my print completed without error so I am not in a position to provide any further evidence of this fault. In the meantime I will leave debug options enabled and report if it happens again.

oliclarke commented 6 years ago

Im not sure if Im having the same issue as in this thread. Printer randomly stops, fans + heat remain on, no error warning on marlin LCD screen. Log here - > https://pastebin.com/HQYe3hdZ

Running Marlin bugfix 1.1.9 octoprint - Version 1.3.8

Scheddi commented 4 years ago

I just had a very similar issue in version 1.4.0.

Here is the output of dmesg: [432567.960338] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 [432567.960430] cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 [432567.977156] usb 1-1.1.2: USB disconnect, device number 5 [432567.977508] cp210x ttyUSB0: failed set request 0x7 status: -19 [432567.977529] cp210x ttyUSB0: failed set request 0x12 status: -19 [432567.977541] cp210x ttyUSB0: failed set request 0x0 status: -19 [432567.977959] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0 [432567.978035] cp210x 1-1.1.2:1.0: device disconnected [432818.384066] usb 1-1.1.2: new full-speed USB device number 6 using dwc_otg [432818.521840] usb 1-1.1.2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00 [432818.521857] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [432818.521867] usb 1-1.1.2: Product: CP2102 USB to UART Bridge Controller [432818.521876] usb 1-1.1.2: Manufacturer: Silicon Labs [432818.521885] usb 1-1.1.2: SerialNumber: 0001 [432818.524887] cp210x 1-1.1.2:1.0: cp210x converter detected [432818.531819] usb 1-1.1.2: cp210x converter now attached to ttyUSB0

The printer stopped printing, temperatures remained high and fans went to full speed.

I'm happy to provide more logfiles if required.

Regards Manuel