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

How to extract the right hex codes from a NAD amp? #4

Closed
Davincible opened this issue Jun 10, 2017 · 2 comments
Closed

How to extract the right hex codes from a NAD amp? #4

Davincible opened this issue Jun 10, 2017 · 2 comments

Comments

@Davincible
Copy link

Davincible commented Jun 10, 2017

Love this this program, works fantastic with most of the hex codes. However on my NAD 317 amp the on and off codes don't work, and I'd really like to have those working too.

How did you extract these codes? Or can I find them somewhere on the net..?

I figured maybe there was some info on the site you gave creds to, but that page doesn't exist anymore...

@Davincible Davincible changed the title How to extract the right hex codes from an NAD amp? How to extract the right hex codes from a NAD amp? Jun 10, 2017
@tsprlng
Copy link
Owner

tsprlng commented Jun 10, 2017

Ah yes, I see the page (which I did copy them from) has been taken down.

Luckily it's still available thanks to the internet archive.

I just used his irparse.c program on NAD's Crestron code files. Can't remember exactly how well it works, I think possibly the codes have to be reversed compared to how they come out of that tool (my script sends the bytes in left-to-right order). I might try again later and include all the codes myself in this repo.

Best of luck meanwhile! Thanks for writing, it's nice to know this has been slightly useful.

@tsprlng
Copy link
Owner

tsprlng commented Jun 10, 2017

I've added a 'remote-codes' directory (334f690) which has all the converted output I could get. It wasn't that bad.

The thing was the irparse tool outputs correct binary but also some strange incorrect hex.

If you're curious, I did the extraction with the following awful script:

for f in *.ir; do
  ./irparse "$f" | perl -pe 's/([10]+)\[.+?\] ?/sprintf("%02x",oct("0b".$1))/ge' > $(basename "$f").hex
done

Cheers again and good luck :). Will hopefully tidy this up a bit more and duplicate the original explanation of the IR protocol later.

@tsprlng tsprlng closed this as completed Jun 10, 2017
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