Guest User

Untitled

a guest
Feb 24th, 2023
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.11 KB | None | 0 0
  1. ===== Config file =====
  2. [mcu]
  3. serial = /dev/serial/by-id/<your-mcu-id>
  4.  
  5. [printer]
  6. kinematics = none
  7. max_velocity = 1000
  8. max_accel = 1000
  9. =======================
  10. 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']
  11. Git version: 'v0.11.0-121-ga5fb2076'
  12. CPU: 4 core ?
  13. Python: '3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]'
  14. webhooks client 548046095936: {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  15. =============== Log rollover at Fri Feb 24 09:37:57 2023 ===============
  16. MCU error during connect
  17. Traceback (most recent call last):
  18. File "/home/pi/klipper/klippy/mcu.py", line 798, in _mcu_identify
  19. self._serial.connect_uart(self._serialport, self._baud, rts)
  20. File "/home/pi/klipper/klippy/serialhdl.py", line 182, in connect_uart
  21. self._error("Unable to connect")
  22. File "/home/pi/klipper/klippy/serialhdl.py", line 61, in _error
  23. raise error(self.warn_prefix + (msg % params))
  24. serialhdl.error: mcu 'mcu': Unable to connect
  25.  
  26. During handling of the above exception, another exception occurred:
  27.  
  28. Traceback (most recent call last):
  29. File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
  30. self.send_event("klippy:mcu_identify")
  31. File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
  32. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  33. File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
  34. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  35. File "/home/pi/klipper/klippy/mcu.py", line 803, in _mcu_identify
  36. raise error(str(e))
  37. mcu.error: mcu 'mcu': Unable to connect
  38. Build file /home/pi/klipper/klippy/../.config(2460): Thu Feb 23 22:14:16 2023
  39. ========= Last MCU build config =========
  40. # CONFIG_LOW_LEVEL_OPTIONS is not set
  41. # CONFIG_MACH_AVR is not set
  42. # CONFIG_MACH_ATSAM is not set
  43. # CONFIG_MACH_ATSAMD is not set
  44. # CONFIG_MACH_LPC176X is not set
  45. CONFIG_MACH_STM32=y
  46. # CONFIG_MACH_HC32F460 is not set
  47. # CONFIG_MACH_RP2040 is not set
  48. # CONFIG_MACH_PRU is not set
  49. # CONFIG_MACH_AR100 is not set
  50. # CONFIG_MACH_LINUX is not set
  51. # CONFIG_MACH_SIMU is not set
  52. CONFIG_BOARD_DIRECTORY="stm32"
  53. CONFIG_MCU="stm32g0b1xx"
  54. CONFIG_CLOCK_FREQ=64000000
  55. CONFIG_USBSERIAL=y
  56. CONFIG_FLASH_SIZE=0x20000
  57. CONFIG_FLASH_BOOT_ADDRESS=0x8000000
  58. CONFIG_RAM_START=0x20000000
  59. CONFIG_RAM_SIZE=0x24000
  60. CONFIG_STACK_SIZE=512
  61. CONFIG_FLASH_APPLICATION_ADDRESS=0x8002000
  62. CONFIG_STM32_SELECT=y
  63. # CONFIG_MACH_STM32F103 is not set
  64. # CONFIG_MACH_STM32F207 is not set
  65. # CONFIG_MACH_STM32F401 is not set
  66. # CONFIG_MACH_STM32F405 is not set
  67. # CONFIG_MACH_STM32F407 is not set
  68. # CONFIG_MACH_STM32F429 is not set
  69. # CONFIG_MACH_STM32F446 is not set
  70. # CONFIG_MACH_STM32F031 is not set
  71. # CONFIG_MACH_STM32F042 is not set
  72. # CONFIG_MACH_STM32F070 is not set
  73. # CONFIG_MACH_STM32F072 is not set
  74. # CONFIG_MACH_STM32G070 is not set
  75. # CONFIG_MACH_STM32G071 is not set
  76. # CONFIG_MACH_STM32G0B0 is not set
  77. CONFIG_MACH_STM32G0B1=y
  78. # CONFIG_MACH_STM32G431 is not set
  79. # CONFIG_MACH_STM32H723 is not set
  80. # CONFIG_MACH_STM32H743 is not set
  81. # CONFIG_MACH_STM32H750 is not set
  82. # CONFIG_MACH_STM32L412 is not set
  83. CONFIG_MACH_STM32G0=y
  84. CONFIG_MACH_STM32G0Bx=y
  85. CONFIG_HAVE_STM32_USBFS=y
  86. CONFIG_HAVE_STM32_FDCANBUS=y
  87. CONFIG_HAVE_STM32_USBCANBUS=y
  88. CONFIG_STM32_DFU_ROM_ADDRESS=0x1fff0000
  89. CONFIG_STM32_FLASH_START_2000=y
  90. # CONFIG_STM32_FLASH_START_0000 is not set
  91. CONFIG_CLOCK_REF_FREQ=8000000
  92. CONFIG_STM32F0_TRIM=16
  93. CONFIG_STM32_USB_PA11_PA12=y
  94. # CONFIG_STM32_SERIAL_USART1 is not set
  95. # CONFIG_STM32_CANBUS_PA11_PA12 is not set
  96. # CONFIG_STM32_CANBUS_PA11_PB9 is not set
  97. # CONFIG_STM32_MMENU_CANBUS_PB0_PB1 is not set
  98. # CONFIG_STM32_MMENU_CANBUS_PD12_PD13 is not set
  99. # CONFIG_STM32_MMENU_CANBUS_PC2_PC3 is not set
  100. # CONFIG_STM32_USBCANBUS_PA11_PA12 is not set
  101. CONFIG_USB=y
  102. CONFIG_USB_VENDOR_ID=0x1d50
  103. CONFIG_USB_DEVICE_ID=0x614e
  104. CONFIG_USB_SERIAL_NUMBER_CHIPID=y
  105. CONFIG_USB_SERIAL_NUMBER="12345"
  106. CONFIG_CANBUS_FREQUENCY=500000
  107. CONFIG_HAVE_GPIO=y
  108. CONFIG_HAVE_GPIO_ADC=y
  109. CONFIG_HAVE_GPIO_SPI=y
  110. CONFIG_HAVE_GPIO_I2C=y
  111. CONFIG_HAVE_GPIO_HARD_PWM=y
  112. CONFIG_HAVE_GPIO_BITBANGING=y
  113. CONFIG_HAVE_STRICT_TIMING=y
  114. CONFIG_HAVE_CHIPID=y
  115. CONFIG_HAVE_STEPPER_BOTH_EDGE=y
  116. CONFIG_HAVE_BOOTLOADER_REQUEST=y
  117. CONFIG_INLINE_STEPPER_HACK=y
  118. =======================
  119. Build file /home/pi/klipper/klippy/../out/klipper.dict(7746): Thu Feb 23 22:14:41 2023
  120. Last MCU build version: v0.11.0-121-ga5fb2076
  121. 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
  122. 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
  123. Build file /home/pi/klipper/klippy/../out/klipper.elf(1029764): Thu Feb 23 22:14:49 2023
  124. Starting Klippy...
  125. 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']
  126. Git version: 'v0.11.0-121-ga5fb2076'
  127. CPU: 4 core ?
  128. Python: '3.9.2 (default, Feb 28 2021, 17:03:44) \n[GCC 10.2.1 20210110]'
  129. Start printer at Fri Feb 24 09:38:58 2023 (1677249538.4 48.7)
  130. ===== Config file =====
  131. [mcu]
  132. serial = /dev/serial/by-id/<your-mcu-id>
  133.  
  134. [printer]
  135. kinematics = none
  136. max_velocity = 1000
  137. max_accel = 1000
  138. =======================
  139. mcu 'mcu': Starting serial connect
  140. 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>'
  141. webhooks client 548236818032: New connection
  142. webhooks client 548236818032: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  143. 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>'
  144. 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>'
  145. 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>'
  146. 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>'
  147. 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>'
  148. 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>'
  149. 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>'
  150. 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>'
  151. 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>'
  152. 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>'
  153. 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>'
  154. 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>'
  155. 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>'
  156. 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>'
  157. 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>'
  158. 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>'
  159. 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>'
  160. MCU error during connect
  161. Traceback (most recent call last):
  162. File "/home/pi/klipper/klippy/mcu.py", line 798, in _mcu_identify
  163. self._serial.connect_uart(self._serialport, self._baud, rts)
  164. File "/home/pi/klipper/klippy/serialhdl.py", line 182, in connect_uart
  165. self._error("Unable to connect")
  166. File "/home/pi/klipper/klippy/serialhdl.py", line 61, in _error
  167. raise error(self.warn_prefix + (msg % params))
  168. serialhdl.error: mcu 'mcu': Unable to connect
  169.  
  170. During handling of the above exception, another exception occurred:
  171.  
  172. Traceback (most recent call last):
  173. File "/home/pi/klipper/klippy/klippy.py", line 176, in _connect
  174. self.send_event("klippy:mcu_identify")
  175. File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
  176. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  177. File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
  178. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  179. File "/home/pi/klipper/klippy/mcu.py", line 803, in _mcu_identify
  180. raise error(str(e))
  181. mcu.error: mcu 'mcu': Unable to connect
  182. Build file /home/pi/klipper/klippy/../.config(2460): Thu Feb 23 22:14:16 2023
  183. ========= Last MCU build config =========
  184. # CONFIG_LOW_LEVEL_OPTIONS is not set
  185. # CONFIG_MACH_AVR is not set
  186. # CONFIG_MACH_ATSAM is not set
  187. # CONFIG_MACH_ATSAMD is not set
  188. # CONFIG_MACH_LPC176X is not set
  189. CONFIG_MACH_STM32=y
  190. # CONFIG_MACH_HC32F460 is not set
  191. # CONFIG_MACH_RP2040 is not set
  192. # CONFIG_MACH_PRU is not set
  193. # CONFIG_MACH_AR100 is not set
  194. # CONFIG_MACH_LINUX is not set
  195. # CONFIG_MACH_SIMU is not set
  196. CONFIG_BOARD_DIRECTORY="stm32"
  197. CONFIG_MCU="stm32g0b1xx"
  198. CONFIG_CLOCK_FREQ=64000000
  199. CONFIG_USBSERIAL=y
  200. CONFIG_FLASH_SIZE=0x20000
  201. CONFIG_FLASH_BOOT_ADDRESS=0x8000000
  202. CONFIG_RAM_START=0x20000000
  203. CONFIG_RAM_SIZE=0x24000
  204. CONFIG_STACK_SIZE=512
  205. CONFIG_FLASH_APPLICATION_ADDRESS=0x8002000
  206. CONFIG_STM32_SELECT=y
  207. # CONFIG_MACH_STM32F103 is not set
  208. # CONFIG_MACH_STM32F207 is not set
  209. # CONFIG_MACH_STM32F401 is not set
  210. # CONFIG_MACH_STM32F405 is not set
  211. # CONFIG_MACH_STM32F407 is not set
  212. # CONFIG_MACH_STM32F429 is not set
  213. # CONFIG_MACH_STM32F446 is not set
  214. # CONFIG_MACH_STM32F031 is not set
  215. # CONFIG_MACH_STM32F042 is not set
  216. # CONFIG_MACH_STM32F070 is not set
  217. # CONFIG_MACH_STM32F072 is not set
  218. # CONFIG_MACH_STM32G070 is not set
  219. # CONFIG_MACH_STM32G071 is not set
  220. # CONFIG_MACH_STM32G0B0 is not set
  221. CONFIG_MACH_STM32G0B1=y
  222. # CONFIG_MACH_STM32G431 is not set
  223. # CONFIG_MACH_STM32H723 is not set
  224. # CONFIG_MACH_STM32H743 is not set
  225. # CONFIG_MACH_STM32H750 is not set
  226. # CONFIG_MACH_STM32L412 is not set
  227. CONFIG_MACH_STM32G0=y
  228. CONFIG_MACH_STM32G0Bx=y
  229. CONFIG_HAVE_STM32_USBFS=y
  230. CONFIG_HAVE_STM32_FDCANBUS=y
  231. CONFIG_HAVE_STM32_USBCANBUS=y
  232. CONFIG_STM32_DFU_ROM_ADDRESS=0x1fff0000
  233. CONFIG_STM32_FLASH_START_2000=y
  234. # CONFIG_STM32_FLASH_START_0000 is not set
  235. CONFIG_CLOCK_REF_FREQ=8000000
  236. CONFIG_STM32F0_TRIM=16
  237. CONFIG_STM32_USB_PA11_PA12=y
  238. # CONFIG_STM32_SERIAL_USART1 is not set
  239. # CONFIG_STM32_CANBUS_PA11_PA12 is not set
  240. # CONFIG_STM32_CANBUS_PA11_PB9 is not set
  241. # CONFIG_STM32_MMENU_CANBUS_PB0_PB1 is not set
  242. # CONFIG_STM32_MMENU_CANBUS_PD12_PD13 is not set
  243. # CONFIG_STM32_MMENU_CANBUS_PC2_PC3 is not set
  244. # CONFIG_STM32_USBCANBUS_PA11_PA12 is not set
  245. CONFIG_USB=y
  246. CONFIG_USB_VENDOR_ID=0x1d50
  247. CONFIG_USB_DEVICE_ID=0x614e
  248. CONFIG_USB_SERIAL_NUMBER_CHIPID=y
  249. CONFIG_USB_SERIAL_NUMBER="12345"
  250. CONFIG_CANBUS_FREQUENCY=500000
  251. CONFIG_HAVE_GPIO=y
  252. CONFIG_HAVE_GPIO_ADC=y
  253. CONFIG_HAVE_GPIO_SPI=y
  254. CONFIG_HAVE_GPIO_I2C=y
  255. CONFIG_HAVE_GPIO_HARD_PWM=y
  256. CONFIG_HAVE_GPIO_BITBANGING=y
  257. CONFIG_HAVE_STRICT_TIMING=y
  258. CONFIG_HAVE_CHIPID=y
  259. CONFIG_HAVE_STEPPER_BOTH_EDGE=y
  260. CONFIG_HAVE_BOOTLOADER_REQUEST=y
  261. CONFIG_INLINE_STEPPER_HACK=y
  262. =======================
  263. Build file /home/pi/klipper/klippy/../out/klipper.dict(7746): Thu Feb 23 22:14:41 2023
  264. Last MCU build version: v0.11.0-121-ga5fb2076
  265. 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
  266. 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
  267. Build file /home/pi/klipper/klippy/../out/klipper.elf(1029764): Thu Feb 23 22:14:49 2023
  268. webhooks client 548236818032: Disconnected
  269. webhooks client 548235748736: New connection
  270. webhooks client 548235748736: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  271. Attempting MCU 'mcu' reset
  272. Unhandled exception during post run
  273. Traceback (most recent call last):
  274. File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 265, in open
  275. self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
  276. FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  277.  
  278. During handling of the above exception, another exception occurred:
  279.  
  280. Traceback (most recent call last):
  281. File "/home/pi/klipper/klippy/klippy.py", line 234, in run
  282. self.send_event("klippy:firmware_restart")
  283. File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
  284. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  285. File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
  286. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  287. File "/home/pi/klipper/klippy/mcu.py", line 949, in _firmware_restart
  288. self._restart_arduino()
  289. File "/home/pi/klipper/klippy/mcu.py", line 909, in _restart_arduino
  290. serialhdl.arduino_reset(self._serialport, self._reactor)
  291. File "/home/pi/klipper/klippy/serialhdl.py", line 379, in arduino_reset
  292. ser = serial.Serial(serialport, 2400, timeout=0, exclusive=True)
  293. File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialutil.py", line 240, in __init__
  294. self.open()
  295. File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 268, in open
  296. raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
  297. 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>'
  298. Restarting printer
  299. Start printer at Fri Feb 24 10:48:02 2023 (1677253682.9 4111.5)
  300. ===== Config file =====
  301. [virtual_sdcard]
  302. path = /home/pi/gcode_files
  303.  
  304. [pause_resume]
  305.  
  306. [display_status]
  307.  
  308. [gcode_macro CANCEL_PRINT]
  309. description = Cancel the actual running print
  310. rename_existing = CANCEL_PRINT_BASE
  311. gcode =
  312. TURN_OFF_HEATERS
  313. CANCEL_PRINT_BASE
  314.  
  315. [gcode_macro PAUSE]
  316. description = Pause the actual running print
  317. rename_existing = PAUSE_BASE
  318. variable_extrude = 1.0
  319. gcode =
  320.  
  321. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  322.  
  323.  
  324. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  325. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  326.  
  327. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  328. {% set act_z = printer.toolhead.position.z|float %}
  329. {% if act_z < (max_z - 2.0) %}
  330. {% set z_safe = 2.0 %}
  331. {% else %}
  332. {% set z_safe = max_z - act_z %}
  333. {% endif %}
  334.  
  335. PAUSE_BASE
  336. G91
  337. {% if printer.extruder.can_extrude|lower == 'true' %}
  338. G1 E-{E} F2100
  339. {% else %}
  340. {action_respond_info("Extruder not hot enough")}
  341. {% endif %}
  342. {% if "xyz" in printer.toolhead.homed_axes %}
  343. G1 Z{z_safe} F900
  344. G90
  345. G1 X{x_park} Y{y_park} F6000
  346. {% else %}
  347. {action_respond_info("Printer not homed")}
  348. {% endif %}
  349.  
  350. [gcode_macro RESUME]
  351. description = Resume the actual running print
  352. rename_existing = RESUME_BASE
  353. gcode =
  354.  
  355. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  356.  
  357. {% if 'VELOCITY' in params|upper %}
  358. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  359. {%else %}
  360. {% set get_params = "" %}
  361. {% endif %}
  362.  
  363. {% if printer.extruder.can_extrude|lower == 'true' %}
  364. G91
  365. G1 E{E} F2100
  366. {% else %}
  367. {action_respond_info("Extruder not hot enough")}
  368. {% endif %}
  369. RESUME_BASE {get_params}
  370.  
  371. [mcu]
  372. serial = /dev/serial/by-id/<your-mcu-id>
  373.  
  374. [printer]
  375. kinematics = none
  376. max_velocity = 1000
  377. max_accel = 1000
  378. =======================
  379. mcu 'mcu': Starting serial connect
  380. 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>'
  381. webhooks client 548236818080: New connection
  382. webhooks client 548236818080: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  383. webhooks client 548236818080: Disconnected
  384. Restarting printer
  385. Start printer at Fri Feb 24 10:48:08 2023 (1677253688.7 4117.3)
  386. ===== Config file =====
  387. [virtual_sdcard]
  388. path = /home/pi/gcode_files
  389.  
  390. [pause_resume]
  391.  
  392. [display_status]
  393.  
  394. [gcode_macro CANCEL_PRINT]
  395. description = Cancel the actual running print
  396. rename_existing = CANCEL_PRINT_BASE
  397. gcode =
  398. TURN_OFF_HEATERS
  399. CANCEL_PRINT_BASE
  400.  
  401. [gcode_macro PAUSE]
  402. description = Pause the actual running print
  403. rename_existing = PAUSE_BASE
  404. variable_extrude = 1.0
  405. gcode =
  406.  
  407. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  408.  
  409.  
  410. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  411. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  412.  
  413. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  414. {% set act_z = printer.toolhead.position.z|float %}
  415. {% if act_z < (max_z - 2.0) %}
  416. {% set z_safe = 2.0 %}
  417. {% else %}
  418. {% set z_safe = max_z - act_z %}
  419. {% endif %}
  420.  
  421. PAUSE_BASE
  422. G91
  423. {% if printer.extruder.can_extrude|lower == 'true' %}
  424. G1 E-{E} F2100
  425. {% else %}
  426. {action_respond_info("Extruder not hot enough")}
  427. {% endif %}
  428. {% if "xyz" in printer.toolhead.homed_axes %}
  429. G1 Z{z_safe} F900
  430. G90
  431. G1 X{x_park} Y{y_park} F6000
  432. {% else %}
  433. {action_respond_info("Printer not homed")}
  434. {% endif %}
  435.  
  436. [gcode_macro RESUME]
  437. description = Resume the actual running print
  438. rename_existing = RESUME_BASE
  439. gcode =
  440.  
  441. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  442.  
  443. {% if 'VELOCITY' in params|upper %}
  444. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  445. {%else %}
  446. {% set get_params = "" %}
  447. {% endif %}
  448.  
  449. {% if printer.extruder.can_extrude|lower == 'true' %}
  450. G91
  451. G1 E{E} F2100
  452. {% else %}
  453. {action_respond_info("Extruder not hot enough")}
  454. {% endif %}
  455. RESUME_BASE {get_params}
  456.  
  457. [mcu]
  458. serial = /dev/serial/by-id/<your-mcu-id>
  459.  
  460. [printer]
  461. kinematics = none
  462. max_velocity = 1000
  463. max_accel = 1000
  464. =======================
  465. mcu 'mcu': Starting serial connect
  466. 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>'
  467. webhooks client 548235686576: New connection
  468. webhooks client 548235686576: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  469. 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>'
  470. 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>'
  471. 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>'
  472. 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>'
  473. 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>'
  474. 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>'
  475. 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>'
  476. 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>'
  477. 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>'
  478. Attempting MCU 'mcu' reset
  479. Unhandled exception during post run
  480. Traceback (most recent call last):
  481. File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 265, in open
  482. self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
  483. FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/<your-mcu-id>'
  484.  
  485. During handling of the above exception, another exception occurred:
  486.  
  487. Traceback (most recent call last):
  488. File "/home/pi/klipper/klippy/klippy.py", line 234, in run
  489. self.send_event("klippy:firmware_restart")
  490. File "/home/pi/klipper/klippy/klippy.py", line 263, in send_event
  491. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  492. File "/home/pi/klipper/klippy/klippy.py", line 263, in <listcomp>
  493. return [cb(*params) for cb in self.event_handlers.get(event, [])]
  494. File "/home/pi/klipper/klippy/mcu.py", line 949, in _firmware_restart
  495. self._restart_arduino()
  496. File "/home/pi/klipper/klippy/mcu.py", line 909, in _restart_arduino
  497. serialhdl.arduino_reset(self._serialport, self._reactor)
  498. File "/home/pi/klipper/klippy/serialhdl.py", line 379, in arduino_reset
  499. ser = serial.Serial(serialport, 2400, timeout=0, exclusive=True)
  500. File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialutil.py", line 240, in __init__
  501. self.open()
  502. File "/home/pi/klippy-env/lib/python3.9/site-packages/serial/serialposix.py", line 268, in open
  503. raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
  504. 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>'
  505. Restarting printer
  506. Start printer at Fri Feb 24 10:48:57 2023 (1677253737.5 4166.1)
  507. ===== Config file =====
  508. [virtual_sdcard]
  509. path = /home/pi/gcode_files
  510.  
  511. [pause_resume]
  512.  
  513. [display_status]
  514.  
  515. [gcode_macro CANCEL_PRINT]
  516. description = Cancel the actual running print
  517. rename_existing = CANCEL_PRINT_BASE
  518. gcode =
  519. TURN_OFF_HEATERS
  520. CANCEL_PRINT_BASE
  521.  
  522. [gcode_macro PAUSE]
  523. description = Pause the actual running print
  524. rename_existing = PAUSE_BASE
  525. variable_extrude = 1.0
  526. gcode =
  527.  
  528. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  529.  
  530.  
  531. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  532. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  533.  
  534. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  535. {% set act_z = printer.toolhead.position.z|float %}
  536. {% if act_z < (max_z - 2.0) %}
  537. {% set z_safe = 2.0 %}
  538. {% else %}
  539. {% set z_safe = max_z - act_z %}
  540. {% endif %}
  541.  
  542. PAUSE_BASE
  543. G91
  544. {% if printer.extruder.can_extrude|lower == 'true' %}
  545. G1 E-{E} F2100
  546. {% else %}
  547. {action_respond_info("Extruder not hot enough")}
  548. {% endif %}
  549. {% if "xyz" in printer.toolhead.homed_axes %}
  550. G1 Z{z_safe} F900
  551. G90
  552. G1 X{x_park} Y{y_park} F6000
  553. {% else %}
  554. {action_respond_info("Printer not homed")}
  555. {% endif %}
  556.  
  557. [gcode_macro RESUME]
  558. description = Resume the actual running print
  559. rename_existing = RESUME_BASE
  560. gcode =
  561.  
  562. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  563.  
  564. {% if 'VELOCITY' in params|upper %}
  565. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  566. {%else %}
  567. {% set get_params = "" %}
  568. {% endif %}
  569.  
  570. {% if printer.extruder.can_extrude|lower == 'true' %}
  571. G91
  572. G1 E{E} F2100
  573. {% else %}
  574. {action_respond_info("Extruder not hot enough")}
  575. {% endif %}
  576. RESUME_BASE {get_params}
  577.  
  578. [mcu]
  579. serial = /dev/serial/by-id/<your-mcu-id>
  580.  
  581. [printer]
  582. kinematics = none
  583. max_velocity = 1000
  584. max_accel = 1000
  585. =======================
  586. mcu 'mcu': Starting serial connect
  587. 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>'
  588. webhooks client 548241563024: New connection
  589. webhooks client 548241563024: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  590. 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>'
  591. webhooks client 548241563024: Disconnected
  592. Restarting printer
  593. Start printer at Fri Feb 24 10:49:04 2023 (1677253744.8 4173.4)
  594. ===== Config file =====
  595. [virtual_sdcard]
  596. path = /home/pi/gcode_files
  597.  
  598. [pause_resume]
  599.  
  600. [display_status]
  601.  
  602. [gcode_macro CANCEL_PRINT]
  603. description = Cancel the actual running print
  604. rename_existing = CANCEL_PRINT_BASE
  605. gcode =
  606. TURN_OFF_HEATERS
  607. CANCEL_PRINT_BASE
  608.  
  609. [gcode_macro PAUSE]
  610. description = Pause the actual running print
  611. rename_existing = PAUSE_BASE
  612. variable_extrude = 1.0
  613. gcode =
  614.  
  615. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  616.  
  617.  
  618. {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
  619. {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
  620.  
  621. {% set max_z = printer.toolhead.axis_maximum.z|float %}
  622. {% set act_z = printer.toolhead.position.z|float %}
  623. {% if act_z < (max_z - 2.0) %}
  624. {% set z_safe = 2.0 %}
  625. {% else %}
  626. {% set z_safe = max_z - act_z %}
  627. {% endif %}
  628.  
  629. PAUSE_BASE
  630. G91
  631. {% if printer.extruder.can_extrude|lower == 'true' %}
  632. G1 E-{E} F2100
  633. {% else %}
  634. {action_respond_info("Extruder not hot enough")}
  635. {% endif %}
  636. {% if "xyz" in printer.toolhead.homed_axes %}
  637. G1 Z{z_safe} F900
  638. G90
  639. G1 X{x_park} Y{y_park} F6000
  640. {% else %}
  641. {action_respond_info("Printer not homed")}
  642. {% endif %}
  643.  
  644. [gcode_macro RESUME]
  645. description = Resume the actual running print
  646. rename_existing = RESUME_BASE
  647. gcode =
  648.  
  649. {% set E = printer["gcode_macro PAUSE"].extrude|float %}
  650.  
  651. {% if 'VELOCITY' in params|upper %}
  652. {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
  653. {%else %}
  654. {% set get_params = "" %}
  655. {% endif %}
  656.  
  657. {% if printer.extruder.can_extrude|lower == 'true' %}
  658. G91
  659. G1 E{E} F2100
  660. {% else %}
  661. {action_respond_info("Extruder not hot enough")}
  662. {% endif %}
  663. RESUME_BASE {get_params}
  664.  
  665. [mcu]
  666. serial = /dev/serial/by-id/<your-mcu-id>
  667.  
  668. [printer]
  669. kinematics = none
  670. max_velocity = 1000
  671. max_accel = 1000
  672. =======================
  673. mcu 'mcu': Starting serial connect
  674. 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>'
  675. webhooks client 548241411856: New connection
  676. webhooks client 548241411856: Client info {'program': 'Moonraker', 'version': 'v0.8.0-4-g80fb97c'}
  677. 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>'
  678. 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>'
  679. 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>'
  680. 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>'
  681. 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>'
  682. 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>'
  683. 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>'
  684.  
Advertisement
Add Comment
Please, Sign In to add comment