CommandFusion Wiki

Documentation Resources

User Tools

Site Tools



Global Cache

The following is a basic guide to using Global Cache products with iViewer & guiDesigner.

These instructions assume you already have a basic understanding of guiDesigner and iViewer. See our guiDesigner/iViewer Quick Start Guide if you are not familiar with our software yet.

Setting Up Your Global Cache Device

The first thing you will need to do is connect your Global Cache device to your network so iViewer can connect to it to send it commands. To do this you will need to follow your hardware's documentation. This can be found at the Global Cache website

Adding The System in guiDesigner

Next we need to add the Global Cache device as a system in guiDesigner. So add a new system and fill in the relevant properties as required.

  1. System Name - Enter an appropriate system name here
  2. Protocol - This must be set to TCP Client
  3. IP Address/Host Name - Set this as the IP address of your Global Cache hardware
  4. Port - Communication with the hardware is accomplished by opening a TCP socket on Port 4998. All commands and data, with the exception of serial (RS232) data, are communicated through Port 4998. Port 4998 is used for such things as iTach status, IR data, relay operation, and reading digital input states. erial data is communicated via Ports 4999 and above. The serial connection in module 1 will communicate over Port 4999. Serial connections in the next lowest module will communicate over Port 5000, and so on (i.e. 1:4999, 2:5000, 3:5001, etc.). 1)
  5. EOM (End Of Message) - Enter a hex carriage return here. This is for parsing feedback from the device, if this is not entered then it may cause problems with feedback processing.

Adding Commands

How you enter commands into guiDesigner varies depending on the format. We will list some basic information below, please refer to the http://www.globalcache.comGlobal Cache website for more information.

Infrared (IR) Commands

IR commands send to Global Cache hardware must be in a specific format as shown below



<connectoraddress> is as defined in Global Cache documentation
<ID> is |0|1|2|…|65535| (1)
<frequency> is |15000|15001|….|500000| (in hertz)
<repeat> is |1|2|….|50| (2) (the IR command is sent <repeat> times)
<offset> is |1|3|5|….|383| (3) (used if <repeat> is greater than 1, see below)
<on1> is |1|2|…|65635| (4) (number of pulses)
<off1> is |1|2|…|65635| (4) (absence of pulse periods of the carrier frequency)
\x0D is a carriage return which must be appended to all commands sent to Global Cache units from iViewer. An example of an IR Command in Global Cache Format looks like this:


To learn your IR code in Global Cache format, you will need to use their iLearn software (if you have a Global Cache IR Learner). Or use their iConvert software to convert hex (CCF) to Global Cache IR format.

Serial Commands

All serial data is passed through without interpretation or conversion via an assigned, unique IP port. The Global Cache serial connector is assigned an IP Port starting at 4999.

Relay Commands

Relay commands send to Global Cache hardware must be in a specific format as shown below.

Relay state is set as follows:
setstate,1:1,<outputstate>\x0D for the 1st relay output
setstate,1:2,<outputstate>\x0D for the 2nd relay output
setstate,1:3,<outputstate>\x0D for the 3rd relay output


<outputstate> is |0|1| (<0> is open, <1> is closed)

More Commands & Feedback

For more info and commands you should see the Global Cache Website.

Other Information

One of our users Barry Gordon has written up a helpful post on our Google Groups re using Global Cache products and iViewer together.. This post can be viewed here

This topic has been discussed a number of times in the Google Groups.
Click here to do a search on Global Cache in the CommandFusion Google Groups.

software/knowledge-base/brand-knowledge-base/global-cache.txt · Last modified: 2015/01/07 02:51 by jarrod