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

Get mi address #4

Open
chumager opened this issue Feb 9, 2017 · 2 comments
Open

Get mi address #4

chumager opened this issue Feb 9, 2017 · 2 comments

Comments

@chumager
Copy link

chumager commented Feb 9, 2017

Hi, how can I know my own address?

if I set the -m flag, when I send a poll I only get the POLLING event from my packet and no response.

the only thing I can figure out is to take off the -m flag and count the repeated polling messages, the one who repeats twice is my address...

any ideas?

Best regards.

@krellsebastian
Copy link

I had the same problem, I've managed to read out the own logical address with:

cec.on('REPORT_PHYSICAL_ADDRESS', function (packet, status) {
  cec_src_and_dest = parseInt(packet.source + '0',16);
});

the cec-client in the background broadcasts it's physical address when initializing, so i use this to read out my own LA out of the source field. Be aware that i also add a 0 in hex because all of my commands then are directed to the TV.

@chumager
Copy link
Author

good one @krellsebastian thks...

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

2 participants