commandir_send -nOtherComputerName -e1 tv_power
or
commandir_send -n192.168.0.16 -e1 tv_power
The full suite of CommandIR Utilities works in daemon/network mode, including:
commandir_record -n -v
commandir_timing -n
commandir_send -n
Using Multiple CommandIRs
All CommandIR utilities support referencing up to 255 CommandIR devices. CommandIRs can be referred to in two ways - by emitter number (up to 2048 emitters), or by CommandIR name.
The daemon commandird supports hot plug and unplug of CommandIR devices.
Using Multiple CommandIRs - by Emitter Number
Emitters on your first CommandIR are #1-4, emitters on your second CommandIR become #5-8, and so on. So, to transmit a signal on the first emitter of two different CommandIRs:
commandir_send -b11 set_top_box_power
To transmit a signal on emitters #1, 2, 7 and 8 (0b1100 0011 = 0xC3):
commandir_send -bC3 set_top_box_power
To transmit a signal on just emitter #6 (CommandIR 2, emitter #2):
commandir_send -e6 set_top_box_power
To transmit a signal on all 16 emitters across 4 CommandIRs over the network using commandird running on 192.168.0.15:
commandir_send -bffff -n192.168.0.15 set_top_box_power
Using Multiple CommandIRs - by Emitter Number - Persistent Order
The order of CommandIRs (and thus the emitter number map) might change if CommandIRs are removed and readded, or after a reboot. A persistent order can be set, using the commandir_set command. This will ensure emitter #5 is always on the same CommandIR.
To save the current order:
commandir_set -p
The CommandIRs will then retain the same order.
Using Multiple CommandIRs - by CommandIR name
Each CommandIR can be assigned a 'friendly' text name to be used with commandir_send and commandir_record operations. Names are first assigned by USB id, then CommandIRs can be renamed.
To view CommandIR properties:
support@commandir:~$ commandir_set -l
Initiating with 1 CommandIR.
CommandIR #1 (On USB 6:2):
pdata Version: 3
CommandIR Order: 3
CommandIR Name:
CommandIR Group:
CommandIR Mode: Mini
Then a name can be set:
support@commandir:~$ commandir_set -n Rocky 6 2
Searching for CommandIR at 6:2
hardware_scan_for(6, 2)
Set CommandIR name (in struct) to Rocky
support@commandir:~$ commandir_set -l
Initiating with 1 CommandIR.
CommandIR #1 (On USB 6:2):
pdata Version: 3
CommandIR Order: 3
CommandIR Name: Rocky
CommandIR Group:
CommandIR Mode: Mini
Then this particular CommandIR can be referred to in multi-CommandIR systems as 'Rocky':
support@commandir:~$ commandir_send -sRocky -e1 -r 0000 0074 0017 0000 0020 0021 0020 0020 0020 0021 0020 0020 0020 0021 0020 0020 0020 0021 0020 0020 0040 0020 0020 0041 003F 0041 0020
Initiating with 1 CommandIR.
Transmitting command line args at 35.7kHz
Encoded 23 signals.