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

[feature] Remember more than 4 hosts #37

Open
hdhoang opened this issue Mar 12, 2018 · 5 comments
Open

[feature] Remember more than 4 hosts #37

hdhoang opened this issue Mar 12, 2018 · 5 comments

Comments

@hdhoang
Copy link
Collaborator

hdhoang commented Mar 12, 2018

Caution We don't have any way to recover BLE fw yet, this might brick it?

BleOp::ConnectHost/SaveHost/DeleteHost accepts a byte argument, but how well do values beyond 0-3 work?

@martijnvandijk
Copy link

Why can't we recover the BLE firmware?

@hdhoang
Copy link
Collaborator Author

hdhoang commented Mar 12, 2018

from what I heard in #dev-chat: when @ah- tried dumping the BLE fw via serial, there was rust strings in the output, so nobody trusted that the ouput was correct.

@ah-
Copy link
Owner

ah- commented Mar 12, 2018

And related: We do get info back via AckHostListQuery, which is three bytes. The last is a bool if it's legacy or ble, and I think the first byte is a set of bits if there's a host saved, and the second byte is whether it's connected to any of those hosts. Haven't looked in detail though.

Some examples:

[15 1 0] -> L0
[15 12 1] -> L1
[15, 0, 1] -> L1, not connected
[15 0 0] -> L0, not connected
after deleting all saved hosts: [8, 0, 0]
(i think the first number is 8, 9, 11, 15, depending on how many hosts are saved)

@hdhoang
Copy link
Collaborator Author

hdhoang commented Mar 16, 2018

with 9b1a92b...c44cf25
we can say that the protocol only supports 4 hosts.

@ah-
Copy link
Owner

ah- commented Mar 16, 2018

Maybe? All that is just based on the same guessing :)

Haven't tried what happens if you add a 5th host, currently busy with other parts. Upper limit is 8, due to the bit field that comes back. It's a bit suspicious that "connected, but not to a saved host" is 12.

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

No branches or pull requests

3 participants