I have a device (GSM modem) connected to the serial port ser2. I deactivated the debug in the kernel and so on.
Now the device works
I tried to close and open the serial port again, but it doesn’t work.
If I test my program with
ser0 (the first serial port) it
works. I can disconnect and reconnect the modem and I