Hello, friend!
This is caused by the mechanism of identifying the serial port on the Linux client. The port number of the device may change when the TC is removed or re-inserted or restarted. If the port number changes, the program also needs to be changed. If the specific USB to the TTL module is fixed with the specific port number, each time the USB port is removed and then inserted, the port number will not be changed.
1. You can find a PC or Windows TC test. The Windows identification mechanism does not have this problem. If necessary, you can replace the TC according to the test result.
2. You can also test the setting of the serial port. You can find the solution from the Linux website.
Have a nice day!