Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
octoprint [2017/10/20 12:41] 94.50.140.167 Added some thoughts about slow streaming and general formatting |
octoprint [2018/04/29 00:43] (current) 68.7.156.206 [Connecting via Ethernet] |
||
---|---|---|---|
Line 16: | Line 16: | ||
Now try this command (replace ''SMOOTHIE_IP'' with your Smoothieboard address, like ''192.168.0.10'') | Now try this command (replace ''SMOOTHIE_IP'' with your Smoothieboard address, like ''192.168.0.10'') | ||
<code> | <code> | ||
- | sudo socat pty,waitslave,link=/dev/ttySmoothie,perm=0660,group=tty tcp:SMOOTHIE_IP:23 | + | sudo socat pty,wait-slave,link=/dev/ttySmoothie,perm=0660,group=tty tcp:SMOOTHIE_IP:23 |
</code> | </code> | ||
Line 43: | Line 43: | ||
Now try to connect to the printer. If it connects, we should finalize the configuration and add ''socat'' to system startup | Now try to connect to the printer. If it connects, we should finalize the configuration and add ''socat'' to system startup | ||
- | Add the following line to ''/etc/rc.local'', substituting ''SMOOTHIE_IP'' with Smoothie IP address: | + | Open ''/etc/rc.local'' |
<code> | <code> | ||
- | socat pty,waitslave,link=/dev/ttySmoothie,perm=0660,group=tty tcp:SMOOTHIE_IP:23 & | + | sudo nano /etc/rc.local |
</code> | </code> | ||
- | If unsure how to do it, just run this, substituting ''SMOOTHIE_IP'' with Smoothie IP address: | + | Go down with <key>↓</key> key until you reach the end of the file. The last line is usually ''exit 0''. **Before this line** add the following (replace ''SMOOTHIE_IP'' with Smoothie IP address): |
<code> | <code> | ||
- | sudo sed -e "s|exit 0|socat pty,waitslave,link=/dev/ttySmoothie,perm=0660,group=tty tcp:SMOOTHIE_IP:23 &\n\0|" /etc/rc.local >/tmp/rc.local | + | socat pty,wait-slave,link=/dev/ttySmoothie,perm=0660,group=tty tcp:SMOOTHIE_IP:23 & |
- | sudo mv /tmp/rc.local /etc/rc.local | + | |
</code> | </code> | ||
+ | Save & exit: <key>Ctrl+O</key>, <key>⏎</key>, <key>Ctrl+X</key> | ||
+ | |||
Reboot and check if it works. | Reboot and check if it works. | ||
Line 70: | Line 71: | ||
Described on Octoprint wiki at https://github.com/foosel/OctoPrint/wiki/Setup-OctoPrint-with-Smoothie . | Described on Octoprint wiki at https://github.com/foosel/OctoPrint/wiki/Setup-OctoPrint-with-Smoothie . | ||
- | //TODO add some documentation here// | + | Set the "Ignore any unhandled errors from the firmware" setting in Octoprint. |
+ | |||
+ | //TODO add some more documentation here// |