nviennot / turbo-resin

Open-source firmware for resin printers
GNU General Public License v3.0
205 stars 21 forks source link

gcode support via serial #1

Open rudetrooper opened 2 years ago

rudetrooper commented 2 years ago

Are you going to add gcode control support via the serial pins in the wifi header? That would allow for wifi or remote control via the Octoprint-Chituboard plugin. https://github.com/rudetrooper/Octoprint-Chituboard

Gcode command list used when developing plugin. https://www.improwis.com/projects/sw_PhotonControl/

https://docs.google.com/document/d/14UBMO0Vhh9Lr0V3xcdetQ2_4UDnjFnho7OnbNxLOs3o/view#

nviennot commented 2 years ago

I'd love to get octoprint support!

But I'm not sure using the serial pins is the best way. I think that prevents a lot of users from using it, because they have to unscrew their printers, and connect some hardware.

Instead, I suggest we use the USB port of the machine, and instead of plugging a flash drive, we plug the computer directly. The controller running the USB port is "USB OTG" compatible, and so we can make the printer act like as a USB device. It could expose a serial device via USB, and all the data would go through there. gcode can be implemented if we wanted to on top of that.

No unscrewing, no extra hardware.

I'm not sure if that's a good idea, but we could also make the printer act as a USB flash drive, and copying a print file from the computer to the fake flash drive would print that file. No software required this way.

SammyTheSnake commented 2 years ago

Another angle that might be worth looking at is whether the WiFi module can be persuaded to accept files to print over WiFi - it seems like a silly thing not to have included in the Android App.

I noticed that you can connect to port 80 of the printer via wifi and you get a configuration screen that seems to suggest you can put the WiFi module into Access Point mode, which would be pretty handy, but I didn't fancy prodding the options only to find I couldn't back them out, so for all I know it doesn't even work in AP mode...

nviennot commented 2 years ago

This can be done easily. And we can download the print file from the wifi to the USB flash drive. This should make things more reliable

rudetrooper commented 2 years ago

Unfortunately due to the design of the printers mainboard and limitations in the Linux USB gadget subsystem. I don't think we can use the USB_OTG interface as a mass storage device and expose a serial device via USB.

tinylabs commented 2 years ago

Another angle that might be worth looking at is whether the WiFi module can be persuaded to accept files to print over WiFi - it seems like a silly thing not to have included in the Android App.

I noticed that you can connect to port 80 of the printer via wifi and you get a configuration screen that seems to suggest you can put the WiFi module into Access Point mode, which would be pretty handy, but I didn't fancy prodding the options only to find I couldn't back them out, so for all I know it doesn't even work in AP mode...

Never noticed this. Password on the mono x is admin/admin. This is the module they are using: https://www.pusr.com/products/ti-cc3200-wifi-module.html