Ired 2 to HEXA

This forum is for anything related to Home Automation and getting your remote to work with it.

Moderator: Moderators

foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Ired 2 to HEXA

Post by foufouner »

Hello,
My house is equipped of knx and x10
There are a : Cellule IR siemens http://img4.hostingpics.net/pics/604472791.jpg
Interrupteur emetteur IR AP421 Siemens http://img4.hostingpics.net/pics/843433712.jpg
I also use my home automation IRTrans with USB for Mac and Ired 2 software

I would like to use my home automation on my cell phone. For this I found an application that is named Unified I would like to use my home automation on my cell phone. For this I found an application that is named.I just found an XML file (see below)

http://www.hifi-remote.com/forums/dload ... e_id=27083

how to convert HEX codes?
Barf
Expert
Posts: 1523
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Bonjour,

the native format of the IrTrans is the rem.file, which IrScrutinizer can import directly. The given XML file appears to somehow "contain" the rem file. So I hooked together an XSLT-script

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:transform
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="2.0">

    <xsl:output method="text"/>
    <xsl:template match="@*|node()"/>

    <xsl:template match="/">
    <xsl:text xml:space="preserve">[REMOTE]
 [NAME]xxxxxxx

[TIMING]
</xsl:text>
        <xsl:apply-templates select="//string[preceding-sibling::key[1][text()='irData']]" mode="timing"/>
        <xsl:text>

[COMMANDS]
</xsl:text>
        <xsl:apply-templates select="//dict[string[preceding-sibling::key[1][text()='irData']]]" mode="command"/>
    </xsl:template>

    <xsl:template match="string" mode="timing">
        <xsl:text> [</xsl:text>
        <xsl:value-of select="position() - 1"/>
        <xsl:text>]</xsl:text>
        <xsl:value-of select="replace(.,'\[D\].*$','')"/>
        <xsl:text xml:space="preserve">
</xsl:text>
    </xsl:template>

    <xsl:template match="dict" mode="command">
        <xsl:text> [</xsl:text>
        <xsl:value-of select="string[preceding-sibling::key[1][text()='title']]"/>
        <xsl:text>][T]</xsl:text>
        <xsl:value-of select="position() - 1"/>
        <xsl:text>[D]</xsl:text>
        <xsl:value-of select="replace(string[preceding-sibling::key[1][text()='irData']],'^.*\[D\]','')"/>
        <xsl:text xml:space="preserve">
</xsl:text>
    </xsl:template>
</xsl:transform


for translating the XML file to a rem file, and IrScrutinizer digested that file happily. Exporting it as text from IrScrutinizer gives:

Code: Select all

Lum4_open: Dish_Network Device: 25.22 Function: 62 S=22
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F

Lum4_close: Dish_Network Device: 23.30 Function: 62 S=30
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 015F

Lum3_open: Dish_Network Device: 25.7 Function: 62 S=7
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F

Lum3_close: Dish_Network Device: 31.7 Function: 62 S=7
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 015F

Porte1_open: Dish_Network Device: 17.7 Function: 63 S=7
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 015F

Porte1_close: Dish_Network Device: 23.7 Function: 63 S=7
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 015F

Porte2_close: Dish_Network Device: 19.3 Function: 63 S=3
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 015F

Porte2_open: Dish_Network Device: 21.3 Function: 63 S=3
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F

Porte_baie_open: Dish_Network Device: 21.1 Function: 62 S=1
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F

Porte_baie_close: Dish_Network Device: 21.1 Function: 62 S=1
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F

Lum2_open: Dish_Network Device: 29.3 Function: 62 S=3
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 015F

Lum2_close: Dish_Network Device: 27.3 Function: 62 S=3
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 015F

Volet_garage_monter: Dish_Network Device: 21.4 Function: 62 S=4
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 015F

Volet_garage_descendre: Dish_Network Device: 19.4 Function: 62 S=4
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 015F

Volet_baie_monter: Dish_Network Device: 25.2 Function: 62 S=2
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F

Volet_baie_descendre: Dish_Network Device: 31.2 Function: 62 S=2
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 015F

Volet_hangar_monter: Dish_Network Device: 17.0 Function: 62 S=0
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 015F

Volet_hangar_descendre: Dish_Network Device: 23.0 Function: 62 S=0
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 015F

Volet_bureau_descendre: Dish_Network Device: 27.1 Function: 63 S=1
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 015F

Volet_bureau_monter: Dish_Network Device: 29.1 Function: 63 S=1
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 015F

Prise_ventilo_open: Dish_Network Device: 29.5 Function: 61 S=5
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 015F

Prise_ventilo_close: Dish_Network Device: 27.5 Function: 61 S=5
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 015F

which should be what you asked for,
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

