X10 Community Forum

🖥️ActiveHome Pro => SDK => Third Party Add-Ons & Software => Topic started by: steinie44 on April 07, 2007, 05:10:53 PM

Title: USB-UIRT and X10
Post by: steinie44 on April 07, 2007, 05:10:53 PM
I have USB-UIRT working with X10 :o
 Will  have more info following Testing............. :-

Stay tuned....... :-X

Title: Re: USB-UIRT and X10
Post by: TakeTheActive on April 08, 2007, 04:50:31 PM
:(

Slight Error in last post:

Top right corner of each post, just under the THICK BLUE BAR:

Title: Re: USB-UIRT and X10
Post by: steinie44 on April 09, 2007, 04:00:16 AM
OK; To start with you will need trydrv.exe Window version - Get it at: http://www.usbuirt.com/api_example_code.zip  :o

It's in folder api_example_code/trydrvvb1_1_0  :o

This program will let you capture IR codes and Send them.  :D

Start by capturing a IR code and Cut and Paste it to a Word pad .txt file, do this with all your IR codes.

In the format:  :-

Record 0000 0070 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0060 0020 04EA

Stop 0000 0070 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0020 0020 0020 0020 0020 0020 0060 0020 04E8

Play 0000 0071 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 04E8

and so-on..................

I have all mine in a file called Pronto.txt  :D

Place this file into a folder called 'Uutx'  ;)

Next, you will need a file called uutx.exe it's a command line driver  :-*

Get it at: http://www.usbuirt.com/uutx_0_3.zip

Then place it into the folder Uutx

Using NotePad create batch files for your Macros  :'(

the batch file will look like this:

uutx -r3 -fPronto.txt Record  :D

or this example

ChDir C:Documents and SettingsOwnerDesktopUutx
uutx -r3 -fPronto.txt Stop

Where my file is called Pronto.txt

-r3 makes it repeat 3 times.

Other command line switches

'uutx [-r<repeatCount> ] [-d<deviceNumber> ] [-s<sleepms>]  <"ProntoCodeString">

'-or-

'uutx [-r<repeatCount> ] [-d<deviceNumber> ] [-s<sleepms>] -f<fileName> <IRCodeName>


Call this batch file from your macro !


Your batch file may also look like:

uutx "0000 0070 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0060 0020 04EA"

Where this is my Record code.

I have tested this and it works perfect!


Next, I will show you how to Call this from a Basic 5 Express file like X10-Talk in SDK section.


This will get you started!

                     Have FUN :) ;) :D



Title: Re: USB-UIRT and X10
Post by: corey872 on February 26, 2010, 10:43:43 PM
Guess I am missing something.  I've got my uirt, got trydrv.exe set up, captured my ir code, I can transmit it from trydrv.exe and it does run the device (TV "on" in this case).  Made the text file, set up all the folders as directed - and even using the same names.  I open up a command prompt and use the command line code, but the command line window just locks up and I can't type anymore.  The red led on the uirt doesn't light and the Tv doesn't come on.  Even tried to play a code from the sampletext file, but no red light on the uirt and the command window still locks up.

i know this thread is pretty old, but thought someone else might have success with this method?
Title: Re: USB-UIRT and X10
Post by: corey872 on February 27, 2010, 08:41:31 AM
And the solution is.......reboot the computer after install of the uirt drivers!  Can't believe it took me a couple more hours to figure that out.  Also, not mentioned above, but I had to explicitly state the directory in the .bat file, otherwise it seemed like it wanted to run in the /activehome directory.   ie:

Code: [Select]
::uutx [-r<repeatCount> ] [-d<deviceNumber> ] [-s<sleepms>] -f<fileName> <IRCodeName>::


cd c:\uutx

C:\uutx\uutx -r3 -fpronto.txt on
C:\uutx\uutx -r3 -fpronto.txt dvd
C:\uutx\uutx -r23 -fpronto.txt volup


"C:\Program Files\Winamp\winamp.exe" /NEW "C:\Program Files\Winamp\party.m3u"

Which goes along with my macro to turn off/dim the main lights, turn on accent/party lights, turn on the TV, switch the stereo to the computer input, turn up the volume, start winamp and que up the playlist.
Title: Re: USB-UIRT and X10
Post by: jjsalobird on March 26, 2010, 01:37:44 AM
And the solution is.......reboot the computer after install of the uirt drivers!  Can't believe it took me a couple more hours to figure that out.  Also, not mentioned above, but I had to explicitly state the directory in the .bat file, otherwise it seemed like it wanted to run in the /activehome directory.   ie:

Code: [Select]
::uutx [-r<repeatCount> ] [-d<deviceNumber> ] [-s<sleepms>] -f<fileName> <IRCodeName>::


cd c:\uutx

C:\uutx\uutx -r3 -fpronto.txt on
C:\uutx\uutx -r3 -fpronto.txt dvd
C:\uutx\uutx -r23 -fpronto.txt volup


"C:\Program Files\Winamp\winamp.exe" /NEW "C:\Program Files\Winamp\party.m3u"

Which goes along with my macro to turn off/dim the main lights, turn on accent/party lights, turn on the TV, switch the stereo to the computer input, turn up the volume, start winamp and que up the playlist.

What software and interface device are you using?  Are we talking macros in the AHP software and the CM15A?  Do you know if the same thing could be done using the cm19a interface?  Does it use software that will run batch files as well?  Thanks
Title: Re: USB-UIRT and X10
Post by: HA Dave on March 26, 2010, 03:08:52 PM
I use the USB-UIRT with the software built-in to BVC (http://www.wgjohns.com/bvc.htm). And it works flawlessly.
Title: Re: USB-UIRT and X10
Post by: Tuicemen on December 19, 2011, 08:40:53 PM
I know this is an old thread and many are using BVC to do this.
The method described by steinie44 does work but it is a lot of work.
More then most are willing to try.
I was going to try coding a program for the USBuirt years ago but Bill had stated how much of a pain it was to program so I shelved the idea.
besides I had the VCR commander doing this
However after some consideration and new devices that the VCR commander wont talk to I thought I'd try my hand at this.
This week I started digging into the code and guess what it isn't that difficult. ::) :'
Or maybe I'm just getting better at this.
I now have a program that fetches the code and creates a text file so the UUTX can utilize it.
It works in windows CMD and AHP will fire it off as a windows command.
Very cool I thought.
Problem some programs I wished to use this with wouldn't recognize the command line arguments for what ever reason.
They would fire a batch file with the code placed in it but that's not clean looking.
So Off coding again I went.
Its now is part of PC Companion and the ability to use any IR code in a usercommand.
And no need for the UUTX :)%
 >!