=Client machine definition file= The definition file is in yaml format:
imodel: T6703 # internal model, 内部型号
model: ITC T6703 # 正式型号
omodel: T6703 # 型号原型
name: IP网络解码终端 # 终端名称信息
description: 桌面式/7寸触屏/ # 产品描述
type: one button # 终端类型
is_enable_force_switch_gpio_event: false # 高电位3线制强切使能端口。 值是: true/false
is_int_amp_detection: false # 智能功放设备检测开启否,值是true/false,开启,则有可以单独配置这台设备的相关系数。
buttons: #终端需要配置的按钮
- text: Call # 按钮上面的显示的text.
events: click # 需要被配置的事件类型. 有: click/long_down 等等. 可以多选,用','隔开.
raw_val: 0x11 # driver下面的raw value值. C处理需要,perhaps.
hex_val: 0xa1 # 标记出来在C里面收到的translated value. 按键换成的acsii类型值. C处理需要.
uuid: 1 # 对应的uuid. 配置保存的时候,只需要对应这个值.
set: true # 表示是否需要配置. 值是true/false. 默认是true.
- #第二个按钮开始.
gpios: # 用于定义我们需要暴露多少gpio值用于gpio输出和输入。 对应在调度里面的job类型下面的gpio输出选项里面。
- pin: 22 # gpio 端口号
dir: in # gpio direction: in/out
init: 1 # gpio init value: 1/0
omap_mux: mcasp0_ahclkx # gpio omap mux name
text: name of this pin # the text to show on the server for user to pick up.
-
fire_alarms: # 定义了火警端口
- pin: 22 # gpio 端口用于火警
caused: 0 # 报警选折: 0-代表高到低触发, 1-代表低到高触发 2-两种触发模式都可以
omap_mux: mcasp0_ahclkx # gpio omap mux name 或者以spi_开始的spi采集设备。
end_pin: 30 # 如果这个端口有值,则代表是一个区间,pin代表起始端口,这个代表结束端口,所有端口值都可以进入配置。
text: name of this pin # 在spi连续的时候,不启用这个系数
interrupts: # 其他方式的gpio interrupt触发机制。
- pin: 23 # gpio 端口。
caused: 0 # 同火警
omap_mux: mcasp0_ahclkx # gpio omap mux name
text: name of this text
v_detect_devs: # 定义了可以被用于声压检测的input device名称,注意,请根据uuid来判断设备。
- name: AUX # 后面我们会给出详细的device name定义。
uuid: 0 # uuid
text: AUX # 用于显示给用户的名称。
==type==
types:
# one button
# two buttons
# multiple buttons
==事件类型==
事件类型指的是C这边可以处理的触发机制,包括:
# click: 单击
# long_down: 长时间按下按钮
==声压检查的设备名称==
下面定义了可以被声压检查的设备名称
#
#: text: 外接话筒/线路
#: uuid: 01
#: name: 外接
#
#: text: 监听话筒
#: uuid: 02
#: name: 监听
#
#: text: AUX
#: uuid: 03
#: name: AUX
#
#: text: 485平衡
#: uuid: 04
#: name: 485
#
#: text: EMC
#: uuid: 05
#: name: EMC