[BRLTTY] Focus 1 70 display and USB to serial adapter: possible connecting this scenario?
Hammer Attila
hammera at pickup.hu
Sun Dec 29 13:36:42 UTC 2024
Hi Dave,
Thanks the attached patch, I will be trying.
I familiar with diff patch appliing related.
When I test the attached patch, I what command use?
Use the following command:
LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d
serial:ttyACM0+baud=57600 -L logfile_name.log
Or, the following general command?
LANG=C brltty -ldebug,usb,serial,inpkts,outpkts -b fs -d /dev/ttyACM0 -L
brltty_usb_serialdongle_log.log
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.
The measure script is very simple:
import subprocess, time
time_dict={}
for i in range(0,4):
time_dict[time.strftime('%X')]=subprocess.getoutput('sudo stty -F
/dev/ttyACM0 -a')
time.sleep(10)
print(time_dict)
So:
The scrypt first time measure /dev/ttyACM0 port baud rate the stty
command, waiting 10 seconds, and repeat three times the measurement.
Not perfect, but working the script, automatic measurement related
perhaps is perfect without always need execute manual the measure
command. :-):-)
I will be report back for you the results.
Attila
2024. 12. 29. 14:14 keltezéssel, Dave Mielke írta:
> [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?
>
>
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to:BRLTTY at brltty.app
> For general information, go to:http://brltty.app/mailman/listinfo/brltty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brltty.app/pipermail/brltty/attachments/20241229/be2e8356/attachment.htm>
More information about the BRLTTY
mailing list