![Visionary D4200 Скачать руководство пользователя страница 23](http://html.mh-extra.com/html/visionary/d4200/d4200_user-manual_1032246023.webp)
20
Advanced Configuration
GPIO
2x2 I/O user configurable - There are up to 2 GPIO inputs and up to 2 GPIO outputs for Duet-2. To have access to GPIO you need to
first set GPIO.ENABLED to TRUE. When IR.ENABLED is set to TRUE, you have 1 GPIO input and 1 GPIO output available. When
IR.ENABLED is set to FALSE, you have 2 GPIO inputs and 2 GPIO outputs available.
Send API queries from control system or DSP via UDP to port 8000 of the Duet-2, for the GPIO input and send API commands to the
GPIO output. The GPIO outputs are latching, you will send TRUE or FALSE commands.
GPIO Inputs:
These accept 0-5VDC referenced to the GND pin of the Euroblock connector. They have a 10K Ohm resistor to ground, and then a 1K
Ohm resistor in series to the internal logic. If higher input voltage is needed, we can help specify an external series resistor that can
be added. Reverse voltage should not be applied to any GPIO input, but there are protection diodes to prevent small overloads from
damaging the unit.
GPIO Outputs:
GPIO Output 1 supplies 5VDC through a 470 Ohm resistor. This can be used to directly drive and LED or external logic inputs. When
set to low, it can sink up to 50mA at up to 24VDC. There is protection for over/reversed voltage, but it is best to limit overloads.
GP Output 2 can be used the same as 1, or to drive the IR emitter. When in IR mode, it will supply 5VDC with a series resistance of
approximately 24 Ohms. This is enough to drive many 5VDC IR Emitter LEDs. Please see the API for how to send IR codes.
GPIO
API
E
XAMPLES
Input query commands:
Note: 0 = False, 1 = True
GPIO In1 Query:
CMD=START&UNIT.ID=ALL&QUERY.KEY=UNIT.GPIO_IN1&CMD=END
Example Response
: &UNIT.GPIO_IN1=0&API.STATUS=SUCCESS_QUERY_X\n
Output commands:
Note: 0 = False, 1 = True
GPIO OUT1 - True:
CMD=START&UNIT.ID=ALL&UNIT.GPIO_OUT1=TRUE&CMD=END
Example Response:
&UNIT.GPIO_OUT1=TRUE&API.STATUS=SUCCESS\n
Example Query:
&UNIT.GPIO_OUT1=1&API.STATUS=SUCCESS_QUERY_X\n
GPIO OUT1 - False:
CMD=START&UNIT.ID=ALL&UNIT.GPIO_OUT1=FALSE&CMD=END
Example Response:
&UNIT.GPIO_OUT1=FALSE&API.STATUS=SUCCESS\n
Example Query:
&UNIT.GPIO_OUT1=0&API.STATUS=SUCCESS_QUERY_X\n
IR
OVER
IP
GPIO Output 2 may be used to drive and IR Emitter LED (5VDC type). Arbitrary codes can be sent using PRONTO format to the Duet-2.
To enable the IR over IP feature, IR.ENABLED must be set to TRUE.
IR
API
E
XAMPLES
Send IR Command: (Samsung Mute Example)
UNIT.IR_SEND=
38000,1,1,172,172,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,
21,22,64,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,64,22,1820
Example:
CMD=START&UNIT.ID=ALL&UNIT.IR_SEND
=
38000,1,1,172,172,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,2
2,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,21,22,64,22,64,22,64,22,64,22,
1820&CMD=END
Содержание D4200
Страница 8: ...5 Network AV Infrastructure Prerequisites Figure 1 Converged Network Diagram ...
Страница 55: ...52 Troubleshooting USB INFO Displays the current USB KVM IP connections ...
Страница 56: ...53 Troubleshooting FLASH LEDS Flashed the front LEDs of the unit ...
Страница 57: ...54 Troubleshooting TEMPERATURE Displays the current unit temperature in both Celsius and Fahrenheit ...