Please login or register.

Login with username, password and session length

Author Topic: USB-UIRT and X10  (Read 24760 times)

steinie44

  • Full Member
  • ***
  • Helpful Post Rating: 1
  • Posts: 29
USB-UIRT and X10
« 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

Logged
get-R-done...........!

TakeTheActive

  • Hero Member
  • *****
  • Helpful Post Rating: 126
  • Posts: 1047
  • Old !@#$% Tinkerer!
Re: USB-UIRT and X10
« Reply #1 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:

  • QUOTE: Copy all text of current message, surrounded by QUOTES, into NEW message.

  • MODIFY: Edit current message.

  • DELETE: Remove current message.
Logged
Low Post Count != Low Knowledge - High Post Count != High Knowledge ;)

ADVICE TO X-10 NEWBIES FROM AN X-10 OLD-TIMER

steinie44

  • Full Member
  • ***
  • Helpful Post Rating: 1
  • Posts: 29
Re: USB-UIRT and X10
« Reply #2 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



« Last Edit: April 09, 2007, 04:04:30 AM by steinie44 »
Logged
get-R-done...........!

corey872

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 5
Re: USB-UIRT and X10
« Reply #3 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?
Logged
Corey ~
Workin' harder and harder to make things easier and easier, until I'm completely worn out making things effortless.

corey872

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 5
Re: USB-UIRT and X10
« Reply #4 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.
Logged
Corey ~
Workin' harder and harder to make things easier and easier, until I'm completely worn out making things effortless.

jjsalobird

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 51
Re: USB-UIRT and X10
« Reply #5 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
Logged

HA Dave

  • Hero Member
  • *****
  • Helpful Post Rating: 175
  • Posts: 7127
Re: USB-UIRT and X10
« Reply #6 on: March 26, 2010, 03:08:52 PM »

I use the USB-UIRT with the software built-in to BVC. And it works flawlessly.
Logged
Home Automation is an always changing technology

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 282
  • Posts: 10511
  • I don't work for X10, I use it successfuly!
    • Tuicemen Forum
Re: USB-UIRT and X10
« Reply #7 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 :)%
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.