View previous topic :: View next topic |
Author |
Message |
Ste\/e
Joined: 25 Feb 2009 Posts: 2
|
Posted: Wed Feb 25, 2009 7:44 pm Post subject: Sony protocol: What does 26.226 mean? |
|
|
Hello All
I understand that if I have say Device = 1, Command = 0x2A and stack up the 5 bits of device and 7 bits of command I get this:
00001 010 1010 = 0x0AA which is exactly what I capture off of the IR. (BTW this code is the rarely used TV antenna switch)
But what exactly does device code 26.226 translate to on the IR?
I assume a 20 bit code but how?
thanks very much
Steve |
|
Back to top |
|
|
johnsfine Site Admin
Joined: 10 Aug 2003 Posts: 4766 Location: Bedford, MA |
Posted: Wed Feb 25, 2009 8:40 pm Post subject: Re: Sony protocol: What does 26.226 mean? |
|
|
Ste\/e wrote: | I get this:
00001 010 1010 = 0x0AA which is exactly what I capture off of the IR. |
You're reversing the bits, right? What you have there is the opposite of the transmitted sequence.
Quote: | But what exactly does device code 26.226 translate to on the IR?
I assume a 20 bit code but how? |
7 function bits, followed by 5 device bits, followed by 8 subdevice bits, each of those in LSB sequence. |
|
Back to top |
|
|
Ste\/e
Joined: 25 Feb 2009 Posts: 2
|
Posted: Wed Feb 25, 2009 10:37 pm Post subject: |
|
|
Yes John I understand the transmit order is LSB first.
>7 function bits, followed by 5 device bits, followed by 8 subdevice bits, each of those in LSB sequence.
So just to make sure I get it, if the 26.226 device had the 0x2e function (which should be power on) then the whole IR sequence would be:
(26 = 0x1A, 226 = 0xE2)
MSB...LSB
subdevice device function
11100010 11010 0101110
transmitted LSB first.
or in hex 0xE2D2E. Correct?
I think my mistake was thinking that 26.226 implied the 26 was in the highest bits when really the 226 is in the highest bits.
thanks very much
Steve |
|
Back to top |
|
|
johnsfine Site Admin
Joined: 10 Aug 2003 Posts: 4766 Location: Bedford, MA |
Posted: Thu Feb 26, 2009 7:45 am Post subject: |
|
|
Looks right. |
|
Back to top |
|
|
|