I have ser2net working perfectly with a USB FT232R UART (Creality 3D printer) using setserial to work with the higher speed of 250000 baud. The problem is that when I turn off the printer and turn back on, I have to run again the setserial commands to make the port available for ser2net. Is there a way to automate this upon connection?
The commands i need to run:
setserial -a /dev/ttyUSB0 spd_cust
setserial -a /dev/ttyUSB0 divisor 96
Kind regards, Eric
udev
rule, and a smallsystemd
unit. This existing question has pointers to commands you can use to advance in your quest. – Alex Stragies Oct 13 '21 at 21:21