CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


hardware:quick-start:ir-blaster-ir-rules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

hardware:quick-start:ir-blaster-ir-rules [2013/09/16 06:04]
aaron
hardware:quick-start:ir-blaster-ir-rules [2013/09/20 02:57] (current)
aaron
Line 1: Line 1:
 ====== IR Blaster - IR Rules Guide/​Tutorial ====== ====== IR Blaster - IR Rules Guide/​Tutorial ======
- 
-<WRAP left round todo 40%> 
-Under Construction - This Page is Not Completed 
-</​WRAP>​ 
- 
  
 ===== IR Blaster Overview ===== ===== IR Blaster Overview =====
-The CommandFusion IR Blaster designed to literally blast out IR in many directions at once to flood a room with IR. +The CommandFusion ​[[hardware:​ir-blaster|IR Blaster]] designed to literally blast out IR in many directions at once to flood a room with IR. 
  
 This can be used to control a number of devices at once, without needing to run an individual wired emitter to each unit. This can be used to control a number of devices at once, without needing to run an individual wired emitter to each unit.
Line 14: Line 9:
 It also has an IR receiver on board, as well as a 3.5mm IR receiver input. ​ It also has an IR receiver on board, as well as a 3.5mm IR receiver input. ​
  
-{{:​hardware:​quick-start:​ir_flood.png|}}+{{:​hardware:​quick-start:​ir_flood.png?nolink|}}
  
 ===== IR Rules ===== ===== IR Rules =====
