-
Notifications
You must be signed in to change notification settings - Fork 5
/
interfaces_referense.json
220 lines (220 loc) · 5.91 KB
/
interfaces_referense.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
"chains": [
{
"_comment_short_names": [
"Advanced, optional",
"To generate long, names as in frame.signal"
],
"short_names": false,
"_comment_time_stamps": [
"Advanced, optional",
"Use timestamps provided by transceiver, currently only supported for type",
"Flexray"
],
"time_stamp": "hardware"
},
{
"_comment": [
"Vanilla can interface"
],
"type": "can",
"namespace": "PhysicalCanInterface",
"device_name": "can0",
"dbc_file|database": "can_files/can_one.dbc"
},
{
"_comment": [
"Extended can interface",
"Use 29-bit CAN identifiers"
],
"type": "can",
"namespace": "PhysicalCanInterface",
"device_name": "can0",
"extended": true,
"dbc_file|database": "can_files/can_one.dbc"
},
{
"_comment": [
"Vanilla CAN-FD interface"
],
"type": "canfd",
"namespace": "PhysicalCanFDInterface",
"device_name": "can1",
"dbc_file|database": "can_files/canfd_one.dbc"
},
{
"_comment": [
"Vanilla VCAN interface supported by Linux"
],
"type": "virtual",
"namespace": "VCanInterface",
"device_name": "vcan1",
"dbc_file|database": "can_files/can_one.dbc"
},
{
"_comment": [
"Vanilla CAN-FD interface",
"Useful for communicating between apps, use unique client_id in each client to prevent signal bouncing",
"as in getting echo of owned signal"
],
"device_name": "virtual",
"namespace": "VirtualInterface",
"type": "virtual"
},
{
"_comment": [
"can interface without recover",
"to prevent CAN interface from restarting after ERROR_PASSIVE mode"
],
"type": "can",
"namespace": "PhysicalCanInterface",
"device_name": "can0",
"auto_recover": false,
"dbc_file|database": "can_files/can_one.dbc"
},
{
"_comment": [
"UDP interface can be paired with a .ldf, .fibex for .dbc file"
],
"namespace": "UDPCanInterface",
"type": "udp",
"dbc_file|database": "can_files/can_three.dbc",
"device_name": "udp2",
"server_port": 2001,
"target_host": "127.0.0.1",
"target_port": 2000
},
{
"_comment": [
"LIN node configured with DHCP IP"
],
"namespace": "LinSlave",
"type": "lin",
"config": {
"device_identifier": 1,
"server_port": 2014,
"target_port": 2013
},
"node_mode": "slave",
"ldf_file|database": "ldf_files/lin_one.ldf",
"schedule_autostart": false
},
{
"_comment": [
"LIN node configured with STATIC IP"
],
"__comment_node_id": [
"Advanced, optional",
"Node_id needs to exist in Node_attributes list, used to specify NAD for LIN node"
],
"namespace": "LinSlave",
"type": "lin",
"config": {
"device_identifier": 1,
"target_host": "192.168.1.20",
"server_port": 2014,
"target_port": 2013
},
"node_mode": "slave",
"node_id": "node_id",
"ldf_file|database": "ldf_files/lin_one.ldf",
"schedule_autostart": false
},
{
"namespace": "LinMaster",
"type": "lin",
"config": {
"device_identifier": 2,
"server_port": 2015,
"target_port": 2016
},
"node_mode": "master",
"ldf_file|database": "ldf_files/lin_one.ldf",
"schedule_file": "ldf_files/lin_one.ldf",
"schedule_table_name": "linoneSchedule",
"schedule_autostart": true
},
{
"_comment": [
"Defaults to MX30 Flexray device."
],
"type": "flexray",
"device_name": "flexray0",
"namespace": "FlexrayBackbone",
"config": {
"target_host": "127.0.0.1",
"target_port": 51111
},
"fibex_file|database": "fibex_files/flexray.xml"
},
{
"_comment": [
"Technica CM CAN COMBO support, target_host refers to node running this Teknika binary:",
"https://github.com/beamylabs/beamylabs-start/tree/master/scripts/technica",
"target_config (for teknika binary): interface to listen on, multicast frames to catch"
],
"type": "flexray",
"device_name": "flexray0",
"namespace": "MyFlexrayNamespace",
"config": {
"target_host": "127.0.0.1",
"target_port": 51111,
"hardware": "Technica_CM_CAN_COMBO",
"target_config": {
"interface": "eth0",
"multicast": "01:00:5e:00:00:00"
}
},
"fibex_file|database": "fibex_files/flexray.xml"
}
],
"gateway": {
"_comment": [
"Used for Telnet interface, optional section, defaults as shown below"
],
"tcp_socket_port": 4040
},
"auto_config_boot_server": {
"_comment": [
"Configuration ports for LIN transceivers, optional section, defaults as shown below"
],
"target_port": 4000,
"server_port": 4001
},
"grpc_server": {
"_comment": [
"gPRC port used, optional section, defaults as shown below"
],
"port": 50051
},
"reflectors": [
{
"_comment": [
"Optional section. Default off"
],
"reflect": [
{
"_comment": [
"Send all data from source namespace to dest, exclude specific frames",
"Both networks need to be of type can|canfd|udp"
],
"source": "PhysicalCanInterface",
"dest": "VCanInterface",
"exclude": []
},
{
"_comment": [
"Send all data from source namespace to dest, exclude specific frames.",
"Both networks need to be of type can|canfd|udp"
],
"source": "VCanInterface",
"dest": "PhysicalCanInterface",
"exclude": [
"FrameA",
"FrameB"
]
}
]
}
]
}