Your Universal Remote Control Center
RemoteCentral.com
Discrete Code Hunter Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Denon AVR4306 hidden discretes?
This thread has 13 replies. Displaying all posts.
Post 1 made on Saturday April 1, 2006 at 15:36
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
I have a list of Sharp and Kaseikyo format codes for the Denon AVR4306 off the Denon website that indicate the existance of a few discrete codes that are not available from the remote or any other source I can find. Can someone assist or instruct me with the interpretation and conversion process of these codes (as presented on the list) to Hex form? I can email the Denon codes file if needed.

I am somewhat new to the technical side of code structure and generation so if any resources for research exist, I would love info on that as well.

Thanks, Troy
Post 2 made on Saturday April 1, 2006 at 16:48
Glackowitz
RC Moderator
Joined:
Posts:
May 2002
3,793
here are power commands

Off:
0000 006D 0010 0020 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 01F8 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 01A7 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 01F8

On
0000 006D 0010 0020 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 01F8 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 01A8 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 01F8
There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.
OP | Post 3 made on Saturday April 1, 2006 at 20:21
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
I have all the usual discrete codes... Power, input, etc...

The functions I am looking for have to do with operation of the network audio, USB and iPod features. These are controls available as toggle commands on the remote or as navigable menu items but the Denon listings indicate discrete codes for these functions
Post 4 made on Wednesday April 5, 2006 at 23:19
StephenPM
Lurking Member
Joined:
Posts:
April 2006
3
Hi Troy,

I've also been looking for Denon discrete codes without success and was hoping your post would bear fruit. While waiting, I stumbled upon Barry Gordon's great article on the Prontos IR format:

[Link: remotecentral.com]

I know the MakeHex program will generate Denon codes, but I'm too lazy to figure out the input format. Using the Sharp IR code listing for my receiver, available for download on the Denon site, I've had some success in creating my own Pronto hex codes.

What follows is the structure of a very basic, but functional, Denon IR sequence. I'll use the "Stereo" command as an example since it actually exists on my remote and I was able to use it to test my assumptions.

While reading the hex codes please keep in mind the following:

000A 001B represents "0"
000A 0040 represents "1"

From the Denon documentation for the "Stereo" command:

System Address (C1-C5) = 00110
Command (C6-C11) = 101110
Extension Bit (C12-C13) = 01

The basic "Stereo" hex code is as follows:

0000 0076 0000 0020 000A 001B 000A 001B 000A 0040 000A 0040 000A 001B 000A 0040 000A 001B 000A 0040 000A 0040 000A 0040 000A 001B 000A 001B 000A 0040 000A 001B 000A 001B 000A 0627 000A 001B 000A 001B 000A 0040 000A 0040 000A 001B 000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 0040 000A 0040 000A 001B 000A 0040 000A 0040 000A 0627

Let's break it down and see how it translates into the Denon IR command:

0000 0076 0000 0020

This "Preamble" represents the fact this is a raw IR command, specifies the frequency and the lengths of the data for the 1st and 2nd Burst Pair Sequences. Since we'll only utilize the Burst Pair Sequence 2, the length of the Burst Pair Sequence 1 is set to 0 (0000) while the Sequence 2 length is set to 32 pairs (0020). This preamble will remain the same for any Denon commands using this basic format.

000A 001B 000A 001B 000A 0040 000A 0040 000A 001B

Keeping in mind that 000A 001B represents "0" and 000A 0040 represents "1", this sequence decodes to 00110 which is the System Address (C1-C5) for the band of commands that includes "Stereo". This sequence changes based on the command.

000A 0040 000A 001B 000A 0040 000A 0040 000A 0040 000A 001B

Here we have 101110 which is the binary Command (C6-C11) for "Stereo". This sequence changes with each command.

000A 001B 000A 0040

This translates as 01; the Extension Bit (C12-C13). This sequence changes based on the command.

000A 001B 000A 001B

