News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

IRToy support

Started by seth83, May 27, 2014, 12:52:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

seth83

Hello, there is a posibility to make a plugin for this device ?

http://dangerousprototypes.com/docs/USB_Infrared_Toy

or can point me in the right direction?

thanks

Kalle

#1
Hi seth83 and welcome to the  VC-Forum.
After I read a bit about this device on their website, I noticed it can work with eventghost - so you can use it in this way with VoxCommando, which needs not a extra plugin
http://voxcommando.com/mediawiki/index.php?title=EventGhost

This device has some limitations so far I understand:
1. It works only with RC-5 format codes, so it is possible it will not work with all your devices. You can find more about the different protocols here:  http://www.sbprojects.com/knowledge/ir/index.php
2. There is no IR output jack to plug in a extra IR emitter cable, if you want control more than one device you must placed the devices relative together.

The device is relative cheap and you can give it a try, but there is no guarantee that is for what you looking for.

A IR controller which works fine with VoxCommando (a plugin for VC is available) is the USB-UIRT which is more expensive (50$-55$ +shipping), but it will work out of the box. http://www.usbuirt.com/
There are a lot of other IR controller available which works with VoxCommando and must not connected direct to a USB port (wireless or networkcable) but relative expensive. As example GlobalCache products: http://www.globalcache.com/products/

I hope all this informations will help you a bit, because we don't know how your equipment looks like.  ;)
***********  get excited and make things  **********

jitterjames

Quote from: Kalle on May 27, 2014, 02:22:00 AM
This device has some limitations so far I understand:
1. It works only with RC-5 format codes, so it is possible it will not work with all your devices. You can find more about the different protocols here:  http://www.sbprojects.com/knowledge/ir/index.php


I don't think the device is limited to RC5.  It depends on what operational mode it is in: http://dangerousprototypes.com/docs/USB_Infrared_Toy#Modes_and_protocols

seth83: I don't see any api or sample code for .net so a plugin is unlikely.  You might be able to adapt some python code though.  Using EventGhost will be much simpler.

seth83

#3
Thanks Kalle and jitterjames  for your reply

as jitterjames say it can out a raw code, also i like irtoy coz is open source and not a closed development, i know USB-UIRT as support but......

about use EG, i like keep it simple, i like very much VC but i want to control external devices making it simple as i can, ive read about the python posibility but i don't know how to do it, can't be simple with some include and functions

i'm getting errors with this https://code.google.com/p/dangerous-prototypes-open-hardware/downloads/detail?name=USBIRToy.EventGhostPlugin.08.03.zip&can=2&q=

unable to open com port
access denied

and a serie of errors on __init__.py

programming is just my hobbie i only know basic and some php  :bonk

p.s. also trying this one https://github.com/crleblanc/PyIrToy/blob/master/irtoy.py

nime5ter

If you feel that your programming knowledge is basic, the simplest solution will definitely be to find a way to get your device to work with Eventghost.

VoxCommando and Eventghost work very well together.

Have you tried posing your problem with the Eventghost plugin on the Dangerous Prototypes forum? I am seeing good support there.

Since we do not have the hardware, it's almost impossible for us to give useful advice. But once you get it working with Eventghost, if you need help adding VC to the equation, we'd be happy to help.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

seth83

Quote from: nime5ter on May 27, 2014, 04:03:33 PM
If you feel that your programming knowledge is basic, the simplest solution will definitely be to find a way to get your device to work with Eventghost.

VoxCommando and Eventghost work very well together.

Have you tried posing your problem with the Eventghost plugin on the Dangerous Prototypes forum? I am seeing good support there.

Since we do not have the hardware, it's almost impossible for us to give useful advice. But once you get it working with Eventghost, if you need help adding VC to the equation, we'd be happy to help.

i will try, but has no new post about it since 2010  :(

nime5ter

I would start with the Dangerous Prototypes forum, not the Eventghost forum.

I see quite a few more recent threads there that discuss using the 2 different Eventghost plugins that supposedly work with your device.

http://dangerousprototypes.com/forum/search.php?keywords=eventghost&terms=all&author=&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

seth83

Quote from: nime5ter on May 27, 2014, 06:05:07 PM
I would start with the Dangerous Prototypes forum, not the Eventghost forum.

I see quite a few more recent threads there that discuss using the 2 different Eventghost plugins that supposedly work with your device.

http://dangerousprototypes.com/forum/search.php?keywords=eventghost&terms=all&author=&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search

i do like if that was so simple as this

import serial
import irtoy

with serial.Serial('COM12') as serialDevice:

    # create a new instance of the IrToy class
    toy = irtoy.IrToy(serialDevice)

    # receive an IR signal from the IR Toy, stored in a list.
    # Note: this call will block (hang) until an IR code has been received.
    irCode = toy.receive()

    # transmit the recorded signal back to the IR Toy
    toy.transmit(irCode)

but the "with" show some errors

so i do this

serialDevice = serial.Serial('COM12')

and im figuring out how to get the value when it reads

in EG the plugin only show the send command, the script need some modifications but that will take me a while, and it's not warranty i can do it work, this is some kind of frustation  ::confused

jitterjames

Where/how are you running this code?

I would expect the EventGhost plugin to work, but if it is not working, I recommend you talk to whoever created the plugin, or to the community over at the irtoy forum.

That would be the first step.  Using EventGhost has its advantages.  I still use it with my setup to receive IR with my usbuirt.

seth83

Quote from: jitterjames on May 27, 2014, 07:08:14 PM
Where/how are you running this code?

I would expect the EventGhost plugin to work, but if it is not working, I recommend you talk to whoever created the plugin, or to the community over at the irtoy forum.

That would be the first step.  Using EventGhost has its advantages.  I still use it with my setup to receive IR with my usbuirt.

at python plugin > test button

i'm trying to make a class for py script, but still learning  ???

seth83

well, i give up with this, maybe in a future i will do it if some one has not already done, thanks for the help :)