![]() ![]() 250000 is default for my printer, and I could communicate with it using other serial port connection apps. Octoprint sees the port, but connections with 250000 baud rate failsl. ![]() ![]() Almost there: ~ $ termux-usb -r /dev/bus/usb/001/002 Hey, to use the plugin in non rooted Honor 9. The Daemon and Octoprint in turn are talking through two sockets (one for each direction). That Daemon uses the usb-fd to talk to the printer. So this Plugin opens a subprocess that starts the so called "cdcDaemon" with termux-usb. It's not exactly elegant, because it seems like you can only get the file descriptor for the usb device by running termux-usb -r -e myprogram.py /dev/bus/usb/001/011. If you want to try it, see code and basic instructions here: It is a bit flaky, also when while printing the printer stutters because something is still not fast enough, and also after like a minute of printing the phone crashes But it works up to that point I tested this on my Galaxy S2 with LineageOS 17.1 (=Android 10) and an Ender 3 with a SKR-Mini E3 board. I made an Octoprint plugin that uses termux-usb and libusb to talk to CDC-ACM usb-serial devices. But thanks to a couple helpful pointers in here I came up with another solution: Thing is the kernel doesn't supply a driver for /dev/ttyACM* devices, and I'm to lazy to recompile it. My phone in question is an ancient Galaxy S2 (almost 10 years old by now.), but it still gets unofficial LinageOS updates. Hi, I want to use my Android phone as print-server too, but sadly 's. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |