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.
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Reply via email to