EDL21 configure serial port speed

Hello,

I am just starting with Home Assistant (hassos 12.3, homeassistant 2024.5.3). I have USB-IR Header that I connect to my electrical meter. When I connect it to a PC, using ckermit

set line /dev/ttyUSB0
set speed 300
set parity even
set duplex half
set flow-control none
set carrier-watch off

I get the following output once I have entered the command /?! followed by the RETURN key and CTRL-J:

/LGZ4ZMR120AC.210
F.F.0(00000000)
0.0.2(  123456)
C.1.0(98765432)
C.1.1(        )
1.8.1(077435.374*kWh)
1.8.2(078948.078*kWh)
1.8.0(156383.452*kWh)
2.8.1(000001.014*kWh)
2.8.2(000001.609*kWh)
2.8.0(000002.623*kWh)
32.7.0(234)
52.7.0(236)
72.7.0(236)
31.7.0(001.79)
51.7.0(001.93)
71.7.0(003.19)
36.7.0(000.32)
56.7.0(000.26)
76.7.0(000.57)
33.7.0(0.92)
53.7.0(0.89)
73.7.0(0.92)
C.7.0(0011)
C.7.1(0028)
C.7.2(0024)
C.7.3(0031)
0.2.0(21-0-1)
C.u

In HomeAssistant, I add a new integration and select the EDL21 smart meter. When prompted, I add the /dev/ttyUSB0 path. However, in the logs I get the following message every 1-3 minutes:

2024-05-14 23:46:18.043 WARNING (MainThread) [sml.asyncio] Timeout while waiting for meter data. Please check reading device. Restarting edl21

I think it has to do with the speed of the serial port, although it might not be the only problem. I tried to set the serial port to the following settings (stty -a -F /dev/ttyUSB0):

stty -F /dev/ttyUSB0 300 -parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc` but the settings always gets changed back to the following:
```speed 9600 baud;stty: /dev/ttyUSB0
 line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 0; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany
-imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke
-flusho -extproc

Is it possible to configure the settings for the serial port?
From my understanding the configuration should only happen through the web interface and not directly in the YAML file. Which file would it be anyway, /homeassistant/home-assistant.log?

Thank you in advance for your help and best regards

Tom