继电器、读卡器,都用统一的modbus协议

This commit is contained in:
2024-12-12 10:30:21 +08:00
parent 25cb34f6f5
commit df9dbb0926
15 changed files with 142 additions and 127 deletions

View File

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