phase 2 serial
This commit is contained in:
17
config/edge/bindings_local.json
Normal file
17
config/edge/bindings_local.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"edgeId": "edge01",
|
||||
"bindings": [
|
||||
{
|
||||
"bindingId": "bind_temp_01",
|
||||
"physicalPointId": "edge01/phy_modbus_s1_r40001",
|
||||
"logicalPointId": "EdgeDevice_01/MotorTemperature",
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"bindingId": "bind_valve_01",
|
||||
"physicalPointId": "edge01/phy_modbus_s1_r40002",
|
||||
"logicalPointId": "EdgeDevice_01/ValveOpening",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
13
config/edge/edge.json
Normal file
13
config/edge/edge.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"edge": {
|
||||
"edgeId": "edge01",
|
||||
"deviceId": "EdgeDevice_01",
|
||||
"daemonHost": "127.0.0.1",
|
||||
"daemonPort": 9000,
|
||||
"heartbeatPeriodMs": 1000,
|
||||
"uplinkReconnectPeriodMs": 5000,
|
||||
"physicalChannels": "physical_channels.json",
|
||||
"physicalDevices": "physical_devices.json",
|
||||
"bindingsLocal": "bindings_local.json"
|
||||
}
|
||||
}
|
||||
15
config/edge/physical_channels.json
Normal file
15
config/edge/physical_channels.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"channels": [
|
||||
{
|
||||
"channelId": "serial_0",
|
||||
"protocol": "modbus",
|
||||
"transport": "rtu",
|
||||
"port": "/dev/ttyS3",
|
||||
"baudRate": 9600,
|
||||
"parity": "N",
|
||||
"dataBits": 8,
|
||||
"stopBits": 1,
|
||||
"pollIntervalMs": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
29
config/edge/physical_devices.json
Normal file
29
config/edge/physical_devices.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"devices": [
|
||||
{
|
||||
"physicalDeviceId": "phy_modbus_slave_1",
|
||||
"channelId": "serial_0",
|
||||
"protocol": "modbus",
|
||||
"slaveId": 1,
|
||||
"points": [
|
||||
{
|
||||
"physicalPointId": "phy_modbus_s1_r40001",
|
||||
"register": 40001,
|
||||
"function": 3,
|
||||
"scale": 0.1,
|
||||
"signalType": "AI",
|
||||
"writable": false
|
||||
},
|
||||
{
|
||||
"physicalPointId": "phy_modbus_s1_r40002",
|
||||
"register": 40002,
|
||||
"function": 3,
|
||||
"writeFunction": 6,
|
||||
"scale": 1.0,
|
||||
"signalType": "AO",
|
||||
"writable": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user