Thank you for your help but your code is not work :(

exemple

If I recode

Code: Select all

Lum3_open: Dish_Network Device: 25.7 Function: 62 S=7
0000 0048 0012 0011 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F 0017 005E 0017 005E 0017 005E 0017 005E 0017 005E 0017 00A4 0017 005E 0017 005E 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 00A4 0017 00A4 0017 005E 0017 005E 0017 015F 
I get

Code: Select all

[N]3[1]400 6096[2]400 1632[3]400 2848[RC]1[RP]0[FREQ]58[SB][RS][D]S0000010001101100S00000100011011000
Or the original is

Code: Select all

[N]3[1]24 952[2]32 1432[3]32 1960[RC]1[RP]0[FREQ]455[D]200020000010001101100
3FG
Expert
Posts: 3435
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

Add

Code: Select all

 [protocol]
name=Lumiere2
irp={455k,30,msb}<1,-32|1,-48>(1,-65,0:3,1,-65,D:8,F:8)1 [D:0..255,F:0..255]
to IrpProtocols.ini in the IrScrutinizer folder, start IrScrutinizer, go to Generate tab. As an example, for function Lum4_open, enter 0x06 into the D field, and 0x4C into the F field, and click Generate. This yields

Code: Select all

0000 0009 0015 0000 000E 0377 000E 01B5 000E 01B5 000E 01B5 000E 0377 000E 01B5 000E 01B5 000E 01B5 000E 01B5 000E 01B5 000E 028F 000E 028F 000E 01B5 000E 01B5 000E 028F 000E 01B5 000E 01B5 000E 028F 000E 028F 000E 01B5 000E 01B5
The values for D and F come from the last 16 bits of

Code: Select all

Lum4_open [N]3[1]24 952[2]32 1432[3]32 1960[RC]1[RP]0[FREQ]455[D]200020000011001001100
the last 16 bits are

Code: Select all

0000 0110 0100 1100
  0   6    4    C
If the above Pronto Hex works, you can generate the rest of the functions from the XML data.
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

Nice is work
There are not a video tuto for use IrScrutinizer ?
Barf
Expert
Posts: 1523
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

foufouner wrote:Nice is work
There are not a video tuto for use IrScrutinizer ?
You are right, there is currently no video tutoral. :wink: (I have had one (or several -- there are so many different use cases) on my wishlist for years now. Any volunteers?)

BUT, what 3FG describes would not be "tutoral" anyhow, but is "advanced material".

One thing disturbs me with the above: the frequency appear to be 455 (kHz) some of the time, and 58 some of the time. It is unlikely that both are correct. Can you try to clarify?
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

the code to create 3FG work

Code: Select all

0000 0009 0015 0000 000E 0377 000E 01B5 000E 01B5 000E 01B5 000E 0377 000E 01B5 000E 01B5 000E 01B5 000E 01B5 000E 01B5 000E 028F 000E 028F 000E 01B5 000E 01B5 000E 028F 000E 01B5 000E 01B5 000E 028F 000E 028F 000E 01B5 000E 01B5
My Ir and Ired2 use 455 (kHz)
Image

I use Mac OS 10.9
I download and install IrScrutinizer-1.3-app.zip: MacOS App
If clic in the logo fish nothing happens and nothing is open

Sorry for my english
Barf
Expert
Posts: 1523
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

foufouner wrote:the code to create 3FG work

Code: Select all

0000 0009 0015 0000 000E 0377 000E 01B5 000E 01B5 000E 01B5 000E 0377 000E 01B5 000E 01B5 000E 01B5 000E 01B5 000E 01B5 000E 028F 000E 028F 000E 01B5 000E 01B5 000E 028F 000E 01B5 000E 01B5 000E 028F 000E 028F 000E 01B5 000E 01B5
My Ir and Ired2 use 455 (kHz)
Good. Case settled. If you change the second hex number in the codes I generated from 0048 to 0009, they may work too.
I use Mac OS 10.9
I download and install IrScrutinizer-1.3-app.zip: MacOS App
If clic in the logo fish nothing happens and nothing is open
As I wrote on remotecentral, do you have Java installed?
Sorry for my english
No problems. It is good enough, certainly better than my French.
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

Yes look
Image
Barf
Expert
Posts: 1523
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

That probably means that you need to download and install java
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

this version I installed but is not work
I tried in mac os 10.9.5 and 10.12 but is not work
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

@3FG
You are not creat a small video for my explain :(
Barf
Expert
Posts: 1523
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Troubleshooting on Mac:

1. Open the terminal. (On English Macs Go -> Utileties -> terminal.app)
2. Locate the app Typically it is in the subdirectory Desktop, subdirectory IrScrutinizer1.3.
3. In the terminal from 1., type something like

open Desktop/IrScrutinizer-1.3/IrScrutinizer.app

(according to 2.) and report any problems.
foufouner
Posts: 40
Joined: Fri Oct 28, 2016 7:35 am

Post by foufouner »

I have the same problem, I see the image of the startup map then closes immediately
Barf
Expert
Posts: 1523
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

... with no messages at all to the console?

I have not tried with 10.12 yet, but I have tested most version up to and including 10.11.
Post Reply