awei (awei)-威尼斯人最新

awei (awei)-威尼斯人最新 https://www.iotschool.com/awei en-us thingsboard 使用记录文档分享

使用过程中的各种记录分享

awei fri, 05 mar 2021 16:37:56 0800 https://www.iotschool.com/topics/1153 https://www.iotschool.com/topics/1153
tb-gateway modbus 连接器无法写入线圈 coil

使用规则节点发送数据无论发什么格式 (不知道什么格式正确) modbus slave 收到的都是 ff 发送的格式

{method:"setvalue",params:[0]}

modbus.json 内容如下

{"server":{"name":"modbus test server","type":"tcp","host":"10.211.55.3","port":502,"timeout":35,"method":"socket","devices":[{"unitid":1,"devicename":"th_sensor","attributespollperiod":5000,"timeseriespollperiod":5000,"senddataonlyonchange":false,"attributes":[{"byteorder":"big","tag":"batterylevel","type":"long","functioncode":4,"registercount":1,"address":2},{"byteorder":"big","tag":"switchstatus","type":"bits","functioncode":1,"registercount":1,"address":3}],"timeseries":[{"byteorder":"big","tag":"humidity","type":"long","functioncode":4,"registercount":1,"address":1},{"byteorder":"big","tag":"temperature","type":"long","functioncode":3,"registercount":1,"address":0}],"rpc":[{"tag":"resettemperature","type":"16int","functioncode":6,"objectscount":1,"address":0},{"tag":"setvalue","type":"bits","functioncode":5,"objectscount":1,"address":3}]}]}}
awei tue, 02 mar 2021 17:42:02 0800 https://www.iotschool.com/topics/1150 https://www.iotschool.com/topics/1150
网站地图