Translating as 00, this is the non-inverted Data Construction (C14-C15). This stays the same for every command.

000A 0627

This is the "Lead Out". It remains the same for all Denon codes.

000A 001B 000A 001B 000A 0040 000A 0040 000A 001B

Here we have 00110, the System Address (C1-C5), again. This will always be the same as the system address used early in the IR code.

000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 0040

010001 is the inverse of the Command (C6-C11) sequence. Simply change the 1s to 0s and 0s to 1s.

000A 0040 000A 001B

10 is the inverse of the Extension Bit (C12-C13). Again, invert the 1s and 0s of the Denon specified Extension Bit.

000A 0040 000A 0040

Translates as 11 which per the Denon documentation is the inverse of the Data Construction (C14-C15)

000A 0627

Finally we have the "Lead Out" again. This again is the same code as used earlier.

Using this format and Denon's documentation, you should be able to construct working versions of any Denon discrete command defined in the "Sharp" format.

I hope this helps.

Stephen
Post 5 made on Thursday April 6, 2006 at 08:28
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
On April 5, 2006 at 23:19, StephenPM said...
I know the MakeHex program will generate Denon
codes, but I'm too lazy to figure out the input
format.

You did quite a lot of work to avoid that small amount of "figure out", most easily done by a forum search to one of MANY threads in which the Sharp/Denon form of documenting IR signals is translated to the input form used by MakeHex.

From the Denon documentation for the "Stereo"
command:

System Address (C1-C5) = 00110
Command (C6-C11) = 101110
Extension Bit (C12-C13) = 01

The non obvious facts you need are:

1) These binary codes are backwards, so 00110 backwards binary is 12 decimal.

2) The System Address is what MakeHex calls "device", so you need to edit the Denon.irp file to set device=12

3) The command and Extention TOGETHER are what MakeHex calls "function" so you take 10111001 and translate from backwards binary to decimal to get 157. So this would be function 157 in the output from MakeHex.
OP | Post 6 made on Friday April 7, 2006 at 11:16
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
StephanPM,

Thanks for the info. I had some time to chew through it and I generated a hex code for the "center level up" command using your process outline.

Given the system address 01000, the binary command 101011 and the extension bit 11 for the command "center level up" as found on the Denon list of Sharp codes I came up with the following:

Preamble
0000 0076 0000 0020
System Address
000A 001B 000A 0040 000A 001B 000A 001B 000A 001B
Binary Command
000A 0040 000A 001B 000A 0040 000A 001B 000A 0040 000A 0040
Extension Bit
000A 0040 000A 0040
Data Construction
000A 001B 000A 001B
Lead Out
000A 0627
System Address
000A 001B 000A 0040 000A 001B 000A 001B 000A 001B
Inverted Binary Command
000A 0040 000A 0040 000A 001B 000A0040 000A 001B 000A 0040
Inverted Extension Bit
000A 0040 000A 0040
Lead Out
000A 0627

0000 0076 0000 0020 000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 0040 000A 001B 000A 0040 000A 001B 000A 0040 000A 0040 000A 0040 000A 0040 000A 001B 000A 001B 000A 0627 000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 0040 000A 0040 000A 001B 000A 0040 000A 001B 000A 0040 000A 0040 000A 0040 000A 0627

I will now move on to convert the some of the hex codes I already have back to the sharp format so I can compare the results to those on the Denon list.

I will also research the topic of the binary conversion to decimal mentioned by johnsfine so that I can have a better concept of the Makehex process.

I am sure that this initial dip into these waters will generate more questions than answers for me at this point so if anyone can steer me in the direction of valuable threads or other sources of info I would appreciate it.

Troy
Post 7 made on Friday April 7, 2006 at 11:41
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
On April 7, 2006 at 11:16, tgrugett said...
Given the system address 01000, the binary command
101011 and the extension bit 11 for the command
"center level up"

Try

