<!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>Well, me not have good news, or this usb to serial adapter it
just doesn't want to automatically operate correctly at 57600
baud, as the Focus 1 display would expect.</p>
<p>The attached zip file contains two type brltty_usb_serial
beginning log files:</p>
<p>1. The brltty_usb_serial.log file I started general logging
brltty command in <a class="moz-txt-link-abbreviated" href="mailto:2024-12-29@16:14:04.914">2024-12-29@16:14:04.914</a>.</p>
<p>I used following command:</p>
<p>LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d
/dev/ttyACM0 -L brltty_usb_serial.log</p>
<p>I waiting between 16:14:04.914 and 16:21:00.748, and because not
happened anything (braille display is not initialized), I doed the
usual manual stty -F /dev/ttyACM0 57600 command to initailize the
usb to serial adapter with 57600 and the braille display.</p>
<p>Braille display driver begin starting again with in 16:21:05.434,
and the display is detected in <a class="moz-txt-link-abbreviated" href="mailto:2024-12-29@16:21:05.497">2024-12-29@16:21:05.497</a>.</p>
<p>16:14:05 the serial baud measure scrypt shows following values:</p>
<p>Start time when measure begin: 16:14:05<br>
16:14:05: speed 9600 baud; rows 0; columns 0; line = 0;<br>
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol =
<undef>;<br>
eol2 = <undef>; swtch = <undef>; start = ^Q; stop =
^S; susp = ^Z; rprnt = ^R;<br>
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;<br>
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts<br>
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt<br>
echoctl echoke -flusho -extproc<br>
<br>
16:14:15: speed 9600 baud; rows 0; columns 0; line = 0;<br>
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol =
<undef>;<br>
eol2 = <undef>; swtch = <undef>; start = ^Q; stop =
^S; susp = ^Z; rprnt = ^R;<br>
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;<br>
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts<br>
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt<br>
echoctl echoke -flusho -extproc<br>
<br>
16:14:25: speed 9600 baud; rows 0; columns 0; line = 0;<br>
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol =
<undef>;<br>
eol2 = <undef>; swtch = <undef>; start = ^Q; stop =
^S; susp = ^Z; rprnt = ^R;<br>
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;<br>
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts<br>
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt<br>
echoctl echoke -flusho -extproc<br>
<br>
16:14:35: speed 9600 baud; rows 0; columns 0; line = 0;<br>
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol =
<undef>;<br>
eol2 = <undef>; swtch = <undef>; start = ^Q; stop =
^S; susp = ^Z; rprnt = ^R;<br>
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;<br>
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts<br>
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt<br>
echoctl echoke -flusho -extproc<br>
<br>
16:14:45: speed 9600 baud; rows 0; columns 0; line = 0;<br>
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol =
<undef>;<br>
eol2 = <undef>; swtch = <undef>; start = ^Q; stop =
^S; susp = ^Z; rprnt = ^R;<br>
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;<br>
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts<br>
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt<br>
echoctl echoke -flusho -extproc<br>
<br>
16:14:55: speed 9600 baud; rows 0; columns 0; line = 0;<br>
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol =
<undef>;<br>
eol2 = <undef>; swtch = <undef>; start = ^Q; stop =
^S; susp = ^Z; rprnt = ^R;<br>
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;<br>
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts<br>
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt<br>
echoctl echoke -flusho -extproc<br>
<br>
End time when measure ended: 16:15:05</p>
<p><br>
</p>
<p>After manual baud command change, 16:21:05 the measure scrypt
shows following values:</p>
<p>Start time when measure begin: 16:21:05<br>
16:21:05: speed 57600 baud; rows 0; columns 0; line = 0;<br>
intr = <undef>; quit = <undef>; erase = <undef>;
kill = <undef>; eof = <undef>;<br>
eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>;<br>
susp = <undef>; rprnt = <undef>; werase =
<undef>; lnext = <undef>;<br>
discard = <undef>; min = 0; time = 0;<br>
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts<br>
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
-isig -icanon iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt<br>
-echoctl -echoke -flusho -extproc<br>
<br>
16:21:15: speed 57600 baud; rows 0; columns 0; line = 0;<br>
intr = <undef>; quit = <undef>; erase = <undef>;
kill = <undef>; eof = <undef>;<br>
eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>;<br>
susp = <undef>; rprnt = <undef>; werase =
<undef>; lnext = <undef>;<br>
discard = <undef>; min = 0; time = 0;<br>
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts<br>
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
-isig -icanon iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt<br>
-echoctl -echoke -flusho -extproc<br>
<br>
16:21:25: speed 57600 baud; rows 0; columns 0; line = 0;<br>
intr = <undef>; quit = <undef>; erase = <undef>;
kill = <undef>; eof = <undef>;<br>
eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>;<br>
susp = <undef>; rprnt = <undef>; werase =
<undef>; lnext = <undef>;<br>
discard = <undef>; min = 0; time = 0;<br>
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts<br>
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
-isig -icanon iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt<br>
-echoctl -echoke -flusho -extproc<br>
<br>
16:21:35: speed 57600 baud; rows 0; columns 0; line = 0;<br>
intr = <undef>; quit = <undef>; erase = <undef>;
kill = <undef>; eof = <undef>;<br>
eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>;<br>
susp = <undef>; rprnt = <undef>; werase =
<undef>; lnext = <undef>;<br>
discard = <undef>; min = 0; time = 0;<br>
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts<br>
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
-isig -icanon iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt<br>
-echoctl -echoke -flusho -extproc<br>
<br>
16:21:45: speed 57600 baud; rows 0; columns 0; line = 0;<br>
intr = <undef>; quit = <undef>; erase = <undef>;
kill = <undef>; eof = <undef>;<br>
eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>;<br>
susp = <undef>; rprnt = <undef>; werase =
<undef>; lnext = <undef>;<br>
discard = <undef>; min = 0; time = 0;<br>
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts<br>
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
-isig -icanon iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt<br>
-echoctl -echoke -flusho -extproc<br>
<br>
16:21:55: speed 57600 baud; rows 0; columns 0; line = 0;<br>
intr = <undef>; quit = <undef>; erase = <undef>;
kill = <undef>; eof = <undef>;<br>
eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = <undef>; stop = <undef>;<br>
susp = <undef>; rprnt = <undef>; werase =
<undef>; lnext = <undef>;<br>
discard = <undef>; min = 0; time = 0;<br>
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts<br>
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl
-ixon -ixoff<br>
-iuclc -ixany -imaxbel -iutf8<br>
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0
tab0 bs0 vt0 ff0<br>
-isig -icanon iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt<br>
-echoctl -echoke -flusho -extproc<br>
<br>
End time when measure ended: 16:22:05<br>
</p>
<p><br>
</p>
<p>After this, I tryed following command with you suggested in 16:33
beginning time (the log file name is brltty_usb_serial16:33.log).</p>
<p>Used command:</p>
<p>LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d </p>
<pre class="moz-quote-pre" wrap="">serial:ttyACM0+baud=57600</pre>
<p> -L brltty_usb_serial_16:33.log</p>
<p>In 16:33:05 start time the serial measure scrypt shows the 9600
baud related settings in adapter side.</p>
<p>I started brltty related modified command with following time
period:</p>
<p>16:33:04.687</p>
<p>I waiting until 16:38:10.514, and after this, because the display
is not initialized, and adapter side the serial baud rate is not
changed, I doed the stty -F /dev/ttyACM0 57600 manual baud rate
command.</p>
<p>The braille driver begin starting again with
<a class="moz-txt-link-abbreviated" href="mailto:2024-12-29@16:38:15.203">2024-12-29@16:38:15.203</a>, the display is detected in
<a class="moz-txt-link-abbreviated" href="mailto:2024-12-29@16:38:15.266">2024-12-29@16:38:15.266</a> based the log file write.</p>
<p>Unfortunatelly I broke the second 16:39 serial measure related
command (I want doed the serial baud measure after the manual
serial port baud rate, but unfortunatelly forgot type the measure
number type parameter typing).</p>
<p>So, independent applied the suggested patch or not, or I use the
general BRLTTY logging related command or the modified baud rate
speed change completed command, this usb to serial adapter my
focus display works when I doing a manual baud rate command to
57600 baud.</p>
<p>Possible different usb to serial adapters works different, this
noname usb to serial adapter works this way.</p>
<p><br>
</p>
<p>If need testing other type command or other modified patch,
please you tell and I will be doing this welcome.</p>
<p>Now I not tried the usb cable the test with my Debian 12 box (the
native usb connection mode related test), if I understand right
the patch purpose, this patch affects only the serial connection
mode.</p>
<p>If need testing again the usb connection mode with a native usb
cable, I will be doing the test welcome.</p>
<p><br>
</p>
<p>Attila<br>
</p>
<div class="moz-cite-prefix">2024. 12. 29. 14:51 keltezéssel, Dave
Mielke írta:<br>
</div>
<blockquote type="cite"
cite="mid:Z3FT4i5J2ZppFV83@beta.private.mielke.cc">
<pre class="moz-quote-pre" wrap="">[quoted lines by Hammer Attila on 2024/12/29 at 14:36 +0100]
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">When I test the attached patch, I what command use?
Or, the following general command?
LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d /dev/ttyACM0 -L
brltty_usb_serialdongle_log.log
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
This one. In other words, don't hard-code the baud parameter in the device option.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I hammered a little measure script in Python with automatically measure four
time with USB serial adapter baud rate.
Only me need doing the file store related few code lines.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Yes, it's always convenient to code whatever you end up wanting to do over and over again.
</pre>
</blockquote>
</body>
</html>