Page 1 of 2

Hex Code Structure

PostPosted: Fri 30. Dec 2011, 00:01
by davidrule
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

Re: Hex Code Structure

PostPosted: Fri 30. Dec 2011, 14:07
by IRTrans
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

Re: Hex Code Structure

PostPosted: Fri 30. Dec 2011, 17:27
by davidrule
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

Re: Hex Code Structure

PostPosted: Fri 30. Dec 2011, 22:33
by IRTrans
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

Re: Hex Code Structure

PostPosted: Fri 30. Dec 2011, 23:00
by davidrule
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

Re: Hex Code Structure

PostPosted: Sat 31. Dec 2011, 08:17
by IRTrans
Hi,
which IRTrans device with which Firmware version are you using?

Are you using TCP or UDP?

IRTrans

Re: Hex Code Structure

PostPosted: Sat 31. Dec 2011, 13:35
by Fischer
Hi David,
your hexcode is called "pronto code" or "ccf code".
Follow this link, to understand principles :

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

Regards

Re: Hex Code Structure

PostPosted: Sat 31. Dec 2011, 14:51
by davidrule
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

Re: Hex Code Structure

PostPosted: Sat 31. Dec 2011, 15:21
by IRTrans
That firmware is quite old.

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

IRTrans

Re: Hex Code Structure

PostPosted: Tue 3. Jan 2012, 13:44
by davidrule
Email sent. I'll will post an update when I get the new firmware and confirm that I have it working.