0000 006D 0000 0020 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 0046 000A 001E 000A 0046 000A 0046 000A 0046 000A 0046 000A 001E 000A 001E 000A 0679 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 001E 000A 0046 000A 001E 000A 001E 000A 001E 000A 001E 000A 0046 000A 0046 000A 0679

I came up with the following:

Preamble
0000 0076 0000 0020

I don't think the device will be picky about the modulation frequency 0076 vs. 006D. But did Stephen give some reason for changing it from the typical 006D to 0076?

System Address
000A 001B 000A 0040 000A 001B 000A 001B 000A 001B

OK. The differences between that an MakeHex's version above shouldn't matter.

Binary Command
000A 0040 000A 001B 000A 0040 000A 001B 000A 0040
000A 0040
Extension Bit
000A 0040 000A 0040

All of that is OK too.

Data Construction
000A 001B 000A 001B
Lead Out
000A 0627

OK.

System Address
000A 001B 000A 0040 000A 001B 000A 001B 000A 001B

OK.

Inverted Binary Command
000A 0040 000A 0040 000A 001B 000A0040 000A 001B
000A 0040

WHAT??

Did you think inverted meant backwards?

Inverted means change all the 40's to 1B's while changing all the 1B's to 40's

Inverted Extension Bit
000A 0040 000A 0040

Same issue, and then you forgot the second version of what you're calling "Data Construction"

A few little errors and the result is garbage. :)

I will also research the topic of the binary conversion
to decimal mentioned by johnsfine so that I can
have a better concept of the Makehex process.

Windows caclutator in view/scientific mode will do binary to decimal conversions. The backwards binary means you type the digits in backwards sequence.

command 101011 and the extension bit 11
is 101011 11
backards is 11110101
converted to decimal is 245.

Last edited by johnsfine on April 7, 2006 13:46.
OP | Post 8 made on Friday April 7, 2006 at 12:09
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
Mistakes noted, Thanks.

Regarding the 006D distinction, I have seen this on most if not all of my Denon codes (sometimes a 006A or 006C). I am not sure where the 0067 came from???

Regarding your comments on backwards binary...

"command 101011 and the extension bit 11
is 101011 11
backards is 1110101
converted to decimal is 245."

Do you mean that 101011 11 backwards is 11110101?

Here is my corrected version without the 006D distinction.
Center Level Up (C1-C6) 01000 (C6-C11) 101011 (C12-C13) 11

Preamble
0000 0076 0000 0020
System Address
000A 001B 000A 0040 000A 001B 000A 001B 000A 001B
Binary Command
000A 0040 000A 001B 000A 0040 000A 001B 000A 0040 000A 0040
Extension Bit
000A 0040 000A 0040
Data Construction
000A 001B 000A 001B
Lead Out
000A 0627
System Address
000A 001B 000A 0040 000A 001B 000A 001B 000A 001B
Inverted Binary Command
000A 001B 000A 0040 000A 001B 000A0040 000A 001B 000A 001B
Inverted Extension Bit
000A 001B 000A 001B
Inverted Data Construction
000A 0040 000A 0040
Lead Out
000A 0627

0000 0076 0000 0020 000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 0040 000A 001B 000A 0040 000A 001B 000A 0040 000A 0040 000A 0040 000A 0040 000A 001B 000A 001B 000A 0627 000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 001B 000A 0040 000A 001B 000A 0040 000A 001B 000A 001B 000A 001B 000A 001B 000A 0040 000A 0040 000A 0627

Your guidance is much appeciated!

Sincerely, Troy
Post 9 made on Friday April 7, 2006 at 13:50
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
On April 7, 2006 at 12:09, tgrugett said...
backards is 1110101
converted to decimal is 245."

Do you mean that 101011 11 backwards is 11110101?

OOPS! (I edited it now to avoid confusing more people).

It sure is annoying to have typos in something where the picky details are critical.

Here is my corrected version without the 006D
distinction.

