<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Dave,</p>
<p><br>
</p>
<p>Thanks the attached patch, I will be trying.</p>
<p>I familiar with diff patch appliing related.</p>
<p>When I test the attached patch, I what command use?</p>
<p>Use the following command:</p>
<p>LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d
serial:ttyACM0+baud=57600 -L logfile_name.log<br>
</p>
<p>Or, the following general command?</p>
<p>LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d
/dev/ttyACM0 -L brltty_usb_serialdongle_log.log<br>
<br>
</p>
<p>I hammered a little measure script in Python with automatically
measure four time with USB serial adapter baud rate.</p>
<p>Only me need doing the file store related few code lines.</p>
<p>The measure script is very simple:</p>
<p>import subprocess, time<br>
time_dict={}<br>
for i in range(0,4):<br>
time_dict[time.strftime('%X')]=subprocess.getoutput('sudo stty
-F /dev/ttyACM0 -a')<br>
time.sleep(10)<br>
print(time_dict)<br>
So:</p>
<p>The scrypt first time measure /dev/ttyACM0 port baud rate the
stty command, waiting 10 seconds, and repeat three times the
measurement.</p>
<p>Not perfect, but working the script, automatic measurement
related perhaps is perfect without always need execute manual the
measure command. :-):-)</p>
<p><br>
</p>
<p>I will be report back for you the results.</p>
<p><br>
</p>
<p>Attila<br>
</p>
<div class="moz-cite-prefix">2024. 12. 29. 14:14 keltezéssel, Dave
Mielke írta:<br>
</div>
<blockquote type="cite"
cite="mid:Z3FLTLSsDP_KUOQo@beta.private.mielke.cc">
<pre class="moz-quote-pre" wrap="">[quoted lines by Hammer Attila on 2024/12/28 at 14:15 +0100]
I haven't looked at the serial code for a long, long time. It turns out that the generic ready timeout was being applied before the port configuration changes were being applied. I guess, since by the time that brltty's generic I/O was introduced, most displays were using either USB or Bluetooth so this just went unnoticed.
Do you know how to apply a patch? If so, could you please test the attached patch (serial-1.patch) and then see what effect setting the ready timeout has?
</pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: <a class="moz-txt-link-abbreviated" href="mailto:BRLTTY@brltty.app">BRLTTY@brltty.app</a>
For general information, go to: <a class="moz-txt-link-freetext" href="http://brltty.app/mailman/listinfo/brltty">http://brltty.app/mailman/listinfo/brltty</a>
</pre>
</blockquote>
</body>
</html>