Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve display protocol to avoid requirement for constant polling by controller, thus improving controller battery life #266

Open
pachpict opened this issue May 12, 2021 · 1 comment

Comments

@pachpict
Copy link
Member

Comment from D Mielke, re BRLTTY support:

I'd like to plant a couple of ideas for new features into your head:

Add new commands (I suggest with the same values as the old oens but with 0X80
ored) which the device could use to send unsolicited data to the host. For
example, for indicating when the motors are no longer busy, for a change in the
currently rpessed buttons state, etc. That way, the driver wouldn't have to
continually poll and could just go idle and wait.

A enw command that the driver could send to refresh a specific row. I think our
users would really like it, and I bet yours would too. My suggestion is that,
for offline use, you make that be the row key in combination with the square
(refresh) key at the bottom. That's what we've done, although those currently
fall back to the full refresh.

Right now, querying the protocol version yields 1 (which is good enough). I'd
like to request that this number be strictly maintained from now on so that our
driver can know which new features are available for any given device.

Let me know if you'd like a full description of how our driver works. In our
source tree, you'll find the actual code in: Drivers/Braille/Canute/braille.c

@pachpict pachpict added enhancement pull requests welcome Rainy day job We should be so lucky and removed Rainy day job We should be so lucky labels May 12, 2021
@pachpict pachpict changed the title Improvements to the display protocol Improve display protocol to avoid requirement for constant polling by controller, thus improving controller battery life Jun 22, 2021
@pachpict
Copy link
Member Author

Above comment by @DaveMielke was with reference to his Canute driver in BRLTTY. Now that we are looking into supporting Canute on tablets the issue of constantly having to poll the Canute becomes more acute; it could seriously lower the tablet's battery life if it isn't fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant