1

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

Kusalananda
  • 333,661
EricVdB
  • 11
  • Most likely you will have to write a script to modify the loadable drivers. See "https://ftdichip.com/wp-content/uploads/2020/08/AN_220_FTDI_Drivers_Installation_Guide_for_Linux-1.pdf". Also. plugin the printer - without running the setserial commands - and type "dmesg | grep FTDI" then post the output. – Cinaed Simson Oct 13 '21 at 21:14
  • 1
    You need to write a udev rule, and a small systemd unit. This existing question has pointers to commands you can use to advance in your quest. – Alex Stragies Oct 13 '21 at 21:21
  • Thanks Alex, that did the trick ;-) – EricVdB Oct 14 '21 at 06:01
  • I reverted the mast recent edit adding "SOLVED" to the title. If there exists a solution, then please add this as an answer. Accepting the answer then marks the question as resolved. – Kusalananda Jan 23 '22 at 06:37

0 Answers0