USB-UIRT Driver

Modified on 2010/07/12 23:33 by Administrator — Categorized as: Driver

Image
USB-UIRT (Universal Infrared Receiver/Transmitter) allows any USB-equipped PC to Transmit and Receive Infrared signals to common AV equipment. The USB-UIRT hardware supports Pronto codes and USB-UIRT formatted IR codes for blasting, but only receives a special 12-digit hex code when not in learn mode, such as '3F2C47C36FF1'. So Pronto codes can not be used as incoming codes to trigger actions.

This driver requires the USB-UIRT dll be installed to use.

For a detailed look at managing your infrared library click here.

Tip: The recommended practice for sending an infrared command (invoking an IR code sequence) from a script is to reference the code sequence stored in the Infrared Library as follows (See Dynamic Instance Properties for details):

gc100.SonyTV.PowerOn();

Manufacturer: USB-UIRT


Driver Parameters

none

Events

ReceivedIR

Occurs when an infrared command is received.

Parameters:

InfraredCommandName: The infrared device and infrared command name to filter on using the following format: irdevicename.ircommandname

Example:
SonyTV.PowerOn

EventArgs Properties:

>
Property NameTypeRead/WriteDescription
IRCodeStringRead OnlyGets the received IR Code.

Instance Properties

Firmware

Gets the firmware version and date..

Accessibility : Read Only

Type: String

Dynamic Instance Properties

During the configuration IR devices can be assigned to the USB-UIRT. Each infrared device associated with the USB-UIRT Device can be referenced as a property and used to send IR code sequences. This is a simpler alternative to using the Send..IR methods.

For example if you have assigned a Sony XB1 TV to the USB-UIRT device and named it "SonyTV", you can reference it as a property of the USB-UIRT device as follows:

usbuirt.SonyTV

Each IR Device also contains a method for each IR Code Sequence. So for example the "SonyTV" may contain "PowerOn" and "ChannelUp" IR Code sequences. To send IR code sequence for the "SonyTV" "PowerOn", run the following script:

usbuirt.SonyTV.PowerOn();

More Examples:


usbuirt.SonyTV.PowerOn();
usbuirt.SonyTV.ChannelUp();
usbuirt.SonyTV.Menu();

usbuirt.CDPlayer.PowerOn();
usbuirt.CDPlayer.Next();

Instance Methods

SendNativeIR(String, Number)

Sends a UIRT IR code sequence.

It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.

Syntax:

void SendNativeIR(String uirtIRCodeSequence, String repeatCount)

Parameters:

uirtIRCodeSequence: The UIRT IR code sequence to send.

repeatCount: The # of times to repeat the ir code sequence.

Example:

usbuirt.SendNativeIR("...", 1);

SendProntoIR(String, Number)

Sends a Pronto CCF IR code sequence.

It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.

Syntax:

void SendProntoIR(String prontoCcfIRCodeSequence, String repeatCount)

Parameters:

prontoCcfIRCodeSequence: The Pronto CCF IR code sequence to send. This should be in the format XXXX XXXX XXXX...

repeatCount: The # of times to repeat the ir code sequence.

Example:

usbuirt.SendProntoIR("...", 1);

SendProntoIR(Number, String, Number)

Sends a Pronto CCF IR code sequence.

It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.

Syntax:

void SendProntoIR(Number zoneID, String prontoCcfIRCodeSequence, Number repeatCount)

Parameters:

zoneID: The zone to output the IR on. 0=All.

prontoCcfIRCodeSequence: The Pronto CCF IR code sequence to send. This should be in the format XXXX XXXX XXXX...

repeatCount: The # of times to repeat the ir code sequence.

Example:

usbuirt.SendProntoIR(1, "...", 1);