iRule Device Upload

This tutorial covers how to upload a single file that contains the commands for a single device. This tutorial refers to an example file that can be downloaded from the download page. The iRule file format is an XML file that can be edited from any text editor.

  1. Open text editor.
  2. Download example file.
  3. Open example file.
  4. Edit header information.
  5. Edit Device codes.

Step One: Open Text Editor

{rokbox thumb=|http://video.iruleathome.com/docs/deviceupload/thumb1.png| title=|Step One :: Image Title| album=|tutorial|}http://video.iruleathome.com/docs/deviceupload/picture1.png{/rokbox}

You can edit the file using any text editor. If you are on a PC we suggest using the Microsoft XML Notepad 2007 editor. You can download the XML editor from here.

 

Step Two: Download Example file

{rokbox thumb=|http://video.iruleathome.com/docs/deviceupload/thumb2.png| title=|Step Two :: Image Title| album=|tutorial|}http://video.iruleathome.com/docs/deviceupload/picture2.png{/rokbox}

Download the example iRule Device XML file from downloads page. Open the iRule Device example file in a text or XML editor. 

 

Step Three: Open File

{rokbox thumb=|http://video.iruleathome.com/docs/deviceupload/thumb3.png| title=|Step Three :: Image Title| album=|tutorial|}http://video.iruleathome.com/docs/deviceupload/picture3.png{/rokbox}

Open example Device XML file.

 

Step Four: Edit Header

{rokbox thumb=|http://video.iruleathome.com/docs/deviceupload/thumb4.png| title=|Step Four :: Image Title| album=|tutorial|}http://video.iruleathome.com/docs/deviceupload/picture4.png{/rokbox}
A properly formatted XML file will have two components: header information identifying the device and the codes associated with that device.

The header information defines the Device characteristics and must be edited to describe the Device.

  • id - under the Device you do not edit the id number. If you change the number to anything other than zero (the default number in the example file) your upload may fail.
  • name - Please edit the name of the device to identify what it controls.
  • type - By default the device type is Unknown Type. You can edit this from the Device list in the iRule Builder after you upload the Device.
  • fixed - Do not edit this field, leave it as false.
  • vendor - Edit this field to identify the vendor of the Device.
  • model - Edit this field to identify the specific model or family of models that this Device controls.

 

Step Five: Edit Codes

{rokbox thumb=|http://video.iruleathome.com/docs/deviceupload/thumb5.png| title=|Step Five :: Image Title| album=|tutorial|}http://video.iruleathome.com/docs/deviceupload/picture5.png{/rokbox}

Each Device can contain four types of codes: Gloabl Cache, Hex, Network and Database Codes. Each code type has specific formatting and should be used depending on the requirements of the Device to be controlled. You will need to edit the codes and enter the name of the command and the actual command.

  • Global Cache Codes - These are IR codes that are formatted for the Global Cache lineup of Gateways. Please note that the command begins from the frequency. An example code looks like: 34500,1,1,34,48,24,12,24,960,24,12,24,960,24,12,24,960,24,12,24,960
  • Hex Codes - These are IR codes in the Pronto learned code format. An example codes looks like: 0000 0073 0000 0014 0060 0020 0010 0020 0010 0010 0010 0010 0010 0020 0030 0010 0010 0020 0020 0010 0010 0010 0010 0020 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 09B7
  • Network Codes - These are codes that are simply passed to a Gateway. These codes can be used to control both Ethernet IP devices as well as serial devices. These codes can be in either ASCII or hexadecimal format. Hexadecimal commands are notated by \x followed by two characters. As an example the hexadecimal command for Carriage return is \x0D
  • Database Codes - These are IR codes used by iRule and are not open to end users.


Get iRule

You'll need a Builder account to try or to use iRule. Once you have a Builder account, download the app to your iOS or Android device.

badge-app store white 180x60

badge-play

badge-amazon

Follow Us

icon-facebookicon-twittericon-youtube

 

Professional
Affiliations

icon-facebook