JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

RM - RC-5x protocol definition

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
cdhixson



Joined: 04 Aug 2003
Posts: 48
Location: Charlotte, NC USA

                    
PostPosted: Tue Oct 07, 2003 1:58 pm    Post subject: RM - RC-5x protocol definition Reply with quote

I think I have figured out the protcol definition for the RC-5x protocol. Here is my entry for the ini file.

Code:
[RC-5x]
PID=00 F2
DevParms=Device Code:5=0
DeviceTranslator=Translator(comp,0,5,3)
FixedData=1f
CmdTranslator=Translator(comp,0,8,4) Translator(comp,0,8,4)
CmdParms=OBC:7=0
DefaultCmd=ff 00
CmdIndex=1
Notes=
Code.S3C80=40 9A 12 8B 17 89 81 10 08 08 01 BB 01 A8 01 BB \
           01 A8 94 01 00 00 06 7D 00 00 04 09 76 00 01 6B \
           03 B6 03 20 77 77 8D 01 46
Code.740=0C 1C 12 80 0C E9 C0 20 20 08 08 02 07 02 06 03 \
         78 17 5A 02 AF 5D 3C 04 77 2F 5C 3C C0 7E 22 00 \
         3C A8 7E 22 00 A2 78 A0 5D 22 44 4C 03 FF
Code.6805=0C 1D 12 20 11 C0 C0 20 20 08 08 02 13 02 0A 03 \
          F9 00 00 00 00 04 01 57 06 B6 5A A8 20 B7 5A A6 \
          02 B7 59 A6 C0 B7 7B CD 01 83 A6 A8 B7 7B CD 01 \
          83 A6 5D AE 08 CD 01 9E CD 01 8C 24 E2 81


I tested it against KM 7.54 and it seems to give the correct output. I only tested OBC values between 0 and 127. I don't think anything greater than 127 will work correctly. Is this a correct assumption?

The only difference is when you don't enter a device code in KM. In KM, the fixed data would be FF, while in RM it will be 1F. I don't think this makes a difference, but someone tell me if I'm wrong.

I've gotten the ball rolling so let's get some others working on these protocols. Who's next?

Chris


Last edited by cdhixson on Tue Oct 07, 2003 2:00 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Tue Oct 07, 2003 2:00 pm    Post subject: Reply with quote

Thanks Chris.

I'll include this in the next release.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
johnsfine
Site Admin


Joined: 10 Aug 2003
Posts: 4766
Location: Bedford, MA

                    
PostPosted: Tue Oct 07, 2003 2:29 pm    Post subject: Reply with quote

Sorry I don't have time to research these myself. But ...

Why does the "Translator(comp,0,8,4)" appear twice?

Why is the OBC limited to 7 bits and that translator seems to be for 8?

IIRC, regular RC5 has a bit of the obc placed oddly within the signal (not contiguous to other OBC bits). Does RC5x do that, and if so how does the protocol cover it?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Tue Oct 07, 2003 2:53 pm    Post subject: Reply with quote

johnsfine wrote:
Sorry I don't have time to research these myself. But ...

Why does the "Translator(comp,0,8,4)" appear twice?

Why is the OBC limited to 7 bits and that translator seems to be for 8?

IIRC, regular RC5 has a bit of the obc placed oddly within the signal (not contiguous to other OBC bits). Does RC5x do that, and if so how does the protocol cover it?

Good catches, John. I should be paying more attention to the details...
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
jon_armstrong
Expert


Joined: 03 Aug 2003
Posts: 1238
Location: R.I.P. 3/25/2005

                    
PostPosted: Tue Oct 07, 2003 6:16 pm    Post subject: Reply with quote

FYI,

The protocol definitions of RC5 and RC5x respectively are:

{36k,msb,889}<1,-1|-1,1>(1:1,~F:1:6,T:1,D:5,F:6,^114m)+

{36k,msb,889}<1,-1|-1,1>(1:1,~F:1:6,T:1,D:5,-4,S:6,F:6,^114m)+

As John said, the top bit of the OBC in RC5 is the complement of the second data bit. I don't think I have ever seen an OBC=F >127 in RC5x but the bit structure is the same, so I think it would be safe to assume that they may.
_________________
-Jon
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cdhixson



Joined: 04 Aug 2003
Posts: 48
Location: Charlotte, NC USA

                    
PostPosted: Wed Oct 08, 2003 7:17 am    Post subject: Reply with quote

jon_armstrong wrote:
FYI,

The protocol definitions of RC5 and RC5x respectively are:

{36k,msb,889}<1,-1|-1,1>(1:1,~F:1:6,T:1,D:5,F:6,^114m)+

{36k,msb,889}<1,-1|-1,1>(1:1,~F:1:6,T:1,D:5,-4,S:6,F:6,^114m)+

As John said, the top bit of the OBC in RC5 is the complement of the second data bit. I don't think I have ever seen an OBC=F >127 in RC5x but the bit structure is the same, so I think it would be safe to assume that they may.


I don't understand the protocol definition and I don't have the time to learn. I just try to match what comes out of KM. Also, things like Rc5FlagTranslator() and Rc5Translator() just appear in the protcols.ini file without a single line of documentation. I have no idea what they're doing.

Here is my second attempt.

Code:

[RC-5x]
PID=00 F2
DevParms=Device Code:5=0
DeviceTranslator=Translator(comp,0,5,3)
FixedData=1f
CmdTranslator=Translator(comp,0,7,5)
CmdParms=OBC:7=0
DefaultCmd=ff 00
CmdIndex=1
Notes=
Code.S3C80=40 9A 12 8B 17 89 81 10 08 08 01 BB 01 A8 01 BB \
           01 A8 94 01 00 00 06 7D 00 00 04 09 76 00 01 6B \
           03 B6 03 20 77 77 8D 01 46
Code.740=0C 1C 12 80 0C E9 C0 20 20 08 08 02 07 02 06 03 \
         78 17 5A 02 AF 5D 3C 04 77 2F 5C 3C C0 7E 22 00 \
         3C A8 7E 22 00 A2 78 A0 5D 22 44 4C 03 FF
Code.6805=0C 1D 12 20 11 C0 C0 20 20 08 08 02 13 02 0A 03 \
          F9 00 00 00 00 04 01 57 06 B6 5A A8 20 B7 5A A6 \
          02 B7 59 A6 C0 B7 7B CD 01 83 A6 A8 B7 7B CD 01 \
          83 A6 5D AE 08 CD 01 9E CD 01 8C 24 E2 81
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control