oldhui-uk / tftbridge

Bridging BigTreeTech TFT35 and Klipper
GNU General Public License v3.0
4 stars 1 forks source link

Console produces continuous position output and "ok" 3 times #5

Open StarNamer opened 3 weeks ago

StarNamer commented 3 weeks ago

I tried doing this a few months back using a serial USB adapter instead of the UART but didn't get too far with it. I've just spent a couple of hours setting things up and got it working with my Pi4 and Ender3. One thing not mentioned is that you need to check the baud rates match in the TFT and Pi/Klipper.

The only issue I have is that the Klipper console continuously position info and "ok" 3 times. I assume the TFT is sending some command and this is the response? I'm not sure if it's possible to filter it.

image

StarNamer commented 3 weeks ago

I added logging to TftBridge to see what it was doing and it seems the TFT35 sends M114 to get the position, which produces the position (unsurprisingly) and the first 'ok', it then send M220 (Set Feedrate Percentage) and M221 (Set Flow Percentage), both with no arguments, which produce the other 2 'ok's. So the fix is probably to add options to Mainsail/Klipperscreen to hide these responses.