Communication Errors Again...

Hi Repetier, I have ruined a couple of print with communication error. They happen in different place on same print.I already have checksum error but when I have uploaded the new firmware they were gone. Now its not only a comms errors, it does the same things if I unplug the usb in the middle of a print. Can you help ?


 Here is the log:

14:23:14.747 : Printing layer 37 of 222
14:24:38.873 : Printing layer 38 of 222
14:26:00.672 : Printing layer 39 of 222
14:27:23.695 : Printing layer 40 of 222
14:28:20.572 : M20
14:28:22.691 : M20
14:28:22.691 : start
14:28:22.691 : Info:PowerUp
14:28:22.691 : Detected EEPROM version:18
14:28:22.691 : Info:Autoleveling enabled
14:28:22.691 : Transformation matrix: 0.999962 0.000000 0.008662 0.000035 0.999992 -0.004084 -0.008662 0.004084 0.999954
14:28:23.841 : zDistortionCorrection:1
14:28:23.842 : Free RAM:78368
14:28:23.842 : Autoretract:0
14:28:23.842 : X:0.00 Y:0.00 Z:0.000 E:0.0000
14:28:23.842 : SelectExtruder:0
14:28:23.843 : FIRMWARE_NAME:Repetier_1.0.0dev FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Delta EXTRUDER_COUNT:4 REPETIER_PROTOCOL:3
14:28:23.843 : Cap:PROGRESS:1
14:28:23.843 : M155 S1
14:28:23.843 : Cap:AUTOREPORT_TEMP:1
14:28:23.843 : Cap:EEPROM:1
14:28:23.844 : Cap:AUTOLEVEL:1
14:28:23.844 : Cap:Z_PROBE:1
14:28:23.844 : Cap:SOFTWARE_POWER:1
14:28:23.844 : Cap:TOGGLE_LIGHTS:0
14:28:23.844 : Cap:PAUSESTOP:1
14:28:23.844 : Cap:PREHEAT:1
14:28:23.844 : Printed filament:366.71m Printing time:10 days 14 hours 4 min
14:28:23.844 : PrinterMode:FFF
14:28:23.844 : Error:Checksum required when switching back to ASCII protocol.
14:28:23.844 : Resend:3
14:28:23.844 : Resend after 4350885ms
14:28:23.845 : Info:No case lights
14:28:23.845 : X:10.00 Y:10.00 Z:0.000 E:0.0000
14:28:23.845 : DebugLevel:6
14:28:23.845 : Config:Baudrate:250000
14:28:23.845 : Config:InputBuffer:127
14:28:23.845 : Config:NumExtruder:4
14:28:23.845 : Config:MixingExtruder:0
14:28:23.845 : Config:HeatedBed:1
14:28:23.845 : Config:SDCard:1
14:28:23.845 : Config:Fan:1
14:28:23.845 : Config:Fan2:0
14:28:23.845 : Config:LCD:1
14:28:23.845 : Config:SoftwarePowerSwitch:1
14:28:23.845 : Config:XHomeDir:-1
14:28:23.845 : Config:YHomeDir:-1
14:28:23.845 : Config:ZHomeDir:1
14:28:23.845 : Config:XHomePos:0.00
14:28:23.846 : Config:YHomePos:0.00
14:28:23.846 : Config:ZHomePos:185.106
14:28:23.846 : Config:SupportG10G11:1
14:28:23.846 : Config:SupportLocalFilamentchange:1
14:28:23.846 : Config:CaseLights:0
14:28:23.846 : Config:ZProbe:1
14:28:23.846 : Config:Autolevel:1
14:28:23.846 : Config:EEPROM:1
14:28:23.846 : Config:PrintlineCache:16
14:28:23.846 : Config:JerkXY:20.00
14:28:23.846 : Config:KeepAliveInterval:2000
14:28:23.846 : Config:RetractionLength:1.00
14:28:23.846 : Config:RetractionLongLength:1.00
14:28:23.846 : Config:RetractionSpeed:40.00
14:28:23.846 : Config:RetractionZLift:0.00
14:28:23.846 : Config:RetractionUndoExtraLength:0.00
14:28:23.846 : Config:RetractionUndoExtraLongLength:0.00
14:28:23.846 : Config:RetractionUndoSpeed:20.00
14:28:23.846 : Config:XMin:0.00
14:28:23.846 : Config:YMin:0.00
14:28:23.846 : Config:ZMin:0.00
14:28:23.846 : Config:XMax:200.00
14:28:23.846 : Config:YMax:200.00
14:28:23.846 : Config:ZMax:185.11
14:28:23.846 : Config:XSize:200.00
14:28:23.846 : Config:YSize:200.00
14:28:23.846 : Config:ZSize:185.11
14:28:23.846 : Config:XPrintAccel:100.00
14:28:23.846 : Config:YPrintAccel:100.00
14:28:23.846 : Config:ZPrintAccel:100.00
14:28:23.846 : Config:XTravelAccel:100.00
14:28:23.846 : Config:YTravelAccel:100.00
14:28:23.846 : Config:ZTravelAccel:100.00
14:28:23.846 : Config:PrinterType:Delta
14:28:23.847 : Config:MaxBedTemp:120
14:28:23.847 : Config:Extr.1:Jerk:20.00
14:28:23.847 : Config:Extr.1:MaxSpeed:50.00
14:28:23.847 : Config:Extr.1:Acceleration:5000.00
14:28:23.847 : Config:Extr.1:Diameter:0.00
14:28:23.847 : Config:Extr.1:MaxTemp:275
14:28:23.847 : Config:Extr.2:Jerk:20.00
14:28:23.847 : Config:Extr.2:MaxSpeed:50.00
14:28:23.847 : Config:Extr.2:Acceleration:5000.00
14:28:23.847 : Config:Extr.2:Diameter:0.00
14:28:23.847 : Config:Extr.2:MaxTemp:275
14:28:23.847 : Config:Extr.3:Jerk:20.00
14:28:23.847 : Config:Extr.3:MaxSpeed:50.00
14:28:23.847 : Config:Extr.3:Acceleration:5000.00
14:28:23.847 : Config:Extr.3:Diameter:0.00
14:28:23.847 : Config:Extr.3:MaxTemp:275
14:28:23.847 : Config:Extr.4:Jerk:20.00
14:28:23.847 : Config:Extr.4:MaxSpeed:50.00
14:28:23.847 : Config:Extr.4:Acceleration:5000.00
14:28:23.847 : Config:Extr.4:Diameter:0.00
14:28:23.847 : Config:Extr.4:MaxTemp:275
14:28:23.847 : Begin file list
14:28:23.847 : End file list
14:28:33.874 : G28
14:28:34.711 : Info:Autoleveling disabled
14:28:40.097 : SelectExtruder:0
14:28:40.097 : X:0.00 Y:0.00 Z:185.110 E:0.0000
14:28:40.097 : Info:Autoleveling enabled

