I found the problem. Every time a key pressed, one extra packet was sent and I don't know why. This doesn't relate to "unexpected packet". "unexpected packet" log was just to log every packet.
The first bytes of extra packet is zero (none of my packets is this way!) . Currently I just ignore these extra packets, but I don't know where they come from. On Sun, Jul 22, 2018 at 1:46 PM, Dave Mielke <[email protected]> wrote: > [quoted lines by payman shaykhmehdi on 2018/07/22 at 11:22 +0430] > > >Is there any difference between command handlers in Android and linux? > >Because with the same driver I don't receive "unhandled command" warning. > > There's only one difference. The screen driver is given an opportunity to > handle the command first. This means that if you're relying on any code > that > you've added to the Linux screen driver then it won't get executed by the > Android screen driver. > > What about the "unexpected packet" logs? > > >Also in my driver I just send key press/release events. > > Perhaps you should enable the Braille Key Events log category in order to > see > if that gives any more clues. > > I don't recall seeing any "tone:" logs, which probably means that you > haven't > set the Log Level to Debug. If you do that then you should see logs which > show > exactly when the tone is being generated. > > -- > 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: [email protected] | Ottawa, Ontario | Twitter: @Dave_Mielke > Phone: +1 613 726 0014 | Canada K2A 1H7 | > _______________________________________________ > 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 >
_______________________________________________ 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
