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

Incorrect Long Adress calculation #50

Open
oshibkun opened this issue Jun 29, 2024 · 0 comments
Open

Incorrect Long Adress calculation #50

oshibkun opened this issue Jun 29, 2024 · 0 comments

Comments

@oshibkun
Copy link

So, first of all, i have been playing with your code a lot, but i haven't ran it a lot.
I don't know a first thing about a python and how it works, I'm just fiddling with the AI translation of this module to c#, and i have noticed this:
As per Token-Passing Data Link Layer Specification (HCF_SPEC-81 FCG TS20081) Rev. 9.1 5.3.2 the first two bits of long address indicates master/secondary and burst mode states.
So if your device manufacturersID 192 and higher - your code not gonna work.
Just manufacturerId &= 0b_0011_1111 before inserting it in long address. The first bit is set in "packcommand" procedure.

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

1 participant