random Connection closed by os during print ... trying reconnect for 10 seconds to continue ... whil

edited February 18 in Bug Reports
random Connection closed by os during print ... trying reconnect for 10 seconds to continue ... while printing
Repetier-Server 1.2.1
Repeiter-firmware 1.0.4
It came on completely by accident, the printer has been printing for about a year without any problems.
It happens regularly every 1 to 3 hours.
I was changed an USB cable.



Comments

  • Printing from a Raspberry Pi or full pc?
    If pi - do you see undervoltage in the bolt menu?
    If it happens note the exact time and open /var/log/syslog the same timestamp to see what linux did and why? Apart from undervoltage causing a usb disconnect I also have seen back EMF as reason in logs.

    For linux there is an option to try to silently reconnect usb and continue print. As test do a test print, unplug usb cable and replug it within 10 seconds. This was added to make printers with such problems work seamlessly. But does not work on all boards and only if printer does not reset, but the option tries to keep dtr/dtr the same so it does not send reset signal.
  • Repetier said:
    Printing from a Raspberry Pi or full pc?
    If pi - do you see undervoltage in the bolt menu?
    If it happens note the exact time and open /var/log/syslog the same timestamp to see what linux did and why? Apart from undervoltage causing a usb disconnect I also have seen back EMF as reason in logs.

    For linux there is an option to try to silently reconnect usb and continue print. As test do a test print, unplug usb cable and replug it within 10 seconds. This was added to make printers with such problems work seamlessly. But does not work on all boards and only if printer does not reset, but the option tries to keep dtr/dtr the same so it does not send reset signal.
    Yes, I use raspi 4. In the menu i can't see errors with voltage.

  • Repetier said:
    Printing from a Raspberry Pi or full pc?
    If pi - do you see undervoltage in the bolt menu?
    If it happens note the exact time and open /var/log/syslog the same timestamp to see what linux did and why? Apart from undervoltage causing a usb disconnect I also have seen back EMF as reason in logs.

    For linux there is an option to try to silently reconnect usb and continue print. As test do a test print, unplug usb cable and replug it within 10 seconds. This was added to make printers with such problems work seamlessly. But does not work on all boards and only if printer does not reset, but the option tries to keep dtr/dtr the same so it does not send reset signal.
     I tested autostart system after reconnect USB - it not work auto, but it work manual ok.


  • edited February 18
    In  /var/log/syslog:
    Feb 18 21:51:34 RepetierServer systemd[1]: Starting Time & Date Service...
    Feb 18 21:51:34 RepetierServer dbus-daemon[451]: [system] Successfully activated service 'org.freedesktop.timedate1'
    Feb 18 21:51:34 RepetierServer systemd[1]: Started Time & Date Service.
    Feb 18 21:52:04 RepetierServer systemd[1]: systemd-timedated.service: Succeeded.
    Feb 18 21:52:04 RepetierServer kernel: [ 4407.540795] usb usb2-port1: over-current change #1
    Feb 18 21:52:04 RepetierServer kernel: [ 4407.554270] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 18 21:52:04 RepetierServer kernel: [ 4407.554671] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 18 21:52:04 RepetierServer kernel: [ 4407.708242] usb 1-1-port1: over-current change #1
    Feb 18 21:52:04 RepetierServer kernel: [ 4407.709785] usb usb2-port2: over-current change #1
    Feb 18 21:52:04 RepetierServer kernel: [ 4407.869545] usb usb2-port3: over-current change #1
    Feb 18 21:52:05 RepetierServer kernel: [ 4407.939982] usb 1-1-port2: over-current change #1
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.029551] usb usb2-port4: over-current change #1
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.180355] usb 1-1-port3: over-current change #1
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.189814] usb usb2-port1: over-current change #2
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.420084] usb 1-1.3: USB disconnect, device number 4
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.422432] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.426424] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.430435] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.434437] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.438557] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 21:52:05 RepetierServer thd[491]: Error reading device '/dev/input/event0'
    Feb 18 21:52:05 RepetierServer kernel: [ 4408.859466] usb 1-1.3: new high-speed USB device number 6 using xhci_hcd
    Feb 18 21:52:06 RepetierServer kernel: [ 4409.201738] usb 1-1.3: New USB device found, idVendor=046d, idProduct=081b, bcdDevice= 0.10
    Feb 18 21:52:06 RepetierServer kernel: [ 4409.201761] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=2
    Feb 18 21:52:06 RepetierServer kernel: [ 4409.201779] usb 1-1.3: SerialNumber: 4CA434A0
    Feb 18 21:52:06 RepetierServer kernel: [ 4409.203506] uvcvideo: Found UVC 1.00 device <unnamed> (046d:081b)
    Feb 18 21:52:06 RepetierServer kernel: [ 4409.321783] input: UVC Camera (046d:081b) as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input1
    Feb 18 21:52:07 RepetierServer kernel: [ 4410.509467] usb 1-1.3: set resolution quirk: cval->res = 384
    Feb 18 21:52:07 RepetierServer kernel: [ 4410.519814] usb 1-1-port4: over-current change #1
    Feb 18 21:52:07 RepetierServer mtp-probe: checking bus 1, device 6: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
    Feb 18 21:52:07 RepetierServer mtp-probe: bus: 1, device: 6 was not an MTP device
    Feb 18 21:52:07 RepetierServer systemd[1]: Stopping mjpg_streamer for picam...
    Feb 18 21:52:07 RepetierServer systemd[1]: mjpg_streamer.service: Succeeded.
    Feb 18 21:52:07 RepetierServer systemd[1]: Stopped mjpg_streamer for picam.
    Feb 18 21:52:07 RepetierServer systemd[1]: Started mjpg_streamer for picam.
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Start from directory /usr/local/Repetier-Setup/bin
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Testing active webcams in /dev/v4l/by-path/*
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-bcm2835-codec-video-index0
    Feb 18 21:52:07 RepetierServer kernel: [ 4410.761069] usb 1-1.1: USB disconnect, device number 5
    Feb 18 21:52:07 RepetierServer kernel: [ 4410.762165] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
    Feb 18 21:52:07 RepetierServer kernel: [ 4410.762216] ch341 1-1.1:1.0: device disconnected
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Best resolution: 0 x 0 at 0
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index0
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Best resolution: 0 x 0 at 0
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index1
    Feb 18 21:52:07 RepetierServer systemd-udevd[9450]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
    Feb 18 21:52:07 RepetierServer mtp-probe: checking bus 1, device 6: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
    Feb 18 21:52:07 RepetierServer mtp-probe: bus: 1, device: 6 was not an MTP device
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Best resolution: 0 x 0 at 0
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index2
    Feb 18 21:52:07 RepetierServer startAllCams[9473]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Best resolution: 0 x 0 at 0
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index3
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Best resolution: 0 x 0 at 0
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0
    Feb 18 21:52:08 RepetierServer kernel: [ 4411.059467] usb 1-1.1: new full-speed USB device number 7 using xhci_hcd
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Best resolution: 640 x 480 at 15
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Starting platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0 on port 8080
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: /usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video1 --fps 15 -q 85 -r 640x480 " -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www" -b
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9623]: starting application
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9623]: enabling daemon mode
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: enabling daemon modeforked to background (9627)
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Starting webcam /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index1
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: Using V4L2 device.: /dev/video1
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: Desired Resolution: 640 x 480
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: Frames Per Second.: 15
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: Format............: JPEG
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: TV-Norm...........: DEFAULT
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 21:52:08 RepetierServer startAllCams[9473]: Best resolution: 0 x 0 at 0
    Feb 18 21:52:08 RepetierServer kernel: [ 4411.195848] usb 1-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
    Feb 18 21:52:08 RepetierServer kernel: [ 4411.195858] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    Feb 18 21:52:08 RepetierServer kernel: [ 4411.195866] usb 1-1.1: Product: USB2.0-Serial
    Feb 18 21:52:08 RepetierServer kernel: [ 4411.199868] ch341 1-1.1:1.0: ch341-uart converter detected
    Feb 18 21:52:08 RepetierServer kernel: [ 4411.203600] usb 1-1.1: ch341-uart converter now attached to ttyUSB0
    Feb 18 21:52:08 RepetierServer mtp-probe: checking bus 1, device 7: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1"
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: www-folder-path......: /usr/local/share/mjpg-streamer/www/
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: HTTP TCP port........: 8080
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: HTTP Listen Address..: (null)
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: username:password....: disabled
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: commands.............: enabled
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: starting input plugin /usr/local/lib/mjpg-streamer/input_uvc.so
    Feb 18 21:52:08 RepetierServer MJPG-streamer [9627]: starting output plugin: /usr/local/lib/mjpg-streamer/output_http.so (ID: 00)
    Feb 18 21:52:08 RepetierServer mtp-probe: bus: 1, device: 7 was not an MTP device
    Feb 18 21:52:08 RepetierServer mtp-probe: checking bus 1, device 7: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1"
    Feb 18 21:52:08 RepetierServer mtp-probe: bus: 1, device: 7 was not an MTP device

    logs in RS:
    Mesg:20:52:32.097: Connection closed by os during print ... trying reconnect for 10 seconds to continue ...
    Mesg:20:52:37.813: Dtr: true Rts: true
    Mesg:20:52:37.819: Connection continued
    Recv:20:52:38.726: Printer reset detected:start
    Recv:20:52:39.601: start
    Recv:20:52:39.601: Detected EEPROM version:20
    Recv:20:52:39.601: XY jerk was too low, setting to 24.42
    Recv:20:52:39.996: Free RAM:3528
    Recv:20:52:39.996: SelectExtruder:0
    Recv:20:52:40.008: RESCUE_STATE: L V M$ " X M 2 :64.39 L V M$ " X M 2 :75.09 L V M$ " X M 2 :0.30 L V M$ " X M 2 :24.56 LT:0
    Recv:20:52:40.010: DebugLevel:6
    Mesg:20:52:40.013: info:Continue from fatal state
    Recv:20:52:40.028: FIRMWARE_NAME:Repetier_1.0.4 COMPILED:Jan 21 2021 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
    Recv:20:52:40.028: Cap:PROGRESS:1
    Recv:20:52:40.029: Cap:AUTOREPORT_TEMP:1
    Recv:20:52:40.030: Cap:HOST_RESCUE:1
    Recv:20:52:40.030: Cap:EEPROM:1
    Recv:20:52:40.032: Cap:AUTOLEVEL:0
    Recv:20:52:40.032: Cap:Z_PROBE:0
    Recv:20:52:40.033: Cap:SOFTWARE_POWER:1
    Recv:20:52:40.033: Cap:TOGGLE_LIGHTS:0
    Recv:20:52:40.034: Cap:PAUSESTOP:1
    Recv:20:52:40.034: Cap:PREHEAT:1
    Recv:20:52:40.035: Cap:EMERGENCY_PARSER:1
    Recv:20:52:40.038: Printed filament:3427.80m Printing time:44 days 8 hours 54 min
    Recv:20:52:40.039: PrinterMode:FFF
    Recv:20:52:40.048: Info:No case lights
    Recv:20:52:40.067: X:64.39 Y:75.09 Z:0.300 E:0.0000
    Recv:20:52:40.067: DebugLevel:6
    Recv:20:52:40.070: Config:Baudrate:250000
    Recv:20:52:40.071: Config:InputBuffer:127
    Recv:20:52:40.072: Config:NumExtruder:1
    Recv:20:52:40.074: Config:MixingExtruder:0
    Recv:20:52:40.074: Config:HeatedBed:1
    Recv:20:52:40.075: Config:SDCard:1
    Recv:20:52:40.075: Config:Fan:1
    Recv:20:52:40.076: Config:Fan2:0
    Recv:20:52:40.076: Config:LCD:1
    Recv:20:52:40.077: Config:SoftwarePowerSwitch:1
    Recv:20:52:40.079: Config:XHomeDir:-1
    Recv:20:52:40.079: Config:YHomeDir:-1
    Recv:20:52:40.080: Config:ZHomeDir:-1
    Recv:20:52:40.081: Config:XHomePos:0.00
    Recv:20:52:40.081: Config:YHomePos:0.00
    Recv:20:52:40.083: Config:ZHomePos:0.000
    Recv:20:52:40.084: Config:SupportG10G11:1
    Recv:20:52:40.085: Config:SupportLocalFilamentchange:1
    Recv:20:52:40.086: Config:CaseLights:0
    Recv:20:52:40.086: Config:ZProbe:0
    Recv:20:52:40.088: Config:Autolevel:0
    Recv:20:52:40.088: Config:EEPROM:1
    Recv:20:52:40.089: Config:PrintlineCache:16
    Recv:20:52:40.090: Config:JerkXY:24.42
    Recv:20:52:40.091: Config:KeepAliveInterval:2000
    Recv:20:52:40.092: Config:JerkZ:0.20
    Recv:20:52:40.093: Config:RetractionLength:5.00
    Recv:20:52:40.094: Config:RetractionLongLength:13.00
    Recv:20:52:40.095: Config:RetractionSpeed:50.00
    Recv:20:52:40.097: Config:RetractionZLift:0.00
    Recv:20:52:40.098: Config:RetractionUndoExtraLength:0.00
    Recv:20:52:40.101: Config:RetractionUndoExtraLongLength:0.00
    Recv:20:52:40.102: Config:RetractionUndoSpeed:50.00
    Recv:20:52:40.102: Config:XMin:0.00
    Recv:20:52:40.103: Config:YMin:0.00
    Recv:20:52:40.104: Config:ZMin:0.00
    Recv:20:52:40.104: Config:XMax:200.00
    Recv:20:52:40.106: Config:YMax:200.00
    Recv:20:52:40.106: Config:ZMax:255.00
    Recv:20:52:40.107: Config:XSize:200.00
    Recv:20:52:40.108: Config:YSize:200.00
    Recv:20:52:40.108: Config:ZSize:255.00
    Recv:20:52:40.109: Config:XPrintAccel:3000.00
    Recv:20:52:40.111: Config:YPrintAccel:3000.00
    Recv:20:52:40.112: Config:ZPrintAccel:5.00
    Recv:20:52:40.113: Config:XTravelAccel:3000.00
    Recv:20:52:40.115: Config:YTravelAccel:3000.00
    Recv:20:52:40.116: Config:ZTravelAccel:5.00
    Recv:20:52:40.116: Config:PrinterType:Cartesian
    Recv:20:52:40.117: Config:MaxBedTemp:120
    Recv:20:52:40.118: Config:Extr.1:Jerk:20.00
    Recv:20:52:40.120: Config:Extr.1:MaxSpeed:100.00
    Recv:20:52:40.121: Config:Extr.1:Acceleration:3000.00
    Recv:20:52:40.122: Config:Extr.1:Diameter:0.00
    Recv:20:52:40.125: Config:Extr.1:MaxTemp:280
    Recv:20:52:40.177: RESCUE_STATE: L V M$ " X M 2 :64.39 L V M$ " X M 2 :75.09 L V M$ " X M 2 :0.30 L V M$ " X M 2 :24.56 LT:0
    Recv:20:56:05.528: DebugLevel:6
    Mesg:20:56:05.531: info:Continue from fatal state
    Recv:20:56:05.536: SelectExtruder:0
    Recv:20:56:05.689: DebugLevel:6
    Mesg:20:56:05.691: info:Continue from fatal state
    Recv:20:56:05.709: RESCUE_STATE: OFF (2)
    Recv:20:56:05.712: SelectExtruder:0
    Mesg:20:56:07.714: Warning: Seems like we missed a ok - continue sending.
    Recv:20:58:13.154: X:0.00 Y:0.00 Z:0.300 E:0.0000
    Recv:21:07:35.443: XY jerk was too low, setting to 31.53
    Recv:21:08:11.554: RESCUE_STATE: OFF
    Recv:21:08:30.493: X:68.94 Y:0.00 Z:57.790 E:839.4949
    Recv:21:11:22.142: DebugLevel:6
    Mesg:21:11:22.145: info:Continue from fatal state
    Recv:21:11:22.152: RESCUE_STATE: OFF
    Recv:21:14:08.967: X:0.00 Y:0.00 Z:0.000 E:839.4949
    Mesg:21:52:07.869: Connection closed by os during print ... trying reconnect for 10 seconds to continue ...
    Mesg:21:52:08.487: Dtr: true Rts: true
    Mesg:21:52:08.490: Connection continued
    Recv:21:52:09.401: Printer reset detected:start
    Recv:21:52:09.842: start
    Recv:21:52:09.842: Detected EEPROM version:20
    Recv:21:52:09.842: XY jerk was too low, setting to 24.42
    Recv:21:52:10.671: Free RAM:3528
    Recv:21:52:10.671: SelectExtruder:0
    Recv:21:52:10.681: DebugLevel:6
    Mesg:21:52:10.684: info:Continue from fatal state
    Recv:21:52:10.698: FIRMWARE_NAME:Repetier_1.0.4 COMPILED:Jan 21 2021 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
    Recv:21:52:10.698: Cap:PROGRESS:1
    Recv:21:52:10.700: Cap:AUTOREPORT_TEMP:1
    Recv:21:52:10.701: Cap:HOST_RESCUE:1
    Recv:21:52:10.701: Cap:EEPROM:1
    Recv:21:52:10.702: Cap:AUTOLEVEL:0
    Recv:21:52:10.702: Cap:Z_PROBE:0
    Recv:21:52:10.703: Cap:SOFTWARE_POWER:1
    Recv:21:52:10.704: Cap:TOGGLE_LIGHTS:0
    Recv:21:52:10.705: Cap:PAUSESTOP:1
    Recv:21:52:10.705: Cap:PREHEAT:1
    Recv:21:52:10.706: Cap:EMERGENCY_PARSER:1
    Recv:21:52:10.709: Printed filament:3427.80m Printing time:44 days 8 hours 54 min
    Recv:21:52:10.710: PrinterMode:FFF
    Recv:21:52:10.719: Info:No case lights
    Recv:21:52:10.738: X:0.00 Y:0.00 Z:0.000 E:0.0000
    Recv:21:52:10.739: DebugLevel:6
    Recv:21:52:10.741: Config:Baudrate:250000
    Recv:21:52:10.742: Config:InputBuffer:127
    Recv:21:52:10.744: Config:NumExtruder:1
    Recv:21:52:10.745: Config:MixingExtruder:0
    Recv:21:52:10.745: Config:HeatedBed:1
    Recv:21:52:10.746: Config:SDCard:1
    Recv:21:52:10.746: Config:Fan:1
    Recv:21:52:10.748: Config:Fan2:0
    Recv:21:52:10.748: Config:LCD:1
    Recv:21:52:10.749: Config:SoftwarePowerSwitch:1
    Recv:21:52:10.750: Config:XHomeDir:-1
    Recv:21:52:10.750: Config:YHomeDir:-1
    Recv:21:52:10.751: Config:ZHomeDir:-1
    Recv:21:52:10.753: Config:XHomePos:0.00
    Recv:21:52:10.753: Config:YHomePos:0.00
    Recv:21:52:10.754: Config:ZHomePos:0.000
    Recv:21:52:10.755: Config:SupportG10G11:1
    Recv:21:52:10.756: Config:SupportLocalFilamentchange:1
    Recv:21:52:10.758: Config:CaseLights:0
    Recv:21:52:10.758: Config:ZProbe:0
    Recv:21:52:10.759: Config:Autolevel:0
    Recv:21:52:10.759: Config:EEPROM:1
    Recv:21:52:10.760: Config:PrintlineCache:16
    Recv:21:52:10.762: Config:JerkXY:24.42
    Recv:21:52:10.763: Config:KeepAliveInterval:2000
    Recv:21:52:10.763: Config:JerkZ:0.20
    Recv:21:52:10.764: Config:RetractionLength:5.00
    Recv:21:52:10.765: Config:RetractionLongLength:13.00
    Recv:21:52:10.767: Config:RetractionSpeed:50.00
    Recv:21:52:10.768: Config:RetractionZLift:0.00
    Recv:21:52:10.769: Config:RetractionUndoExtraLength:0.00
    Recv:21:52:10.772: Config:RetractionUndoExtraLongLength:0.00
    Recv:21:52:10.773: Config:RetractionUndoSpeed:50.00
    Recv:21:52:10.773: Config:XMin:0.00
    Recv:21:52:10.774: Config:YMin:0.00
    Recv:21:52:10.776: Config:ZMin:0.00
    Recv:21:52:10.776: Config:XMax:200.00
    Recv:21:52:10.777: Config:YMax:200.00
    Recv:21:52:10.777: Config:ZMax:255.00
    Recv:21:52:10.778: Config:XSize:200.00
    Recv:21:52:10.780: Config:YSize:200.00
    Recv:21:52:10.780: Config:ZSize:255.00
    Recv:21:52:10.781: Config:XPrintAccel:3000.00
    Recv:21:52:10.782: Config:YPrintAccel:3000.00
    Recv:21:52:10.783: Config:ZPrintAccel:5.00
    Recv:21:52:10.785: Config:XTravelAccel:3000.00
    Recv:21:52:10.786: Config:YTravelAccel:3000.00
    Recv:21:52:10.787: Config:ZTravelAccel:5.00
    Recv:21:52:10.787: Config:PrinterType:Cartesian
    Recv:21:52:10.788: Config:MaxBedTemp:120
    Recv:21:52:10.790: Config:Extr.1:Jerk:20.00
    Recv:21:52:10.791: Config:Extr.1:MaxSpeed:100.00
    Recv:21:52:10.792: Config:Extr.1:Acceleration:3000.00
    Recv:21:52:10.794: Config:Extr.1:Diameter:0.00
    Recv:21:52:10.796: Config:Extr.1:MaxTemp:280
    Recv:21:52:10.843: RESCUE_STATE: OFF



  • Repeat:
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.264661] usb usb2-port1: over-current change #3
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.279307] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.279728] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.396694] usb 1-1-port1: over-current change #2
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.429411] usb usb2-port2: over-current change #2
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.589370] usb usb2-port3: over-current change #2
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.629855] usb 1-1-port2: over-current change #2
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.749359] usb usb2-port4: over-current change #2
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.870123] usb 1-1-port3: over-current change #2
    Feb 18 22:58:49 RepetierServer kernel: [ 8412.909387] usb usb2-port1: over-current change #4
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.119690] usb 1-1.3: USB disconnect, device number 6
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.123541] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.127531] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.131552] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.135666] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.139671] uvcvideo: Failed to resubmit video URB (-19).
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.529130] usb 1-1.3: new high-speed USB device number 8 using xhci_hcd
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.871444] usb 1-1.3: New USB device found, idVendor=046d, idProduct=081b, bcdDevice= 0.10
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.871466] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=2
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.871485] usb 1-1.3: SerialNumber: 4CA434A0
    Feb 18 22:58:50 RepetierServer kernel: [ 8413.873143] uvcvideo: Found UVC 1.00 device <unnamed> (046d:081b)
    Feb 18 22:58:51 RepetierServer kernel: [ 8413.991551] input: UVC Camera (046d:081b) as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input2
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.183943] usb 1-1.3: set resolution quirk: cval->res = 384
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.185185] usb 1-1-port4: over-current change #2
    Feb 18 22:58:52 RepetierServer mtp-probe: checking bus 1, device 8: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
    Feb 18 22:58:52 RepetierServer mtp-probe: bus: 1, device: 8 was not an MTP device
    Feb 18 22:58:52 RepetierServer systemd[1]: Stopping mjpg_streamer for picam...
    Feb 18 22:58:52 RepetierServer systemd[1]: mjpg_streamer.service: Succeeded.
    Feb 18 22:58:52 RepetierServer systemd[1]: Stopped mjpg_streamer for picam.
    Feb 18 22:58:52 RepetierServer systemd[1]: Started mjpg_streamer for picam.
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Start from directory /usr/local/Repetier-Setup/bin
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Testing active webcams in /dev/v4l/by-path/*
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-bcm2835-codec-video-index0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 0 x 0 at 0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index0
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.420301] usb 1-1.1: USB disconnect, device number 7
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.421505] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.421548] ch341 1-1.1:1.0: device disconnected
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 0 x 0 at 0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index1
    Feb 18 22:58:52 RepetierServer systemd-udevd[15990]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
    Feb 18 22:58:52 RepetierServer mtp-probe: checking bus 1, device 8: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
    Feb 18 22:58:52 RepetierServer mtp-probe: bus: 1, device: 8 was not an MTP device
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 0 x 0 at 0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index2
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 0 x 0 at 0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index3
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 0 x 0 at 0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 640 x 480 at 15
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0 on port 8080
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: /usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video0 --fps 15 -q 85 -r 640x480 " -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www" -b
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16158]: starting application
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16158]: enabling daemon mode
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: enabling daemon modeforked to background (16161)
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: Using V4L2 device.: /dev/video0
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Starting webcam /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index1
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: Desired Resolution: 640 x 480
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: Frames Per Second.: 15
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: Format............: JPEG
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: TV-Norm...........: DEFAULT
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.719127] usb 1-1.1: new full-speed USB device number 9 using xhci_hcd
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 18 22:58:52 RepetierServer startAllCams[16012]: Best resolution: 0 x 0 at 0
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: www-folder-path......: /usr/local/share/mjpg-streamer/www/
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: HTTP TCP port........: 8080
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: HTTP Listen Address..: (null)
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: username:password....: disabled
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: commands.............: enabled
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: starting input plugin /usr/local/lib/mjpg-streamer/input_uvc.so
    Feb 18 22:58:52 RepetierServer MJPG-streamer [16161]: starting output plugin: /usr/local/lib/mjpg-streamer/output_http.so (ID: 00)
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.855823] usb 1-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.855833] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.855841] usb 1-1.1: Product: USB2.0-Serial
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.859278] ch341 1-1.1:1.0: ch341-uart converter detected
    Feb 18 22:58:52 RepetierServer kernel: [ 8415.864676] usb 1-1.1: ch341-uart converter now attached to ttyUSB0
    Feb 18 22:58:52 RepetierServer mtp-probe: checking bus 1, device 9: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1"
    Feb 18 22:58:52 RepetierServer mtp-probe: bus: 1, device: 9 was not an MTP device
    Feb 18 22:58:52 RepetierServer mtp-probe: checking bus 1, device 9: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1"
    Feb 18 22:58:52 RepetierServer mtp-probe: bus: 1, device: 9 was not an MTP device

    I think that it mean that i has broken usb cable?

  • edited February 19
    I changed an USB cable today. It not helped to me.
    Feb 19 10:50:25 RepetierServer dbus-daemon[451]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.1633' (uid=0 pid=18167 comm="timedatectl ")
    Feb 19 10:50:26 RepetierServer systemd[1]: Starting Time & Date Service...
    Feb 19 10:50:26 RepetierServer dbus-daemon[451]: [system] Successfully activated service 'org.freedesktop.timedate1'
    Feb 19 10:50:26 RepetierServer systemd[1]: Started Time & Date Service.
    Feb 19 10:50:56 RepetierServer systemd[1]: systemd-timedated.service: Succeeded.
    Feb 19 10:51:30 RepetierServer dbus-daemon[451]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service' requested by ':1.1635' (uid=0 pid=18276 comm="timedatectl ")
    Feb 19 10:51:30 RepetierServer systemd[1]: Starting Time & Date Service...
    Feb 19 10:51:30 RepetierServer dbus-daemon[451]: [system] Successfully activated service 'org.freedesktop.timedate1'
    Feb 19 10:51:30 RepetierServer systemd[1]: Started Time & Date Service.
    Feb 19 10:51:48 RepetierServer kernel: [51192.318961] usb usb2-port1: over-current change #8
    Feb 19 10:51:48 RepetierServer kernel: [51192.333599] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 19 10:51:48 RepetierServer kernel: [51192.335079] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 19 10:51:48 RepetierServer kernel: [51192.452497] usb 1-1-port1: over-current change #5
    Feb 19 10:51:48 RepetierServer kernel: [51192.482407] usb usb2-port2: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.642352] usb usb2-port3: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.692846] usb 1-1-port2: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.802350] usb usb2-port4: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.933181] usb 1-1-port3: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.962391] usb usb2-port1: over-current change #9
    Feb 19 10:51:49 RepetierServer kernel: [51193.172693] usb 1-1.3: USB disconnect, device number 12
    Feb 19 10:51:49 RepetierServer kernel: [51193.174087] uvcvideo: Failed to resubmit video URB (-19).
    Feb 19 10:51:49 RepetierServer kernel: [51193.178088] uvcvideo: Failed to resubmit video URB (-19).
    Feb 19 10:51:49 RepetierServer kernel: [51193.184820] uvcvideo: Failed to resubmit video URB (-19).
    Feb 19 10:51:49 RepetierServer kernel: [51193.186096] uvcvideo: Failed to resubmit video URB (-19).
    Feb 19 10:51:49 RepetierServer kernel: [51193.190087] uvcvideo: Failed to resubmit video URB (-19).
    Feb 19 10:51:50 RepetierServer kernel: [51193.592122] usb 1-1.3: new high-speed USB device number 15 using xhci_hcd
    Feb 19 10:51:50 RepetierServer kernel: [51193.934511] usb 1-1.3: New USB device found, idVendor=046d, idProduct=081b, bcdDevice= 0.10
    Feb 19 10:51:50 RepetierServer kernel: [51193.934534] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=2
    Feb 19 10:51:50 RepetierServer kernel: [51193.934553] usb 1-1.3: SerialNumber: 4CA434A0
    Feb 19 10:51:50 RepetierServer kernel: [51193.936220] uvcvideo: Found UVC 1.00 device <unnamed> (046d:081b)
    Feb 19 10:51:50 RepetierServer kernel: [51194.054800] input: UVC Camera (046d:081b) as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input5
    Feb 19 10:51:51 RepetierServer kernel: [51195.245836] usb 1-1.3: set resolution quirk: cval->res = 384
    Feb 19 10:51:51 RepetierServer kernel: [51195.247152] usb 1-1-port4: over-current change #5
    Feb 19 10:51:51 RepetierServer mtp-probe: checking bus 1, device 15: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
    Feb 19 10:51:51 RepetierServer mtp-probe: bus: 1, device: 15 was not an MTP device
    Feb 19 10:51:51 RepetierServer systemd[1]: Stopping mjpg_streamer for picam...
    Feb 19 10:51:51 RepetierServer systemd[1]: mjpg_streamer.service: Succeeded.
    Feb 19 10:51:51 RepetierServer systemd[1]: Stopped mjpg_streamer for picam.
    Feb 19 10:51:51 RepetierServer systemd[1]: Started mjpg_streamer for picam.
    Feb 19 10:51:51 RepetierServer startAllCams[18438]: Start from directory /usr/local/Repetier-Setup/bin
    Feb 19 10:51:51 RepetierServer startAllCams[18438]: Testing active webcams in /dev/v4l/by-path/*
    Feb 19 10:51:51 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-bcm2835-codec-video-index0
    Feb 19 10:51:51 RepetierServer startAllCams[18438]: Best resolution: 0 x 0 at 0
    Feb 19 10:51:51 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index0
    Feb 19 10:51:51 RepetierServer kernel: [51195.483469] usb 1-1.1: USB disconnect, device number 14
    Feb 19 10:51:51 RepetierServer kernel: [51195.485095] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
    Feb 19 10:51:51 RepetierServer kernel: [51195.485137] ch341 1-1.1:1.0: device disconnected
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Best resolution: 0 x 0 at 0
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index1
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Best resolution: 0 x 0 at 0
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index2
    Feb 19 10:51:52 RepetierServer systemd-udevd[18386]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.
    Feb 19 10:51:52 RepetierServer mtp-probe: checking bus 1, device 15: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3"
    Feb 19 10:51:52 RepetierServer mtp-probe: bus: 1, device: 15 was not an MTP device
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Best resolution: 0 x 0 at 0
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-bcm2835-isp-video-index3
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Best resolution: 0 x 0 at 0
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Best resolution: 640 x 480 at 15
    Feb 19 10:51:52 RepetierServer kernel: [51195.782157] usb 1-1.1: new full-speed USB device number 16 using xhci_hcd
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Starting platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index0 on port 8080
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: /usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -d /dev/video1 --fps 15 -q 85 -r 640x480 " -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www" -b
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18585]: starting application
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18585]: enabling daemon mode
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: enabling daemon modeforked to background (18589)
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: MJPG Streamer Version: git rev: 821c330ea6bbb5fbed98d48e00aac156e923161b
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: Using V4L2 device.: /dev/video1
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Starting webcam /dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.3:1.0-video-index1
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: Desired Resolution: 640 x 480
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: Frames Per Second.: 15
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: Format............: JPEG
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: TV-Norm...........: DEFAULT
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Webcam does not support MJPG - using slower YUYV instead!
    Feb 19 10:51:52 RepetierServer startAllCams[18438]: Best resolution: 0 x 0 at 0
    Feb 19 10:51:52 RepetierServer kernel: [51195.918502] usb 1-1.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
    Feb 19 10:51:52 RepetierServer kernel: [51195.918512] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    Feb 19 10:51:52 RepetierServer kernel: [51195.918520] usb 1-1.1: Product: USB2.0-Serial
    Feb 19 10:51:52 RepetierServer kernel: [51195.921005] ch341 1-1.1:1.0: ch341-uart converter detected
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: www-folder-path......: /usr/local/share/mjpg-streamer/www/
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: HTTP TCP port........: 8080
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: HTTP Listen Address..: (null)
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: username:password....: disabled
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: commands.............: enabled
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: starting input plugin /usr/local/lib/mjpg-streamer/input_uvc.so
    Feb 19 10:51:52 RepetierServer MJPG-streamer [18589]: starting output plugin: /usr/local/lib/mjpg-streamer/output_http.so (ID: 00)
    Feb 19 10:51:52 RepetierServer kernel: [51195.926957] usb 1-1.1: ch341-uart converter now attached to ttyUSB0
    Feb 19 10:51:52 RepetierServer mtp-probe: checking bus 1, device 16: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1"
    Feb 19 10:51:52 RepetierServer mtp-probe: bus: 1, device: 16 was not an MTP device
    Feb 19 10:51:52 RepetierServer mtp-probe: checking bus 1, device 16: "/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1"
    Feb 19 10:51:52 RepetierServer mtp-probe: bus: 1, device: 16 was not an MTP device

  • You need to provide information in which second you did what and what happened to make use of a log. But I see

    Feb 19 10:51:48 RepetierServer kernel: [51192.318961] usb usb2-port1: over-current change #8
    Feb 19 10:51:48 RepetierServer kernel: [51192.333599] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 19 10:51:48 RepetierServer kernel: [51192.335079] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 19 10:51:48 RepetierServer kernel: [51192.452497] usb 1-1-port1: over-current change #5
    Feb 19 10:51:48 RepetierServer kernel: [51192.482407] usb usb2-port2: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.642352] usb usb2-port3: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.692846] usb 1-1-port2: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.802350] usb usb2-port4: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.933181] usb 1-1-port3: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.962391] usb usb2-port1: over-current change #9
    Feb 19 10:51:49 RepetierServer kernel: [51193.172693] usb 1-1.3: USB disconnect, device number 12

    That is bad overcurrent and also the usb read error following. You also see linux disconnects usb devices here. And it seems you have several devices on same port - al least several ports report overcurrent. So is this a hub in between?

    One thing you can try is remove 5V pin from printer to pi as described here:
    https://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/

    then we get no power over usb from printer and printer also does not draw power when unconnected.

    Also one tip for testing your problems. Login via ssh and run this command:
    tail -f /var/log/syslog | grep usb

    it will directly show in that window any usb related messages. So you can directly see what happened. Next step must be to determine where the problems exactly come from, see if taping 5v helps or if e.g. a webcam or whatever is connected causes problems. But overcurrent must come from a device with own power.  Plus undervoltage might also be an error but might also improve with taping 5v.


  • Repetier said:
    You need to provide information in which second you did what and what happened to make use of a log. But I see

    Feb 19 10:51:48 RepetierServer kernel: [51192.318961] usb usb2-port1: over-current change #8
    Feb 19 10:51:48 RepetierServer kernel: [51192.333599] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 19 10:51:48 RepetierServer kernel: [51192.335079] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
    Feb 19 10:51:48 RepetierServer kernel: [51192.452497] usb 1-1-port1: over-current change #5
    Feb 19 10:51:48 RepetierServer kernel: [51192.482407] usb usb2-port2: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.642352] usb usb2-port3: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.692846] usb 1-1-port2: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.802350] usb usb2-port4: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.933181] usb 1-1-port3: over-current change #5
    Feb 19 10:51:49 RepetierServer kernel: [51192.962391] usb usb2-port1: over-current change #9
    Feb 19 10:51:49 RepetierServer kernel: [51193.172693] usb 1-1.3: USB disconnect, device number 12

    That is bad overcurrent and also the usb read error following. You also see linux disconnects usb devices here. And it seems you have several devices on same port - al least several ports report overcurrent. So is this a hub in between?

    One thing you can try is remove 5V pin from printer to pi as described here:
    https://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/

    then we get no power over usb from printer and printer also does not draw power when unconnected.

    Also one tip for testing your problems. Login via ssh and run this command:
    tail -f /var/log/syslog | grep usb

    it will directly show in that window any usb related messages. So you can directly see what happened. Next step must be to determine where the problems exactly come from, see if taping 5v helps or if e.g. a webcam or whatever is connected causes problems. But overcurrent must come from a device with own power.  Plus undervoltage might also be an error but might also improve with taping 5v.



    I think that this man was helped to me
    I have one print today without errors and stops.
  • Hi! Today i has an other error and stoped printing. I has disconnected +5 V from the printer. I will tested an other USB cable.
  • I has the error if the printer do nothing. It looks like timer.
  • What do you mean? It can also happen when you disable e.g. all heaters at once. At least that is what we have already seen with other users.
  • Repetier said:
    What do you mean? It can also happen when you disable e.g. all heaters at once. At least that is what we have already seen with other users.

    If the printer is turned on all day continuously and without work, there will be these errors
  • Ok so disturbences are not related to motor/heater being active.
  • edited May 19
    Hi! I think that it undervoltage. Today i has regular disconnected from printer. I connected used ssh to raspberry pi and in console i sow:
    Your pi suffered from undervoltage! This can cause instabilities and a lot of errors. See
    https://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/
    But i not see the message to web repetier-server. I don't know why. Can i enabled the notification manualed?
    I connected an other powersupply to raspberrypi 4 an other and test it.




  • You see it in bolt icon in our gui. There you see also the undervoltage warning. Icon gets warning/error color depending on current/past condition.

    On pi 4 it can also make a difference if you use usb 2 or usb 3 ports. Since printers use usb 2 and can not talk faster usb 3 has no advantage anyway.
  • Repetier said:
    You see it in bolt icon in our gui. There you see also the undervoltage warning. Icon gets warning/error color depending on current/past condition.

    On pi 4 it can also make a difference if you use usb 2 or usb 3 ports. Since printers use usb 2 and can not talk faster usb 3 has no advantage anyway.

    But i can`t see the icon. I dont know why.
  • How long was the gui open? The hardware info is just send once per minute and only appears after first message.

    But I see it in your ssh shell and it would not differ. So you have at least had undervoltage and it is a potential issue - also not always. You could try the 5v pin taping solution to reduce usage by printer. Then printer will also only show up if main power is enabled. Reduces usage by 300-500mA depending on what your printer has all connected to it.
  • edited May 20
    Repetier said:
    How long was the gui open? The hardware info is just send once per minute and only appears after first message.

    But I see it in your ssh shell and it would not differ. So you have at least had undervoltage and it is a potential issue - also not always. You could try the 5v pin taping solution to reduce usage by printer. Then printer will also only show up if main power is enabled. Reduces usage by 300-500mA depending on what your printer has all connected to it.
    I tested it. GUI was openned about 5 mins and i not saw the message but in ssh console i saw
    pi@RepetierServer:~ $ vcgencmd get_throttled
    throttled=0x50000



  • Strange. Cat you try executing manually
    /var/lib/Repetier-Server/scripts/hardware_info
    that is the script delivering the content for bolt icon. Question is if it crashes or does not run or even does not exist to narrow why it does not appear.

    But that is not really relevant here for your issue. We already know you had undervoltage and it would just show the same when it runs. But would still be interesting why it fails for you in case it is something I can fix.
  • Repetier said:
    Strange. Cat you try executing manually
    /var/lib/Repetier-Server/scripts/hardware_info
    that is the script delivering the content for bolt icon. Question is if it crashes or does not run or even does not exist to narrow why it does not appear.

    But that is not really relevant here for your issue. We already know you had undervoltage and it would just show the same when it runs. But would still be interesting why it fails for you in case it is something I can fix.

    pi@RepetierServer:~ $ /var/lib/Repetier-Server/scripts/hardware_info
    -bash: /var/lib/Repetier-Server/scripts/hardware_info: Permission denied
    pi@RepetierServer:~ $ sudo /var/lib/Repetier-Server/scripts/hardware_info
    sudo: /var/lib/Repetier-Server/scripts/hardware_info: command not found

    I changed a powersupplay of raspberrypi. It work ok now. Thx!
    But i want see the undervoltages messages into GUI.
  • Ok good to hear that new supply helps.

    The sudo /var/lib/Repetier-Server/scripts/hardware_info works for me but from message I have to assume that the file is just missing. So deleted file and reinstalled server (it keeps all setting) and it created the file again. So no idea why you do not have the file as installing 1.3.0 should have added the file. But the fact that it is missing is the reason you do not see it in gui.

    So as solution I suggest reinstalling the latest version. In newer images all you need to execute is
    installLatestServer

    and it will fetch and install latest version.
  • I see the files.
    pi@RepetierServer:~ $ cat /var/lib/Repetier-Server/scripts/hardware_info
    #!/bin/bash
    # For raspberry we have some extra tests
    if [ -x "$(command -v vcgencmd)" ] ; then
    TEMP=$(vcgencmd measure_temp | cut -d= -f2 | cut -d\' -f1)
    STFLAGS=$(vcgencmd get_throttled |cut -d= -f2)
    WAS_UNDERVOLTAGE=$((($STFLAGS & 0x10000)!=0))
    IS_UNDERVOLTAGE=$((($STFLAGS & 0x1)!=0))
    WAS_THROTTLED=$((($STFLAGS & 0x40000)!=0))
    IS_THROTTLED=$((($STFLAGS & 0x4)!=0))
    WAS_SOFT_TEMP_ACTIVE=$((($STFLAGS & 0x80000)!=0))
    IS_SOFT_TEMP_ACTIVE=$((($STFLAGS & 0x8)!=0))
    if [ "$IS_UNDERVOLTAGE" == "1" ] ; then
      echo -e "Undervoltage:\t0\t\tNow\t3\t3\thttps://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/"
    elif [ "$WAS_UNDERVOLTAGE" == "1" ] ; then
      echo -e "Undervoltage:\t0\t\tIn past\t2\t3\thttps://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/"
    else
      echo -e "Undervoltage:\t0\t\tNever\t1\t1\thttps://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/"
    fi

    if [ "$IS_THROTTLED" == "1" ] ; then
      echo -e "CPU throttled:\t0\t\tNow\t3\t3\thttps://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/"
    elif [ "$WAS_THROTTLED" == "1" ] ; then
      echo -e "CPU throttled:\t0\t\tIn past\t2\t3\thttps://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/"
    else
      echo -e "CPU throttled:\t0\t\tNever\t1\t17\thttps://www.repetier-server.com/knowledgebase/undervoltage-and-throtteling-of-pi/"
    fi
    echo -e "CPU temperature:\t1\t°C\t$TEMP\t1\t2\t"
    fi
    W=$(w | grep load)
    REGEX="load average:[ ]*(.*)"
    if [[ $W =~ $REGEX ]] ; then
      LOAD="${BASH_REMATCH[1]}"
      echo -e "CPU load:\t0\t\t$LOAD\t1\t17\t"
    fi

    FREEMEMORY=$(cat /proc/meminfo | grep MemAvailable | cut -d: -f2 | awk '{$1=$1};1')
    FREEMEMORY=$(cat /proc/meminfo | grep MemAvailable | cut -d: -f2 | awk '{$1=$1};1')
    if [[ "$FREEMEMORY" == *kB ]] ; then
      FREEMEMORY="$(($(echo "$FREEMEMORY"| cut -d' ' -f1) / 1024)) MB"
    fi
    echo -e "Free RAM:\t0\t\t$FREEMEMORY\t1\t17\t"

    # Disk usage, warn when 90% is used, error if 95% is used
    df  -m -l -h --output=avail,pcent,target,source | while read line ; do
      ARRAY=($line)
      DEV=${ARRAY[3]}
      AVAILABLE=${ARRAY[0]}
      USE=${ARRAY[1]}
      USEVAL=${USE%?}
      MOUNT=${ARRAY[2]}
      if [[ "$DEV" == "tmpfs" ]] ; then
             continue
      fi
      if [[ "$DEV" == "udev" ]] ; then
             continue
      fi
      if [[ "$AVAILABLE" == "Avail" ]] ; then
             continue
      fi
      if [[ "$DEV" == "devtmpfs" ]] ; then
             continue
      fi
      if [[ "$MOUNT" == "/boot" ]] ; then
             continue
      fi
      if [[ $MOUNT == *"/snap/"* ]]; then
        continue
      fi
      LEVEL=1
      if (( USEVAL >= 90 )) ; then
              LEVEL=2
      fi
      if (( USEVAL >= 95 )) ; then
              LEVEL=3
      fi
      echo -e "$MOUNT :\t0\t\tFree ${AVAILABLE}B\t$LEVEL\t14\t"
    done
    DATE=$(date)
    echo -e "Date and time:\t0\t\t${DATE}\t1\t18\t"
    REGEX="up (.*)...[0-9]+ user"
    if [[ $W =~ $REGEX ]] ; then
      UPTIME="${BASH_REMATCH[1]}"
      echo -e "PC uptime:\t0\t\t${UPTIME}\t1\t18\t"
    fi
    pi@RepetierServer:~ $

  • edited May 21
    Repetier said:
    Ok good to hear that new supply helps.

    The sudo /var/lib/Repetier-Server/scripts/hardware_info works for me but from message I have to assume that the file is just missing. So deleted file and reinstalled server (it keeps all setting) and it created the file again. So no idea why you do not have the file as installing 1.3.0 should have added the file. But the fact that it is missing is the reason you do not see it in gui.

    So as solution I suggest reinstalling the latest version. In newer images all you need to execute is
    installLatestServer

    and it will fetch and install latest version.

    I reinstalled, it not helped
    pi@RepetierServer:~ $ installLatestServer
    rm: cannot remove 'RepetierServerLatest.deb': No such file or directory
    Raspberry with v7 or newer command set found. Installing armhf version...
    --2022-05-21 15:23:41--  http://download.repetier.com/files/server/debian-armhf/RepetierServerLatest.deb
    Resolving download.repetier.com (download.repetier.com)... 188.138.1.8, 94.130.164.39
    Connecting to download.repetier.com (download.repetier.com)|188.138.1.8|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 49852200 (48M) [application/octet-stream]
    Saving to: ‘RepetierServerLatest.deb’

    RepetierServerLatest.deb                             100%[===================================================================================================================>]  47.54M  3.66MB/s    in 15s

    2022-05-21 15:23:57 (3.12 MB/s) - ‘RepetierServerLatest.deb’ saved [49852200/49852200]

    (Reading database ... 76541 files and directories currently installed.)
    Preparing to unpack RepetierServerLatest.deb ...
    Uninstall Repetier-Server
    Removed /etc/systemd/system/multi-user.target.wants/RepetierServer.service.
    Unpacking repetier-server (1.3.0) over (1.3.0) ...
    Setting up repetier-server (1.3.0) ...
    Install Repetier-Server
    Created symlink /etc/systemd/system/multi-user.target.wants/RepetierServer.service → /lib/systemd/system/RepetierServer.service.
    Processing triggers for systemd (241-7~deb10u8+rpi1) ...

  • May be need i upgrade to bullseye?
    pi@RepetierServer:~ $ screenfetch
        .',;:cc;,'.    .,;::c:,,.    pi@RepetierServer
       ,ooolcloooo:  'oooooccloo:    OS: Raspbian 10 buster
       .looooc;;:ol  :oc;;:ooooo'    Kernel: armv7l Linux 5.10.103-v7l+
         ;oooooo:      ,ooooooc.     Uptime: 2d 5h 24m
           .,:;'.       .;:;'.       Packages: 909
           .... ..'''''. ....        Shell: 4983
         .''.   ..'''''.  ..''.      CPU: ARMv7 rev 3 (v7l) @ 4x 1.5GHz [54.5°C]
         ..  .....    .....  ..      GPU:
        .  .'''''''  .''''''.  .     RAM: 80MiB / 870MiB
      .'' .''''''''  .'''''''. ''.
      '''  '''''''    .''''''  '''
      .'    ........... ...    .'.
        ....    ''''''''.   .''.
        '''''.  ''''''''. .'''''
         '''''.  .'''''. .'''''.
          ..''.     .    .''..
                .'''''''
                 ......



  • Strange so file is there. What does
    ls -l /var/lib/Repetier-Server/scripts/
    show. Also what does
    sudo /var/lib/Repetier-Server/scripts/hardware_info

    now show. I mean when the program is there as you say and if it has x permission it should be executable.

    Upgrading to bullseye is no option - at least if you have a pi cam it will not work with mjpg_streamer any more.
  • Repetier said:
    Strange so file is there. What does
    ls -l /var/lib/Repetier-Server/scripts/
    show. Also what does
    sudo /var/lib/Repetier-Server/scripts/hardware_info

    now show. I mean when the program is there as you say and if it has x permission it should be executable.

    Upgrading to bullseye is no option - at least if you have a pi cam it will not work with mjpg_streamer any more.

    pi@RepetierServer:~ $ ls -l /var/lib/Repetier-Server/scripts/
    total 12
    -rw-r----- 1 repetierserver dialout 2875 Aug  6  2021 hardware_info
    -rw-r----- 1 repetierserver dialout  194 Aug  6  2021 mountflash
    -rw-r----- 1 repetierserver dialout   52 Aug  6  2021 unmountflash
    pi@RepetierServer:~ $ sudo /var/lib/Repetier-Server/scripts/hardware_info
    sudo: /var/lib/Repetier-Server/scripts/hardware_info: command not found

    I have no a pi cam. I has Bus 001 Device 003: ID 046d:081b Logitech, Inc. Webcam C310. Will be think about upgrade the Debian to 11. Thx!

  • Ok for some reason the x flag is not set here. Run
    sudo chmod a+rx /var/lib/Repetier-Server/scripts/hardware_info
    and then it should start to appear after a minute.

    I found the bug in our post install script where there was a type in the line setting permissions. Only users with newer images did get it, because the script is there preinstalled correctly with execute permissions. Thanks for finding the issue.
  • Repetier said:
    Ok for some reason the x flag is not set here. Run
    sudo chmod a+rx /var/lib/Repetier-Server/scripts/hardware_info
    and then it should start to appear after a minute.

    I found the bug in our post install script where there was a type in the line setting permissions. Only users with newer images did get it, because the script is there preinstalled correctly with execute permissions. Thanks for finding the issue.

    It work thx!
Sign In or Register to comment.