Originally Posted by
soofle616
I had that thought about the LCD as well. I have about a million of them at home from past projects. Only reason I didn't immediately jump on that is because for initial debugging it's nice to see the live stream of in and out messages and with a 4 line limit, if there's a bunch of data moving all at once, it's easy to miss the early stuff that gets shifted off screen too fast to read.
Interesting about the single line rule. The one I modified (again, starting with 99 but I don't remember the rest of the file name) has 4 or 5 lines for the ATC so I assumed it just allowed for multiple definitions of possible matching devices. I have successfully connected this teensy to the machine in the past. At the time I had it set up as a usbio board and that worked flawlessly so I know it will talk to the machine, I just need to get it to work in this application.
I don't use teensy boards but I just modified an Arduino to simulate a SmartCool to see what's going on. I modified the existing SmartCool rule as follows:
Code:
SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{product}=="Arduino*",SYMLINK+="zbot_schnozz",GROUP="dialout",MODE="0666"
Presumably your teensy won't look like an Arduino but if you plug in the usb cable while PP is running the new connection is reported in the status window including the product name, something like
Code:
USB device (Arduino_Due) was plugged in.
All commands, except VE, need to be acknowledged with ".\r\n" (as far as I've seen so far). Note the '.' before the first '\'.
When you press Reset you should then see the following lines in the terminal window:
2021-01-19 16:13:33.597944 CET (+0:00:32.589389) | Smart Cool: Looking for device [python/hal_zbotschnozz.py:344]
2021-01-19 16:13:33.651136 CET (+0:00:00.053192) | Smart Cool: Firmware ID Z-Bot SCHNOZZ ABC [python/hal_zbotschnozz.py:417]
2021-01-19 16:13:34.101291 CET (+0:00:00.503347) | Smart Cool: Vertical mount = 3.942 Horizontal mount = 6.808 Vertical adjustment = 0.0 [python/hal_zbotschnozz.py:385]
2021-01-19 16:13:34.101836 CET (+0:00:00.000545) | Smart Cool: SEND COMMAND + RC : WS00 [python/hal_zbotschnozz.py:426]
etc.
(or something like that)
Hope that helps
Step