TestManager ..........................4 RedRat Hub ..........................4 RedRat Control ......................... 5 Platform Support ..........................5 RedRat Hub - Sending Commands from Applications ............... 5 Using the RedRat SDK ........................6 RedRat-X Discovery ........................6 Simple Communication Tasks ....................6 IR Signal Output ........................7 6.3.1...
RF module. Whether you are a new RedRat user or need to replace the use of older RedRat devices with a RedRat-X, this guide is intended to help integrate it into your software infrastructure, or to write new software applications from scratch.
TV/STB’s original remote control. The Signal DB Utility is used to do this, storing the IR data in files (XML format) for direct use in other RedRat applications and with the SDK. The IR data can also be exported in other formats for use in different applications or on different platforms.
RedRat devices. Client applications then open a socket to RedRat Hub and send quite simple commands, such as: ip="192.168.1.40" dataset="Sky+" signal="play" output="3" This will send the IR signal play from the SKY+ dataset via output 3 of the RedRat device found at the given IP address (irNetBox or RedRat-X). name="RRX-1" output="4" dataset="SKY+" signal="play"...
USB devices are going to used, then it can be made almost instantaneous by limiting the search: var rrxLis = RRUtil.FindRedRats( LocationInfo.RedRatType.RedRatX_USB ); Assuming that there is at least one element in the list, the actual RedRat-X object for the first element in the list is obtained so: rrx = RedRatX.GetInstance( rrxLis[0] ) object is of type regardless of whether it is connected via USB or via the network.
Thread.Sleep( 750 ); rrx.Disconnect(); 6.3 IR Signal Output The RedRat-X has four IR outputs, which in code are referred to as outputs 1 to 4: Output Number Function Output port 1 on back of case Output port 2 on back of case...
Using the async API is identical to the IR blaster example, except the rear IR ports are selected rather than the front blaster. 6.4 IR Signal Input As with the RedRat3-II device, the RedRat-X has two IR detectors for different purposes as described below. 6.4.1 The Wide-Band Detector This allows the device to sample the raw IR signal, so is used for IR signal capture/learning.
6.4.2 The Narrow-Band Detector This is exactly the same kind of detector as is used in TVs and STBs, tuned to a particular IR signal modulation frequency, but with a long range of 10m or more. The default value of this detector’s frequency is 38KHz as this is the most common remote control carrier frequency, however we can replace it with a detector at another frequency if requested.
// Remove plug handler UsbPlugHandler.Instance.UsbPlugEvent -= usbPlugHandler; While the code is waiting for the user to hit <RETURN>, the RedRat-X can be unplugged and re-plugged a number of times to see the events as they are generated. In a normal application, it is probably more useful for the plug/unplug handler to be setup at the start of...
LoctionInfo IRedRat3 object is slightly different. This is a result of the fact that RedRat-X code has to handle both USB and network communication mechanisms, so a bit of underlying complexity is hidden in the GetInstance() method.
Using the RedRat-X and RedRat3-II should be almost identical, apart from the connect/disconnect steps required when using the RedRat-X. This is also a result of the fact that the RedRat-X could be on the end of a network connection (like the irNetBox) so that a connection could be needed, even though in this case we know it’s a USB device.
Need help?
Do you have a question about the RedRat-X and is the answer not in the manual?
Questions and answers