Sending hex codes via a serial iTach

980 views
Skip to first unread message

Paul

unread,
Sep 13, 2011, 8:45:41 AM9/13/11
to CommandFusion
I can send hex commands fine using the Global Cache iTest app. What
is the exact syntax for sending the following using iViewer:

FE 03 C8 14 0A E9

Jarrod Bell

unread,
Sep 13, 2011, 8:48:23 AM9/13/11
to comman...@googlegroups.com

Denis Renesto

unread,
Sep 13, 2011, 9:15:43 AM9/13/11
to comman...@googlegroups.com
The command would be this way?

"sendir,1:1,1,37000,1,1,\xFE\x03\xC8\x14\x0A\xE9\x0D"

tks.

2011/9/13 Jarrod Bell <jar...@guilink.com>
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.


Jarrod Bell

unread,
Sep 13, 2011, 9:20:43 AM9/13/11
to comman...@googlegroups.com
No, if you want to send IR data, use the format from their learner software.

If you want to send data to the serial port, just send exactly the string you want to be sent via serial.
Each serial port uses a specific TCP port number (starting at 4999), whilst IR and other units use 4998.

See the API docs from Global Cache for more info.

Jarrod


On 13/09/11 11:15 PM, Denis Renesto wrote:
The command would be this way?

"sendir,1:1,1,37000,1,1,\xFE\x03\xC8\x14\x0A\xE9\x0D"

tks.

2011/9/13 Jarrod Bell <jar...@guilink.com>


On 13/09/11 10:45 PM, Paul wrote:
I can send hex commands fine using the Global Cache iTest app.  What
is the exact syntax for sending the following using iViewer:

FE 03 C8 14 0A E9


--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.

Denis Renesto

unread,
Sep 13, 2011, 9:56:35 AM9/13/11
to comman...@googlegroups.com
But the problem that the conversion hex format to the command fusion format using iConvert, it gives an error while processing the command FE 03 C8 14 0A E9.

Jarrod Bell

unread,
Sep 13, 2011, 10:03:25 AM9/13/11
to comman...@googlegroups.com
iConvert is for converting CCF codes to the GlobalCache IR format.

From CommandFusion, you use the GlobalCache IR format that iConvert outputs. You do not enter hex bytes into our software for IR control.

Just grab a CCF code, convert it to the GC format, then paste the GC format into a command in guiDesigner, remember to add \x0D at the end as their API requires all messages end with a carriage return.

Jarrod

Barry Gordon

unread,
Sep 13, 2011, 2:26:22 PM9/13/11
to comman...@googlegroups.com

What do you mean by conversion to the command fusion format.  HEX is HEX .  The question is how do you represent it.  You do  realize that for IR you need to send a GC some prefix info, but IIRC for serial just the actual bytes where each byte is a decimal integer in the range 0-255.  HEX notation is just a convenient way to represent a number in the range 0-255 using base 16 notation. The issue becomes how you tell whatever is looking at your strings that you are providing a HEX representation and not a decimal one and not ASCII characters that might look like numbers in HEX notation.  Some systems actually want HEX numbers as ASCII characters but not many.  One standard convention is \xNN.  Another one is $Hnnnnnn.  CF uses the \xNN and that is what Javascript uses.  The \ means funny stuff coming (an escape sequence) the next character tells which escape sequence.  Common values of this second character are x, r, n, u, \.  The x says "the next two characters of the four character escape sequence are in HEX notation. Convert them to a single byte having the equivalent integer value in the range 0-255.   \r == \x0D, \n==\x0A and are just notations to save two characters of space for common sequences. I am not sure if CF accepts \r and/or \n in strings.

 

I must of written this diatribe a dozen times on various BBS's dealing with remote control.  

Scott

unread,
Sep 13, 2011, 3:01:32 PM9/13/11
to comman...@googlegroups.com, <commandfusion@googlegroups.com>
I believe he meant Global Cache format, not command fusion. IConvert is global cache software that converts  HEX to gc format

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages