phase 2 tcp
This commit is contained in:
47
config/edge/samples/minimal.eds
Normal file
47
config/edge/samples/minimal.eds
Normal file
@@ -0,0 +1,47 @@
|
||||
[DeviceInfo]
|
||||
VendorName=Softbus
|
||||
ProductName=DemoCANopenNode
|
||||
|
||||
[1000]
|
||||
ParameterName=Device type
|
||||
DataType=0x0007
|
||||
AccessType=ro
|
||||
DefaultValue=0x00000191
|
||||
|
||||
[1001]
|
||||
ParameterName=Error register
|
||||
DataType=0x0005
|
||||
AccessType=ro
|
||||
DefaultValue=0x00
|
||||
|
||||
[1800]
|
||||
ParameterName=TPDO communication parameter
|
||||
ObjectType=0x09
|
||||
|
||||
[1800sub1]
|
||||
ParameterName=COB-ID used by TPDO
|
||||
DataType=0x0007
|
||||
AccessType=rw
|
||||
DefaultValue=0x00000180
|
||||
|
||||
[1800sub2]
|
||||
ParameterName=Transmission type
|
||||
DataType=0x0005
|
||||
AccessType=rw
|
||||
DefaultValue=0xFF
|
||||
|
||||
[1A00]
|
||||
ParameterName=TPDO mapping parameter
|
||||
ObjectType=0x09
|
||||
|
||||
[1A00sub1]
|
||||
ParameterName=1st mapped object
|
||||
DataType=0x0007
|
||||
AccessType=rw
|
||||
DefaultValue=0x64000110
|
||||
|
||||
[6400]
|
||||
ParameterName=Temperature
|
||||
DataType=0x0006
|
||||
AccessType=ro
|
||||
DefaultValue=0x00
|
||||
12
config/edge/samples/physical_channels_can.json
Normal file
12
config/edge/samples/physical_channels_can.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"channels": [
|
||||
{
|
||||
"channelId": "can_0",
|
||||
"protocol": "canopen",
|
||||
"transport": "can",
|
||||
"interface": "can0",
|
||||
"bitrate": 500000,
|
||||
"pollIntervalMs": 200
|
||||
}
|
||||
]
|
||||
}
|
||||
36
config/edge/samples/physical_devices_can.json
Normal file
36
config/edge/samples/physical_devices_can.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"devices": [
|
||||
{
|
||||
"physicalDeviceId": "phy_canopen_node_1",
|
||||
"channelId": "can_0",
|
||||
"protocol": "canopen",
|
||||
"nodeId": 1,
|
||||
"edsPath": "samples/minimal.eds",
|
||||
"points": [
|
||||
{
|
||||
"physicalPointId": "phy_can_s1_temp",
|
||||
"objectIndex": 25600,
|
||||
"subIndex": 1,
|
||||
"pdoType": "tpdo",
|
||||
"cobId": 385,
|
||||
"scale": 0.1,
|
||||
"signalType": "AI",
|
||||
"writable": false,
|
||||
"reportOnChange": true,
|
||||
"deadband": 0.5,
|
||||
"pollIntervalMs": 500
|
||||
},
|
||||
{
|
||||
"physicalPointId": "phy_can_s1_setpoint",
|
||||
"objectIndex": 25601,
|
||||
"subIndex": 1,
|
||||
"pdoType": "sdo",
|
||||
"scale": 1.0,
|
||||
"signalType": "AO",
|
||||
"writable": true,
|
||||
"pollIntervalMs": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user