[BRLTTY] Brlapi under Android again
Peter Lecky
peter.lecky at stopka.sk
Wed May 7 08:33:16 UTC 2025
Hello All,
Actually finishing intgration of brlapi in our application and thinking
how to fix this:
I successfully connect to brltty and start to monitor
PARAM_DEVICE_ONLINE and some other parameters.
If there is a display communicating with brltty when i connect, i
successfully receive true status of online parameter, can call
connection.enterTtyMode(0); and start to work with the display.
But there is a problem if there is no display when i connect to service.
I receive change notification of online parameter immediately when some
display successfuly connects to brltty which is ok, (i actually play
with orbit 20 via bluetooth). But my app crashes when i try to call
connection.enterTtyMode(0); in this case.
I tried to check connection.isUnusable() (may be that connection must be
reset after display reconnection) but it returns false, so no reason to
reconnect.
What should be wrong?
I thought to reset connection if I receive online parameter change
notification later than say 1 second after successfull connection, but
it looks like a nasty solution. :) Is there something better i can do?
AndroidRuntime: Process: sk.stopka.corvus, PID: 12737
AndroidRuntime: Illegal instruction
AndroidRuntime: at
org.a11y.brlapi.ConnectionBase.enterTtyMode(Native Method)
AndroidRuntime: at
org.a11y.brlapi.Connection.enterTtyMode(Connection.java:35)
AndroidRuntime: at
sk.stopka.corvus.brailledisplay.BrlttyDevice.handleParameterUpdate(BrlttyDevice.java:180)
Thanks for ideas
Peter
--
Peter Lecký Stopka n. o.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brltty.app/pipermail/brltty/attachments/20250507/43e47105/attachment.htm>
More information about the BRLTTY
mailing list