[BRLTTY] Focus 1 70 display and USB to serial adapter: possible connecting this scenario?
Dave Mielke
Dave at mielke.cc
Tue Dec 24 13:52:52 UTC 2024
[quoted lines by Hammer Attila on 2024/12/24 at 13:52 +0100]
I think that we shouldn't trust the stty -a information for when it isn't working because, in that state, the driver is mostly not started. In other words, it starts, finds out very quickly that it won't work, and then stops. It then stays stopped for several seconds so what we're likely seeing is the state of ttyACM0 when the driver isn't running.
We know that the Focus is working, that brltty is working, that the adapter is working, and that the adapter's baud can be set (via stty and screen). In other words, we know that all the pieces seem to be working. I'm thinking, therefore, that we maybe need to add a delay after the driver opens and configures the adapter before it starts writing to and reading from it.
Look for this line in Drivers/Braille/FreedomScientific/braille.c:
684: descriptor.serial.parameters = &serialParameters;
Try adding this line right after it:
descriptor.serial.options.readyDelay = 200;
If you're curious, that value is in milliseconds.
--
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc | Ottawa, Ontario | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada K2A 1H7 |
http://mielke.cc/xmother.html (Letter from a Feminist ex-Mother)
More information about the BRLTTY
mailing list