|
JP1 Remotes
|
View previous topic :: View next topic |
Author |
Message |
Barf Expert
Joined: 24 Oct 2008 Posts: 1417 Location: Munich, Germany |
Posted: Sat May 26, 2018 12:34 pm Post subject: RTI Relay Protocol |
|
|
On RemoteCentral I stubled upon this post, see also this. It is a protocol for controlling an "RTI RCM-4 Relay module". There are Pronto Hex codes at the end of the post. There seems to be 4 relays, each having an on- and an off-command.
It is a pure biphase 75-bit code. I have not seen that one before. Using IrpTransmogrifier, I managed to "crack the code", and came up with the Irp-form
Code: |
{40.244k,398,msb}<1,-1|-1,1>(1,A:31,F:1,F:8,D:23,D:8,0:4,-19.5m)*{A=2145419392}[F:0..1,D:0..255]
|
For this, I set F = 0 for the off-command and F=1 for the corresponding on-command. The parameter D = 8 for relay 1, D = 4 for relay 2, D = 2 for relay 3, and D = 1 for relay 4.
(It is possible to use a more natural parametrization, e.g. D = 1 << (4 - N) (for N the relay number), but IrScrutinizer presently does not accept it (as opposed to IrpTransmogrifier), and IrpTransmogrifier can use the first but not the second for decoding. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21271 Location: Chicago, IL |
Posted: Mon May 28, 2018 8:57 pm Post subject: |
|
|
When we write bi-phase executors, we are forced to treat 0 as the reversed pair, but in this case, I think the original intent was reversed, so:
-400 +400 = 1
+400 -400 = 0
Using that, I got the following binary:
Repeat: +400; 11 11111111 00000100 00000100 00000100 00000100 00000000 00000000 01000000 01000000 +400 -20000; Relay 1 On
Repeat: +400; 11 11111111 00000100 00000100 00000000 00000000 00000000 00000000 01000000 01000000 +400 -20000; Relay 1 Off
Repeat: +400; 11 11111111 00000100 00000100 00000100 00000100 00000000 00000000 00100000 00100000 +400 -20000; Relay 2 On
Repeat: +400; 11 11111111 00000100 00000100 00000000 00000000 00000000 00000000 00100000 00100000 +400 -20000; Relay 2 Off
Repeat: +400; 11 11111111 00000100 00000100 00000100 00000100 00000000 00000000 00010000 00010000 +400 -20000; Relay 3 On
Repeat: +400; 11 11111111 00000100 00000100 00000000 00000000 00000000 00000000 00010000 00010000 +400 -20000; Relay 3 Off
Repeat: +400; 11 11111111 00000100 00000100 00000100 00000100 00000000 00000000 00001000 00001000 +400 -20000; Relay 4 On
Repeat: +400; 11 11111111 00000100 00000100 00000000 00000000 00000000 00000000 00001000 00001000 +400 -20000; Relay 4 Off
You'll notice that each byte is repeated. The first two pairs are fixed. The next 2 pairs have a bit that implies ON and OFF. The next two are fixed and zero filled. The final two use the bit position to indicate which Relay is being controlled.
If someone has one of these that they want to control with a JP1 remote, it shouldn't be too hard to write an executor.
Here's an RMIR file for anyone wanting to see it for themselves:
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=25233 _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|