Page 3 of 4

Posted: Mon Jul 24, 2006 1:59 pm
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.

Posted: Mon Jul 24, 2006 2:33 pm
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.

Posted: Mon Jul 24, 2006 2:53 pm
by Bitmonster
635
- dlldll error fixed
- serial list should be fixed.
- next try to get usefull capture output...

Posted: Mon Jul 24, 2006 3:04 pm
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.

Posted: Mon Jul 24, 2006 3:06 pm
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?

Posted: Mon Jul 24, 2006 3:11 pm
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.

Posted: Mon Jul 24, 2006 3:26 pm
by Bitmonster
Ok, this looks good.

Next one, 636
- off by one error should be fixed
- now captures in CCF format.

Posted: Mon Jul 24, 2006 3:30 pm
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?

Posted: Mon Jul 24, 2006 3:37 pm
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.

Posted: Mon Jul 24, 2006 6:18 pm
by Bitmonster
637

- Added a "Transmit IR" action to the plugin.

Posted: Mon Jul 24, 2006 11:21 pm
by thug
i'm speechless. (it worked!)

Posted: Mon Jul 24, 2006 11:28 pm
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.

Posted: Tue Jul 25, 2006 12:08 am
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! ;)

Posted: Sun Jan 28, 2007 3:16 pm
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)

:?

Posted: Sun Jan 28, 2007 3:21 pm
by Bitmonster
For which purpose would this be useful?