Author Topic: IRToy support  (Read 3637 times)

0 Members and 2 Guests are viewing this topic.

seth83

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
IRToy support
« on: May 27, 2014, 12:52:50 AM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: IRToy support
« Reply #1 on: May 27, 2014, 02:22:00 AM »
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.  ;)
« Last Edit: May 27, 2014, 02:24:31 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: IRToy support
« Reply #2 on: May 27, 2014, 04:51:43 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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IRToy support
« Reply #3 on: May 27, 2014, 02:58:13 PM »
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
« Last Edit: May 27, 2014, 03:28:50 PM by seth83 »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: IRToy support
« Reply #4 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.
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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IRToy support
« Reply #5 on: May 27, 2014, 04:37:24 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: IRToy support
« Reply #6 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
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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IRToy support
« Reply #7 on: May 27, 2014, 06:58:36 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: IRToy support
« Reply #8 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.

seth83

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IRToy support
« Reply #9 on: May 27, 2014, 10:52:57 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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IRToy support
« Reply #10 on: May 29, 2014, 01:04:27 PM »
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 :)