Page 1 of 1

Converting a protocol to HCS08

Posted: Sat Oct 03, 2009 1:17 am
by kcmurphy88
So, I have this here URC-7781 and I'm attempting to use it in the States. Apparently no one imagined anyone would do that, as it has no DirecTV protocol (0x0162) installed for the HCS08.

I've dug around and found Protocol Builder, and a PB text file that corresponds to the DirecTV protocol I use in my (S3C80) 15-1994. I find it hard to believe that all I have to do is drop that into PB, change the processor descriptor and Presto!

I get the impression that with the S3C80 one had to write actual code and compile against library calls (where?), but in the HCS08 case it's just a string of parameters. Is this correct?

Posted: Sat Oct 03, 2009 2:47 am
by vickyg2003
Apparently no one imagined anyone would do that, as it has no DirecTV protocol (0x0162) installed for the HCS08.
This protocol was introduced after the HCS08 chip was discontuned. Its not in the HCS08 used in the U.S. either

I get the impression that with the S3C80 one had to write actual code and compile against library calls (where?), but in the HCS08 case it's just a string of parameters. Is this correct?
Nope. This protocol requires a large amount of assembly code, almost 80 lines of code. I've hunted around and can't find anywhere that anyone has made the conversion.

To make the conversion you'd need knowledge of both assembly languages. When it was brought to the s3c8 it was merely changing 2 addresses, but to convert it to HCS08 requires each line to be translated. I can make the change, but I can't get to it until Wednesday.


Or if you have a burning desire to get into PB and a good understanding of assembly language, we can walk you through it. I don't want to stifle your curiosity.

Posted: Sat Oct 03, 2009 3:19 am
by vickyg2003
John, Rob, Mike or anyone else

If we make a HCS08 version of the Directv Protocol, can we start with the "Smaller Hacked Version" of the protocol, found in the file section? That is, do they take the same parameters? Hex, and fixed?

Posted: Sat Oct 03, 2009 7:22 am
by vickyg2003
Never mind. This HCS08 Version has been written and is available in RM form here

https://www.hifi-remote.com/forums/dload ... le_id=4687

Posted: Sat Oct 03, 2009 12:01 pm
by kcmurphy88
Thanks. Hadn't looked in the device updates, was looking in the protocol areas. Thanks to mdavej, too. Oddly, I had been hoping to hack this myself, but maybe this will give me the hooks and things I'll need for converting something else I find I'm missing.

Posted: Sat Oct 03, 2009 3:02 pm
by vickyg2003
Oddly, I had been hoping to hack this myself, but maybe this will give me the hooks and things I'll need for converting something else I find I'm missing.
Yes, I know EXACTLY how you feel. It took me forever to get over that hump of "hoping" to actually "doing." There are countless posts in the forums where Rob instructed me how to do it. I had such a hard time because I couldn't figure out what all the numbers meant. The assembler was relatively easy, there are only about 78 verbs in each assembly language, but the IR concepts were really tough for me. When I had my epifany, I wrote up the IR Protocol Primer.

Posted: Sat Oct 03, 2009 3:34 pm
by mdavej
Just a note about the DirecTV upgrade. It may not be obvious, but the function descriptions in parentheses are long key press functions. For example "play (slomo)" does play on a short press and slomo on a long press. These can be used in place of all the standard transport key functions, i.e., "play (slomo)" in place of "play", "fwd (skip ..." in place of "fast fwd", "30s slip..." in place of "f.fwd...", etc. Using these functions will give you the same behavior as the original remote.

BTW, I didn't figure out the protocol, I just used it in the upgrade. I think johnsfine did that (thanks, John). I don't remember who did the HCS08 version.

Posted: Sun Oct 04, 2009 6:42 pm
by kcmurphy88
vickyg2003 wrote:
Oddly, I had been hoping to hack this myself, but maybe this will give me the hooks and things I'll need for converting something else I find I'm missing.
Yes, I know EXACTLY how you feel. It took me forever to get over that hump of "hoping" to actually "doing." There are countless posts in the forums where Rob instructed me how to do it. I had such a hard time because I couldn't figure out what all the numbers meant. The assembler was relatively easy, there are only about 78 verbs in each assembly language, but the IR concepts were really tough for me. When I had my epifany, I wrote up the IR Protocol Primer.
So, I got the URC-7781 to work for all my devices, and all the macros done -- thanks -- but I have some bug reports on the extender. I'll post those in the proper place.