------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=79524
------------------------------------------------------------------------
Question: Are you interested in IR-over-IP?
    
- Yes, I'd like to have IRoIP.
- No, I don't care.
------------------------------------------------------------------------

kvn.inbox;568496 Wrote: 
> Here are begin of our talk..:)
> http://forums.slimdevices.com/showpost.php?p=541974&postcount=325
> 
> 
> 
> For the 1-st simple config I tried to doit myself:
> SqueezeIR.xml
> > 
Code:
--------------------
  >   > 
  > <?xml version="1.0"?> <!-- DO NOT TOUCH THIS LINE -->
  > 
  > <!--
  >     SqueezeIR Data File
  >     Original filename "SqueezeIR.xml"
  >     See ReadMe.txt for information
  > -->
  > 
  > <!--
  >     KeyCode Constants
  >     GO                              =    1
  >     HOME                    =   64
  >     FWD                             = 2048
  >     REW                             = 1024
  >     BACK                    =    2
  >     PLAY                    =  128
  >     PAUSE                   =  512
  >     VOLUME_UP               = 4096
  >     VOLUME_DOWN             = 8192
  >     ADD                             =  256
  >     VOLUME_MUTE     = KEY_VOLUME_UP | KEY_VOLUME_DOWN
  >     PREVIOUS                = KEY_PAUSE | KEY_REW
  >     NEXT                    = KEY_PAUSE | KEY_FWD
  >     STOP                    = KEY_REW | KEY_FWD
  > -->
  > 
  > <SqueezeIR> <!-- DO NOT TOUCH THIS LINE -->
  > 
  > <hotkey>66</hotkey> <!-- home+back -->
  > 
  > <remotes> <!-- Your remote control codes (or LIRC file references) go in 
this section -->
  >     <remote ID="AMP">
  >             <protocol>LIRC</protocol>
  >             <parameters>
  >                     <parameter ID="filename">AA_MAP305.lirc.txt</parameter>
  > <parameter ID="remote">AA_MAP305</parameter>
  >             </parameters>
  >     </remote>
  > </remotes>
  > 
  > <profiles>
  >     <profile ID="Amp">
  >             <keys>
  >                     <key ID="volume_up">
  >                             <events>
  >                                     <event ID="press">
  >                                             <override>true</override>
  >                                             <actions>
  >                                                     <action order="1">
  >                                                             
<remote>AMP</remote>
  >                                                             
<command>volume_up</command>
  >                                                     </action>
  >                                             </actions>
  >                                     </event>
  > 
  >                                     <event ID="hold">
  >                                             <override>true</override>
  >                                             <actions>
  >                                                     <action order="1">
  >                                                             
<remote>AMP</remote>
  >                                                             
<command>volume_up</command>
  >                                                     </action>
  >                                             </actions>
  >                                     </event>
  >                             </events>
  >                     </key>
  > 
  >                     <key ID="volume_down">
  >                             <events>
  >                                     <event ID="press">
  >                                             <override>true</override>
  >                                             <actions>
  >                                                     <action order="1">
  >                                                             
<remote>AMP</remote>
  >                                                             
<command>volume_down</command>
  >                                                     </action>
  >                                             </actions>
  >                                     </event>
  > 
  >                                     <event ID="hold">
  >                                             <override>true</override>
  >                                             <actions>
  >                                                     <action order="1">
  >                                                             
<remote>AMP</remote>
  >                                                             
<command>volume_down</command>
  >                                                     </action>
  >                                             </actions>
  >                                     </event>
  >                             </events>
  >                     </key>
  >             </keys>
  >     </profile>
  > </profiles>
  > 
  > </SqueezeIR>
  > 
--------------------
> > 
> 
> And AA_MAP305.lirc.txt:
> > 
Code:
--------------------
  >   > 
  > 
  > # Please make this file available to others
  > # by sending it to <[email protected]>
  > #
  > # this config file was automatically generated
  > # using lirc-0.8.6(SerialDevice) on Thu Aug 12 09:57:19 2010
  > #
  > # contributed by 
  > #
  > # brand:                       Advance Acoustic
  > # model no. of remote control: MAP-305II/DAII
  > # devices being controlled by this remote: Advcance Acoustic MAP-305DAII
  > #
  > 
  > begin remote
  > 
  > name  AA_MAP305.lirc.txt
  > bits           16
  > flags SPACE_ENC|CONST_LENGTH
  > eps            30
  > aeps          100
  > 
  > header       9000  4487
  > one           599  1671
  > zero          599   506
  > ptrail        589
  > repeat       9005  2265
  > pre_data_bits   16
  > pre_data       0x24D2
  > gap          107918
  > toggle_bit_mask 0x0
  > 
  > begin codes
  > standby                  0x2AD5
  > cd                       0x10EF
  > tuner                    0x12ED
  > aux                      0x30CF
  > phono                    0x32CD
  > digital                  0x08F7
  > mute                     0x0AF5
  > volume_down              0x28D7
  > volume_up                0xAA55
  > end codes
  > 
  > end remote
  > 
  > 
--------------------
> > 
> 
> I will try it evening at home..maybe will be some comments..
> 
> For "not simple" p.2. - it's hard to do it myself..:( Need knowledge
> and example...

That should do it for the simple configuration, just remember to put
the xml & lirc files onto your server before trying to load the config
on the Controller.  As the "PRESS" & "HOLD" events are identical in
this instance you can simplify the xml by using the "ALL" event ID
instead. Both should work though. eg for volume_down:


Code:
--------------------
    
  <events>
  <event ID="all">
  <override>true</override>
        <actions>
            <action order="1">
                <remote>AMP</remote>
                <command>volume_down</command>
            </action>
        </actions>
  </event>
  </events>
--------------------


Try it out and if it works we'll see about the other config...


-- 
indifference_engine
------------------------------------------------------------------------
indifference_engine's Profile: 
http://forums.slimdevices.com/member.php?userid=20698
View this thread: http://forums.slimdevices.com/showthread.php?t=79524

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to