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.

[DONE] Plugin request : HID & TIRA2 devices

Got a good idea? You can suggest new features here.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Ok, 634 is up.

In the plugin configuration you find a test button. The plugin must be loaded before, so it is able to receive events. Then reopen the configuration dialog and press the test-button. Then point your remote to the Tira as you would do to learn codes. If we are lucky, we will get some output in the logger. This output I need.

I also changed the port configuration. It should now only display ports that are accessible on your system.
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

Fired up EG got a

Code: Select all

Plugin: Tira
Error starting plugin: Tira
Traceback (most recent call last):
  File "C:\Program Files\EventGhost\eg\TreeItems\PluginItem.py", line 93, in StartPlugin
  File "plugins/Tira/__init__.py", line 29, in __start__
AttributeError: 'Tira' object has no attribute 'dlldll'
I fixed the code, changed dlldll to dll in plugin code.

No error on restart.

Double clicking on the tira plugin gives me a dialog that only has com1 to com9, I have com1 to com15 (com14 being tira)

Hard coded the port in the source to get it working....

Placed a IR RC in front of tira and clicked the "start test" button and held an RC button down, got this after about 3 seconds.

Code: Select all

starting capture test
33576680
0 c_long(299) 33576680
Exception in thread Thread-7:
Traceback (most recent call last):
  File "threading.pyc", line 444, in __bootstrap
  File "threading.pyc", line 424, in run
  File "plugins/Tira/__init__.py", line 64, in CaptureLoop
TypeError: sequence index must be integer
The start capture test and the number appeared as soon as I pressed the "start test" button, after 3 seconds the rest came through.
Did another test...

Pressed the "start test" button and didn't press any rc button.... nothing happened except for the
starting capture test &
33576680
lines

pressed "stop test" button

Did another test...

Pressed the "start test" button and pressed a RC button quickly

the same error as the first appeared immediately.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

635
- dlldll error fixed
- serial list should be fixed.
- next try to get usefull capture output...
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

genius!!!!

side note: had to select com15 in config dialog even though tira is on com14 (off by 1 error)

Code: Select all

starting capture test
<ctypes.LP_c_ubyte object at 0x01968B20>
0 c_long(163) <ctypes.LP_c_ubyte object at 0x01968B20>
[0, 0, 0, 0, 8, 0, 0, 0, 83, 4, 0, 0, 38, 2, 0, 0, 71, 0, 0, 0, 207, 0, 0, 0, 33, 19, 0, 0, 19, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 136, 110, 3, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 12, 0, 0, 0, 144, 101, 0, 0, 0, 0, 0, 0, 71, 0, 0, 0, 255, 255, 255, 255, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 4, 0, 5, 2]
Tira.A3067D57DD55
stopping capture test
starting capture test
<ctypes.LP_c_ubyte object at 0x01968DA0>
0 c_long(159) <ctypes.LP_c_ubyte object at 0x01968DA0>
[0, 0, 0, 0, 8, 0, 0, 0, 79, 4, 0, 0, 41, 2, 0, 0, 68, 0, 0, 0, 207, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 136, 110, 3, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 12, 0, 0, 0, 144, 101, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 255, 255, 255, 255, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2]
stopping capture test
starting capture test
<ctypes.LP_c_ubyte object at 0x01968B20>
0 c_long(159) <ctypes.LP_c_ubyte object at 0x01968B20>
[0, 0, 0, 0, 8, 0, 0, 0, 83, 4, 0, 0, 38, 2, 0, 0, 71, 0, 0, 0, 207, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 136, 110, 3, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 12, 0, 0, 0, 144, 101, 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, 255, 255, 255, 255, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 2, 3, 2, 3, 2]
stopping capture test
all 3 captures above are all the same button.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Is there only one array coming if you start capture or do there come more if you press the button longer or if you press the button twice while capture is on?
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

only 1 array gets returned, once it has displayed the output goes back to showing normal tira events ala "Tira.A3067D57DD55"

1 press 1 capture, i have to press the "stop test" and then "start test" to start capture again.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Ok, this looks good.

