规范串口通讯

This commit is contained in:
2024-12-19 10:49:02 +08:00
parent 3f760e2955
commit b4913d63b3
5 changed files with 37 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
location: wushan
point: 5
relay: /dev/ttyUSB0
point: 4
relay: /dev/ttyUSB1
maxTimeout: 60 # 单位 s必须大于 0
log:
level: debug
@@ -19,14 +19,14 @@ aliyun:
timeout: 10 # 单位 s
voice: zhifeng_emo
game:
addr: /dev/ttyUSB0 # 点位 5 的串口地址
# pushGroups: # 点位 4 的发卡器配置
# - name: gpiochip0
# outOK: 6
# lower: 13
# error: 19
# empty: 26
# push: 11
# reset: 22
# pull: 27
# readAddr: /dev/ttyUSB0 # 点位 4 的读卡器配置
# addr: /dev/ttyUSB0 # 点位 5 的串口地址
pushGroups: # 点位 4 的发卡器配置
- name: gpiochip0
outOK: 12
lower: 1
error: 7
empty: 8
push: 0
reset: 5
pull: 6
readAddr: /dev/ttyUSB0 # 点位 4 的读卡器配置