<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello All,</p>
<p>Actually finishing intgration of brlapi in our application and
thinking how to fix this:</p>
<p>I successfully connect to brltty and start to monitor <span
style="color:#c77dbb;font-style:italic;">PARAM_DEVICE_ONLINE and
some other parameters.<br>
</span></p>
<p><span style="color:#c77dbb;font-style:italic;">If there is a
display communicating with brltty when i connect, i successfully
receive true status of online parameter, can call </span><span
style="color:#c77dbb;">connection</span>.enterTtyMode(<span
style="color:#2aacb8;">0</span>); and start to work with the
display.</p>
<p>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 <span
style="color:#c77dbb;font-style:italic;"></span><span
style="color:#c77dbb;">connection</span>.enterTtyMode(<span
style="color:#2aacb8;">0</span>); in this case.</p>
<p>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.</p>
<p>What should be wrong?</p>
<p>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?<br>
</p>
<p> AndroidRuntime: Process: sk.stopka.corvus, PID: 12737<br>
AndroidRuntime: Illegal instruction<br>
AndroidRuntime: at
org.a11y.brlapi.ConnectionBase.enterTtyMode(Native Method)<br>
AndroidRuntime: at
org.a11y.brlapi.Connection.enterTtyMode(Connection.java:35)<br>
AndroidRuntime: at
sk.stopka.corvus.brailledisplay.BrlttyDevice.handleParameterUpdate(BrlttyDevice.java:180)<br>
Thanks for ideas</p>
<p>Peter<br>
</p>
<div class="moz-signature">-- <br>
Peter Lecký
Stopka n. o.</div>
</body>
</html>