Hex Code Structure

Everything related to learning and capturing of IR Codes

Moderator: marcus

Hex Code Structure

Postby davidrule » Fri 30. Dec 2011, 00:01

Hi,

I'm doing some experimenting with the TCP/IP ASCII interface. I can capture and send ir codes as hex. Is the hex code structure documented anywhere?

Thanks
David
davidrule
 
Posts: 7
Joined: Wed 2. Sep 2009, 17:55

Re: Hex Code Structure

Postby IRTrans » Fri 30. Dec 2011, 14:07

Hi,
the HEX Codes are a complicated and compressed binary format. We do not have any documentation for that format.

However, it does not make any sense to change those codes manually.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Hex Code Structure

Postby davidrule » Fri 30. Dec 2011, 17:27

What I'm trying to do is to write an app that will accept a code in Pronto Hex/CCF format and will output it to my IRTrans Ethernet via the TCP/IP ASCII interface. I'd like my app to be independant from the IRTrans server app. I realise the ITrans server app can both import CCF codes and display Hex Codes. If those procedures could be exposed in a .NET DLL file, that would make things easier! Meanwhile, I think I have more or less decoded the Hex structure myself.

    Offset 0000: Count of bytes
    Offset 0001 - 0005: ?? seems to always be 01 00 00 00 00
    Offset 0006: Number of Burst pairs
    Offset 0007: Carrier frequency
    Offset 0008: ?? seems to always be 03
    Offset 0009 - 0028: Timing data. 8 words of on times followed by 8 words of off times
    Offset 0029: ?? seems to be always 00, could be hi-byte of RC?
    Offset 002A: RC - number of repeats
    Offset 002B: RP - Pause between two repeats in ms.
    Offset 002C - end: Command data in ascii
I see a few posts on this message board refering to a .NET object. Where do I find that? The source code included with the IRTrans app doesn't seem to reference it.

Thanks
David
davidrule
 
Posts: 7
Joined: Wed 2. Sep 2009, 17:55

Re: Hex Code Structure

Postby IRTrans » Fri 30. Dec 2011, 22:33

Hi,
to send Pronto Hexcodes you can use the TCP ASCII sndccf command.

The .NET DLL is part of the IRTrans APIs an can be installed with the IRTrans APIs. There is a small .NET sample application included.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Hex Code Structure

Postby davidrule » Fri 30. Dec 2011, 23:00

Thanks! Sndccf looks like it will do just what I need. However, I'm having trouble getting it to work. If I try:

Code: Select all
Asndccf 0000 0067 0000 000d 0060 0018 0030 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03de


I get:
    **00034 RESULT ASCII Format Error

If I add parameters to the end, such as:
Code: Select all
Asndccf 0000 0067 0000 000d 0060 0018 0030 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03de,l1


I get:
    **00040 RESULT Remote Control not found
davidrule
 
Posts: 7
Joined: Wed 2. Sep 2009, 17:55

Re: Hex Code Structure

Postby IRTrans » Sat 31. Dec 2011, 08:17

Hi,
which IRTrans device with which Firmware version are you using?

Are you using TCP or UDP?

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Hex Code Structure

Postby Fischer » Sat 31. Dec 2011, 13:35

Hi David,
your hexcode is called "pronto code" or "ccf code".
Follow this link, to understand principles :

http://www.hifi-remote.com/infrared/

Regards
Fischer
 
Posts: 31
Joined: Thu 20. Nov 2008, 18:16

Re: Hex Code Structure

Postby davidrule » Sat 31. Dec 2011, 14:51

I have an IRTrans Ethernet V2.2 IRDB. Firmware versions:

LAN Version L1.06.20
IR Version E5.09.01

Could this be the problem? I'm connecting via TCP.

Thanks
David
davidrule
 
Posts: 7
Joined: Wed 2. Sep 2009, 17:55

Re: Hex Code Structure

Postby IRTrans » Sat 31. Dec 2011, 15:21

That firmware is quite old.

Please send us an Email to info@irtrans.com and we will send you a firmware update.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Hex Code Structure

Postby davidrule » Tue 3. Jan 2012, 13:44

Email sent. I'll will post an update when I get the new firmware and confirm that I have it working.
davidrule
 
Posts: 7
Joined: Wed 2. Sep 2009, 17:55

Next

Return to Learning of IR Codes

Who is online

Users browsing this forum: Bing [Bot] and 8 guests

cron