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.
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
Stop USBIURT autorepeat
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
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
Auto Repeat
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.
2. Cancel in another IR signal that the camera understands.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
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?
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!
"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.
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.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
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>
<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>
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
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:
This one seems to stop immediately but uses another repeat sequence. So please try this action and report your finding.
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>Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
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.
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.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
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.
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!
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
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:
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 0E31Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
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?
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?