Line 23: Line 18:
  
 ===== Our Example/​Guide ===== ===== Our Example/​Guide =====
 +You can see a video version of this guide below, or continue reading through the text guide.\\
 +{{url>​http://​www.youtube.com/​embed/​InCBEXhhdnE 560px,315px noscroll noborder alignment|IR Rules Video Guide}}
 +
 In this guide we will use the following example:\\ In this guide we will use the following example:\\
 We have a Samsung Television and a Soniq Bluray player. Now our user doesnt like having to switch between two different remote controls to watch a Bluray. At the moment, the user has to: We have a Samsung Television and a Soniq Bluray player. Now our user doesnt like having to switch between two different remote controls to watch a Bluray. At the moment, the user has to:
Line 33: Line 31:
 As you can see, when you write down the required actions - it can be quite daunting, especially for people that arent comfortable with modern technology. As you can see, when you write down the required actions - it can be quite daunting, especially for people that arent comfortable with modern technology.
  
-Our Samsung remote has some buttons on it which are designed to control a Samsung Bluray/DVD player. So in this guide, we are going to program these buttons to control our Soniq remote control.+Our Samsung remote has some buttons on it which are designed to control a Samsung Bluray/DVD player. So in this guide, we are going to program these buttons to control our Soniq Bluray player.
  
 {{:​hardware:​quick-start:​samsung-remote.png|}} {{:​hardware:​quick-start:​samsung-remote.png|}}
Line 76: Line 74:
 For now, we will assume you know the basics. For now, we will assume you know the basics.
  
 +=== Upload IR Files ===
 The first thing we need to do here, is upload the IR files to our IR Blaster. ​ The first thing we need to do here, is upload the IR files to our IR Blaster. ​
-So navigate to the IR Files Tab of your IR Blaster, and upload both IR files you just created. Do this by clicking ​add file, and navigating to where you saved the file.+So navigate to the IR Files Tab (1 in image below) ​of your IR Blaster, and upload both IR files you just created. Do this by clicking ​''​Add File''​ (2 in image below), and navigating to where you saved the file. Click the ''​Save to Device''​ (3 in image below) button to upload ​the file. 
  
-**PIC of uploading IR file**+When the file has been added, you can see that you can expand and see what commands each file has in it (4 in image below). Uploading these files is not totally necessary, but it does make things simpler for us later on.
  
-When the file has been added, you can see that you can expand and see what commands each file has in itMake sure you click the Save To Device Button. Uploading these files is not totally necessary, but it does make things simpler for us later on. +{{:​hardware:​quick-start:​upload_ir_file.png?​nolink|}}
- +
-**Pic of IR file uploaded with commands expanded**+
  
 +=== Create Macros ===
 Then we need to go to the IR rules tab. We will create a macro for each Soniq command that we want to send out. So there will be separate macros for all the commands we learnt. ​ Then we need to go to the IR rules tab. We will create a macro for each Soniq command that we want to send out. So there will be separate macros for all the commands we learnt. ​
  
 Then we will be creating an IR rule, so that when it receives a certain IR code from the Samsung remote, the IR Blaster will activate the appropriate macro - thus controlling the Soniq bluray player from our Samsung remote. The image below shows the basics of how IR Rules works. Then we will be creating an IR rule, so that when it receives a certain IR code from the Samsung remote, the IR Blaster will activate the appropriate macro - thus controlling the Soniq bluray player from our Samsung remote. The image below shows the basics of how IR Rules works.
  
-**Flowchart pic of IR rules process**+{{:​hardware:​quick-start:​ir_rules_flow.png?​nolink&​900|}} 
 + 
 +So first we create our macros. This is the macro that the IR blaster will activate to send the Soniq code when it receives the corresponding IR Command from the Samsung remote Do this by going to the IR Rules tab, then clicking ''​Add Macro''​ (1 in image below). Enter and appropriate Macro name (2 in image below) and click OK. 
 + 
 +{{:​hardware:​quick-start:​add_macro.png?​nolink|}} 
 + 
 +The Add Action window will then be automatically opened for you. we then use the Action Builder to create our commands. Click ''​Action Builder''​ 
 + 
 +From the Action type dropdown, we choose IR (1 in image below). Select your IR Blaster as the Target Device (2 in image below), because we have selected IR, it will show only devices that have an IR capability.  
 + 
 +Select Port 1 (3 in image below), which is our onboard IR blaster output. Under format, select MEM (4 in image below), which is the onboard memory ​of the unit where we saved our IR files earlier. Then click build (5 in image below). 
 + 
 +{{:​hardware:​quick-start:​action_builder.png?​nolink|}} 
 + 
 +Next, the IR Data Builder window comes up. This is where we select the IR file we uploaded to the IR Blaster, and the command we want the macro to send out. 
 + 
 +Under your device ID, we will select the Soniq remote file (1 in the image below). Remember, we are programming the code which the device will blast out.  
 + 
 +Then select the function that you want to send, we will select power first (2 in the image below).  
 + 
 +{{:​hardware:​quick-start:​ir_data_builder.png?​nolink|}} 
 + 
 +Click OK, then OK again.  
 + 
 +So the action builder has built the command for us (in image below), Basically, this command just says “Send this code from IR Blaster with CFLink ID of 21”. If you want, you can click the test command button, which will tell your IR Blaster to send out that command right now for testing purposes. Click OK. 
 + 
 +{{:​hardware:​quick-start:​action_builder_with_command.png?​nolink|}} 
 + 
 +We then need to create a macro for each code we want to send - so do this for the rest of the commands you learnt. 
 + 
 +=== Add IR Rules === 
 +Once we have added all the macros, we then need to add the IR Receiver Rules. So we click Add Rule (1 in image below). 
 + 
 +Add an IR Rule name (2 in image below), we are going to use the red button on the Samsung Remote - we will call it Samsung Red. 
 + 
 +{{:​hardware:​quick-start:​add_ir_rule_1.png?​nolink|}}
  
-So first we create our macros. Do this by clicking add macroEnter and appropriate Macro name and click OK.+We then need to go back to the IR Learner software, and right click on our red button code that we learnt from our Samsung Remote.  
 +Select Copy STR Code. The STR code is CommandFusion'​s proprietary IR format
  
-**Pic of adding macro**+{{:​hardware:​quick-start:​right_click_str.png?​nolink|}}
  
-Then add an action ​to the new macro by clicking ​the Add Action ​button.+Now go back to System Commander and paste this code into the ''​When Ir Code''​ box (1 in image below). Make sure that ''​On Board Receiver''​ is checked (2 in image below), and select ​the ''​Perform ​Action''​ to be Trigger Macro (3 in image below).
  
-Next we use the Action Builder to create our commands+Then from the dropdown ''​Macro Name''​ (4 in image below), select the power macro we just created.
  
-**Pic of action builder**+So what we have just done is created a rule, that when the red buttoncode is received from our Samsung Remote via the onboard receiver, we want the IR Blaster to send out the Power code for the Soniq Bluray.
  
-From the Action type dropdown, we choose IR. Select your IR Blaster as the Target Device. Select Port 1, which is our onboard IR blaster output. Under format, select MEM, which is the onboard memory of the unit where we saved our IR files earlier. Then click build.+{{:​hardware:​quick-start:​ir_rules_flow.png?​nolink&​900|}}
  
 +Click ''​OK'',​ you will then need to go through and do the same for each command you want to set up a rule for. Once you have done that, click ''​Save To Device''​. This will upload the rules and macros to the IR Blaster.
  
 +==== Step 3 - Test It! ====
 +You can now test if it works! Point the Samsung remote at the device, hit the power button we programmed, and there you go - the Soniq Bluray player turns on and we can control it from our Samsung remote.
  
 +So that's it, its fairly easy to program one remote to control many devices. There are many different uses that this functionality could be used for such as creating macros where lights are turned off, blinds are closed and the TV source is set, all from a single remote button press.
hardware/quick-start/ir-blaster-ir-rules.1379311478.txt.gz · Last modified: 2013/09/16 06:04 by aaron