FYSETC / Cheetah_V3.0

Apache License 2.0
14 stars 3 forks source link

Random lost communication via usb #7

Open yzheka opened 4 months ago

yzheka commented 4 months ago

When I setup connection via USB->Rpi 4 it can disconnect random midprint. But when I use UART, everything is working ok. I have tried different usb cables, does not help. It also disconnects until I press reset button on the board. After I press reset it connects normal. So I don't think it is cable issue.

marcoa131 commented 2 months ago

Sounds like a ground loop problem, how is the pi and the board powered?

yzheka commented 2 months ago

@marcoa131 the board is powered via mw LRS 350 psu and the pi is powered via board's pins for rpi.

marcoa131 commented 2 months ago

I understand that you're connecting the board and the pi through UART and the board is powering the PI because you're using the UART and power pins and that has been working for you. But how were you powering the board and the PI when you were connecting the board via USB?

yzheka commented 2 months ago

@marcoa131 same way

marcoa131 commented 2 months ago

I did some experiments with an Ender 3 running klipper using this board and a btt pi, both powered by the same 24v power supply. I had random disconects just like you. I solved it following this guide: https://community.octoprint.org/t/put-tape-on-the-5v-pin-why-and-how/13574 Also make sure to keep the 5v rail jumper on "DC5V" instead of "USB5V".

yzheka commented 2 months ago

Hmm, interesting solution, i will give a try, thank you.

marcoa131 commented 1 month ago

A possible solution for you would also be changing the baud rate to 115200 you'll need to compile and reflash klipper to the board, but it has been successfull in my tests. image

yzheka commented 1 month ago

A possible solution for you would also be changing the baud rate to 115200 you'll need to compile and reflash klipper to the board, but it has been successfull in my tests. image

I have no issues with uart communication

marcoa131 commented 1 month ago

you can also change baudrate with USB connection.