Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===== Config file =====
- [mcu]
- serial = /dev/serial/by-id/<your-mcu-id>
- [printer]
- kinematics = none
- max_velocity = 1000
- max_accel = 1000
- =======================
- Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/printer_data/config/printer.cfg', '-I', '/home/pi/printer_data/comms/klippy.serial', '-l', '/home/pi/printer_data/logs/klippy.log', '-a', '/home/pi/printer_data/comms/klippy.sock']
- Git version: 'v0.11.0-121-ga5fb2076'
- CPU: 4 core ?
- Python: '3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]'
- webhooks client 548046095936: {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- =============== Log rollover at Fri Feb 24 09:37:57 2023 ===============
- MCU error during connect
- Traceback (most recent call last):
- File "/home/pi/klipper/klippy/mcu.py", line 798, in _mcu_identify
- self._serial.connect_uart(self._serialport, self._baud, rts)
- File "/home/pi/klipper/klippy/serialhdl.py", line 182, in connect_uart
- self._error("Unable to connect")
- File "/home/pi/klipper/klippy/serialhdl.py", line 61, in _error
- raise error(self.warn_prefix + (msg % params))
- serialhdl.error: mcu 'mcu': Unable to connect
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
- self.send_event("klippy:mcu_identify")
- File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/mcu.py", line 803, in _mcu_identify
- raise error(str(e))
- mcu.error: mcu 'mcu': Unable to connect
- Build file /home/pi/klipper/klippy/../.config(2460): Thu Feb 23 22:14:16 2023
- ========= Last MCU build config =========
- # CONFIG_LOW_LEVEL_OPTIONS is not set
- # CONFIG_MACH_AVR is not set
- # CONFIG_MACH_ATSAM is not set
- # CONFIG_MACH_ATSAMD is not set
- # CONFIG_MACH_LPC176X is not set
- CONFIG_MACH_STM32=y
- # CONFIG_MACH_HC32F460 is not set
- # CONFIG_MACH_RP2040 is not set
- # CONFIG_MACH_PRU is not set
- # CONFIG_MACH_AR100 is not set
- # CONFIG_MACH_LINUX is not set
- # CONFIG_MACH_SIMU is not set
- CONFIG_BOARD_DIRECTORY="stm32"
- CONFIG_MCU="stm32g0b1xx"
- CONFIG_CLOCK_FREQ=64000000
- CONFIG_USBSERIAL=y
- CONFIG_FLASH_SIZE=0x20000
- CONFIG_FLASH_BOOT_ADDRESS=0x8000000
- CONFIG_RAM_START=0x20000000
- CONFIG_RAM_SIZE=0x24000
- CONFIG_STACK_SIZE=512
- CONFIG_FLASH_APPLICATION_ADDRESS=0x8002000
- CONFIG_STM32_SELECT=y
- # CONFIG_MACH_STM32F103 is not set
- # CONFIG_MACH_STM32F207 is not set
- # CONFIG_MACH_STM32F401 is not set
- # CONFIG_MACH_STM32F405 is not set
- # CONFIG_MACH_STM32F407 is not set
- # CONFIG_MACH_STM32F429 is not set
- # CONFIG_MACH_STM32F446 is not set
- # CONFIG_MACH_STM32F031 is not set
- # CONFIG_MACH_STM32F042 is not set
- # CONFIG_MACH_STM32F070 is not set
- # CONFIG_MACH_STM32F072 is not set
- # CONFIG_MACH_STM32G070 is not set
- # CONFIG_MACH_STM32G071 is not set
- # CONFIG_MACH_STM32G0B0 is not set
- CONFIG_MACH_STM32G0B1=y
- # CONFIG_MACH_STM32G431 is not set
- # CONFIG_MACH_STM32H723 is not set
- # CONFIG_MACH_STM32H743 is not set
- # CONFIG_MACH_STM32H750 is not set
- # CONFIG_MACH_STM32L412 is not set
- CONFIG_MACH_STM32G0=y
- CONFIG_MACH_STM32G0Bx=y
- CONFIG_HAVE_STM32_USBFS=y
- CONFIG_HAVE_STM32_FDCANBUS=y
- CONFIG_HAVE_STM32_USBCANBUS=y
- CONFIG_STM32_DFU_ROM_ADDRESS=0x1fff0000
- CONFIG_STM32_FLASH_START_2000=y
- # CONFIG_STM32_FLASH_START_0000 is not set
- CONFIG_CLOCK_REF_FREQ=8000000
- CONFIG_STM32F0_TRIM=16
- CONFIG_STM32_USB_PA11_PA12=y
- # CONFIG_STM32_SERIAL_USART1 is not set
- # CONFIG_STM32_CANBUS_PA11_PA12 is not set
- # CONFIG_STM32_CANBUS_PA11_PB9 is not set
- # CONFIG_STM32_MMENU_CANBUS_PB0_PB1 is not set
- # CONFIG_STM32_MMENU_CANBUS_PD12_PD13 is not set
- # CONFIG_STM32_MMENU_CANBUS_PC2_PC3 is not set
- # CONFIG_STM32_USBCANBUS_PA11_PA12 is not set
- CONFIG_USB=y
- CONFIG_USB_VENDOR_ID=0x1d50
- CONFIG_USB_DEVICE_ID=0x614e
- CONFIG_USB_SERIAL_NUMBER_CHIPID=y
- CONFIG_USB_SERIAL_NUMBER="12345"
- CONFIG_CANBUS_FREQUENCY=500000
- CONFIG_HAVE_GPIO=y
- CONFIG_HAVE_GPIO_ADC=y
- CONFIG_HAVE_GPIO_SPI=y
- CONFIG_HAVE_GPIO_I2C=y
- CONFIG_HAVE_GPIO_HARD_PWM=y
- CONFIG_HAVE_GPIO_BITBANGING=y
- CONFIG_HAVE_STRICT_TIMING=y
- CONFIG_HAVE_CHIPID=y
- CONFIG_HAVE_STEPPER_BOTH_EDGE=y
- CONFIG_HAVE_BOOTLOADER_REQUEST=y
- CONFIG_INLINE_STEPPER_HACK=y
- =======================
- Build file /home/pi/klipper/klippy/../out/klipper.dict(7746): Thu Feb 23 22:14:41 2023
- Last MCU build version: v0.11.0-121-ga5fb2076
- Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2
- Last MCU build config: ADC_MAX=4095 BUS_PINS_i2c1_PA9_PA10=PA9,PA10 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_i2c2_PB13_PB14=PB13,PB14 BUS_PINS_i2c3_PB3_PB4=PB3,PB4 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 CLOCK_FREQ=64000000 MCU=stm32g0b1xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PF0,PF1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
- Build file /home/pi/klipper/klippy/../out/klipper.elf(1029764): Thu Feb 23 22:14:49 2023
- Starting Klippy...
- Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/printer_data/config/printer.cfg', '-I', '/home/pi/printer_data/comms/klippy.serial', '-l', '/home/pi/printer_data/logs/klippy.log', '-a', '/home/pi/printer_data/comms/klippy.sock']
- Git version: 'v0.11.0-121-ga5fb2076'
- CPU: 4 core ?
- Python: '3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]'
- Start printer at Fri Feb 24 09:38:58 2023 (1677249538.4 48.7)
- ===== Config file =====
- [mcu]
- serial = /dev/serial/by-id/<your-mcu-id>
- [printer]
- kinematics = none
- max_velocity = 1000
- max_accel = 1000
- =======================
- mcu 'mcu': Starting serial connect
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- webhooks client 548236818032: New connection
- webhooks client 548236818032: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- MCU error during connect
- Traceback (most recent call last):
- File "/home/pi/klipper/klippy/mcu.py", line 798, in _mcu_identify
- self._serial.connect_uart(self._serialport, self._baud, rts)
- File "/home/pi/klipper/klippy/serialhdl.py", line 182, in connect_uart
- self._error("Unable to connect")
- File "/home/pi/klipper/klippy/serialhdl.py", line 61, in _error
- raise error(self.warn_prefix + (msg % params))
- serialhdl.error: mcu 'mcu': Unable to connect
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
- self.send_event("klippy:mcu_identify")
- File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/mcu.py", line 803, in _mcu_identify
- raise error(str(e))
- mcu.error: mcu 'mcu': Unable to connect
- Build file /home/pi/klipper/klippy/../.config(2460): Thu Feb 23 22:14:16 2023
- ========= Last MCU build config =========
- # CONFIG_LOW_LEVEL_OPTIONS is not set
- # CONFIG_MACH_AVR is not set
- # CONFIG_MACH_ATSAM is not set
- # CONFIG_MACH_ATSAMD is not set
- # CONFIG_MACH_LPC176X is not set
- CONFIG_MACH_STM32=y
- # CONFIG_MACH_HC32F460 is not set
- # CONFIG_MACH_RP2040 is not set
- # CONFIG_MACH_PRU is not set
- # CONFIG_MACH_AR100 is not set
- # CONFIG_MACH_LINUX is not set
- # CONFIG_MACH_SIMU is not set
- CONFIG_BOARD_DIRECTORY="stm32"
- CONFIG_MCU="stm32g0b1xx"
- CONFIG_CLOCK_FREQ=64000000
- CONFIG_USBSERIAL=y
- CONFIG_FLASH_SIZE=0x20000
- CONFIG_FLASH_BOOT_ADDRESS=0x8000000
- CONFIG_RAM_START=0x20000000
- CONFIG_RAM_SIZE=0x24000
- CONFIG_STACK_SIZE=512
- CONFIG_FLASH_APPLICATION_ADDRESS=0x8002000
- CONFIG_STM32_SELECT=y
- # CONFIG_MACH_STM32F103 is not set
- # CONFIG_MACH_STM32F207 is not set
- # CONFIG_MACH_STM32F401 is not set
- # CONFIG_MACH_STM32F405 is not set
- # CONFIG_MACH_STM32F407 is not set
- # CONFIG_MACH_STM32F429 is not set
- # CONFIG_MACH_STM32F446 is not set
- # CONFIG_MACH_STM32F031 is not set
- # CONFIG_MACH_STM32F042 is not set
- # CONFIG_MACH_STM32F070 is not set
- # CONFIG_MACH_STM32F072 is not set
- # CONFIG_MACH_STM32G070 is not set
- # CONFIG_MACH_STM32G071 is not set
- # CONFIG_MACH_STM32G0B0 is not set
- CONFIG_MACH_STM32G0B1=y
- # CONFIG_MACH_STM32G431 is not set
- # CONFIG_MACH_STM32H723 is not set
- # CONFIG_MACH_STM32H743 is not set
- # CONFIG_MACH_STM32H750 is not set
- # CONFIG_MACH_STM32L412 is not set
- CONFIG_MACH_STM32G0=y
- CONFIG_MACH_STM32G0Bx=y
- CONFIG_HAVE_STM32_USBFS=y
- CONFIG_HAVE_STM32_FDCANBUS=y
- CONFIG_HAVE_STM32_USBCANBUS=y
- CONFIG_STM32_DFU_ROM_ADDRESS=0x1fff0000
- CONFIG_STM32_FLASH_START_2000=y
- # CONFIG_STM32_FLASH_START_0000 is not set
- CONFIG_CLOCK_REF_FREQ=8000000
- CONFIG_STM32F0_TRIM=16
- CONFIG_STM32_USB_PA11_PA12=y
- # CONFIG_STM32_SERIAL_USART1 is not set
- # CONFIG_STM32_CANBUS_PA11_PA12 is not set
- # CONFIG_STM32_CANBUS_PA11_PB9 is not set
- # CONFIG_STM32_MMENU_CANBUS_PB0_PB1 is not set
- # CONFIG_STM32_MMENU_CANBUS_PD12_PD13 is not set
- # CONFIG_STM32_MMENU_CANBUS_PC2_PC3 is not set
- # CONFIG_STM32_USBCANBUS_PA11_PA12 is not set
- CONFIG_USB=y
- CONFIG_USB_VENDOR_ID=0x1d50
- CONFIG_USB_DEVICE_ID=0x614e
- CONFIG_USB_SERIAL_NUMBER_CHIPID=y
- CONFIG_USB_SERIAL_NUMBER="12345"
- CONFIG_CANBUS_FREQUENCY=500000
- CONFIG_HAVE_GPIO=y
- CONFIG_HAVE_GPIO_ADC=y
- CONFIG_HAVE_GPIO_SPI=y
- CONFIG_HAVE_GPIO_I2C=y
- CONFIG_HAVE_GPIO_HARD_PWM=y
- CONFIG_HAVE_GPIO_BITBANGING=y
- CONFIG_HAVE_STRICT_TIMING=y
- CONFIG_HAVE_CHIPID=y
- CONFIG_HAVE_STEPPER_BOTH_EDGE=y
- CONFIG_HAVE_BOOTLOADER_REQUEST=y
- CONFIG_INLINE_STEPPER_HACK=y
- =======================
- Build file /home/pi/klipper/klippy/../out/klipper.dict(7746): Thu Feb 23 22:14:41 2023
- Last MCU build version: v0.11.0-121-ga5fb2076
- Last MCU build tools: gcc: (15:8-2019-q3-1+b1) 8.3.1 20190703 (release) [gcc-8-branch revision 273027] binutils: (2.35.2-2+14+b2) 2.35.2
- Last MCU build config: ADC_MAX=4095 BUS_PINS_i2c1_PA9_PA10=PA9,PA10 BUS_PINS_i2c1_PB6_PB7=PB6,PB7 BUS_PINS_i2c1_PB8_PB9=PB8,PB9 BUS_PINS_i2c2_PB10_PB11=PB10,PB11 BUS_PINS_i2c2_PB13_PB14=PB13,PB14 BUS_PINS_i2c3_PB3_PB4=PB3,PB4 BUS_PINS_spi1=PA6,PA7,PA5 BUS_PINS_spi1a=PB4,PB5,PB3 BUS_PINS_spi2=PB14,PB15,PB13 BUS_PINS_spi2a=PC2,PC3,PB10 BUS_PINS_spi3=PB4,PB5,PB3 CLOCK_FREQ=64000000 MCU=stm32g0b1xx PWM_MAX=255 RESERVE_PINS_USB=PA11,PA12 RESERVE_PINS_crystal=PF0,PF1 STATS_SUMSQ_BASE=256 STEPPER_BOTH_EDGE=1
- Build file /home/pi/klipper/klippy/../out/klipper.elf(1029764): Thu Feb 23 22:14:49 2023
- webhooks client 548236818032: Disconnected
- webhooks client 548235748736: New connection
- webhooks client 548235748736: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- Attempting MCU 'mcu' reset
- Unhandled exception during post run
- Traceback (most recent call last):
- File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 265, in open
- self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
- FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/pi/klipper/klippy/klippy.py", line 234, in run
- self.send_event("klippy:firmware_restart")
- File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/mcu.py", line 949, in _firmware_restart
- self._restart_arduino()
- File "/home/pi/klipper/klippy/mcu.py", line 909, in _restart_arduino
- serialhdl.arduino_reset(self._serialport, self._reactor)
- File "/home/pi/klipper/klippy/serialhdl.py", line 379, in arduino_reset
- ser = serial.Serial(serialport, 2400, timeout=0, exclusive=True)
- File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialutil.py", line 240, in __init__
- self.open()
- File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 268, in open
- raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
- serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- Restarting printer
- Start printer at Fri Feb 24 10:48:02 2023 (1677253682.9 4111.5)
- ===== Config file =====
- [virtual_sdcard]
- path = /home/pi/gcode_files
- [pause_resume]
- [display_status]
- [gcode_macro CANCEL_PRINT]
- description = Cancel the actual running print
- rename_existing = CANCEL_PRINT_BASE
- gcode =
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description = Pause the actual running print
- rename_existing = PAUSE_BASE
- variable_extrude = 1.0
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - 2.0) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- PAUSE_BASE
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E-{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description = Resume the actual running print
- rename_existing = RESUME_BASE
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G91
- G1 E{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [mcu]
- serial = /dev/serial/by-id/<your-mcu-id>
- [printer]
- kinematics = none
- max_velocity = 1000
- max_accel = 1000
- =======================
- mcu 'mcu': Starting serial connect
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- webhooks client 548236818080: New connection
- webhooks client 548236818080: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- webhooks client 548236818080: Disconnected
- Restarting printer
- Start printer at Fri Feb 24 10:48:08 2023 (1677253688.7 4117.3)
- ===== Config file =====
- [virtual_sdcard]
- path = /home/pi/gcode_files
- [pause_resume]
- [display_status]
- [gcode_macro CANCEL_PRINT]
- description = Cancel the actual running print
- rename_existing = CANCEL_PRINT_BASE
- gcode =
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description = Pause the actual running print
- rename_existing = PAUSE_BASE
- variable_extrude = 1.0
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - 2.0) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- PAUSE_BASE
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E-{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description = Resume the actual running print
- rename_existing = RESUME_BASE
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G91
- G1 E{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [mcu]
- serial = /dev/serial/by-id/<your-mcu-id>
- [printer]
- kinematics = none
- max_velocity = 1000
- max_accel = 1000
- =======================
- mcu 'mcu': Starting serial connect
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- webhooks client 548235686576: New connection
- webhooks client 548235686576: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- Attempting MCU 'mcu' reset
- Unhandled exception during post run
- Traceback (most recent call last):
- File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 265, in open
- self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
- FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/pi/klipper/klippy/klippy.py", line 234, in run
- self.send_event("klippy:firmware_restart")
- File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
- return [cb(*params) for cb in self.event_handlers.get(event, [])]
- File "/home/pi/klipper/klippy/mcu.py", line 949, in _firmware_restart
- self._restart_arduino()
- File "/home/pi/klipper/klippy/mcu.py", line 909, in _restart_arduino
- serialhdl.arduino_reset(self._serialport, self._reactor)
- File "/home/pi/klipper/klippy/serialhdl.py", line 379, in arduino_reset
- ser = serial.Serial(serialport, 2400, timeout=0, exclusive=True)
- File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialutil.py", line 240, in __init__
- self.open()
- File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 268, in open
- raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
- serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- Restarting printer
- Start printer at Fri Feb 24 10:48:57 2023 (1677253737.5 4166.1)
- ===== Config file =====
- [virtual_sdcard]
- path = /home/pi/gcode_files
- [pause_resume]
- [display_status]
- [gcode_macro CANCEL_PRINT]
- description = Cancel the actual running print
- rename_existing = CANCEL_PRINT_BASE
- gcode =
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description = Pause the actual running print
- rename_existing = PAUSE_BASE
- variable_extrude = 1.0
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - 2.0) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- PAUSE_BASE
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E-{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description = Resume the actual running print
- rename_existing = RESUME_BASE
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G91
- G1 E{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [mcu]
- serial = /dev/serial/by-id/<your-mcu-id>
- [printer]
- kinematics = none
- max_velocity = 1000
- max_accel = 1000
- =======================
- mcu 'mcu': Starting serial connect
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- webhooks client 548241563024: New connection
- webhooks client 548241563024: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- webhooks client 548241563024: Disconnected
- Restarting printer
- Start printer at Fri Feb 24 10:49:04 2023 (1677253744.8 4173.4)
- ===== Config file =====
- [virtual_sdcard]
- path = /home/pi/gcode_files
- [pause_resume]
- [display_status]
- [gcode_macro CANCEL_PRINT]
- description = Cancel the actual running print
- rename_existing = CANCEL_PRINT_BASE
- gcode =
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description = Pause the actual running print
- rename_existing = PAUSE_BASE
- variable_extrude = 1.0
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - 2.0) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- PAUSE_BASE
- G91
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G1 E-{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
- [gcode_macro RESUME]
- description = Resume the actual running print
- rename_existing = RESUME_BASE
- gcode =
- {% set E = printer["gcode_macro PAUSE"].extrude|float %}
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- G91
- G1 E{E} F2100
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [mcu]
- serial = /dev/serial/by-id/<your-mcu-id>
- [printer]
- kinematics = none
- max_velocity = 1000
- max_accel = 1000
- =======================
- mcu 'mcu': Starting serial connect
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- webhooks client 548241411856: New connection
- webhooks client 548241411856: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
- mcu 'mcu': Unable to open serial port: [Errno 2] could not open port /dev/serial/by-id/<your-mcu-id>: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
Advertisement
Add Comment
Please, Sign In to add comment