Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Autorepeating USB-UIRT transmit

If you have a question or need help, this is the place to be.
Post Reply
vuego
Experienced User
Posts: 69
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Autorepeating USB-UIRT transmit

Post by vuego »

I'm using the USB-UIRT plugin to receive remote IR codes to control MediaPortal and transmit IR codes to control the amplifier. Using the Autorepeat on MediaPortal actions works fine but not on USB-UIRT: Transmit IR.

Pressing and holding the button on my remote works normally with autorepeat every 0.6 seconds to move the mouse in this example

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
    <Macro Name="Works" Expanded="True">
        <Event Name="USB_UIRT.NEC.102EAC52" />
        <Action>
            Mouse.MoveRelative(1, 0)
        </Action>
        <Action>
            EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
        </Action>
    </Macro>
</EventGhost>
Pressing and holding the remote button in this example triggers only one transmit. The Eventghost icon stays red during the long keypress

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
    <Macro Name="Does not work" Expanded="True">
        <Event Name="USB_UIRT.NEC.102EF00E" />
        <Action>
            USB_UIRT.TransmitIR(u'0000 006D 0022 0002 0157 00AB 0016 0040 0016 0016 0016 0016 0015 0016 0016 0016 0016 0016 0015 0016 0016 0016 0016 0016 0015 0041 0016 0040 0016 0041 0015 0041 0016 0040 0016 0041 0015 0041 0016 0016 0015 0016 0016 0016 0016 0016 0015 0041 0016 0016 0015 0041 0016 0016 0015 0041 0016 0040 0016 0041 0015 0041 0016 0016 0015 0041 0016 0016 0015 0041 0016 05ED 0157 0056 0015 0E49', 2, 0)
        </Action>
        <Action>
            EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 3.0)
        </Action>
    </Macro>
</EventGhost>
which leads me to believe that something inside the USB-UIRT plugin is preventing autorepeat. I just can't find out what it is.
Any ideas?
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Autorepeating USB-UIRT transmit

Post by stottle »

what happens if you swap the events? Not all IR codes will repeat, it could be that you are using a code that doesn't (power is an example that doesn't repeat). If the button is repeating, it could be that the delay is too short.

Other than that, I'm not sure.

Brett
vuego
Experienced User
Posts: 69
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Re: Autorepeating USB-UIRT transmit

Post by vuego »

Thanks for the reply. It didn't work but helped me in the right direction :)

I tried swapping the events by setting USB_UIRT.NEC.102EAC52 as trigger for both macros but with the same result, however I now noticed that another event was triggered - USB_UIRT.Unknown.10. It's always Unknown.10, no matter which remote key is used. This is strange since I saw those for all long key presses when having "Pass short repeat codes as enduring events" unchecked in USB-UIRT configuration. It seems that they only occur after a USB_UIRT.TransmitIR now when it's checked :?

Here's how I've solved it if anyone is interested:
I made a group with two macros - volume up and down, both using USB_UIRT.Unknown.10 and two Enable Exclusive actions in my original macros.
If I for example press and hold volume up on the remote it'll first trigger USB_UIRT.NEC.102EAC52 which will execute one USB_UIRT.TransmitIR action and Enable Exclusive the other Volume Up macro. Next it'll trigger USB_UIRT.Unknown.10 which now will execute USB_UIRT.TransmitIR again. This macros has an Autorepeat action for the next USB_UIRT.Unknown.10 event.
stottle
Plugin Developer
Posts: 636
Joined: Sun Apr 26, 2009 10:59 pm

Re: Autorepeating USB-UIRT transmit

Post by stottle »

I'm impressed. Nice troubleshooting and, while not the prettiest configuration, that sounds like an effective solution.

Brett
altainta
Posts: 29
Joined: Sun Nov 28, 2010 5:58 am

Re: Autorepeating USB-UIRT transmit

Post by altainta »

vuego wrote:Thanks for the reply. It didn't work but helped me in the right direction :)

I tried swapping the events by setting USB_UIRT.NEC.102EAC52 as trigger for both macros but with the same result, however I now noticed that another event was triggered - USB_UIRT.Unknown.10. It's always Unknown.10, no matter which remote key is used. This is strange since I saw those for all long key presses when having "Pass short repeat codes as enduring events" unchecked in USB-UIRT configuration. It seems that they only occur after a USB_UIRT.TransmitIR now when it's checked :?

Here's how I've solved it if anyone is interested:
I made a group with two macros - volume up and down, both using USB_UIRT.Unknown.10 and two Enable Exclusive actions in my original macros.
If I for example press and hold volume up on the remote it'll first trigger USB_UIRT.NEC.102EAC52 which will execute one USB_UIRT.TransmitIR action and Enable Exclusive the other Volume Up macro. Next it'll trigger USB_UIRT.Unknown.10 which now will execute USB_UIRT.TransmitIR again. This macros has an Autorepeat action for the next USB_UIRT.Unknown.10 event.
Hey dude can u please help in this regard Same issue but not able to resolve new to this

I use Igorplug and it does the same
E.g
(IgorPlugUSB.Unknown.2FAFEFAFEC) this is volume up key (FOR MEDIA PLAYER CLASSIC) i get it when i press softly. If i press a little (long) it produce
(IgorPlugUSB.Unknown.10) Now how to do the Volume UP in a Flow in repeating manner i tried the Autorepeat Macro but no use. I tried ur suggestion but without a PICTURE i am not able to understand that what i did is

Also i noticed that if i keep the ir remote a little long (6-7 meters BTW it is not long) it gives random code how to resolve this issue ?
vuego
Experienced User
Posts: 69
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Re: Autorepeating USB-UIRT transmit

Post by vuego »

See attached picture or xml file to see what I'm talking about :)

I also get random codes sometimes. I don't think there's much to do about that...
Attachments
USBUIRT autorepeat.xml
(3.37 KiB) Downloaded 127 times
USBUIRT autorepeat.png
Post Reply