Your Universal Remote Control Center
RemoteCentral.com
Custom Installers' Lounge Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 22 made on Tuesday May 27, 2014 at 01:40
Ernie Gilman
Yes, That Ernie!
Joined:
Posts:
December 2001
30,104
I'd love to understand this stuff.

On May 25, 2014 at 23:17, 3FG said...
These IR signals are bi-phase encoded, and all of them parse without error.  Bi-phase encoding, also called Manchester encoding, is used in RC5 and RC6 and other IR protocols found in IP/cable/satellite boxes.

Here's a typical signal expressed as 75 bits:

Why as 75 bits? Are you saying that the command is a 75 bit digital word?
R1 MOM. CLOSE 10S
111111111100000100000001000001111000011110000000001000000011000000010000000
The engineering concepts behind the signals can be seen if each byte (starting from the rightmost bit) is reversed in bit order.  

Why would one think to do that? Are you saying that if the last eight digits were abcdefgh, that the reversed version would start with hgfedcba? Or that the last bits would remain as the last bits, but be dcbahgfe?

This sort of reversal is common in IR protocols, e.g.  NEC, Pioneer, Sony, etc.

Common doesn't mean always. How does one know when this happens, to know when to look at reversing things?

Showing the above signal with bit reversed values in hexadecimal notation gives:
3FF 1010 3C3C 8080 0101

What are you trying to do in your post when you write span style equals quote fontdashsize etc., which does not show up in the post?

If we ignore the 3FF,

Why do we ignore the 3FF? How do we know we can do that? Doesn't it mean anything? If so, why is it there?

the remaining 4 words have repeated bytes, so

Wait a minute. "so" means that you have come to a conclusion. Does one just ignore repeated bytes? Under what condition?

we can remove the redundant information:
10 3C 80 01

At least I followed that part.

We don't know the meaning of the initial 10, but perhaps it is a unit number.

From what I know, then, that's descriptive but not part of the action. Is that right?

Action: 0=Open, 1 = Close, 2 = Toggle, 3 = Mom.  Close, 4 =  Mom. Open, 5 = Mom. Toggle
Duration of momentary action in units of 3.125 mSec.

I take it the duration is, in hex, 0380 times 3.125 msec. Right?

Relay:  01 = Relay 1, 02 = Relay2, 04 = Relay3, 08 = Relay 4, FF = All Relays

Other durations can presumably be programmed by adding the following to IrpProtocols.ini in IrScrutinizer:

[protocol]
name=Pro-Relay4
irp={40.2k,398}<1,-1|-1,1>(1,1023:11,2056:16,F:4:8,S:4,F:4:8,S:4,F:8,F:8,R:8,R:8,-19.5m)\
{R=2**D} [D:1..8,S:0..15,F:0..4095]
[documentation]
Put Relay number (1-4) in D, Action (0-5) in S, Duration in units of 3.125mSec in F
Actions: 0=Open, 1 = Close, 2 = Toggle, 3 = Mom.  Close, 4 =  Mom. Open, 5 = Mom. Toggle
A good answer is easier with a clear question giving the make and model of everything.
"The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw


Hosting Services by ipHouse