Next one, 636
- off by one error should be fixed
- now captures in CCF format.
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

yum...

Code: Select all

starting capture test
<ctypes.LP_c_ubyte object at 0x01968EE0>
0 c_long(381) <ctypes.LP_c_ubyte object at 0x01968EE0>
[48, 48, 48, 48, 32, 48, 48, 54, 66, 32, 48, 48, 50, 52, 32, 48, 48, 48, 48, 32, 48, 49, 53, 53, 32, 48, 48, 65, 57, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 53, 69, 51, 32, 48, 49, 53, 53, 32, 48, 48, 53, 53, 32, 48, 48, 49, 54, 32, 48, 48, 48, 53, 32, 0]
Tira.A3067D57DD55
stopping capture test
starting capture test
<ctypes.LP_c_ubyte object at 0x01968490>
0 c_long(401) <ctypes.LP_c_ubyte object at 0x01968490>
[48, 48, 48, 48, 32, 48, 48, 54, 66, 32, 48, 48, 50, 54, 32, 48, 48, 48, 48, 32, 48, 49, 53, 51, 32, 48, 48, 65, 65, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 48, 52, 48, 32, 48, 48, 49, 53, 32, 48, 53, 69, 52, 32, 48, 49, 53, 51, 32, 48, 48, 53, 53, 32, 48, 48, 49, 53, 32, 48, 69, 50, 70, 32, 48, 49, 53, 51, 32, 48, 48, 53, 53, 32, 48, 48, 49, 53, 32, 48, 48, 48, 53, 32, 0]
stopping capture test
starting capture test
<ctypes.LP_c_ubyte object at 0x01968490>
0 c_long(401) <ctypes.LP_c_ubyte object at 0x01968490>
[48, 48, 48, 48, 32, 48, 48, 54, 66, 32, 48, 48, 50, 54, 32, 48, 48, 48, 48, 32, 48, 49, 53, 53, 32, 48, 48, 65, 57, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 48, 52, 48, 32, 48, 48, 49, 54, 32, 48, 53, 69, 50, 32, 48, 49, 53, 53, 32, 48, 48, 53, 53, 32, 48, 48, 49, 54, 32, 48, 69, 50, 69, 32, 48, 49, 53, 53, 32, 48, 48, 53, 53, 32, 48, 48, 49, 54, 32, 48, 48, 48, 53, 32, 0]
stopping capture test
all the same button again and still only 1 press 1 capture, but that's all you should need, no?
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

This also looks good.

The DLL tries to make a complete set, that can be used to transmit the code. Sadly they documented the structure not well enough to find some more information at first sight like the carrier frequency.

But it should be enough to make first experiments with transmitting codes.

I will write something next, but it will take some time. I guess you are sleeping if it is ready.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

637

- Added a "Transmit IR" action to the plugin.
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

i'm speechless. (it worked!)
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Good morning down under. 8)

Ok, let me know if you find some bugs. I will add an option to use CCF codes in the future. But it seems to be time to add the Tira2 to the list of supported hardware.
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

u still awake!

Well, i suppose :- Good night to you up above. :)

That sound great, IÔÇÖm glad you could help me and the other tira2 owners. :D hehehehe

I've been writing a plugin myself, just finishing it up, I want to cover all bases for this app control before I ask you if I can include it in EG support.

I have another idea for a plugin that I might invest some time in as well, it'll benefit me for now, but hopefully more will find your most excellent software, IÔÇÖll alert you when it's ready or if I need some assistance.

Good job! Sleep well! ;)
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Post by thug »

Hey again, <gulp> :shock:

With the Tira plugin... is there a way to disable the actual hardware from receiving IR and only config it to send IR?
hmm, except when capturing IR to send of course... :oops:

wait.. maybe, just maybe, can we get a property (or tick box in the tira plugin configuration) to turn off event sending/posting to EG?

eg.plugins.Tira.RecieveIR(True)
eg.plugins.Tira.RecieveIR(False)

:?
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

For which purpose would this be useful?
Post Reply