<div dir="ltr"><div><div>I found the problem. Every time a key pressed, one extra packet was sent and I don't know why. <br>This doesn't relate to "unexpected packet". "unexpected packet" log was just to log every packet. <br></div><div><br></div><div>The first bytes of extra packet is zero (none of my packets is this way!) . <br>Currently I just ignore these extra packets, but I don't know where they come from. <br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 22, 2018 at 1:46 PM, Dave Mielke <span dir="ltr"><<a href="mailto:Dave@mielke.cc" target="_blank">Dave@mielke.cc</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[quoted lines by payman shaykhmehdi on 2018/07/22 at 11:22 +0430]<br>
<span class=""><br>
>Is there any difference between command handlers in Android and linux?<br>
>Because with the same driver I don't receive "unhandled command" warning.<br>
<br>
</span>There's only one difference. The screen driver is given an opportunity to<br>
handle the command first. This means that if you're relying on any code that<br>
you've added to the Linux screen driver then it won't get executed by the<br>
Android screen driver.<br>
<br>
What about the "unexpected packet" logs?<br>
<span class=""><br>
>Also in my driver I just send key press/release events.<br>
<br>
</span>Perhaps you should enable the Braille Key Events log category in order to see<br>
if that gives any more clues.<br>
<br>
I don't recall seeing any "tone:" logs, which probably means that you haven't<br>
set the Log Level to Debug. If you do that then you should see logs which show<br>
exactly when the tone is being generated.<br>
<div class="HOEnZb"><div class="h5"><br>
-- <br>
I believe the Bible to be the very Word of God: <a href="http://Mielke.cc/bible/" rel="noreferrer" target="_blank">http://Mielke.cc/bible/</a><br>
Dave Mielke            | 2213 Fox Crescent | WebHome: <a href="http://Mielke.cc/" rel="noreferrer" target="_blank">http://Mielke.cc/</a><br>
EMail: Dave@Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke<br>
Phone: +1 613 726 0014 | Canada  K2A 1H7   |<br>
______________________________<wbr>_________________<br>
This message was sent via the BRLTTY mailing list.<br>
To post a message, send an e-mail to: BRLTTY@brltty.app<br>
For general information, go to: <a href="http://brltty.app/mailman/listinfo/brltty" rel="noreferrer" target="_blank">http://brltty.app/mailman/<wbr>listinfo/brltty</a><br>
</div></div></blockquote></div><br></div>