Comments

  • Why should print continue if you unplug usb? Server sends commands while printing and does not send file to printer and starts.

    What happens when print stops? Com errors are normally catched and no problem. A bigger problem is if linux closes the usb connection due to low power state (at least raspberry pi is known for this behaviour). You see this /var/log/syslog with a usb error entry at the time print stops. Could that be your problem? Server also logs a reconnect in server.log at that time.
  • Sorry for my explication , I wanted to say the errors look like if someone unplug the usb cable in the midddle of the print. I understand minor error can be ignored and print can continue but this is a major one. 

    Here is the pi syslog when the hang happen:

    • Feb 11 19:55:40 raspberrypi dhcpcd: wlan0: Router Advertisement from fe80::1e5f:2bff:fe7d:63c6
    • Feb 11 19:56:08 raspberrypi dhcpcd: eth0: removing interface
    • Feb 11 19:56:08 raspberrypi avahi-daemon: Withdrawing workstation service for eth0.
    • Feb 11 19:56:08 raspberrypi kernel: [20297.819265] usb 1-1: USB disconnect, device number 46
    • Feb 11 19:56:08 raspberrypi kernel: [20297.819280] usb 1-1.1: USB disconnect, device number 47
    • Feb 11 19:56:08 raspberrypi kernel: [20297.819592] smsc95xx 1-1.1:1.0 eth0: unregister 'smsc95xx' usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet
    • Feb 11 19:56:08 raspberrypi kernel: [20297.819641] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    • Feb 11 19:56:08 raspberrypi kernel: [20297.869956] usb 1-1.2: USB disconnect, device number 48
    • Feb 11 19:56:08 raspberrypi kernel: [20297.870282] cdc_acm 1-1.2:1.0: failed to set dtr/rts
    • Feb 11 19:56:08 raspberrypi kernel: [20297.872247] usb 1-1.4: USB disconnect, device number 49
    • Feb 11 19:56:08 raspberrypi kernel: [20298.509140] Indeed it is in host mode hprt0 = 00021501
    • Feb 11 19:56:09 raspberrypi kernel: [20298.709149] usb 1-1: new high-speed USB device number 50 using dwc_otg
    • Feb 11 19:56:09 raspberrypi kernel: [20298.709278] Indeed it is in host mode hprt0 = 00001101
    • Feb 11 19:56:09 raspberrypi kernel: [20298.939417] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
    • Feb 11 19:56:09 raspberrypi kernel: [20298.939430] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    • Feb 11 19:56:09 raspberrypi kernel: [20298.940290] hub 1-1:1.0: USB hub found
    • Feb 11 19:56:09 raspberrypi kernel: [20298.940384] hub 1-1:1.0: 5 ports detected
    • Feb 11 19:56:09 raspberrypi kernel: [20299.259140] usb 1-1.1: new high-speed USB device number 51 using dwc_otg
    • Feb 11 19:56:09 raspberrypi kernel: [20299.389411] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
    • Feb 11 19:56:09 raspberrypi kernel: [20299.389425] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    • Feb 11 19:56:09 raspberrypi kernel: [20299.392402] smsc95xx v1.0.5
    • Feb 11 19:56:09 raspberrypi systemd-udevd: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1 1 51': No such file or directory
    • Feb 11 19:56:09 raspberrypi kernel: [20299.483728] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:91:1f:5b
    • Feb 11 19:56:10 raspberrypi kernel: [20299.579120] usb 1-1.2: new full-speed USB device number 52 using dwc_otg
    • Feb 11 19:56:10 raspberrypi kernel: [20299.723720] usb 1-1.2: New USB device found, idVendor=2341, idProduct=003d
    • Feb 11 19:56:10 raspberrypi kernel: [20299.723733] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
    • Feb 11 19:56:10 raspberrypi kernel: [20299.723741] usb 1-1.2: Product: Arduino Due Prog. Port
    • Feb 11 19:56:10 raspberrypi kernel: [20299.723749] usb 1-1.2: Manufacturer: Arduino (www.arduino.cc)
    • Feb 11 19:56:10 raspberrypi kernel: [20299.723757] usb 1-1.2: SerialNumber: 55330343534351A0C132
    • Feb 11 19:56:10 raspberrypi kernel: [20299.725456] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
    • Feb 11 19:56:10 raspberrypi systemd-udevd: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2 1 52': No such file or directory
    • Feb 11 19:56:10 raspberrypi kernel: [20299.819154] usb 1-1.4: new low-speed USB device number 53 using dwc_otg
    • Feb 11 19:56:10 raspberrypi kernel: [20299.963863] usb 1-1.4: New USB device found, idVendor=6901, idProduct=1224
    • Feb 11 19:56:10 raspberrypi kernel: [20299.963877] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    • Feb 11 19:56:10 raspberrypi systemd-udevd: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 1 53': No such file or directory
    • Feb 11 19:56:10 raspberrypi kernel: [20299.975106] input: HID 6901:1224 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:6901:1224.0019/input/input25
    • Feb 11 19:56:10 raspberrypi kernel: [20300.045651] hid-generic 0003:6901:1224.0019: input,hidraw0: USB HID v1.10 Keyboard [HID 6901:1224] on usb-3f980000.usb-1.4/input0
    • Feb 11 19:56:10 raspberrypi kernel: [20300.065155] input: HID 6901:1224 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:6901:1224.001A/input/input26
    • Feb 11 19:56:10 raspberrypi kernel: [20300.139920] hid-generic 0003:6901:1224.001A: input,hidraw1: USB HID v1.10 Mouse [HID 6901:1224] on usb-3f980000.usb-1.4/input1
    • Feb 11 19:56:10 raspberrypi dhcpcd: eth0: adding address fe80::1709:fb78:d146:398f
    • Feb 11 19:56:11 raspberrypi dhcpcd: eth0: waiting for carrier
    • Feb 11 19:56:11 raspberrypi kernel: [20300.661358] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    • Feb 11 19:56:11 raspberrypi kernel: [20300.661926] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    • Feb 11 19:56:13 raspberrypi dhcpcd: wlan0: Router Advertisement from fe80::1e5f:2bff:fe7d:63c6



  • Yes, it is linux disconnecting usb. You see all the disconnect messages at the top and serial is one of them. 2 seconds later it reconnects all usb devices, but that is of course bad as serial is now closed and can not communicate any more and printer resets.

    See
    https://www.raspberrypi.org/forums/viewtopic.php?t=8010&start=75
    for a possible solution. Maybe it works, also it reduces usb speed and therefore all communications to usb 1.0 standard I think.

    If you have no display connected, edit /home/pi/.bashrc at the end to not start x windows and start chrome. Reduces load and memory and also helps.
  • Sorry for my late reply I wanted to make more test before replying and the new Pi firmware give me a couple of trouble. 

    I have tried the solution on the Pi forum and I have run 3 print in dry mode with 2 success and 1 fail. Each print was run with scope and recording meter on the RPI 5v no voltage drop always at 5.28V. 

    I will try a couple of other dry run to see if problem occurs.
  • Problem is definitely not solved, all the other print have crashed before the end. I will try the Image you provided for the pi. If you have other suggestion I will take them. 
  • Did you use the dwc_otg.speed=1 in cmdline.txt?

    Disable xserver (last lines in /home/pi/.bashrc) in our image if you have no display. Frees ram and reduces load.

  • Yes I already have updated the cmdline.txt. 
    Can you run a webcam with your RPI Image ?
  • I had a similar problem with the USB dropping out with or without a display.  The power issue was causing the USB to crash on all devices (usually in the middle of a print).  I was having issues with any micro usb power supply I tried even large 3 Amp supplies.  It seemed I was getting a lot of voltage drop across the reverse voltage protection circuit they have installed on the board.  For me the solution was to power through the back door using something like the https://www.amazon.com/WINOGNEER-Programmable-Temperature-Control-Raspberry/dp/B076Q8MDW8 or wiring in a 5V buck converter on the 5V on the I/O header.

  • Yes I have 2 webcams on my rpi image running.
  • Hi dot_bob , my RPI is already powered by the GPIO by a 2.5 amp 5.0v supply. How did you find that was the problem ?  I have monitored the supply with a scope and with a precision mutlimeter and I have not find any little drop. My voltage is always at 5.28v with no noise. 
  • I used a PC based logging oscilloscope and could see intermittent drops.  But that is when I was powered through USB.  Powering from the GPIO I went a bit overboard on my supply and installed a buck converter capable of supplying 10A at 5V that is being powered from a 12V 5A supply.  My voltage is 5.1V with from the buck converter.  I haven't tried logging with the buck converter mainly because it has been working without issue.  I have been running for a month so far without issue with as many as 4 printers at one time which previously I could only do on my windows machine without the prints crashing.
  • Hi everyone, I switched to the Repetier RPI Image and I have run 3 x 5 hours print in dry mode with no error. I have not made any hardware change. Maybe its only a really good timing of everything but its my best result for 2 month. I will keep you updated.
  • Dry run is aloso easier for the printer as it uses much less power. That keeps power on a more constant level then with heaters on. So will be interesting if it stays that stable if heaters are used.
Sign In or Register to comment.