The structure is perfect. I THINK the 0076 frequency is OK, but if that Pronto Hex doesn't work when tested, the 0076 is my first guess for what would be wrong.
Post 10 made on Saturday April 8, 2006 at 09:34
StephenPM
Lurking Member
Joined:
Posts:
April 2006
3
Troy,

It sounds like you're getting it pulled together. It appears 006D (109 decimal) is the more correct frequency designation. Using the formula from Barry Gordon's article we get a carrier frequency of:

1,000,000/(109*.241246)=38,029 KHz

Thus I'm assuming 38,000 KHz is the nominal carrier frequency for the Denon Sharp IR commands. Since I did not have this information when I decoded my commands, I used the value or 76 (118 decimal) from a previously learned command from the Denon remote. Something to keep in mind as you go through your other IR commands is the timing related values can vary slightly, such that "0" may not always be represented as 000A 001B; "1" may not appear as 000A 0040 and the lead out may not be always be 000A 0627. Barry's article states these values may vary as much as 10% and still work, though when creating your own commands, it's best to use the most accepted values to ensure compatibility.

Best of luck,
Stephen
OP | Post 11 made on Saturday April 8, 2006 at 16:26
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
Thanks for all of the guidance guys... please let me know if you feel like I am using you like an online course here.

Another question.... I pulled out the 4306 Toggle Power code from a PCF ( [Link: avsforum.com] ) generated by another member from the Denon Sharp Format list and I pulled it apart for study. I noticed that there was a repeat of the system address, binary command, extension bit and lead out. I also noticed a variation between the first lead out and the two that follow. Is this just unique to this particular code or is it a common occurance? I have yet to pull other codes apart which may actually answer my own question but I need to get on with some life today!

Troy
Post 12 made on Saturday April 8, 2006 at 17:52
StephenPM
Lurking Member
Joined:
Posts:
April 2006
3
Troy,

The repeat you're seeing should be the Burst Pair Sequence 1, which I didn't include in my basic format. To be honest, I don't actually know what the difference in functionality between the two Burst Pair Sequences is, but the BPS 1 is apparently sometimes structured the same as the non-inverted part of the BPS 2. When including the BPS 1, the first hex number following the frequency in the Preamble (006D in our case) will be the number of hex pairs in the BPS 1 (it was 0 length, or 0000 in our previous examples). Our Preamble for the Stereo command when including the BPS 1 would then read as:

0000 006D 0010 0020

Concerning the Lead-Out, I believe this variation is the same timing issue as occured for the 006D/0076 frequency values. The exact value of the Lead-Out is probably not critical (I've used several successfully), but I don't know what the most correct value is. Perhaps somebody could clarify this for us.

Regards,
Stephen
OP | Post 13 made on Saturday April 8, 2006 at 21:51
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
Just for reference, this is the Power code:

0000 006D 0010 0020
000A 001D 000A 0048 000A 001D 000A 001D 000A 001D
000A 0048 000A 001D 000A 001D 000A 001D 000A 001D 000A 001D
000A 0048 000A 0048
000A 001D 000A 001D
000A 06D5
000A 001D 000A 0048 000A 001D 000A 001D 000A 001D
000A 001D 000A 0048 000A 0048 000A 0048 000A 0048 000A 0048
000A 001D 000A 001D
000A 0048 000A 0048
000A 0680
000A 001D 000A 0048 000A 001D 000A 001D 000A 001D
000A 0048 000A 001D 000A 001D 000A 001D 000A 001D 000A 001D
000A 0048 000A 0048
000A 001D 000A 001D
000A 0680

I am off for vacation this week. I will chew through this while out of town.
OP | Post 14 made on Sunday April 9, 2006 at 04:13
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
I just checked out this PCF and it appears to have all of the codes from both the sharp and kaseikyo lists. It is an updated version of the same file I referenced for the Power command. I had overlooked it having seen the previous incomplete version and not getting any indication that it had been finished.

[Link: remotecentral.com]

Troy


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse