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.

Stop USBIURT autorepeat

If you have a question or need help, this is the place to be.
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Stop USBIURT autorepeat

Post by sdx »

I control a camera using USB-UIRT.

I use the autorepeat to make the camera go in a direction (left, right ...).

To stop this action, I send a "Cancel" but the response time is 4 secondes, is there a way to rapidely (less than ,5 sec) stop the auto repeat on USB-UIRT ?

Thanks
Antoine
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Post by Bartman »

Try lowering the repeat count in the Tramit Action and therefor making the autorepeat repeat the action after a shorter time.
Is "Cancel" a different IR signal?
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Auto Repeat

Post by sdx »

1. In fact Autorepeat means to me choosing "Infinite" in Repeat Count (USB-UIRT : Transmit IR configuration box), this is the only way to have a continous mouvement for my camera.

2. Cancel in another IR signal that the camera understands.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Actually you can use an empty TransmitIR action to stop an infinite transmit action.

Does the LED on the USB-UIRT also flash 4 sec after you cancelled the transmission or does it stop immediately?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Post by sdx »

"use an empty TransmitIR ", it works but the response time is nearly the same, and it generates an error :

Error in Action: "Transmit IR"
Traceback (most recent call last) (908):
File "C:\Program Files\EventGhost\plugins\USB-UIRT\__init__.py", line 188, in __call__
File "C:\Program Files\EventGhost\plugins\USB-UIRT\USB_UIRT.py", line 378, in TransmitIR
UUIRTError: Error calling UUIRTTransmitIR

2. Yes, the LED continues to flash 4 sec when sending the cancel IR signal or the blank signal.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Please copy the TransmitIR action you use and paste it here between CODE tags.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Post by sdx »

Is it whhat you expect ?


<Action>USB_UIRT.TransmitIR(u'0000 006E 0022 0002 0155 00AA 0016 003F 0016 0015 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0040 0015 0016 0016 0040 0015 0040 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0015 0016 003F 0016 0040 0015 0040 0016 0015 0015 0015 0016 0015 0016 0015 0015 0040 0016 0015 0015 0015 0016 0015 0016 003F 0016 0040 0015 0040 0016 003F 0016 068D 0155 0055 0015 0E31', 32767, 0)</Action>
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

If you send it only once, is the LED going off immediately?
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Post by sdx »

YES (I set repeat count = 1)
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

To stop transmission, you have to set repeat count to "0". Then you can use an empty action. But the error with a greater repeat count is a bug that should be fixed.

I just tried your code and it really looks odd. It doesn't need 4 secs here to stop, but considerable longer then it should need.

I modified the code by hand:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="974">
    <Action>
        USB_UIRT.TransmitIR(u'0000 006E 0022 0000 0155 00AA 0016 003F 0016 0015 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0040 0015 0016 0016 0040 0015 0040 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0015 0016 003F 0016 0040 0015 0040 0016 0015 0015 0015 0016 0015 0016 0015 0015 0040 0016 0015 0015 0015 0016 0015 0016 003F 0016 0040 0015 0040 0016 003F 0016 068D', 32767, 1)
    </Action>
</EventGhost>
This one seems to stop immediately but uses another repeat sequence. So please try this action and report your finding.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Post by sdx »

1. "stop transmission" Understood, thanks

2. "test the code"
Good point: It stops immmediatly
Little issue : the camera move is not continous, sometimes the camera goes moving continuously and faster but I don't understand the reason !

For me IR signals are chineese, if you can indicate me how to understand them I would appreciate very much.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

I was afraid this would happen. :(

It seems to be a bug of the USB-UIRT. You can try to learn the code with "Force RAW-Mode learning" set. Maybe this helps.

IR codes are a quite complex domain. Your camera seems to use a kind of NEC code:
http://www.sbprojects.com/knowledge/ir/nec.htm

This code transmits a longer sequence in the beginning, that holds the actual code and a shorter repeat sequence that is the same for all buttons. What I have done above is to force the USB-UIRT to use the first code as repeat sequence and that is why your camera thinks you are pressing the button many times instead of continuous holding it down.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
sdx
Posts: 19
Joined: Sat May 12, 2007 9:40 am

Post by sdx »

Should I escalate the issue to USB-UIRT ? What do you recommand ?

I will stay stupid about IR signal but it is not an issue for the time being. (My camera is Canon VC-C50)

Thanks for your help , I find EventGhost very good !
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Yes, I think you can report this issue to the USB-UIRT forum. You can set a link to this thread.

The Pronto code Jon Rhees needs to try it out is:

Code: Select all

0000 006E 0022 0002 0155 00AA 0016 003F 0016 0015 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0040 0015 0016 0016 0040 0015 0040 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0015 0016 003F 0016 0040 0015 0040 0016 0015 0015 0015 0016 0015 0016 0015 0015 0040 0016 0015 0015 0015 0016 0015 0016 003F 0016 0040 0015 0040 0016 003F 0016 068D 0155 0055 0015 0E31
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Post by CollinR »

I think you would be better off using the camera preset positions and creating a patrol you can call with EventGhost.


I mean realistically the camera will only have a few common field of views. No matter what you do you will never be able to use a 4way on-off hardware device to track moving objects with it (what all remotes I have seen have).

You can do it with a joystick, but they aren't on/off directionally.


Do you have any presets set?
Post Reply