User Tools

Site Tools


tina2:octoprint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tina2:octoprint [2023/01/31 14:50]
mao
tina2:octoprint [2023/09/07 14:28] (current)
caojie
Line 47: Line 47:
   wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20201126-1_armhf.deb    wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20201126-1_armhf.deb 
 (If your Linux kernel version is not 5.4.79, download the corresponding one from http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ ; \\ (If your Linux kernel version is not 5.4.79, download the corresponding one from http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ ; \\
-Use this command to check which version of your Linux kernel: **uname -r**)\\+Use this command to check which version of your Linux kernel is: **uname -r**)\\
 \\ \\
 Install the header file : Install the header file :
Line 67: Line 67:
 {{:octoprint:7copy.png?400|}} {{:octoprint:7copy.png?400|}}
  
-====5.Change OctoPrint source file===+====5.Change OctoPrint source file====
 ===a)Test Connection=== ===a)Test Connection===
 {{:octoprint:tina2-octoprint-test-connected.png?600|}}\\ {{:octoprint:tina2-octoprint-test-connected.png?600|}}\\
Line 81: Line 81:
 If your python version is not python3.7, just replace "python3.7" with your real version.\\ If your python version is not python3.7, just replace "python3.7" with your real version.\\
 Write this code after opening the serial port and save it: Write this code after opening the serial port and save it:
-  time.sleep(0.5)+  #set default
   serial_obj.setDTR(False)   serial_obj.setDTR(False)
   serial_obj.setRTS(False)   serial_obj.setRTS(False)
 +  serial_obj.oopen()
 +  # force reboot printer
 +  time.sleep(0.1)
 +  serial_obj.setDTR(True)
 +  serial_obj.setRTS(True)
 +  time.sleep(1)
 +  serial_obj.setDTR(False)
 +  serial_obj.setRTS(False)
 +  # wait
 +  time.sleep(3)
 (**Be careful**, the OctoPrint source file uses spaces as indent.) (**Be careful**, the OctoPrint source file uses spaces as indent.)
-{{:octoprint:tina2-octoprint-change-py.png?400|}}\\+{{:octoprint:tina2-octoprint-change-py.png}}\\
  
 ====6.Reboot your Raspberry Pi and Connect the printer with its baud rate==== ====6.Reboot your Raspberry Pi and Connect the printer with its baud rate====
Line 127: Line 137:
 {{:octoprint:7copy.png?400|}} {{:octoprint:7copy.png?400|}}
  
-====3.Change OctoPrint source file===+====3.Change OctoPrint source file====
 ===a)Test Connection=== ===a)Test Connection===
 {{:octoprint:tina2-octoprint-test-connected.png?600|}}\\ {{:octoprint:tina2-octoprint-test-connected.png?600|}}\\
tina2/octoprint.1675147833.txt.gz · Last modified: 2023/01/31 14:50 by mao