├── USBCAN.pro
├── USBCAN.pro.user
├── USBCAN.pro.user.21f402b.21
├── build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug
├── .qmake.stash
├── Makefile
├── Makefile.Debug
├── Makefile.Release
├── debug
│ ├── USBCAN.exe
│ ├── kerneldlls
│ │ ├── CANDTU_NET.dll
│ │ ├── CANDTU_NET_400.dll
│ │ ├── CANDevCore.dll
│ │ ├── CANDevice.dll
│ │ ├── CANETE.dll
│ │ ├── CANET_TCP.dll
│ │ ├── CANFDCOM.dll
│ │ ├── CANWIFI_TCP.dll
│ │ ├── CANWIFI_UDP.dll
│ │ ├── USBCAN.xml
│ │ ├── USBCANFD.dll
│ │ ├── VCI_USBCAN2.xml
│ │ ├── VirtualUSBCAN.dll
│ │ ├── ZlgCloud.dll
│ │ ├── device_locale_strings.xml
│ │ ├── devices_property
│ │ │ ├── can.xml
│ │ │ ├── candtu-100ur.xml
│ │ │ ├── candtu-200ur.xml
│ │ │ ├── candtu-net-400.xml
│ │ │ ├── candtu-net.xml
│ │ │ ├── candtu.ini
│ │ │ ├── canet-tcp.xml
│ │ │ ├── canet-udp.xml
│ │ │ ├── canfdcom-100ie.xml
│ │ │ ├── canscope.xml
│ │ │ ├── device_locale_strings.xml
│ │ │ ├── pci-5010-u.xml
│ │ │ ├── pci-5020-u.xml
│ │ │ ├── pcie-canfd-100u.xml
│ │ │ ├── pcie-canfd-200u.xml
│ │ │ ├── pcie-canfd-400u.xml
│ │ │ ├── usbcan-4e-u.xml
│ │ │ ├── usbcan-8e-u.xml
│ │ │ ├── usbcan1.xml
│ │ │ ├── usbcan2.xml
│ │ │ ├── usbcan4.xml
│ │ │ ├── usbcanfd-100u.xml
│ │ │ ├── usbcanfd-200u.xml
│ │ │ └── virtual.xml
│ │ ├── dll_cfg.ini
│ │ ├── gisadll.dll
│ │ └── gpcidll.dll
│ ├── main.o
│ ├── mainwindow.o
│ ├── moc_mainwindow.cpp
│ ├── moc_mainwindow.o
│ └── zlgcan.dll
└── ui_mainwindow.h
├── main.cpp
├── mainwindow.cpp
├── mainwindow.h
├── mainwindow.ui
└── zlgcan_x86
├── canframe.h
├── config.h
├── typedef.h
├── zlgcan.h
└── zlgcan.lib
/USBCAN.pro:
--------------------------------------------------------------------------------
1 | #-------------------------------------------------
2 | #
3 | # Project created by QtCreator 2020-07-28T09:10:16
4 | #
5 | #-------------------------------------------------
6 |
7 | QT += core gui
8 |
9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
10 |
11 | TARGET = USBCAN
12 | TEMPLATE = app
13 |
14 | # The following define makes your compiler emit warnings if you use
15 | # any feature of Qt which has been marked as deprecated (the exact warnings
16 | # depend on your compiler). Please consult the documentation of the
17 | # deprecated API in order to know how to port your code away from it.
18 | DEFINES += QT_DEPRECATED_WARNINGS
19 |
20 | # You can also make your code fail to compile if you use deprecated APIs.
21 | # In order to do so, uncomment the following line.
22 | # You can also select to disable deprecated APIs only up to a certain version of Qt.
23 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
24 |
25 | CONFIG += c++11
26 |
27 | SOURCES += \
28 | main.cpp \
29 | mainwindow.cpp
30 |
31 | HEADERS += \
32 | mainwindow.h \
33 | zlgcan_x86/zlgcan.h \
34 | zlgcan_x86/config.h
35 |
36 | FORMS += \
37 | mainwindow.ui
38 |
39 | # Default rules for deployment.
40 | qnx: target.path = /tmp/$${TARGET}/bin
41 | else: unix:!android: target.path = /opt/$${TARGET}/bin
42 | !isEmpty(target.path): INSTALLS += target
43 |
44 | LIBS += -L$$PWD/zlgcan_x86/ -lzlgcan
45 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/.qmake.stash:
--------------------------------------------------------------------------------
1 | QMAKE_DEFAULT_INCDIRS = \
2 | C:/Qt/Qt5.7.1/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include \
3 | C:/Qt/Qt5.7.1/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0/include-fixed \
4 | C:/Qt/Qt5.7.1/Tools/mingw530_32/i686-w64-mingw32/include \
5 | C:/Qt/Qt5.7.1/Tools/mingw530_32/i686-w64-mingw32/include/c++ \
6 | C:/Qt/Qt5.7.1/Tools/mingw530_32/i686-w64-mingw32/include/c++/i686-w64-mingw32 \
7 | C:/Qt/Qt5.7.1/Tools/mingw530_32/i686-w64-mingw32/include/c++/backward
8 | QMAKE_DEFAULT_LIBDIRS = \
9 | C:/Qt/Qt5.7.1/Tools/mingw530_32/lib/gcc/i686-w64-mingw32/5.3.0 \
10 | C:/Qt/Qt5.7.1/Tools/mingw530_32/lib/gcc \
11 | C:/Qt/Qt5.7.1/Tools/mingw530_32/i686-w64-mingw32/lib \
12 | C:/Qt/Qt5.7.1/Tools/mingw530_32/lib
13 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/USBCAN.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/USBCAN.exe
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDTU_NET.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDTU_NET.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDTU_NET_400.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDTU_NET_400.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDevCore.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDevCore.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDevice.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANDevice.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANETE.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANETE.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANET_TCP.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANET_TCP.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANFDCOM.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANFDCOM.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANWIFI_TCP.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANWIFI_TCP.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANWIFI_UDP.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/CANWIFI_UDP.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/USBCAN.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 99
5 |
6 | options.int32
7 | device type
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | VCI_PCI5121.xml
20 |
21 | string
22 | VCI_PCI5121 config file
23 |
24 |
25 |
26 |
27 |
28 |
29 | VCI_PCI9810.xml
30 |
31 | string
32 | VCI_PCI9810 config file
33 |
34 |
35 |
36 |
37 |
38 |
39 | VCI_USBCAN1.xml
40 |
41 | string
42 | VCI_USBCAN1 config file
43 |
44 |
45 |
46 |
47 |
48 |
49 | VCI_USBCAN2.xml
50 |
51 | string
52 | VCI_USBCAN2 config file
53 |
54 |
55 |
56 |
57 |
58 |
59 | VCI_PCI9820.xml
60 |
61 | string
62 | VCI_PCI9820 config file
63 |
64 |
65 |
66 |
67 |
68 |
69 | VCI_CAN232.xml
70 |
71 | string
72 | VCI_CAN232 config file
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | 123456
82 |
83 | uint32
84 | 32 bit CAN_ID + EFF/RTR/ERR flags
85 |
86 |
87 |
88 |
89 | 8
90 |
91 | uchar
92 | frame payload length in byte (0 .. CAN_MAX_DLEN)
93 |
94 |
95 |
96 | <__pad>
97 | 0
98 |
99 | uchar
100 | padding
101 |
102 |
103 |
104 | <__res0>
105 | 0
106 |
107 | uchar
108 | reserved / padding
109 |
110 |
111 |
112 | <__res1>
113 | 0
114 |
115 | uchar
116 | reserved / padding
117 |
118 |
119 |
120 |
121 | 01234567
122 |
123 | string
124 | CAN frame payload (up to 8 byte)
125 |
126 |
127 |
128 |
129 |
130 |
131 | 123456
132 |
133 | uint32
134 | 32 bit CAN_ID + EFF/RTR/ERR flags
135 |
136 |
137 |
138 |
139 | 64
140 |
141 | uchar
142 | frame payload length in byte (0 .. CANFD_MAX_DLEN)
143 |
144 |
145 |
146 |
147 | 0
148 |
149 | uchar
150 | additional flags for CAN FD
151 |
152 |
153 |
154 | <__res0>
155 | 0
156 |
157 | uchar
158 | reserved / padding
159 |
160 |
161 |
162 | <__res1>
163 | 0
164 |
165 | uchar
166 | reserved / padding
167 |
168 |
169 |
170 |
171 | 01234567
172 |
173 | string
174 | CAN FD frame payload (up to CANFD_MAX_DLEN byte)
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 | 500
183 |
184 | uint32
185 | 生成帧数据的频率,单位毫秒
186 |
187 |
188 |
189 |
190 | 50
191 |
192 | uint32
193 | 生成帧的个数(缓冲区大小,ZCAN_Receive_Data或ZCAN_ReceiveFD_Data的个数)
194 |
195 |
196 |
197 |
198 |
199 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/USBCANFD.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/USBCANFD.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/VCI_USBCAN2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | options.int32
7 | Channel id
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | 115200
16 |
17 | options.int32
18 | baud rate
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | 115200
30 |
31 | options.int32
32 | baud rate
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/VirtualUSBCAN.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/VirtualUSBCAN.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/ZlgCloud.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/ZlgCloud.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/device_locale_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | baud_rate
6 |
7 | Baud Rate
8 | 波特率
9 | 波特率default
10 |
11 |
12 |
13 |
14 | program
15 |
16 | Program
17 | 程序
18 | 程式
19 | 程序default
20 |
21 |
22 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/can.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 3
5 |
6 | options.int32
7 | device type
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 | usbcan2.xml
54 |
55 | string
56 | PCI5121 config file
57 |
58 |
59 |
60 |
61 |
62 |
63 | usbcan1.xml
64 |
65 | string
66 | PCI9810 config file
67 |
68 |
69 |
70 |
71 |
72 |
73 | usbcan1.xml
74 |
75 | string
76 | USBCAN1 config file
77 |
78 |
79 |
80 |
81 |
82 |
83 | usbcan2.xml
84 |
85 | string
86 | USBCAN2 config file
87 |
88 |
89 |
90 |
91 |
92 |
93 | usbcan2.xml
94 |
95 | string
96 | PCI9820 config file
97 |
98 |
99 |
100 |
101 |
102 |
103 | usbcan1.xml
104 |
105 | string
106 | PCI5110 config file
107 |
108 |
109 |
110 |
111 |
112 |
113 | usbcan1.xml
114 |
115 | string
116 | PC104-CAN config file
117 |
118 |
119 |
120 |
121 |
122 |
123 | usbcan2.xml
124 |
125 | string
126 | PCI9820I config file
127 |
128 |
129 |
130 |
131 |
132 |
133 | usbcan2.xml
134 |
135 | string
136 | PC104-CAN2 config file
137 |
138 |
139 |
140 |
141 |
142 |
143 | usbcan2.xml
144 |
145 | string
146 | PCIE-9221 config file
147 |
148 |
149 |
150 |
151 |
152 |
153 | usbcan1.xml
154 |
155 | string
156 | PCIe-9110I config file
157 |
158 |
159 |
160 |
161 |
162 |
163 | usbcan2.xml
164 |
165 | string
166 | PCIe-9120I config file
167 |
168 |
169 |
170 |
171 |
172 |
173 | usbcan1.xml
174 |
175 | string
176 | PCI5010P config file
177 |
178 |
179 |
180 |
181 |
182 |
183 | canet-udp.xml
184 |
185 | string
186 | CANET-UDP config file
187 |
188 |
189 |
190 |
191 |
192 |
193 | canet-udp.xml
194 |
195 | string
196 | CANWIFI-UDP config file
197 |
198 |
199 |
200 |
201 |
202 |
203 | usbcan4.xml
204 |
205 | string
206 | PCI9840 config file
207 |
208 |
209 |
210 |
211 |
212 |
213 | usbcan4.xml
214 |
215 | string
216 | PCIe-9140I config file
217 |
218 |
219 |
220 |
221 |
222 |
223 | canet-tcp.xml
224 |
225 | string
226 | CANET-TCP config file
227 |
228 |
229 |
230 |
231 |
232 |
233 | canet-tcp.xml
234 |
235 | string
236 | CANWIFI-TCP config file
237 |
238 |
239 |
240 |
241 |
242 |
243 | pci-5010-u.xml
244 |
245 | string
246 | PCI-5010-U config file
247 |
248 |
249 |
250 |
251 |
252 |
253 | pci-5020-u.xml
254 |
255 | string
256 | PCI-5020-U config file
257 |
258 |
259 |
260 |
261 |
262 |
263 | pci-5010-u.xml
264 |
265 | string
266 | USBCAN-E-U config file
267 |
268 |
269 |
270 |
271 |
272 |
273 | pci-5020-u.xml
274 |
275 | string
276 | USBCAN-2E-U config file
277 |
278 |
279 |
280 |
281 |
282 |
283 | usbcan-4e-u.xml
284 |
285 | string
286 | USBCAN-4E-U config file
287 |
288 |
289 |
290 |
291 |
292 |
293 | usbcan-8e-u.xml
294 |
295 | string
296 | USBCAN-8E-U config file
297 |
298 |
299 |
300 |
301 |
302 |
303 | pcie-canfd-100u.xml
304 |
305 | string
306 | PCIE-CANFD-100U config file
307 |
308 |
309 |
310 |
311 |
312 |
313 | pcie-canfd-200u.xml
314 |
315 | string
316 | PCIE-CANFD-200U config file
317 |
318 |
319 |
320 |
321 |
322 |
323 | pcie-canfd-400u.xml
324 |
325 | string
326 | PCIE-CANFD-400U config file
327 |
328 |
329 |
330 |
331 |
332 |
333 | candtu-100ur.xml
334 |
335 | string
336 | CANDTU-100UR config file
337 |
338 |
339 |
340 |
341 |
342 |
343 | candtu-200ur.xml
344 |
345 | string
346 | CANDTU-100UR config file
347 |
348 |
349 |
350 |
351 |
352 |
353 | candtu-net.xml
354 |
355 | string
356 | CANDTU-NET config file
357 |
358 |
359 |
360 |
361 |
362 |
363 | virtual.xml
364 |
365 | string
366 | VIRTUAL config file
367 |
368 |
369 |
370 |
371 |
372 |
373 | usbcanfd-200u.xml
374 |
375 | string
376 | USBCANFD-200U config file
377 |
378 |
379 |
380 |
381 |
382 |
383 | usbcanfd-100u.xml
384 |
385 | string
386 | USBCANFD-100U config file
387 |
388 |
389 |
390 |
391 |
392 |
393 | usbcanfd-100u.xml
394 |
395 | string
396 | USBCANFD-MIN config file
397 |
398 |
399 |
400 |
401 |
402 |
403 | canscope.xml
404 |
405 | string
406 | CANSCOPE config file
407 |
408 |
409 |
410 |
411 |
412 |
413 | candtu-net-400.xml
414 |
415 | string
416 | CANSCOPE config file
417 |
418 |
419 |
420 |
421 |
422 |
423 | canfdcom-100ie.xml
424 |
425 | string
426 | CANFDCOM-100IE config file
427 |
428 |
429 |
430 |
431 |
432 | canfdnet-tcp.xml
433 |
434 | string
435 | canfdnet-tcp config file
436 |
437 |
438 |
439 |
440 |
441 | canfdnet-udp.xml
442 |
443 | string
444 | canfdnet-udp config file
445 |
446 |
447 |
448 |
449 |
450 |
451 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/candtu-100ur.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
8 | 设备索引
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 0
23 |
24 | false
25 | options.int32
26 | 通道号
27 |
28 |
29 |
30 |
31 |
32 |
33 | 1000000
34 |
35 | options.int32
36 | 波特率
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 1.0Mbps(75%),(3,1,0,0,2)
54 |
55 | $/info/channel/channel_0/baud_rate == 10
56 | string
57 | 自定义波特率
58 |
59 |
60 |
61 | 1
62 |
63 | options.int32
64 | 内置120欧电阻
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | 1
73 |
74 | options.int32
75 | 工作模式
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 | 0x10
84 |
85 | uint32
86 | 验收码
87 | false
88 |
89 |
90 |
91 | 0x1000
92 |
93 | uint32
94 | 屏蔽码
95 | false
96 |
97 |
98 |
99 |
100 |
101 | string
102 | false
103 |
104 |
105 |
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/candtu-200ur.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
8 | 设备索引
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 0
23 |
24 | false
25 | options.int32
26 | 通道号
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | 1000000
35 |
36 | options.int32
37 | 波特率
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | 1.0Mbps(75%),(3,1,0,0,2)
55 |
56 | $/info/channel/channel_0/baud_rate == 10
57 | string
58 | 自定义波特率
59 |
60 |
61 |
62 | 1
63 |
64 | options.int32
65 | 内置120欧电阻
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | 1
74 |
75 | options.int32
76 | 工作模式
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 | 0x10
85 |
86 | uint32
87 | 验收码
88 | false
89 |
90 |
91 |
92 | 0x1000
93 |
94 | uint32
95 | 屏蔽码
96 | false
97 |
98 |
99 |
100 |
101 |
102 | string
103 | false
104 |
105 |
106 |
107 |
108 |
109 |
110 | 1000000
111 |
112 | options.int32
113 | 波特率
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 | 1.0Mbps(75%),(3,1,0,0,2)
131 |
132 | $/info/channel/channel_0/baud_rate == 10
133 | string
134 | 自定义波特率
135 |
136 |
137 |
138 | 1
139 |
140 | options.int32
141 | 内置120欧电阻
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 | 1
150 |
151 | options.int32
152 | 工作模式
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | 0x10
161 |
162 | uint32
163 | 验收码
164 | false
165 |
166 |
167 |
168 | 0x1000
169 |
170 | uint32
171 | 屏蔽码
172 | false
173 |
174 |
175 |
176 |
177 |
178 | string
179 | false
180 |
181 |
182 |
183 |
184 |
185 |
186 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/candtu-net-400.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | 1
61 |
62 | options.int32
63 | 工作模式
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | 4001
72 |
73 | $/info/channel/channel_0/work_mode == 0
74 | uint32
75 | 本地端口
76 |
77 |
78 |
79 | 192.168.0.177
80 |
81 | $/info/channel/channel_0/work_mode == 1
82 | string
83 | ip
84 |
85 |
86 |
87 | 4002
88 |
89 | $/info/channel/channel_0/work_mode == 1
90 | uint32
91 | 工作端口
92 |
93 |
94 |
95 |
96 |
97 | 1
98 |
99 | options.int32
100 | 工作模式
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | 4001
109 |
110 | $/info/channel/channel_1/work_mode == 0
111 | uint32
112 | 本地端口
113 |
114 |
115 |
116 | 192.168.0.177
117 |
118 | $/info/channel/channel_1/work_mode == 1
119 | string
120 | ip
121 |
122 |
123 |
124 | 4002
125 |
126 | $/info/channel/channel_1/work_mode == 1
127 | uint32
128 | 工作端口
129 |
130 |
131 |
132 |
133 |
134 | 1
135 |
136 | options.int32
137 | 工作模式
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | 4001
146 |
147 | $/info/channel/channel_2/work_mode == 0
148 | uint32
149 | 本地端口
150 |
151 |
152 |
153 | 192.168.0.177
154 |
155 | $/info/channel/channel_2/work_mode == 1
156 | string
157 | ip
158 |
159 |
160 |
161 | 4002
162 |
163 | $/info/channel/channel_2/work_mode == 1
164 | uint32
165 | 工作端口
166 |
167 |
168 |
169 |
170 |
171 | 1
172 |
173 | options.int32
174 | 工作模式
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 | 4001
183 |
184 | $/info/channel/channel_3/work_mode == 0
185 | uint32
186 | 本地端口
187 |
188 |
189 |
190 | 192.168.0.177
191 |
192 | $/info/channel/channel_3/work_mode == 1
193 | string
194 | ip
195 |
196 |
197 |
198 | 4002
199 |
200 | $/info/channel/channel_3/work_mode == 1
201 | uint32
202 | 工作端口
203 |
204 |
205 |
206 |
207 |
208 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/candtu-net.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | 1
59 |
60 | options.int32
61 | 工作模式
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | 4001
70 |
71 | $/info/channel/channel_0/work_mode == 0
72 | uint32
73 | 本地端口
74 |
75 |
76 |
77 | 192.168.0.177
78 |
79 | $/info/channel/channel_0/work_mode == 1
80 | string
81 | ip
82 |
83 |
84 |
85 | 4002
86 |
87 | $/info/channel/channel_0/work_mode == 1
88 | uint32
89 | 工作端口
90 |
91 |
92 |
93 |
94 |
95 | 1
96 |
97 | options.int32
98 | 工作模式
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | 4001
107 |
108 | $/info/channel/channel_1/work_mode == 0
109 | uint32
110 | 本地端口
111 |
112 |
113 |
114 | 192.168.0.177
115 |
116 | $/info/channel/channel_1/work_mode == 1
117 | string
118 | ip
119 |
120 |
121 |
122 | 4002
123 |
124 | $/info/channel/channel_1/work_mode == 1
125 | uint32
126 | 工作端口
127 |
128 |
129 |
130 |
131 |
132 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/candtu.ini:
--------------------------------------------------------------------------------
1 | [CAN0]
2 | BpsBRP=2
3 | BpsSWJ=0
4 | BpsSeg1=3
5 | BpsSeg2=1
6 | BpsSmp=0
7 | FltCNT=1
8 | FltFmat=2
9 | FltM0=4096
10 | FltM1=0
11 | FltM2=0
12 | FltM3=0
13 | FltM4=0
14 | FltM5=0
15 | FltM6=0
16 | FltM7=0
17 | FltT0=16
18 | FltT1=0
19 | FltT2=0
20 | FltT3=0
21 | FltT4=0
22 | FltT5=0
23 | FltT6=0
24 | FltT7=0
25 | Mode=128
26 | UseRes=1
27 | [CAN1]
28 | BpsBRP=11
29 | BpsSWJ=0
30 | BpsSeg1=3
31 | BpsSeg2=1
32 | BpsSmp=0
33 | FltCNT=1
34 | FltFmat=2
35 | FltM0=0
36 | FltM1=0
37 | FltM2=0
38 | FltM3=0
39 | FltM4=0
40 | FltM5=0
41 | FltM6=0
42 | FltM7=0
43 | FltT0=0
44 | FltT1=0
45 | FltT2=0
46 | FltT3=0
47 | FltT4=0
48 | FltT5=0
49 | FltT6=0
50 | FltT7=0
51 | Mode=128
52 | UseRes=1
53 | [GEN]
54 | CfgType=2
55 | NChan=2
56 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/canet-tcp.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
8 | 设备索引
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 0
23 |
24 | false
25 | options.int32
26 | 通道号
27 |
28 |
29 |
30 |
31 |
32 |
33 | 1
34 |
35 | options.int32
36 | 工作模式
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | 4001
45 |
46 | $/info/channel/channel_0/work_mode == 0
47 | uint32
48 | 本地端口
49 |
50 |
51 |
52 | 192.168.0.177
53 |
54 | $/info/channel/channel_0/work_mode == 1
55 | string
56 | ip
57 |
58 |
59 |
60 | 4003
61 |
62 | $/info/channel/channel_0/work_mode == 1
63 | uint32
64 | 工作端口
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/canet-udp.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
8 | 设备索引
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 0
23 |
24 | false
25 | options.int32
26 | 通道号
27 |
28 |
29 |
30 |
31 |
32 |
33 | 4001
34 |
35 | uint32
36 | 本地端口
37 |
38 |
39 |
40 | 192.168.0.177
41 |
42 | string
43 | ip
44 |
45 |
46 |
47 | 4003
48 |
49 | uint32
50 | 工作端口
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/canfdcom-100ie.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | string
60 | 配置文件的绝对路径
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/canscope.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | options.int32
7 | 设备索引
8 | false
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 0
24 |
25 | false
26 | options.int32
27 | 通道号
28 |
29 |
30 |
31 |
32 |
33 |
34 | 1000000
35 |
36 | options.int32
37 | 波特率
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 1
54 |
55 | options.int32
56 | 终端电阻
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/device_locale_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | baud_rate
6 |
7 | Baud Rate
8 | 波特率
9 | 波特率
10 | baud_rate
11 |
12 |
13 |
14 |
15 | program
16 |
17 | Program
18 | 程序
19 | 程序
20 | program
21 |
22 |
23 |
24 |
25 | acc_code
26 |
27 | acc_code
28 | 验收码
29 | 驗收碼
30 | acc_code
31 |
32 |
33 |
34 |
35 | acc_mask
36 |
37 | acc_mask
38 | 屏蔽码
39 | 屏蔽碼
40 | acc_mask
41 |
42 |
43 |
44 |
45 | internal_resistance
46 |
47 | internal_resistance
48 | 内置120欧电阻
49 | 內置120歐電阻
50 | internal_resistance
51 |
52 |
53 |
54 |
55 | work_mode
56 |
57 | work_mode
58 | 工作模式
59 | 工作模式
60 | work_mode
61 |
62 |
63 |
64 |
65 | local_port
66 |
67 | local_port
68 | 本地端口
69 | 本地端口
70 | local_port
71 |
72 |
73 |
74 |
75 | ip
76 |
77 | ip
78 | ip地址
79 | ip地址
80 | ip
81 |
82 |
83 |
84 |
85 | work_port
86 |
87 | work_port
88 | 工作端口
89 | 工作端口
90 | work_port
91 |
92 |
93 |
94 |
95 | baud_rate_reg
96 |
97 | baud_rate_reg
98 | 波特率寄存器值
99 | 波特率寄存器值
100 | baud_rate_reg
101 |
102 |
103 |
104 |
105 | filter_mode
106 |
107 | filter_mode
108 | 滤波模式
109 | 濾波模式
110 | filter_mode
111 |
112 |
113 |
114 |
115 | filter_start
116 |
117 | filter_start
118 | 滤波起始帧
119 | 濾波起始幀
120 | filter_start
121 |
122 |
123 |
124 |
125 | filter_end
126 |
127 | filter_end
128 | 滤波结束帧
129 | 濾波結束幀
130 | filter_end
131 |
132 |
133 |
134 |
135 | canfd_enable
136 |
137 | canfd_enable
138 | canfd使能
139 | 使能
140 | canfd_enable
141 |
142 |
143 |
144 |
145 | drp_div
146 |
147 | drp_div
148 | 波特率预分频因子
149 | 波特率預分頻因子
150 | drp_div
151 |
152 |
153 |
154 |
155 | canfd_abit_baud_rate
156 |
157 | canfd_abit_baud_rate
158 | 仲裁域波特率
159 | 仲裁率波特率
160 | canfd_abit_baud_rate
161 |
162 |
163 |
164 |
165 | canfd_timing0
166 |
167 | canfd_timing0
168 | 定时器0
169 | 計時器0
170 | canfd_timing0
171 |
172 |
173 |
174 |
175 | canfd_dbit_baud_rate
176 |
177 | canfd_dbit_baud_rate
178 | 数据域波特率
179 | 數據波特率
180 | canfd_dbit_baud_rate
181 |
182 |
183 |
184 |
185 | canfd_timing1
186 |
187 | canfd_timing1
188 | 定时器1
189 | 計時器1
190 | canfd_timing1
191 |
192 |
193 |
194 |
195 | can_baud_rate
196 |
197 | can_baud_rate
198 | 波特率
199 | 波特率
200 | can_baud_rate
201 |
202 |
203 |
204 |
205 | can_timing0
206 |
207 | can_timing0
208 | 定时器0
209 | 計時器0
210 | can_timing0
211 |
212 |
213 |
214 |
215 | can_timing1
216 |
217 | can_timing1
218 | 定时器1
219 | 計時器1
220 | can_timing1
221 |
222 |
223 |
224 |
225 | send_type
226 |
227 | send_type
228 | 发送类型
229 | 發送類型
230 | send_type
231 |
232 |
233 |
234 |
235 | filter
236 |
237 | filter
238 | 滤波方式
239 | 濾波方式
240 | filter
241 |
242 |
243 |
244 |
245 | retry
246 |
247 | retry
248 | 发送失败后重发次数
249 | 發送失敗后重發次數
250 | retry
251 |
252 |
253 |
254 |
255 | timing0
256 |
257 | timing0
258 | 定时器0
259 | 計時器0
260 | timing0
261 |
262 |
263 |
264 |
265 | timing1
266 |
267 | timing1
268 | 定时器1
269 | 計時器1
270 | timing1
271 |
272 |
273 |
274 |
275 | double_filter
276 |
277 | double_filter
278 | 双滤波
279 | 雙濾波
280 | double_filter
281 |
282 |
283 |
284 |
285 | single_filter
286 |
287 | single_filter
288 | 单滤波
289 | 單濾波
290 | single_filter
291 |
292 |
293 |
294 | normal_mode
295 |
296 | normal_mode
297 | 正常模式
298 | 正常模式
299 | normal_mode
300 |
301 |
302 |
303 | readonly_mode
304 |
305 | readonly_mode
306 | 只听模式
307 | 只聽模式
308 | readonly_mode
309 |
310 |
311 |
312 | filter_standard
313 |
314 | filter_standard
315 | 标准帧滤波
316 | 標準幀濾波
317 | filter_standard
318 |
319 |
320 |
321 | filter_extend
322 |
323 | filter_extend
324 | 扩展帧滤波
325 | 擴展幀濾波
326 | filter_extend
327 |
328 |
329 |
330 | filter_disable
331 |
332 | filter_disable
333 | 禁能滤波
334 | 禁能濾波
335 | filter_disable
336 |
337 |
338 |
339 | redirect_enable
340 |
341 | redirect_enable
342 | 转发
343 | 轉發
344 | redirect_enable
345 |
346 |
347 |
348 | redirect_disable
349 |
350 | redirect_disable
351 | 不转发
352 | 不轉發
353 | redirect_disable
354 |
355 |
356 |
357 | self_mode
358 |
359 | self_mode
360 | 自发自收模式
361 | 自發自收模式
362 | self_mode
363 |
364 |
365 |
366 | enable
367 |
368 | enable
369 | 使能
370 | 使能
371 | enable
372 |
373 |
374 |
375 | disable
376 |
377 | disable
378 | 禁能
379 | 禁能
380 | disable
381 |
382 |
383 |
384 | use
385 |
386 | use
387 | 使用
388 | 使用
389 | use
390 |
391 |
392 |
393 | no
394 |
395 | no
396 | 不使用
397 | 不使用
398 | no
399 |
400 |
401 |
402 | canfd_standard
403 |
404 | CANFD standard
405 | CANFD标准
406 | CANFD標準
407 | CANFD standard
408 |
409 |
410 |
411 | clock
412 |
413 | clock
414 | 晶振频率
415 | 晶振頻率
416 | clock
417 |
418 |
419 |
420 | initenal_resistance
421 |
422 | initenal resistance
423 | 终端电阻
424 | 終端電阻
425 | initenal resistance
426 |
427 |
428 |
429 | baud_rate_custom
430 |
431 | custom baud_rate
432 | 自定义波特率
433 | 自定義波特率
434 | custom baud_rate
435 |
436 |
437 |
438 | custom
439 |
440 | custom
441 | 自定义
442 | 自定義
443 | custom
444 |
445 |
446 |
447 | protocol
448 |
449 | protocol
450 | 协议
451 | 協議
452 | protocol
453 |
454 |
455 |
456 | canfd_exp
457 |
458 | canfd_exp
459 | CANFD加速
460 | CANFD加速
461 | canfd_exp
462 |
463 |
464 |
465 | confirm
466 |
467 | confirm
468 | 确认
469 | 確認
470 | confirm
471 |
472 |
473 |
474 | file_path
475 |
476 | file_path
477 | 配置文件的绝对路径
478 | 配置文件的絕對路徑
479 | file_path
480 |
481 |
482 |
483 | mode_server
484 |
485 | server
486 | 服务器
487 | 服務器
488 | file_path
489 |
490 |
491 |
492 | mode_client
493 |
494 | client
495 | 客户端
496 | 客戶端
497 | file_path
498 |
499 |
500 |
501 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/pci-5010-u.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 7
5 |
6 | false
7 | options.int32
8 | 设备索引
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 0
23 |
24 | false
25 | options.int32
26 | 通道号
27 |
28 |
29 |
30 |
31 |
32 |
33 | 1000000
34 |
35 | options.int32
36 | 波特率
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 1.0Mbps(72%),(004B0001)
54 |
55 | $/info/channel/channel_0/baud_rate == 10
56 | string
57 | 自定义波特率
58 |
59 |
60 |
61 | 0
62 |
63 | options.int32
64 | 工作模式
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | 0
73 |
74 | string
75 | false
76 | 清除滤波
77 |
78 |
79 |
80 | 2
81 |
82 | options.int32
83 | 滤波模式
84 | false
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | 0
94 |
95 | uint32
96 | 滤波起始帧
97 | false
98 |
99 |
100 |
101 | 0xFFFFFFFF
102 |
103 | uint32
104 | 滤波结束帧
105 | false
106 |
107 |
108 |
109 | 0
110 |
111 | string
112 | false
113 | 滤波生效
114 |
115 |
116 |
117 |
118 |
119 | string
120 | false
121 |
122 |
123 |
124 |
125 |
126 |
127 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/pci-5020-u.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 7
5 |
6 | false
7 | options.int32
8 | 设备索引
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 0
23 |
24 | false
25 | options.int32
26 | 通道号
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | 1000000
35 |
36 | options.int32
37 | 波特率
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | 1.0Mbps(72%),(004B0001)
55 |
56 | $/info/channel/channel_0/baud_rate == 10
57 | string
58 | 自定义波特率
59 |
60 |
61 |
62 | 0
63 |
64 | options.int32
65 | 工作模式
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | false
76 | string
77 | 定时发送
78 |
79 |
80 |
81 | 1
82 |
83 | false
84 | string
85 | 清空定时发送
86 |
87 |
88 |
89 | 0
90 |
91 | string
92 | false
93 | 清除滤波
94 |
95 |
96 |
97 | 2
98 |
99 | options.int32
100 | false
101 | 滤波模式
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 | 0
111 |
112 | uint32
113 | false
114 | 滤波起始帧
115 |
116 |
117 |
118 | 0xFFFFFFFF
119 |
120 | uint32
121 | false
122 | 滤波结束帧
123 |
124 |
125 |
126 | 0
127 |
128 | string
129 | false
130 | 滤波生效
131 |
132 |
133 |
134 |
135 |
136 | string
137 | false
138 |
139 |
140 |
141 |
142 |
143 |
144 | 1000000
145 |
146 | options.int32
147 | 波特率
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 | 1.0Mbps(72%),(004B0001)
165 |
166 | $/info/channel/channel_1/baud_rate == 10
167 | string
168 | 自定义波特率
169 |
170 |
171 |
172 | 0
173 |
174 | options.int32
175 | 工作模式
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 | false
186 | string
187 | 定时发送
188 |
189 |
190 |
191 | 1
192 |
193 | false
194 | string
195 | 清空定时发送
196 |
197 |
198 |
199 | 0
200 |
201 | string
202 | false
203 | 清除滤波
204 |
205 |
206 |
207 | 2
208 |
209 | options.int32
210 | 滤波模式
211 | false
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 | 0
221 |
222 | uint32
223 | 滤波起始帧
224 | false
225 |
226 |
227 |
228 | 0xFFFFFFFF
229 |
230 | uint32
231 | 滤波结束帧
232 | false
233 |
234 |
235 |
236 | 0
237 |
238 | string
239 | false
240 | 滤波生效
241 |
242 |
243 |
244 |
245 |
246 | string
247 | false
248 |
249 |
250 |
251 |
252 |
253 |
254 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/pcie-canfd-100u.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 | 0
58 |
59 | false
60 | int32
61 | 波特率预分频因子
62 |
63 |
64 |
65 | 1
66 |
67 | options.int32
68 | 协议
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | 0
77 |
78 | options.int32
79 | CANFD加速
80 | $/info/channel/channel_0/protocol != 0
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | 1000000
89 |
90 | options.int32
91 | 仲裁域波特率
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 | 4000000
103 |
104 | options.int32
105 | 数据域波特率
106 | $/info/channel/channel_0/canfd_abit_baud_rate != 4 && $/info/channel/channel_0/protocol != 0
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 | 1.0Mbps(51%),4.0Mbps(95%),(0,00002627,11000011)
116 |
117 | $/info/channel/channel_0/canfd_abit_baud_rate == 4
118 | string
119 | 自定义波特率
120 |
121 |
122 |
123 | 0
124 |
125 | options.int32
126 | 工作模式
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 | 0
135 |
136 | options.int32
137 | 发送类型
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | 0
146 |
147 | false
148 | int32
149 | 发送失败后重发次数
150 |
151 |
152 |
153 |
154 |
155 | false
156 | string
157 | 定时发送CAN
158 |
159 |
160 |
161 |
162 |
163 | false
164 | string
165 | 定时发送CANFD
166 |
167 |
168 |
169 | 1
170 |
171 | false
172 | string
173 | 清空定时发送
174 |
175 |
176 |
177 | 0
178 |
179 | options.int32
180 | 滤波方式
181 | false
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | 0x0000
190 |
191 | uint32
192 | 验收码
193 | false
194 |
195 |
196 |
197 | 0xFFFFFFFF
198 |
199 | uint32
200 | 屏蔽码
201 | false
202 |
203 |
204 |
205 |
206 |
207 | string
208 | false
209 |
210 |
211 |
212 |
213 |
214 |
215 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/pcie-canfd-200u.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 0
6 |
7 | false
8 | options.int32
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 | 0
48 |
49 | false
50 | options.int32
51 | 通道号
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | 0
60 |
61 | false
62 | int32
63 | 波特率预分频因子
64 |
65 |
66 |
67 | 1
68 |
69 | options.int32
70 | 协议
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | 0
79 |
80 | options.int32
81 | CANFD加速
82 | $/info/channel/channel_0/protocol != 0
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | 1000000
91 |
92 | options.int32
93 | 仲裁域波特率
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | 4000000
105 |
106 | options.int32
107 | 数据域波特率
108 | $/info/channel/channel_0/canfd_abit_baud_rate != 4 && $/info/channel/channel_0/protocol != 0
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | 1.0Mbps(51%),4.0Mbps(95%),(0,00002627,11000011)
118 |
119 | $/info/channel/channel_0/canfd_abit_baud_rate == 4
120 | string
121 | 自定义波特率
122 |
123 |
124 |
125 | 0
126 |
127 | options.int32
128 | 工作模式
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 | 0
137 |
138 | options.int32
139 | 发送类型
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | 0
148 |
149 | false
150 | int32
151 | 发送失败后重发次数
152 |
153 |
154 |
155 |
156 |
157 | false
158 | string
159 | 定时发送CAN
160 |
161 |
162 |
163 |
164 |
165 | false
166 | string
167 | 定时发送CANFD
168 |
169 |
170 |
171 | 1
172 |
173 | false
174 | string
175 | 清空定时发送
176 |
177 |
178 |
179 | 0
180 |
181 | options.int32
182 | 滤波方式
183 | false
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 | 0x0000
192 |
193 | uint32
194 | 验收码
195 | false
196 |
197 |
198 |
199 | 0xFFFFFFFF
200 |
201 | uint32
202 | 屏蔽码
203 | false
204 |
205 |
206 |
207 |
208 |
209 | string
210 | false
211 |
212 |
213 |
214 |
215 |
216 |
217 | 0
218 |
219 | false
220 | int32
221 | 波特率预分频因子
222 |
223 |
224 |
225 | 1
226 |
227 | options.int32
228 | 协议
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 | 0
237 |
238 | options.int32
239 | CANFD加速
240 | $/info/channel/channel_1/protocol != 0
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 | 1000000
249 |
250 | options.int32
251 | 仲裁域波特率
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 | 4000000
263 |
264 | options.int32
265 | 数据域波特率
266 | $/info/channel/channel_0/canfd_abit_baud_rate != 4 && $/info/channel/channel_1/protocol != 0
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 | 1.0Mbps(51%),4.0Mbps(95%),(0,00002627,11000011)
276 |
277 | $/info/channel/channel_1/canfd_abit_baud_rate == 4
278 | string
279 | 自定义波特率
280 |
281 |
282 |
283 | 0
284 |
285 | options.int32
286 | 工作模式
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 | 0
295 |
296 | options.int32
297 | 发送类型
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 | 0
306 |
307 | false
308 | int32
309 | 发送失败后重发次数
310 |
311 |
312 |
313 |
314 |
315 | false
316 | string
317 | 定时发送CAN
318 |
319 |
320 |
321 |
322 |
323 | false
324 | string
325 | 定时发送CANFD
326 |
327 |
328 |
329 | 1
330 |
331 | false
332 | string
333 | 清空定时发送
334 |
335 |
336 |
337 | 0
338 |
339 | options.int32
340 | 滤波方式
341 | false
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 | 0x0000
350 |
351 | uint32
352 | 验收码
353 | false
354 |
355 |
356 |
357 | 0xFFFFFFFF
358 |
359 | uint32
360 | 屏蔽码
361 | false
362 |
363 |
364 |
365 |
366 |
367 | string
368 | false
369 |
370 |
371 |
372 |
373 |
374 |
375 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/usbcan1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | options.int32
7 | 设备索引
8 | false
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 | 1000000
58 |
59 | options.int32
60 | 波特率
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | 56
78 |
79 | $/info/channel/channel_0/baud_rate == 10
80 | string
81 | 自定义波特率
82 |
83 |
84 |
85 | 0
86 |
87 | options.int32
88 | 工作模式
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | 0
97 |
98 | options.int32
99 | 滤波方式
100 | false
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | 0x0000
109 |
110 | uint32
111 | 验收码
112 | false
113 |
114 |
115 |
116 | 0xFFFFFFFF
117 |
118 | uint32
119 | 屏蔽码
120 | false
121 |
122 |
123 |
124 |
125 |
126 | string
127 | false
128 |
129 |
130 |
131 |
132 |
133 |
134 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/usbcan2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | options.int32
7 | 设备索引
8 | false
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 | 0
46 |
47 | false
48 | options.int32
49 | 通道号
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 1000000
58 |
59 | options.int32
60 | 波特率
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | 1.0Mbps(62%),(00,23)
78 |
79 | $/info/channel/channel_0/baud_rate == 10
80 | string
81 | 自定义波特率
82 |
83 |
84 |
85 | 0
86 |
87 | options.int32
88 | 工作模式
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | 0
97 |
98 | options.int32
99 | 滤波方式
100 | false
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 | 0x0000
109 |
110 | uint32
111 | 验收码
112 | false
113 |
114 |
115 |
116 | 0xFFFFFFFF
117 |
118 | uint32
119 | 屏蔽码
120 | false
121 |
122 |
123 |
124 |
125 |
126 | string
127 | false
128 |
129 |
130 |
131 |
132 |
133 |
134 | 1000000
135 |
136 | options.int32
137 | 波特率
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 | 1.0Mbps(62%),(00,23)
155 |
156 | $/info/channel/channel_1/baud_rate == 10
157 | string
158 | 自定义波特率
159 |
160 |
161 |
162 | 0
163 |
164 | options.int32
165 | 工作模式
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 | 0
174 |
175 | options.int32
176 | 滤波方式
177 | false
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 | 0x0000
186 |
187 | uint32
188 | 验收码
189 | false
190 |
191 |
192 |
193 | 0xFFFFFFFF
194 |
195 | uint32
196 | 屏蔽码
197 | false
198 |
199 |
200 |
201 |
202 |
203 | string
204 | false
205 |
206 |
207 |
208 |
209 |
210 |
211 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/usbcan4.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | 1000000
61 |
62 | options.int32
63 | 波特率
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | 1.0Mbps(62%),(00,23)
81 |
82 | $/info/channel/channel_0/baud_rate == 10
83 | string
84 | 自定义波特率
85 |
86 |
87 |
88 | 0
89 |
90 | options.int32
91 | 工作模式
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | 0
100 |
101 | options.int32
102 | 滤波方式
103 | false
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 | 0x0000
112 |
113 | uint32
114 | 验收码
115 | false
116 |
117 |
118 |
119 | 0xFFFFFFFF
120 |
121 | uint32
122 | 屏蔽码
123 | false
124 |
125 |
126 |
127 |
128 |
129 | string
130 | false
131 |
132 |
133 |
134 |
135 |
136 |
137 | 1000000
138 |
139 | options.int32
140 | 波特率
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 | 1.0Mbps(62%),(00,23)
158 |
159 | $/info/channel/channel_1/baud_rate == 10
160 | string
161 | 自定义波特率
162 |
163 |
164 |
165 | 0
166 |
167 | options.int32
168 | 工作模式
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 | 0
177 |
178 | options.int32
179 | 滤波方式
180 | false
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 | 0x0000
189 |
190 | uint32
191 | 验收码
192 | false
193 |
194 |
195 |
196 | 0xFFFFFFFF
197 |
198 | uint32
199 | 屏蔽码
200 | false
201 |
202 |
203 |
204 |
205 |
206 | string
207 | false
208 |
209 |
210 |
211 |
212 |
213 |
214 | 1000000
215 |
216 | options.int32
217 | 波特率
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 | 1.0Mbps(62%),(00,23)
235 |
236 | $/info/channel/channel_2/baud_rate == 10
237 | string
238 | 自定义波特率
239 |
240 |
241 |
242 | 0
243 |
244 | options.int32
245 | 工作模式
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 | 0
254 |
255 | options.int32
256 | 滤波方式
257 | false
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 | 0x0000
266 |
267 | uint32
268 | 验收码
269 | false
270 |
271 |
272 |
273 | 0xFFFFFFFF
274 |
275 | uint32
276 | 屏蔽码
277 | false
278 |
279 |
280 |
281 |
282 |
283 | string
284 | false
285 |
286 |
287 |
288 |
289 |
290 |
291 | 1000000
292 |
293 | options.int32
294 | 波特率
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 | 1.0Mbps(62%),(00,23)
312 |
313 | $/info/channel/channel_3/baud_rate == 10
314 | string
315 | 自定义波特率
316 |
317 |
318 |
319 | 0
320 |
321 | options.int32
322 | 工作模式
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 | 0
331 |
332 | options.int32
333 | 滤波方式
334 | false
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 | 0x0000
343 |
344 | uint32
345 | 验收码
346 | false
347 |
348 |
349 |
350 | 0xFFFFFFFF
351 |
352 | uint32
353 | 屏蔽码
354 | false
355 |
356 |
357 |
358 |
359 |
360 | string
361 | false
362 |
363 |
364 |
365 |
366 |
367 |
368 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/usbcanfd-100u.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | false
7 | options.int32
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 | 0
47 |
48 | false
49 | options.int32
50 | 通道号
51 |
52 |
53 |
54 |
55 |
56 |
57 | 1
58 |
59 | options.int32
60 | 协议
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | 0
69 |
70 | CANFD标准
71 | options.int32
72 | $/info/channel/channel_0/protocol != 0
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | 0
81 |
82 | options.int32
83 | CANFD加速
84 | $/info/channel/channel_0/protocol != 0
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | 1000000
93 |
94 | options.int32
95 | 仲裁域波特率
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | 5000000
110 |
111 | options.int32
112 | 数据域波特率
113 | $/info/channel/channel_0/canfd_abit_baud_rate!=7&&$/info/channel/channel_0/protocol!=0&&$/info/channel/channel_0/canfd_exp!=0
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 | 1.0Mbps(66%),4.0Mbps(66%),(60,04C00000,01000000)
129 |
130 | $/info/channel/channel_0/canfd_abit_baud_rate == 7
131 | string
132 | 自定义波特率
133 |
134 |
135 |
136 | 0
137 |
138 | options.int32
139 | 工作模式
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | 1
148 |
149 | options.int32
150 | 终端电阻
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | false
161 | string
162 | 定时发送CAN
163 |
164 |
165 |
166 | 1
167 |
168 | false
169 | string
170 | 定时发送CANFD
171 |
172 |
173 |
174 | 1
175 |
176 | false
177 | string
178 | 清空定时发送
179 |
180 |
181 |
182 | 1
183 |
184 | false
185 | string
186 | 应用定时发送
187 |
188 |
189 |
190 | 1
191 |
192 | false
193 | string
194 | 设置序列号
195 |
196 |
197 |
198 | 1
199 |
200 | false
201 | string
202 | 获取序列号
203 |
204 |
205 |
206 | 1
207 |
208 | false
209 | string
210 | 升级
211 |
212 |
213 |
214 | 1
215 |
216 | false
217 | uint32
218 | 升级状态
219 |
220 |
221 |
222 | 1
223 |
224 | false
225 | uint32
226 | 通道错误计数
227 |
228 |
229 |
230 | 1
231 |
232 | false
233 | uint32
234 | 日志文件大小
235 |
236 |
237 |
238 | 1
239 |
240 | false
241 | uint32
242 | 日志文件数据
243 |
244 |
245 |
246 | 1
247 |
248 | false
249 | string
250 | 设备时间日期
251 |
252 |
253 |
254 | 60000000
255 |
256 | int32
257 | false
258 | 时钟
259 |
260 |
261 |
262 | 0
263 |
264 | string
265 | false
266 | 清除滤波
267 |
268 |
269 |
270 | 0
271 |
272 | options.int32
273 | 滤波模式
274 | false
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 | ffbdd8
284 |
285 | uint32
286 | 滤波起始帧
287 | false
288 |
289 |
290 |
291 | ffbe28
292 |
293 | uint32
294 | 滤波结束帧
295 | false
296 |
297 |
298 |
299 | 0
300 |
301 | string
302 | false
303 | 滤波生效
304 |
305 |
306 |
307 | 0
308 |
309 | string
310 | false
311 |
312 |
313 |
314 |
315 | 0
316 |
317 | uint32
318 | false
319 |
320 |
321 |
322 |
323 | 0
324 |
325 | uint32
326 | false
327 |
328 |
329 |
330 |
331 | 0
332 |
333 | string
334 | false
335 |
336 |
337 |
338 |
339 | 1
340 |
341 | false
342 | uint32
343 | 控制器模式
344 |
345 |
346 |
347 |
348 |
349 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/devices_property/virtual.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 0
5 |
6 | options.int32
7 | 设备索引
8 | false
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 | 0
46 |
47 | false
48 | options.int32
49 | 通道号
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 1000000
58 |
59 | options.int32
60 | 波特率
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 | 1000000
80 |
81 | options.int32
82 | 波特率
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/dll_cfg.ini:
--------------------------------------------------------------------------------
1 | [KERNELDLL_VCI_CAN]
2 | COUNT=33
3 | START=1
4 | 1=PCI51XXE.dll 1 32
5 | 2=PCI9810B.dll 2 32
6 | 3=USBCAN.dll 3 32
7 | 4=USBCAN.dll 4 32
8 | 5=PCI9820.dll 5 32
9 | 6=PCI51XXE.dll 7 32
10 | 7=CANETE.dll 12 8
11 | 8=PCI9840B.dll 14 32
12 | 9=PCI9820I.dll 16 32
13 | 10=CANET_TCP.dll 17 8
14 | 11=pci50xx_u.dll 19 8
15 | 12=USBCAN_E.dll 20 8
16 | 13=USBCAN_E.dll 21 8
17 | 14=pci50xx_u.dll 22 8
18 | 15=topcliff_can.dll 23 8
19 | 16=pcie9221.dll 24 32
20 | 17=CANWIFI_TCP.dll 25 8
21 | 18=CANWIFI_UDP.dll 26 8
22 | 19=pcie9120.dll 27 32
23 | 20=pcie9110.dll 28 32
24 | 21=pcie9140.dll 29 32
25 | 22=pci5010p.dll 30 32
26 | 23=USBCAN_4E_U.dll 31 32
27 | 24=CANDTU.DLL 32 8
28 | 25=CANDTU_MINI.dll 33 8
29 | 26=USBCAN_8E_U.dll 34 32
30 | 27=CAN_REPLAY.dll 35 8
31 | 28=CANDTU_NET.dll 36 32
32 | 29=CANDTU.dll 37 8
33 | 30=zpcfd.dll 38 32
34 | 31=zpcfd.dll 39 32
35 | 32=zpcfd.dll 40 32
36 | 33=CANDTU_NET_400.dll 47 32
37 | [KERNELDLL_ZLG_CAN]
38 | COUNT=8
39 | START=1
40 | 1=VirtualUSBCAN.dll 99 32
41 | 2=USBCANFD.dll 41 32
42 | 3=USBCANFD.dll 42 32
43 | 4=USBCANFD.dll 43 32
44 | 5=ZlgCloud.dll 46 32
45 | 6=CANFDCOM.dll 44 32
46 | 7=CANFDNET_TCP.dll 48 32
47 | 8=CANFDNET_UDP.dll 49 32
48 | [KERNELDLL_CANSCOPE]
49 | COUNT=1
50 | START=1
51 | 1=CANDevice.dll 45 32
52 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/gisadll.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/gisadll.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/gpcidll.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/kerneldlls/gpcidll.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/main.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/main.o
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/mainwindow.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/mainwindow.o
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/moc_mainwindow.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | ** Meta object code from reading C++ file 'mainwindow.h'
3 | **
4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.1)
5 | **
6 | ** WARNING! All changes made in this file will be lost!
7 | *****************************************************************************/
8 |
9 | #include "../../mainwindow.h"
10 | #include
11 | #include
12 | #if !defined(Q_MOC_OUTPUT_REVISION)
13 | #error "The header file 'mainwindow.h' doesn't include ."
14 | #elif Q_MOC_OUTPUT_REVISION != 67
15 | #error "This file was generated using the moc from 5.7.1. It"
16 | #error "cannot be used with the include files from this version of Qt."
17 | #error "(The moc has changed too much.)"
18 | #endif
19 |
20 | QT_BEGIN_MOC_NAMESPACE
21 | struct qt_meta_stringdata_MainWindow_t {
22 | QByteArrayData data[12];
23 | char stringdata0[239];
24 | };
25 | #define QT_MOC_LITERAL(idx, ofs, len) \
26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
27 | qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \
28 | - idx * sizeof(QByteArrayData)) \
29 | )
30 | static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
31 | {
32 | QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
33 | QT_MOC_LITERAL(1, 11, 24), // "on_btnOpenDevice_clicked"
34 | QT_MOC_LITERAL(2, 36, 0), // ""
35 | QT_MOC_LITERAL(3, 37, 10), // "update_1ms"
36 | QT_MOC_LITERAL(4, 48, 33), // "on_cBoxDevice_currentIndexCha..."
37 | QT_MOC_LITERAL(5, 82, 5), // "index"
38 | QT_MOC_LITERAL(6, 88, 24), // "on_btnInitDevice_clicked"
39 | QT_MOC_LITERAL(7, 113, 27), // "on_btnDeviceMessage_clicked"
40 | QT_MOC_LITERAL(8, 141, 25), // "on_btnCloseDevice_clicked"
41 | QT_MOC_LITERAL(9, 167, 19), // "on_btnClear_clicked"
42 | QT_MOC_LITERAL(10, 187, 25), // "on_btnStartDevice_clicked"
43 | QT_MOC_LITERAL(11, 213, 25) // "on_btnResetDevice_clicked"
44 |
45 | },
46 | "MainWindow\0on_btnOpenDevice_clicked\0"
47 | "\0update_1ms\0on_cBoxDevice_currentIndexChanged\0"
48 | "index\0on_btnInitDevice_clicked\0"
49 | "on_btnDeviceMessage_clicked\0"
50 | "on_btnCloseDevice_clicked\0on_btnClear_clicked\0"
51 | "on_btnStartDevice_clicked\0"
52 | "on_btnResetDevice_clicked"
53 | };
54 | #undef QT_MOC_LITERAL
55 |
56 | static const uint qt_meta_data_MainWindow[] = {
57 |
58 | // content:
59 | 7, // revision
60 | 0, // classname
61 | 0, 0, // classinfo
62 | 9, 14, // methods
63 | 0, 0, // properties
64 | 0, 0, // enums/sets
65 | 0, 0, // constructors
66 | 0, // flags
67 | 0, // signalCount
68 |
69 | // slots: name, argc, parameters, tag, flags
70 | 1, 0, 59, 2, 0x08 /* Private */,
71 | 3, 0, 60, 2, 0x08 /* Private */,
72 | 4, 1, 61, 2, 0x08 /* Private */,
73 | 6, 0, 64, 2, 0x08 /* Private */,
74 | 7, 0, 65, 2, 0x08 /* Private */,
75 | 8, 0, 66, 2, 0x08 /* Private */,
76 | 9, 0, 67, 2, 0x08 /* Private */,
77 | 10, 0, 68, 2, 0x08 /* Private */,
78 | 11, 0, 69, 2, 0x08 /* Private */,
79 |
80 | // slots: parameters
81 | QMetaType::Void,
82 | QMetaType::Void,
83 | QMetaType::Void, QMetaType::Int, 5,
84 | QMetaType::Void,
85 | QMetaType::Void,
86 | QMetaType::Void,
87 | QMetaType::Void,
88 | QMetaType::Void,
89 | QMetaType::Void,
90 |
91 | 0 // eod
92 | };
93 |
94 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
95 | {
96 | if (_c == QMetaObject::InvokeMetaMethod) {
97 | MainWindow *_t = static_cast(_o);
98 | Q_UNUSED(_t)
99 | switch (_id) {
100 | case 0: _t->on_btnOpenDevice_clicked(); break;
101 | case 1: _t->update_1ms(); break;
102 | case 2: _t->on_cBoxDevice_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
103 | case 3: _t->on_btnInitDevice_clicked(); break;
104 | case 4: _t->on_btnDeviceMessage_clicked(); break;
105 | case 5: _t->on_btnCloseDevice_clicked(); break;
106 | case 6: _t->on_btnClear_clicked(); break;
107 | case 7: _t->on_btnStartDevice_clicked(); break;
108 | case 8: _t->on_btnResetDevice_clicked(); break;
109 | default: ;
110 | }
111 | }
112 | }
113 |
114 | const QMetaObject MainWindow::staticMetaObject = {
115 | { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
116 | qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
117 | };
118 |
119 |
120 | const QMetaObject *MainWindow::metaObject() const
121 | {
122 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
123 | }
124 |
125 | void *MainWindow::qt_metacast(const char *_clname)
126 | {
127 | if (!_clname) return Q_NULLPTR;
128 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
129 | return static_cast(const_cast< MainWindow*>(this));
130 | return QMainWindow::qt_metacast(_clname);
131 | }
132 |
133 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
134 | {
135 | _id = QMainWindow::qt_metacall(_c, _id, _a);
136 | if (_id < 0)
137 | return _id;
138 | if (_c == QMetaObject::InvokeMetaMethod) {
139 | if (_id < 9)
140 | qt_static_metacall(this, _c, _id, _a);
141 | _id -= 9;
142 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
143 | if (_id < 9)
144 | *reinterpret_cast(_a[0]) = -1;
145 | _id -= 9;
146 | }
147 | return _id;
148 | }
149 | QT_END_MOC_NAMESPACE
150 |
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/moc_mainwindow.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/moc_mainwindow.o
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/zlgcan.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/debug/zlgcan.dll
--------------------------------------------------------------------------------
/build-USBCAN-Desktop_Qt_5_7_1_MinGW_32bit-Debug/ui_mainwindow.h:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | ** Form generated from reading UI file 'mainwindow.ui'
3 | **
4 | ** Created by: Qt User Interface Compiler version 5.7.1
5 | **
6 | ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 | ********************************************************************************/
8 |
9 | #ifndef UI_MAINWINDOW_H
10 | #define UI_MAINWINDOW_H
11 |
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 | #include
29 |
30 | QT_BEGIN_NAMESPACE
31 |
32 | class Ui_MainWindow
33 | {
34 | public:
35 | QWidget *centralWidget;
36 | QGroupBox *groupBox;
37 | QLabel *label;
38 | QComboBox *cBoxDevice;
39 | QLabel *label_2;
40 | QComboBox *cBoxSuoYin;
41 | QComboBox *cBoxChannel;
42 | QLabel *label_3;
43 | QComboBox *cBoxMode;
44 | QComboBox *cBoxBoud;
45 | QCheckBox *checkBoxBound;
46 | QLineEdit *lEditBound;
47 | QLabel *label_4;
48 | QLabel *label_5;
49 | QCheckBox *checkBox_2;
50 | QLabel *label_12;
51 | QLabel *label_13;
52 | QLabel *label_14;
53 | QLineEdit *lEditYanShouMa;
54 | QLineEdit *lEditPingBiMa;
55 | QComboBox *cBoxLvbo;
56 | QCheckBox *cBoxAllChannel;
57 | QPushButton *btnOpenDevice;
58 | QPushButton *btnInitDevice;
59 | QPushButton *btnStartDevice;
60 | QPushButton *btnResetDevice;
61 | QPushButton *btnCloseDevice;
62 | QGroupBox *groupBox_2;
63 | QLabel *label_6;
64 | QLabel *label_7;
65 | QLabel *label_8;
66 | QLabel *label_9;
67 | QLabel *label_10;
68 | QLabel *label_11;
69 | QLineEdit *lEdit_ID;
70 | QComboBox *cBoxZhenType;
71 | QComboBox *cBoxProtocol;
72 | QComboBox *cBoxJiaSu;
73 | QLineEdit *lEditSendData;
74 | QComboBox *cBoxSendType;
75 | QPushButton *btnSend;
76 | QTextBrowser *textBrowser;
77 | QPushButton *btnClear;
78 | QPushButton *btnDeviceMessage;
79 | QMenuBar *menuBar;
80 | QToolBar *mainToolBar;
81 | QStatusBar *statusBar;
82 |
83 | void setupUi(QMainWindow *MainWindow)
84 | {
85 | if (MainWindow->objectName().isEmpty())
86 | MainWindow->setObjectName(QStringLiteral("MainWindow"));
87 | MainWindow->resize(649, 542);
88 | centralWidget = new QWidget(MainWindow);
89 | centralWidget->setObjectName(QStringLiteral("centralWidget"));
90 | groupBox = new QGroupBox(centralWidget);
91 | groupBox->setObjectName(QStringLiteral("groupBox"));
92 | groupBox->setGeometry(QRect(10, 10, 631, 111));
93 | label = new QLabel(groupBox);
94 | label->setObjectName(QStringLiteral("label"));
95 | label->setGeometry(QRect(20, 20, 31, 16));
96 | cBoxDevice = new QComboBox(groupBox);
97 | cBoxDevice->setObjectName(QStringLiteral("cBoxDevice"));
98 | cBoxDevice->setGeometry(QRect(58, 20, 101, 22));
99 | label_2 = new QLabel(groupBox);
100 | label_2->setObjectName(QStringLiteral("label_2"));
101 | label_2->setGeometry(QRect(180, 20, 41, 16));
102 | cBoxSuoYin = new QComboBox(groupBox);
103 | cBoxSuoYin->setObjectName(QStringLiteral("cBoxSuoYin"));
104 | cBoxSuoYin->setGeometry(QRect(220, 20, 69, 22));
105 | cBoxChannel = new QComboBox(groupBox);
106 | cBoxChannel->setObjectName(QStringLiteral("cBoxChannel"));
107 | cBoxChannel->setGeometry(QRect(360, 20, 69, 22));
108 | label_3 = new QLabel(groupBox);
109 | label_3->setObjectName(QStringLiteral("label_3"));
110 | label_3->setGeometry(QRect(320, 20, 31, 16));
111 | cBoxMode = new QComboBox(groupBox);
112 | cBoxMode->setObjectName(QStringLiteral("cBoxMode"));
113 | cBoxMode->setGeometry(QRect(60, 50, 101, 22));
114 | cBoxBoud = new QComboBox(groupBox);
115 | cBoxBoud->setObjectName(QStringLiteral("cBoxBoud"));
116 | cBoxBoud->setGeometry(QRect(220, 50, 69, 22));
117 | checkBoxBound = new QCheckBox(groupBox);
118 | checkBoxBound->setObjectName(QStringLiteral("checkBoxBound"));
119 | checkBoxBound->setGeometry(QRect(320, 50, 101, 21));
120 | lEditBound = new QLineEdit(groupBox);
121 | lEditBound->setObjectName(QStringLiteral("lEditBound"));
122 | lEditBound->setGeometry(QRect(420, 50, 113, 20));
123 | label_4 = new QLabel(groupBox);
124 | label_4->setObjectName(QStringLiteral("label_4"));
125 | label_4->setGeometry(QRect(20, 50, 31, 16));
126 | label_5 = new QLabel(groupBox);
127 | label_5->setObjectName(QStringLiteral("label_5"));
128 | label_5->setGeometry(QRect(180, 50, 41, 16));
129 | checkBox_2 = new QCheckBox(groupBox);
130 | checkBox_2->setObjectName(QStringLiteral("checkBox_2"));
131 | checkBox_2->setGeometry(QRect(520, 20, 91, 16));
132 | label_12 = new QLabel(groupBox);
133 | label_12->setObjectName(QStringLiteral("label_12"));
134 | label_12->setGeometry(QRect(10, 80, 54, 12));
135 | label_13 = new QLabel(groupBox);
136 | label_13->setObjectName(QStringLiteral("label_13"));
137 | label_13->setGeometry(QRect(170, 80, 61, 16));
138 | label_14 = new QLabel(groupBox);
139 | label_14->setObjectName(QStringLiteral("label_14"));
140 | label_14->setGeometry(QRect(350, 80, 61, 16));
141 | lEditYanShouMa = new QLineEdit(groupBox);
142 | lEditYanShouMa->setObjectName(QStringLiteral("lEditYanShouMa"));
143 | lEditYanShouMa->setGeometry(QRect(230, 80, 113, 20));
144 | lEditPingBiMa = new QLineEdit(groupBox);
145 | lEditPingBiMa->setObjectName(QStringLiteral("lEditPingBiMa"));
146 | lEditPingBiMa->setGeometry(QRect(440, 80, 113, 20));
147 | cBoxLvbo = new QComboBox(groupBox);
148 | cBoxLvbo->setObjectName(QStringLiteral("cBoxLvbo"));
149 | cBoxLvbo->setGeometry(QRect(70, 80, 69, 22));
150 | cBoxAllChannel = new QCheckBox(groupBox);
151 | cBoxAllChannel->setObjectName(QStringLiteral("cBoxAllChannel"));
152 | cBoxAllChannel->setGeometry(QRect(440, 20, 71, 16));
153 | btnOpenDevice = new QPushButton(centralWidget);
154 | btnOpenDevice->setObjectName(QStringLiteral("btnOpenDevice"));
155 | btnOpenDevice->setGeometry(QRect(20, 140, 75, 23));
156 | btnInitDevice = new QPushButton(centralWidget);
157 | btnInitDevice->setObjectName(QStringLiteral("btnInitDevice"));
158 | btnInitDevice->setGeometry(QRect(210, 140, 75, 23));
159 | btnStartDevice = new QPushButton(centralWidget);
160 | btnStartDevice->setObjectName(QStringLiteral("btnStartDevice"));
161 | btnStartDevice->setGeometry(QRect(320, 140, 75, 23));
162 | btnResetDevice = new QPushButton(centralWidget);
163 | btnResetDevice->setObjectName(QStringLiteral("btnResetDevice"));
164 | btnResetDevice->setGeometry(QRect(400, 140, 75, 23));
165 | btnCloseDevice = new QPushButton(centralWidget);
166 | btnCloseDevice->setObjectName(QStringLiteral("btnCloseDevice"));
167 | btnCloseDevice->setGeometry(QRect(500, 140, 75, 23));
168 | groupBox_2 = new QGroupBox(centralWidget);
169 | groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
170 | groupBox_2->setGeometry(QRect(0, 180, 631, 101));
171 | label_6 = new QLabel(groupBox_2);
172 | label_6->setObjectName(QStringLiteral("label_6"));
173 | label_6->setGeometry(QRect(20, 20, 41, 16));
174 | label_7 = new QLabel(groupBox_2);
175 | label_7->setObjectName(QStringLiteral("label_7"));
176 | label_7->setGeometry(QRect(180, 20, 41, 16));
177 | label_8 = new QLabel(groupBox_2);
178 | label_8->setObjectName(QStringLiteral("label_8"));
179 | label_8->setGeometry(QRect(320, 20, 31, 16));
180 | label_9 = new QLabel(groupBox_2);
181 | label_9->setObjectName(QStringLiteral("label_9"));
182 | label_9->setGeometry(QRect(20, 50, 131, 16));
183 | label_10 = new QLabel(groupBox_2);
184 | label_10->setObjectName(QStringLiteral("label_10"));
185 | label_10->setGeometry(QRect(330, 50, 61, 16));
186 | label_11 = new QLabel(groupBox_2);
187 | label_11->setObjectName(QStringLiteral("label_11"));
188 | label_11->setGeometry(QRect(440, 20, 61, 16));
189 | lEdit_ID = new QLineEdit(groupBox_2);
190 | lEdit_ID->setObjectName(QStringLiteral("lEdit_ID"));
191 | lEdit_ID->setGeometry(QRect(60, 20, 101, 20));
192 | cBoxZhenType = new QComboBox(groupBox_2);
193 | cBoxZhenType->setObjectName(QStringLiteral("cBoxZhenType"));
194 | cBoxZhenType->setGeometry(QRect(230, 20, 69, 22));
195 | cBoxProtocol = new QComboBox(groupBox_2);
196 | cBoxProtocol->setObjectName(QStringLiteral("cBoxProtocol"));
197 | cBoxProtocol->setGeometry(QRect(350, 20, 69, 22));
198 | cBoxJiaSu = new QComboBox(groupBox_2);
199 | cBoxJiaSu->setObjectName(QStringLiteral("cBoxJiaSu"));
200 | cBoxJiaSu->setGeometry(QRect(520, 20, 69, 22));
201 | lEditSendData = new QLineEdit(groupBox_2);
202 | lEditSendData->setObjectName(QStringLiteral("lEditSendData"));
203 | lEditSendData->setGeometry(QRect(140, 50, 171, 20));
204 | cBoxSendType = new QComboBox(groupBox_2);
205 | cBoxSendType->setObjectName(QStringLiteral("cBoxSendType"));
206 | cBoxSendType->setGeometry(QRect(420, 50, 69, 22));
207 | btnSend = new QPushButton(groupBox_2);
208 | btnSend->setObjectName(QStringLiteral("btnSend"));
209 | btnSend->setGeometry(QRect(520, 70, 75, 23));
210 | textBrowser = new QTextBrowser(centralWidget);
211 | textBrowser->setObjectName(QStringLiteral("textBrowser"));
212 | textBrowser->setGeometry(QRect(40, 280, 431, 192));
213 | btnClear = new QPushButton(centralWidget);
214 | btnClear->setObjectName(QStringLiteral("btnClear"));
215 | btnClear->setGeometry(QRect(510, 380, 75, 23));
216 | btnDeviceMessage = new QPushButton(centralWidget);
217 | btnDeviceMessage->setObjectName(QStringLiteral("btnDeviceMessage"));
218 | btnDeviceMessage->setGeometry(QRect(120, 140, 75, 23));
219 | MainWindow->setCentralWidget(centralWidget);
220 | menuBar = new QMenuBar(MainWindow);
221 | menuBar->setObjectName(QStringLiteral("menuBar"));
222 | menuBar->setGeometry(QRect(0, 0, 649, 23));
223 | MainWindow->setMenuBar(menuBar);
224 | mainToolBar = new QToolBar(MainWindow);
225 | mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
226 | MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
227 | statusBar = new QStatusBar(MainWindow);
228 | statusBar->setObjectName(QStringLiteral("statusBar"));
229 | MainWindow->setStatusBar(statusBar);
230 |
231 | retranslateUi(MainWindow);
232 |
233 | QMetaObject::connectSlotsByName(MainWindow);
234 | } // setupUi
235 |
236 | void retranslateUi(QMainWindow *MainWindow)
237 | {
238 | MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", Q_NULLPTR));
239 | groupBox->setTitle(QApplication::translate("MainWindow", "\350\256\276\345\244\207\350\256\276\347\275\256", Q_NULLPTR));
240 | label->setText(QApplication::translate("MainWindow", "\350\256\276\345\244\207", Q_NULLPTR));
241 | cBoxDevice->clear();
242 | cBoxDevice->insertItems(0, QStringList()
243 | << QApplication::translate("MainWindow", "USBCAN-2E-U", Q_NULLPTR)
244 | << QApplication::translate("MainWindow", "USBCAN1", Q_NULLPTR)
245 | << QApplication::translate("MainWindow", "USBCAN2", Q_NULLPTR)
246 | << QApplication::translate("MainWindow", "USBCAN-E-U", Q_NULLPTR)
247 | << QApplication::translate("MainWindow", "PCIECANFD-100U", Q_NULLPTR)
248 | << QApplication::translate("MainWindow", "PCIECANFD-200U", Q_NULLPTR)
249 | << QApplication::translate("MainWindow", "PCIECANFD-400U", Q_NULLPTR)
250 | << QApplication::translate("MainWindow", "USBCANFD-100U", Q_NULLPTR)
251 | << QApplication::translate("MainWindow", "USBCANFD-MINI", Q_NULLPTR)
252 | );
253 | label_2->setText(QApplication::translate("MainWindow", "\347\264\242\345\274\225\345\217\267", Q_NULLPTR));
254 | cBoxSuoYin->clear();
255 | cBoxSuoYin->insertItems(0, QStringList()
256 | << QApplication::translate("MainWindow", "0", Q_NULLPTR)
257 | << QApplication::translate("MainWindow", "1", Q_NULLPTR)
258 | << QApplication::translate("MainWindow", "2", Q_NULLPTR)
259 | << QApplication::translate("MainWindow", "3", Q_NULLPTR)
260 | << QApplication::translate("MainWindow", "4", Q_NULLPTR)
261 | << QApplication::translate("MainWindow", "5", Q_NULLPTR)
262 | << QApplication::translate("MainWindow", "6", Q_NULLPTR)
263 | );
264 | label_3->setText(QApplication::translate("MainWindow", "\351\200\232\351\201\223", Q_NULLPTR));
265 | cBoxMode->clear();
266 | cBoxMode->insertItems(0, QStringList()
267 | << QApplication::translate("MainWindow", "\346\255\243\345\270\270", Q_NULLPTR)
268 | << QApplication::translate("MainWindow", "\345\217\252\345\220\254", Q_NULLPTR)
269 | );
270 | cBoxBoud->clear();
271 | cBoxBoud->insertItems(0, QStringList()
272 | << QApplication::translate("MainWindow", "1Mbps", Q_NULLPTR)
273 | << QApplication::translate("MainWindow", "800kbps", Q_NULLPTR)
274 | << QApplication::translate("MainWindow", "500kbps", Q_NULLPTR)
275 | << QApplication::translate("MainWindow", "250kbps", Q_NULLPTR)
276 | << QApplication::translate("MainWindow", "125kbps", Q_NULLPTR)
277 | << QApplication::translate("MainWindow", "100kbps", Q_NULLPTR)
278 | << QApplication::translate("MainWindow", "50kbps", Q_NULLPTR)
279 | << QApplication::translate("MainWindow", "20kbps", Q_NULLPTR)
280 | << QApplication::translate("MainWindow", "10kbps", Q_NULLPTR)
281 | << QApplication::translate("MainWindow", "5kbps", Q_NULLPTR)
282 | );
283 | checkBoxBound->setText(QApplication::translate("MainWindow", "\350\207\252\345\256\232\344\271\211\346\263\242\347\211\271\347\216\207", Q_NULLPTR));
284 | label_4->setText(QApplication::translate("MainWindow", "\346\250\241\345\274\217", Q_NULLPTR));
285 | label_5->setText(QApplication::translate("MainWindow", "\346\263\242\347\211\271\347\216\207", Q_NULLPTR));
286 | checkBox_2->setText(QApplication::translate("MainWindow", "\347\273\210\347\253\257\347\224\265\351\230\273\344\275\277\350\203\275", Q_NULLPTR));
287 | label_12->setText(QApplication::translate("MainWindow", "\346\273\244\346\263\242\346\250\241\345\274\217", Q_NULLPTR));
288 | label_13->setText(QApplication::translate("MainWindow", "\351\252\214\346\224\266\347\240\201(0x)", Q_NULLPTR));
289 | label_14->setText(QApplication::translate("MainWindow", "\345\261\217\350\224\275\347\240\201(0x)", Q_NULLPTR));
290 | lEditYanShouMa->setText(QApplication::translate("MainWindow", "00000000", Q_NULLPTR));
291 | lEditPingBiMa->setText(QApplication::translate("MainWindow", "FFFFFFFF", Q_NULLPTR));
292 | cBoxLvbo->clear();
293 | cBoxLvbo->insertItems(0, QStringList()
294 | << QApplication::translate("MainWindow", "\345\215\225\346\273\244\346\263\242", Q_NULLPTR)
295 | << QApplication::translate("MainWindow", "\345\217\214\346\273\244\346\263\242", Q_NULLPTR)
296 | );
297 | cBoxAllChannel->setText(QApplication::translate("MainWindow", "\346\211\200\346\234\211\351\200\232\351\201\223", Q_NULLPTR));
298 | btnOpenDevice->setText(QApplication::translate("MainWindow", "\346\211\223\345\274\200\350\256\276\345\244\207", Q_NULLPTR));
299 | btnInitDevice->setText(QApplication::translate("MainWindow", "\345\210\235\345\247\213\345\214\226CAN", Q_NULLPTR));
300 | btnStartDevice->setText(QApplication::translate("MainWindow", "\345\220\257\345\212\250CAN", Q_NULLPTR));
301 | btnResetDevice->setText(QApplication::translate("MainWindow", "\345\244\215\344\275\215", Q_NULLPTR));
302 | btnCloseDevice->setText(QApplication::translate("MainWindow", "\345\205\263\351\227\255\350\256\276\345\244\207", Q_NULLPTR));
303 | groupBox_2->setTitle(QApplication::translate("MainWindow", "\350\256\276\345\244\207\350\256\276\347\275\256", Q_NULLPTR));
304 | label_6->setText(QApplication::translate("MainWindow", "ID(0x)", Q_NULLPTR));
305 | label_7->setText(QApplication::translate("MainWindow", "\345\270\247\347\261\273\345\236\213", Q_NULLPTR));
306 | label_8->setText(QApplication::translate("MainWindow", "\345\215\217\350\256\256", Q_NULLPTR));
307 | label_9->setText(QApplication::translate("MainWindow", "\346\225\260\346\215\256(0x,\344\273\245\347\251\272\346\240\274\351\232\224\345\274\200)", Q_NULLPTR));
308 | label_10->setText(QApplication::translate("MainWindow", "\345\217\221\351\200\201\346\226\271\345\274\217", Q_NULLPTR));
309 | label_11->setText(QApplication::translate("MainWindow", "CANFD\345\212\240\351\200\237", Q_NULLPTR));
310 | lEdit_ID->setText(QApplication::translate("MainWindow", "00000001", Q_NULLPTR));
311 | cBoxZhenType->clear();
312 | cBoxZhenType->insertItems(0, QStringList()
313 | << QApplication::translate("MainWindow", "\346\211\251\345\261\225\345\270\247", Q_NULLPTR)
314 | << QApplication::translate("MainWindow", "\346\240\207\345\207\206\345\270\247", Q_NULLPTR)
315 | );
316 | cBoxProtocol->clear();
317 | cBoxProtocol->insertItems(0, QStringList()
318 | << QApplication::translate("MainWindow", "CAN", Q_NULLPTR)
319 | << QApplication::translate("MainWindow", "CANFD", Q_NULLPTR)
320 | );
321 | cBoxJiaSu->clear();
322 | cBoxJiaSu->insertItems(0, QStringList()
323 | << QApplication::translate("MainWindow", "\345\220\246", Q_NULLPTR)
324 | << QApplication::translate("MainWindow", "\346\230\257", Q_NULLPTR)
325 | );
326 | lEditSendData->setText(QApplication::translate("MainWindow", "00 11 22 33 44 55 66 77", Q_NULLPTR));
327 | cBoxSendType->clear();
328 | cBoxSendType->insertItems(0, QStringList()
329 | << QApplication::translate("MainWindow", "\346\255\243\345\270\270\345\217\221\351\200\201", Q_NULLPTR)
330 | << QApplication::translate("MainWindow", "\345\215\225\346\254\241\345\217\221\351\200\201", Q_NULLPTR)
331 | << QApplication::translate("MainWindow", "\350\207\252\345\217\221\350\207\252\346\224\266", Q_NULLPTR)
332 | );
333 | btnSend->setText(QApplication::translate("MainWindow", "\345\217\221\351\200\201", Q_NULLPTR));
334 | btnClear->setText(QApplication::translate("MainWindow", "\346\270\205\347\251\272", Q_NULLPTR));
335 | btnDeviceMessage->setText(QApplication::translate("MainWindow", "\350\256\276\345\244\207\344\277\241\346\201\257", Q_NULLPTR));
336 | } // retranslateUi
337 |
338 | };
339 |
340 | namespace Ui {
341 | class MainWindow: public Ui_MainWindow {};
342 | } // namespace Ui
343 |
344 | QT_END_NAMESPACE
345 |
346 | #endif // UI_MAINWINDOW_H
347 |
--------------------------------------------------------------------------------
/main.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include
3 |
4 | int main(int argc, char *argv[])
5 | {
6 | QApplication a(argc, argv);
7 | MainWindow w;
8 | w.show();
9 |
10 | return a.exec();
11 | }
12 |
--------------------------------------------------------------------------------
/mainwindow.cpp:
--------------------------------------------------------------------------------
1 | #include "mainwindow.h"
2 | #include "ui_mainwindow.h"
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 |
9 | int device_index;
10 | typedef struct _DeviceInfo
11 | {
12 | UINT device_type; //设备类型
13 | UINT channel_count;//设备的通道个数
14 | }DeviceInfo;
15 | static const DeviceInfo kDeviceType[] = {
16 | {ZCAN_USBCAN_2E_U, 2},
17 | {ZCAN_USBCAN1, 1},
18 | {ZCAN_USBCAN2, 2},
19 | {ZCAN_USBCAN_E_U, 1},
20 | {ZCAN_PCIE_CANFD_100U, 1},
21 | {ZCAN_PCIE_CANFD_200U, 2},
22 | {ZCAN_PCIE_CANFD_400U, 4},
23 | {ZCAN_USBCANFD_200U, 2},
24 | {ZCAN_USBCANFD_100U, 1},
25 | {ZCAN_USBCANFD_MINI, 1},
26 | {ZCAN_CANETTCP, 1},
27 | {ZCAN_CANETUDP, 1},
28 | {ZCAN_CLOUD, 1},
29 | };
30 | MainWindow::MainWindow(QWidget *parent) :
31 | QMainWindow(parent),
32 | ui(new Ui::MainWindow)
33 | {
34 | ui->setupUi(this);
35 |
36 | //显示默认设备的通道数
37 | ui->cBoxChannel->clear();//清除一次之前的数据
38 | device_index= ui->cBoxDevice->currentIndex(); //选择的设备
39 | ui->textBrowser->setText(QString::number(kDeviceType[device_index].channel_count ));
40 | for (int i=0;icBoxChannel->addItem(QString::number(i));
43 | }
44 |
45 | /* 1ms 定时触发事件 start */
46 | QTimer *timer=new QTimer(this);
47 | timer->start(1);
48 | connect(timer,SIGNAL(timeout()),this,SLOT(update_1ms()));
49 | update_1ms();
50 | /* 1ms 定时触发事件 end */
51 | }
52 |
53 | MainWindow::~MainWindow()
54 | {
55 | delete ui;
56 | }
57 |
58 | void MainWindow::update_1ms(void) //每1ms需要更新的信息
59 | {
60 | //
61 | }
62 |
63 | void MainWindow::on_btnOpenDevice_clicked()
64 | {
65 | device_index= ui->cBoxDevice->currentIndex(); //选择的设备类型
66 | suoYin_index=ui->cBoxSuoYin->currentIndex(); //索引号
67 | device_handle_ = ZCAN_OpenDevice(kDeviceType[device_index].device_type, suoYin_index, 0); //设备类型 索引号 保留
68 | if(INVALID_DEVICE_HANDLE == device_handle_)
69 | {
70 | qDebug()<<"打开设备失败!"<textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
72 | ui->textBrowser->insertPlainText("打开设备失败!\r\n");
73 | return;
74 | }
75 | else
76 | {
77 | device_opend_=true;
78 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
79 | ui->textBrowser->insertPlainText("打开设备成功!\r\n");
80 | }
81 |
82 | }
83 |
84 | void MainWindow::on_cBoxDevice_currentIndexChanged(int index)
85 | {
86 | // device_index= ui->cBoxDevice->currentIndex(); //选择的设备
87 | ui->cBoxChannel->clear();//清除一次之前的数据
88 | for (int i=0;icBoxChannel->addItem(QString::number(i));
91 | }
92 | ui->textBrowser->setText(QString::number(kDeviceType[device_index].channel_count ));
93 | }
94 |
95 | static const UINT kAbitTiming[] = {
96 | 0x00018B2E,//1Mbps
97 | 0x00018E3A,//800kbps
98 | 0x0001975E,//500kbps
99 | 0x0001AFBE,//250kbps
100 | 0x0041AFBE,//125kbps
101 | 0x0041BBEE,//100kbps
102 | 0x00C1BBEE //50kbps
103 | };
104 | static const UINT kDbitTiming[] = {
105 | 0x00010207,//5Mbps
106 | 0x0001020A,//4Mbps
107 | 0x0041020A,//2Mbps
108 | 0x0081830E //1Mbps
109 | };
110 | static const BYTE kTiming0[] = {
111 | 0x00,//1000kbps
112 | 0x00,//800kbps
113 | 0x00,//500kbps
114 | 0x01,//250kbps
115 | 0x03,//125kbps
116 | 0x04,//100kbps
117 | 0x09,//50kbps
118 | 0x18,//20kbps
119 | 0x31,//10kbps
120 | 0xBF //5kbps
121 | };
122 | static const BYTE kTiming1[] = {
123 | 0x14,//1000kbps
124 | 0x16,//800kbps
125 | 0x1C,//500kbps
126 | 0x1C,//250kbps
127 | 0x1C,//125kbps
128 | 0x1C,//100kbps
129 | 0x1C,//50kbps
130 | 0x1C,//20kbps
131 | 0x1C,//10kbps
132 | 0xFF //5kbps
133 | };
134 | static const unsigned kBaudrate[] = {
135 | 1000000,
136 | 800000,
137 | 500000,
138 | 250000,
139 | 125000,
140 | 100000,
141 | 50000,
142 | 20000,
143 | 10000,
144 | 5000
145 | };
146 |
147 | void MainWindow::on_btnInitDevice_clicked()
148 | {
149 | if(!device_opend_)
150 | {
151 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
152 | ui->textBrowser->insertPlainText("设备未打开!\r\n");
153 | return;
154 | }
155 | ZCAN_CHANNEL_INIT_CONFIG config;
156 | memset(&config,0,sizeof(config));
157 | UINT type=kDeviceType[device_index].device_type;
158 | const bool cloudDevice = type==ZCAN_CLOUD;
159 | const bool netDevice = type==ZCAN_CANETUDP || type==ZCAN_CANETTCP;
160 | const bool tcpDevice = type==ZCAN_CANETTCP;
161 | const bool server = net_mode_index_ == 0;
162 | const bool usbcanfd = type==ZCAN_USBCANFD_100U ||
163 | type==ZCAN_USBCANFD_200U || type==ZCAN_USBCANFD_MINI;
164 | const bool pciecanfd = type==ZCAN_PCIE_CANFD_100U ||
165 | type==ZCAN_PCIE_CANFD_200U || type==ZCAN_PCIE_CANFD_400U;
166 | const bool canfdDevice = usbcanfd || pciecanfd;
167 | // qDebug()<textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
189 | ui->textBrowser->insertPlainText("设置波特率失败!\r\n");
190 | return;
191 | }
192 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
193 | ui->textBrowser->insertPlainText("设置波特率成功!\r\n");
194 | }
195 | if (pciecanfd) //PCIE CAN 设备,不用。
196 | {
197 | //设置发送方式
198 | if (!SetTransmitType())
199 | {
200 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
201 | ui->textBrowser->insertPlainText("设置发送方式失败!\r\n");
202 | return;
203 | }
204 | }
205 | if (usbcanfd) //USBCANFD 设备 不用。
206 | {
207 | IProperty* p = GetIProperty(device_handle_);
208 | channel_index_=ui->cBoxChannel->currentIndex(); //获取当前通道值
209 | QString str=QString::number(channel_index_,10); //数字转字符串
210 | QString path_=str+"/canfd_standard"; //字符串拼接
211 |
212 | char *path;
213 | path=path_.toLatin1().data(); //字符串转char
214 | property_->SetValue(path, 0);
215 | }
216 | if (canfdDevice) //USBFD 设备 不用。
217 | {
218 | work_mode_index_=ui->cBoxMode->currentIndex();
219 | filter_mode_=ui->cBoxLvbo->currentIndex();
220 | config.can_type = TYPE_CANFD;
221 | config.canfd.mode = work_mode_index_;
222 | config.canfd.abit_timing = kAbitTiming[abit_baud_index_];
223 | config.canfd.dbit_timing = kDbitTiming[dbit_baud_index_];
224 | config.canfd.filter = filter_mode_;
225 | // config.canfd.acc_code = _tcstoul(acc_code_, 0, 16);
226 | // config.canfd.acc_mask = _tcstoul(acc_mask_, 0, 16);
227 | // config.canfd.acc_code = acc_code_;
228 | // config.canfd.acc_mask = acc_mask_;
229 | }
230 | else
231 | {
232 | baud_index_=ui->cBoxBoud->currentIndex();
233 | work_mode_index_=ui->cBoxMode->currentIndex();
234 | config.can_type = TYPE_CAN;
235 | config.can.mode = work_mode_index_;
236 | config.can.timing0 = kTiming0[baud_index_];
237 | config.can.timing1 = kTiming1[baud_index_];
238 | config.can.filter = filter_mode_;
239 | config.can.acc_code = 0;
240 | config.can.acc_mask = 0xFFFFFFFF;
241 | }
242 | }
243 | channel_handle_ = ZCAN_InitCAN(device_handle_, channel_index_, &config);
244 | if (INVALID_CHANNEL_HANDLE == channel_handle_)
245 | {
246 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
247 | ui->textBrowser->insertPlainText("初始化CAN失败!\r\n");
248 | return;
249 | }
250 | else
251 | {
252 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
253 | ui->textBrowser->insertPlainText("初始化CAN成功!\r\n");
254 | }
255 | }
256 |
257 | void MainWindow::on_btnDeviceMessage_clicked()
258 | {
259 | UINT status=ZCAN_GetDeviceInf(device_handle_,deviceInfo);
260 | QString hw_ver;
261 | QString fw_ver;
262 | QString dr_ver;
263 | QString in_ver;
264 | QString irq_num;
265 | QString can_num;
266 | QString str_SN; //811309160285\000\000\000\000\000\000\000\000
267 | QString str_hw_type;
268 | QString disp_text;
269 |
270 | if(STATUS_OK==status)
271 | {
272 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
273 | ui->textBrowser->insertPlainText("读取设备信息成功!\r\n");
274 |
275 |
276 | hw_ver=(QByteArray::number(deviceInfo->hw_Version,16));
277 | fw_ver=(QByteArray::number(deviceInfo->fw_Version,16));
278 | dr_ver=(QByteArray::number(deviceInfo->dr_Version,16));
279 | in_ver=(QByteArray::number(deviceInfo->in_Version,16));
280 | irq_num=(QByteArray::number(deviceInfo->irq_Num,16));
281 | can_num=(QByteArray::number(deviceInfo->can_Num,16));
282 | str_SN=char2String(deviceInfo->str_Serial_Num,20);
283 | str_hw_type=char2String(deviceInfo->str_hw_Type,40);
284 |
285 | hw_ver="硬件版本号:V"+hw_ver+"\r\n";
286 | fw_ver="固件版本号:V"+fw_ver+"\r\n";
287 | dr_ver="驱动程序版本号:V"+dr_ver+"\r\n";
288 | in_ver="接口库版本号:V"+in_ver+"\r\n";
289 | irq_num="板卡所用中断号:"+irq_num+"\r\n";
290 | can_num="共有CAN路数:"+can_num+"\r\n";
291 | str_SN="板卡序列号:"+str_SN+"\r\n";
292 | str_hw_type="硬件类型:"+str_hw_type+"\r\n";
293 | disp_text="\r\n\r\n"+hw_ver+fw_ver+dr_ver+in_ver+irq_num+can_num+str_SN+str_hw_type;
294 | QMessageBox::information(NULL,QString("板卡信息"),disp_text);
295 | }
296 | else
297 | {
298 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
299 | ui->textBrowser->insertPlainText("读取设备信息失败!\r\n");
300 | return;
301 | }
302 |
303 | }
304 | bool MainWindow::SetBaudrate() //设备波特率
305 | {
306 | //通道号
307 | channel_index_=ui->cBoxChannel->currentIndex(); //获取当通道号
308 | QString str=QString::number(channel_index_,10); //数字转字符串
309 | QString path_=str+"/canfd_standard"; //字符串拼接
310 | char *path;
311 | path=path_.toLatin1().data(); //字符串转char
312 |
313 | //波特率
314 | baud_index_=ui->cBoxBoud->currentIndex();
315 | int temp=kBaudrate[baud_index_];
316 | QString str2=QString::number(temp,10);
317 | char *value;
318 | value=str2.toLatin1().data();
319 | property_->SetValue(path, value);
320 | qDebug()<textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
336 | ui->textBrowser->insertPlainText("设备关闭成功!\r\n");
337 | }
338 | else //设备关闭失败
339 | {
340 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
341 | ui->textBrowser->insertPlainText("设备关闭失败!\r\n");
342 | }
343 | }
344 | QString MainWindow::char2String(UCHAR *p,uint8_t length)
345 | {
346 | uint8_t i;
347 | QString str;
348 | for(i=0;itextBrowser->setText("");
358 | }
359 |
360 | void MainWindow::on_btnStartDevice_clicked()
361 | {
362 | if (ZCAN_StartCAN(channel_handle_) != STATUS_OK)
363 | {
364 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
365 | ui->textBrowser->insertPlainText("启动CAN失败!\r\n");
366 | return;
367 | }
368 | else
369 | {
370 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
371 | ui->textBrowser->insertPlainText("启动CAN成功!\r\n");
372 | }
373 | start_ = true;
374 | }
375 |
376 | void MainWindow::on_btnResetDevice_clicked()
377 | {
378 | if (ZCAN_ResetCAN(channel_handle_) != STATUS_OK)
379 | {
380 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
381 | ui->textBrowser->insertPlainText("复位CAN失败!\r\n");
382 | return;
383 | }
384 | else
385 | {
386 | ui->textBrowser->moveCursor(QTextCursor::Start); //显示内容在第一行显示。
387 | ui->textBrowser->insertPlainText("复位CAN成功!\r\n");
388 | }
389 | start_ = false;
390 | }
391 |
--------------------------------------------------------------------------------
/mainwindow.h:
--------------------------------------------------------------------------------
1 | #ifndef MAINWINDOW_H
2 | #define MAINWINDOW_H
3 |
4 | #include
5 | #include "zlgcan_x86/zlgcan.h"
6 | #include
7 | #include
8 | #include
9 |
10 | namespace Ui {
11 | class MainWindow;
12 | }
13 |
14 | class MainWindow : public QMainWindow
15 | {
16 | Q_OBJECT
17 |
18 | public:
19 | explicit MainWindow(QWidget *parent = nullptr);
20 |
21 | ~MainWindow();
22 |
23 | private slots:
24 | void on_btnOpenDevice_clicked();
25 | void update_1ms(void);
26 | void on_cBoxDevice_currentIndexChanged(int index);
27 |
28 | void on_btnInitDevice_clicked();
29 |
30 | void on_btnDeviceMessage_clicked();
31 |
32 | void on_btnCloseDevice_clicked();
33 |
34 | void on_btnClear_clicked();
35 |
36 | void on_btnStartDevice_clicked();
37 |
38 | void on_btnResetDevice_clicked();
39 |
40 | private:
41 | Ui::MainWindow *ui;
42 |
43 | int device_index_;
44 | int channel_index_;
45 | bool device_opend_=false; //设备打开标志,more默认为false
46 | bool start_; //CAN启动标志
47 | int net_mode_index_;
48 | int work_mode_index_;
49 | int abit_baud_index_;
50 | int dbit_baud_index_;
51 | int filter_mode_;
52 | int baud_index_;
53 | int suoYin_index;
54 | IProperty* property_;
55 | DEVICE_HANDLE device_handle_;
56 | CHANNEL_HANDLE channel_handle_;
57 | ZCAN_DEVICE_INFO* deviceInfo;
58 |
59 | bool SetBaudrate(); //设置波特率
60 | bool SetTransmitType();//发送方式
61 | QString char2String(UCHAR *p,uint8_t length);
62 |
63 | };
64 |
65 | #endif // MAINWINDOW_H
66 |
--------------------------------------------------------------------------------
/zlgcan_x86/canframe.h:
--------------------------------------------------------------------------------
1 | #ifndef CANFRAME_H_
2 | #define CANFRAME_H_
3 |
4 |
5 | #include "typedef.h"
6 |
7 | /* special address description flags for the MAKE_CAN_ID */
8 | #define CAN_EFF_FLAG 0x80000000U /* EFF/SFF is set in the MSB */
9 | #define CAN_RTR_FLAG 0x40000000U /* remote transmission request */
10 | #define CAN_ERR_FLAG 0x20000000U /* error message frame */
11 | #define CAN_ID_FLAG 0x1FFFFFFFU /* id */
12 |
13 | /* valid bits in CAN ID for frame formats */
14 | #define CAN_SFF_MASK 0x000007FFU /* standard frame format (SFF) */
15 | #define CAN_EFF_MASK 0x1FFFFFFFU /* extended frame format (EFF) */
16 | #define CAN_ERR_MASK 0x1FFFFFFFU /* omit EFF, RTR, ERR flags */
17 |
18 | /*
19 | * Controller Area Network Identifier structure
20 | *
21 | * bit 0-28 : CAN identifier (11/29 bit)
22 | * bit 29 : error message frame flag (0 = data frame, 1 = error message)
23 | * bit 30 : remote transmission request flag (1 = rtr frame)
24 | * bit 31 : frame format flag (0 = standard 11 bit, 1 = extended 29 bit)
25 | */
26 | typedef UINT canid_t;
27 |
28 | #define CAN_SFF_ID_BITS 11
29 | #define CAN_EFF_ID_BITS 29
30 |
31 | /*
32 | * Controller Area Network Error Message Frame Mask structure
33 | *
34 | * bit 0-28 : error class mask (see include/linux/can/error.h)
35 | * bit 29-31 : set to zero
36 | */
37 | typedef UINT can_err_mask_t;
38 |
39 | /* CAN payload length and DLC definitions according to ISO 11898-1 */
40 | #define CAN_MAX_DLC 8
41 | #define CAN_MAX_DLEN 8
42 |
43 | /* CAN FD payload length and DLC definitions according to ISO 11898-7 */
44 | #define CANFD_MAX_DLC 15
45 | #define CANFD_MAX_DLEN 64
46 |
47 | // make id
48 | #define MAKE_CAN_ID(id, eff, rtr, err) (id | (!!(eff) << 31) | (!!(rtr) << 30) | (!!(err) << 29))
49 | #define IS_EFF(id) (!!(id & CAN_EFF_FLAG)) //1:extend frame 0:standard frame
50 | #define IS_RTR(id) (!!(id & CAN_RTR_FLAG)) //1:remote frame 0:data frame
51 | #define IS_ERR(id) (!!(id & CAN_ERR_FLAG)) //1:error frame 0:normal frame
52 | #define GET_ID(id) (id & CAN_ID_FLAG)
53 | /**
54 | * struct can_frame - basic CAN frame structure
55 | * @can_id: CAN ID of the frame and CAN_*_FLAG flags, see canid_t definition
56 | * @can_dlc: frame payload length in byte (0 .. 8) aka data length code
57 | * N.B. the DLC field from ISO 11898-1 Chapter 8.4.2.3 has a 1:1
58 | * mapping of the 'data length code' to the real payload length
59 | * @__pad: padding
60 | * @__res0: reserved / padding
61 | * @__res1: reserved / padding
62 | * @data: CAN frame payload (up to 8 byte)
63 | */
64 | typedef struct {
65 | canid_t can_id; /* 32 bit MAKE_CAN_ID + EFF/RTR/ERR flags */
66 | BYTE can_dlc; /* frame payload length in byte (0 .. CAN_MAX_DLEN) */
67 | BYTE __pad; /* padding */
68 | BYTE __res0; /* reserved / padding */
69 | BYTE __res1; /* reserved / padding */
70 | BYTE data[CAN_MAX_DLEN]/* __attribute__((aligned(8)))*/;
71 | }can_frame;
72 |
73 | /*
74 | * defined bits for canfd_frame.flags
75 | *
76 | * The use of struct canfd_frame implies the Extended Data Length (EDL) bit to
77 | * be set in the CAN frame bitstream on the wire. The EDL bit switch turns
78 | * the CAN controllers bitstream processor into the CAN FD mode which creates
79 | * two new options within the CAN FD frame specification:
80 | *
81 | * Bit Rate Switch - to indicate a second bitrate is/was used for the payload
82 | * Error State Indicator - represents the error state of the transmitting node
83 | *
84 | * As the CANFD_ESI bit is internally generated by the transmitting CAN
85 | * controller only the CANFD_BRS bit is relevant for real CAN controllers when
86 | * building a CAN FD frame for transmission. Setting the CANFD_ESI bit can make
87 | * sense for virtual CAN interfaces to test applications with echoed frames.
88 | */
89 | #define CANFD_BRS 0x01 /* bit rate switch (second bitrate for payload data) */
90 | #define CANFD_ESI 0x02 /* error state indicator of the transmitting node */
91 |
92 | /**
93 | * struct canfd_frame - CAN flexible data rate frame structure
94 | * @can_id: CAN ID of the frame and CAN_*_FLAG flags, see canid_t definition
95 | * @len: frame payload length in byte (0 .. CANFD_MAX_DLEN)
96 | * @flags: additional flags for CAN FD
97 | * @__res0: reserved / padding
98 | * @__res1: reserved / padding
99 | * @data: CAN FD frame payload (up to CANFD_MAX_DLEN byte)
100 | */
101 | typedef struct {
102 | canid_t can_id; /* 32 bit MAKE_CAN_ID + EFF/RTR/ERR flags */
103 | BYTE len; /* frame payload length in byte */
104 | BYTE flags; /* additional flags for CAN FD,i.e error code */
105 | BYTE __res0; /* reserved / padding */
106 | BYTE __res1; /* reserved / padding */
107 | BYTE data[CANFD_MAX_DLEN]/* __attribute__((aligned(8)))*/;
108 | }canfd_frame;
109 |
110 | #define CAN_MTU (sizeof(struct can_frame))
111 | #define CANFD_MTU (sizeof(struct canfd_frame))
112 |
113 | #endif //CANFRAME_H_
--------------------------------------------------------------------------------
/zlgcan_x86/config.h:
--------------------------------------------------------------------------------
1 | #ifndef ZLG_CONFIG_INTF_H
2 | #define ZLG_CONFIG_INTF_H
3 |
4 | struct _Meta;
5 | struct _Pair;
6 | struct _Options;
7 | struct _ConfigNode;
8 |
9 | typedef struct _Meta Meta;
10 | typedef struct _Pair Pair;
11 | typedef struct _Options Options;
12 | typedef struct _ConfigNode ConfigNode;
13 |
14 | /**
15 | * \struct Options
16 | * 节点mata的可选项。
17 | */
18 | struct _Options
19 | {
20 | /*! 可选项的数据类型*/
21 | const char * type;
22 |
23 | /*! 可选项的值*/
24 | const char * value;
25 |
26 | /*! 可选项的描述信息*/
27 | const char * desc;
28 | };
29 |
30 | /**
31 | * \struct Meta
32 | * 节点mata信息。
33 | */
34 | struct _Meta
35 | {
36 | /*! 配置项的数据类型 */
37 | const char * type;
38 |
39 | /*! 配置项的说明性信息 */
40 | const char * desc;
41 |
42 | /*! 配置项是否是只读的,缺省为可读写 */
43 | int read_only;
44 |
45 | /*! 配置项输入格式的提示 */
46 | const char * format;
47 |
48 | /*! 对于数值类型的配置项来说是最小值,对字符串的配置项来说是最小长度(字节数)。 */
49 | double min_value;
50 |
51 | /*! 对于数值类型的配置项来说是最大值,对字符串的配置项来说是最大长度(字节数)。 */
52 | double max_value;
53 |
54 | /*! 配置项的单位 */
55 | const char * unit;
56 |
57 | /*! 通过旋钮/滚轮等方式修改配置项时的增量 */
58 | double delta;
59 |
60 | /*! 配置项是否可见, true可见,false不可见,也可以绑定表达式(表达式使用参考demo3),缺省可见 */
61 | const char* visible;
62 |
63 | /*! 该配置项是否使能, true使能,false不使能,也可以绑定表达式(表达式使用参考demo3)。缺省使能 */
64 | const char* enable;
65 |
66 | /*! 配置项的可选值,仅但『type』为间接类型时有效 */
67 | int editable;
68 |
69 | /*! 配置项的可选值,仅但『type』为间接类型时有效,以NULL结束 */
70 | Options** options;
71 | };
72 |
73 | /**
74 | * \struct Pair
75 | * 属性的KeyValue对。
76 | */
77 | struct _Pair
78 | {
79 | const char * key;
80 | const char * value;
81 | };
82 |
83 | /**
84 | * \struct ConfigNode
85 | * ConfigNode
86 | */
87 | struct _ConfigNode
88 | {
89 | /*! 节点的名字 */
90 | const char * name;
91 | /*! 节点的值 同样可以绑定表达式*/
92 | const char * value;
93 | /*! 节点值的表达式,当有该表达式时,value由此表达式计算而来*/
94 | const char* binding_value;
95 | /*! 该节点的路径 */
96 | const char * path;
97 | /*! 配置项信息 */
98 | Meta* meta_info;
99 | /*! 该节点的子节点, 以NULL结束*/
100 | ConfigNode** children;
101 | /*! 该节点的属性, 以NULL结束*/
102 | Pair** attributes;
103 | };
104 |
105 | /**
106 | * \brief 获取属性的描述信息。
107 | *
108 | * \retval ConfigNode
109 | */
110 | typedef const ConfigNode* (*GetPropertysFunc)();
111 |
112 | /**
113 | * \brief 设置指定路径的属性的值。
114 | * \param[in] path : 属性的路径。
115 | * \param[in] value : 属性的值。
116 | *
117 | * \retval 成功返回1,失败返回0。
118 | */
119 | typedef int (*SetValueFunc)(const char* path, const char* value);
120 |
121 | /**
122 | * \brief 获取指定路径的属性的值。
123 | * \param[in] path : 属性的路径。
124 | * \retval 成功返回属性的值,失败返回NULL。
125 | */
126 | typedef const char* (*GetValueFunc)(const char* path);
127 |
128 | typedef struct tagIProperty
129 | {
130 | SetValueFunc SetValue;
131 | GetValueFunc GetValue;
132 | GetPropertysFunc GetPropertys;
133 | }IProperty;
134 |
135 | #endif/*ZLG_CONFIG_INTF_H*/
136 |
137 |
--------------------------------------------------------------------------------
/zlgcan_x86/typedef.h:
--------------------------------------------------------------------------------
1 | #ifndef TYPEDEF_H_
2 | #define TYPEDEF_H_
3 |
4 | typedef unsigned char BYTE;
5 | typedef unsigned int UINT;
6 | typedef unsigned long ULONG;
7 | typedef unsigned long long UINT64;
8 | typedef unsigned short USHORT;
9 | typedef unsigned char UCHAR;
10 |
11 | #endif //TYPEDEF_H_
--------------------------------------------------------------------------------
/zlgcan_x86/zlgcan.h:
--------------------------------------------------------------------------------
1 | #ifndef ZLGCAN_H_
2 | #define ZLGCAN_H_
3 | #include
4 | #include"canframe.h"
5 | #include "zlgcan_x86/config.h"
6 |
7 | #define ZCAN_PCI5121 1
8 | #define ZCAN_PCI9810 2
9 | #define ZCAN_USBCAN1 3
10 | #define ZCAN_USBCAN2 4
11 | #define ZCAN_PCI9820 5
12 | #define ZCAN_CAN232 6
13 | #define ZCAN_PCI5110 7
14 | #define ZCAN_CANLITE 8
15 | #define ZCAN_ISA9620 9
16 | #define ZCAN_ISA5420 10
17 | #define ZCAN_PC104CAN 11
18 | #define ZCAN_CANETUDP 12
19 | #define ZCAN_CANETE 12
20 | #define ZCAN_DNP9810 13
21 | #define ZCAN_PCI9840 14
22 | #define ZCAN_PC104CAN2 15
23 | #define ZCAN_PCI9820I 16
24 | #define ZCAN_CANETTCP 17
25 | #define ZCAN_PCIE_9220 18
26 | #define ZCAN_PCI5010U 19
27 | #define ZCAN_USBCAN_E_U 20
28 | #define ZCAN_USBCAN_2E_U 21
29 | #define ZCAN_PCI5020U 22
30 | #define ZCAN_EG20T_CAN 23
31 | #define ZCAN_PCIE9221 24
32 | #define ZCAN_WIFICAN_TCP 25
33 | #define ZCAN_WIFICAN_UDP 26
34 | #define ZCAN_PCIe9120 27
35 | #define ZCAN_PCIe9110 28
36 | #define ZCAN_PCIe9140 29
37 | #define ZCAN_USBCAN_4E_U 31
38 | #define ZCAN_CANDTU_200UR 32
39 | #define ZCAN_CANDTU_MINI 33
40 | #define ZCAN_USBCAN_8E_U 34
41 | #define ZCAN_CANREPLAY 35
42 | #define ZCAN_CANDTU_NET 36
43 | #define ZCAN_CANDTU_100UR 37
44 | #define ZCAN_PCIE_CANFD_100U 38
45 | #define ZCAN_PCIE_CANFD_200U 39
46 | #define ZCAN_PCIE_CANFD_400U 40
47 | #define ZCAN_USBCANFD_200U 41
48 | #define ZCAN_USBCANFD_100U 42
49 | #define ZCAN_USBCANFD_MINI 43
50 | #define ZCAN_CANFDCOM_100IE 44
51 | #define ZCAN_CANSCOPE 45
52 | #define ZCAN_CLOUD 46
53 | #define ZCAN_CANDTU_NET_400 47
54 | #define ZCAN_CANFDNET_TCP 48
55 | #define ZCAN_CANFDNET_UDP 49
56 |
57 | #define ZCAN_VIRTUAL_DEVICE 99
58 |
59 | #define ZCAN_ERROR_CAN_OVERFLOW 0x0001
60 | #define ZCAN_ERROR_CAN_ERRALARM 0x0002
61 | #define ZCAN_ERROR_CAN_PASSIVE 0x0004
62 | #define ZCAN_ERROR_CAN_LOSE 0x0008
63 | #define ZCAN_ERROR_CAN_BUSERR 0x0010
64 | #define ZCAN_ERROR_CAN_BUSOFF 0x0020
65 | #define ZCAN_ERROR_CAN_BUFFER_OVERFLOW 0x0040
66 |
67 | #define ZCAN_ERROR_DEVICEOPENED 0x0100
68 | #define ZCAN_ERROR_DEVICEOPEN 0x0200
69 | #define ZCAN_ERROR_DEVICENOTOPEN 0x0400
70 | #define ZCAN_ERROR_BUFFEROVERFLOW 0x0800
71 | #define ZCAN_ERROR_DEVICENOTEXIST 0x1000
72 | #define ZCAN_ERROR_LOADKERNELDLL 0x2000
73 | #define ZCAN_ERROR_CMDFAILED 0x4000
74 | #define ZCAN_ERROR_BUFFERCREATE 0x8000
75 |
76 | #define ZCAN_ERROR_CANETE_PORTOPENED 0x00010000
77 | #define ZCAN_ERROR_CANETE_INDEXUSED 0x00020000
78 | #define ZCAN_ERROR_REF_TYPE_ID 0x00030001
79 | #define ZCAN_ERROR_CREATE_SOCKET 0x00030002
80 | #define ZCAN_ERROR_OPEN_CONNECT 0x00030003
81 | #define ZCAN_ERROR_NO_STARTUP 0x00030004
82 | #define ZCAN_ERROR_NO_CONNECTED 0x00030005
83 | #define ZCAN_ERROR_SEND_PARTIAL 0x00030006
84 | #define ZCAN_ERROR_SEND_TOO_FAST 0x00030007
85 |
86 | #define STATUS_ERR 0
87 | #define STATUS_OK 1
88 | #define STATUS_ONLINE 2
89 | #define STATUS_OFFLINE 3
90 | #define STATUS_UNSUPPORTED 4
91 |
92 | #define CMD_DESIP 0
93 | #define CMD_DESPORT 1
94 | #define CMD_CHGDESIPANDPORT 2
95 | #define CMD_SRCPORT 2
96 | #define CMD_TCP_TYPE 4
97 | #define TCP_CLIENT 0
98 | #define TCP_SERVER 1
99 |
100 | #define CMD_CLIENT_COUNT 5
101 | #define CMD_CLIENT 6
102 | #define CMD_DISCONN_CLINET 7
103 | #define CMD_SET_RECONNECT_TIME 8
104 |
105 | #define TYPE_CAN 0
106 | #define TYPE_CANFD 1
107 |
108 | typedef void * DEVICE_HANDLE;
109 | typedef void * CHANNEL_HANDLE;
110 |
111 | typedef struct tagZCAN_DEVICE_INFO {
112 | USHORT hw_Version;
113 | USHORT fw_Version;
114 | USHORT dr_Version;
115 | USHORT in_Version;
116 | USHORT irq_Num;
117 | BYTE can_Num;
118 | UCHAR str_Serial_Num[20];
119 | UCHAR str_hw_Type[40];
120 | USHORT reserved[4];
121 | }ZCAN_DEVICE_INFO;
122 |
123 | typedef struct tagZCAN_CHANNEL_INIT_CONFIG {
124 | UINT can_type; //type:TYPE_CAN TYPE_CANFD
125 | union
126 | {
127 | struct
128 | {
129 | UINT acc_code;
130 | UINT acc_mask;
131 | UINT reserved;
132 | BYTE filter;
133 | BYTE timing0;
134 | BYTE timing1;
135 | BYTE mode;
136 | }can;
137 | struct
138 | {
139 | UINT acc_code;
140 | UINT acc_mask;
141 | UINT abit_timing;
142 | UINT dbit_timing;
143 | UINT brp;
144 | BYTE filter;
145 | BYTE mode;
146 | USHORT pad;
147 | UINT reserved;
148 | }canfd;
149 | };
150 | }ZCAN_CHANNEL_INIT_CONFIG;
151 |
152 | typedef struct tagZCAN_CHANNEL_ERR_INFO {
153 | UINT error_code;
154 | BYTE passive_ErrData[3];
155 | BYTE arLost_ErrData;
156 | } ZCAN_CHANNEL_ERR_INFO;
157 |
158 | typedef struct tagZCAN_CHANNEL_STATUS {
159 | BYTE errInterrupt;
160 | BYTE regMode;
161 | BYTE regStatus;
162 | BYTE regALCapture;
163 | BYTE regECCapture;
164 | BYTE regEWLimit;
165 | BYTE regRECounter;
166 | BYTE regTECounter;
167 | UINT Reserved;
168 | }ZCAN_CHANNEL_STATUS;
169 |
170 | typedef struct tagZCAN_Transmit_Data
171 | {
172 | can_frame frame;
173 | UINT transmit_type;
174 | }ZCAN_Transmit_Data;
175 |
176 | typedef struct tagZCAN_Receive_Data
177 | {
178 | can_frame frame;
179 | UINT64 timestamp;//us
180 | }ZCAN_Receive_Data;
181 |
182 | typedef struct tagZCAN_TransmitFD_Data
183 | {
184 | canfd_frame frame;
185 | UINT transmit_type;
186 | }ZCAN_TransmitFD_Data;
187 |
188 | typedef struct tagZCAN_ReceiveFD_Data
189 | {
190 | canfd_frame frame;
191 | UINT64 timestamp;//us
192 | }ZCAN_ReceiveFD_Data;
193 |
194 | typedef struct tagZCAN_AUTO_TRANSMIT_OBJ{
195 | USHORT enable;
196 | USHORT index;//0...n
197 | UINT interval;//ms
198 | ZCAN_Transmit_Data obj;
199 | }ZCAN_AUTO_TRANSMIT_OBJ, *PZCAN_AUTO_TRANSMIT_OBJ;
200 |
201 | typedef struct tagZCANFD_AUTO_TRANSMIT_OBJ{
202 | USHORT enable;
203 | USHORT index;//0...n
204 | UINT interval;//ms
205 | ZCAN_TransmitFD_Data obj;
206 | }ZCANFD_AUTO_TRANSMIT_OBJ, *PZCANFD_AUTO_TRANSMIT_OBJ;
207 |
208 | //for zlg cloud
209 | #define ZCLOUD_MAX_DEVICES 100
210 |
211 | typedef struct tagZCLOUD_DEVINFO
212 | {
213 | int devIndex;
214 | char type[64];
215 | char id[64];
216 | char owner[64];
217 | char model[64];
218 | char fwVer[16];
219 | char hwVer[16];
220 | char serial[64];
221 | BYTE canNum;
222 | int status; // 0:online, 1:offline
223 | BYTE bCanUploads[16]; // each channel enable can upload
224 | BYTE bGpsUpload;
225 | }ZCLOUD_DEVINFO;
226 |
227 | typedef struct tagZCLOUD_USER_DATA
228 | {
229 | char username[64];
230 | char mobile[64];
231 | ZCLOUD_DEVINFO devices[ZCLOUD_MAX_DEVICES];
232 | size_t devCnt;
233 | }ZCLOUD_USER_DATA;
234 |
235 | // GPS
236 | typedef struct tagZCLOUD_GPS_FRAME
237 | {
238 | float latitude;
239 | float longitude;
240 | float speed;
241 | struct __gps_time {
242 | USHORT year;
243 | USHORT mon;
244 | USHORT day;
245 | USHORT hour;
246 | USHORT min;
247 | USHORT sec;
248 | }tm;
249 | } ZCLOUD_GPS_FRAME;
250 | //for zlg cloud
251 |
252 | //TX timestamp
253 | typedef struct tagUSBCANFDTxTimeStamp
254 | {
255 | UINT* pTxTimeStampBuffer; //allocated by user, size:nBufferTimeStampCount * 4,unit:100us
256 | UINT nBufferTimeStampCount; //buffer size
257 | }USBCANFDTxTimeStamp;
258 |
259 | //LIN
260 | typedef struct _VCI_LIN_MSG{
261 | BYTE ID;
262 | BYTE DataLen;
263 | USHORT Flag;
264 | UINT TimeStamp;
265 | BYTE Data[8];
266 | }ZCAN_LIN_MSG, *PZCAN_LIN_MSG;
267 |
268 | #define LIN_MODE_MASTER 0
269 | #define LIN_MODE_SLAVE 1
270 | #define LIN_FLAG_CHK_ENHANCE 0x01
271 | #define LIN_FLAG_VAR_DLC 0x02
272 |
273 | typedef struct _VCI_LIN_INIT_CONFIG
274 | {
275 | BYTE linMode;
276 | BYTE linFlag;
277 | USHORT reserved;
278 | UINT linBaud;
279 | }ZCAN_LIN_INIT_CONFIG, *PZCAN_LIN_INIT_CONFIG;
280 | //end LIN
281 |
282 | #ifdef __cplusplus
283 | #define DEF(a) = a
284 | #else
285 | #define DEF(a)
286 | #endif
287 |
288 | #define FUNC_CALL __stdcall
289 | #ifdef __cplusplus
290 | extern "C"
291 | {
292 | #endif
293 |
294 | #define INVALID_DEVICE_HANDLE 0
295 | DEVICE_HANDLE FUNC_CALL ZCAN_OpenDevice(UINT device_type, UINT device_index, UINT reserved);
296 | UINT FUNC_CALL ZCAN_CloseDevice(DEVICE_HANDLE device_handle);
297 | UINT FUNC_CALL ZCAN_GetDeviceInf(DEVICE_HANDLE device_handle, ZCAN_DEVICE_INFO* pInfo);
298 |
299 | UINT FUNC_CALL ZCAN_IsDeviceOnLine(DEVICE_HANDLE device_handle);
300 |
301 | #define INVALID_CHANNEL_HANDLE 0
302 | CHANNEL_HANDLE FUNC_CALL ZCAN_InitCAN(DEVICE_HANDLE device_handle, UINT can_index, ZCAN_CHANNEL_INIT_CONFIG* pInitConfig);
303 | UINT FUNC_CALL ZCAN_StartCAN(CHANNEL_HANDLE channel_handle);
304 | UINT FUNC_CALL ZCAN_ResetCAN(CHANNEL_HANDLE channel_handle);
305 | UINT FUNC_CALL ZCAN_ClearBuffer(CHANNEL_HANDLE channel_handle);
306 | UINT FUNC_CALL ZCAN_ReadChannelErrInfo(CHANNEL_HANDLE channel_handle, ZCAN_CHANNEL_ERR_INFO* pErrInfo);
307 | UINT FUNC_CALL ZCAN_ReadChannelStatus(CHANNEL_HANDLE channel_handle, ZCAN_CHANNEL_STATUS* pCANStatus);
308 | UINT FUNC_CALL ZCAN_GetReceiveNum(CHANNEL_HANDLE channel_handle, BYTE type);//type:TYPE_CAN TYPE_CANFD
309 | UINT FUNC_CALL ZCAN_Transmit(CHANNEL_HANDLE channel_handle, ZCAN_Transmit_Data* pTransmit, UINT len);
310 | UINT FUNC_CALL ZCAN_Receive(CHANNEL_HANDLE channel_handle, ZCAN_Receive_Data* pReceive, UINT len, int wait_time DEF(-1));
311 | UINT FUNC_CALL ZCAN_TransmitFD(CHANNEL_HANDLE channel_handle, ZCAN_TransmitFD_Data* pTransmit, UINT len);
312 | UINT FUNC_CALL ZCAN_ReceiveFD(CHANNEL_HANDLE channel_handle, ZCAN_ReceiveFD_Data* pReceive, UINT len, int wait_time DEF(-1));
313 |
314 | IProperty* FUNC_CALL GetIProperty(DEVICE_HANDLE device_handle);
315 | UINT FUNC_CALL ReleaseIProperty(IProperty * pIProperty);
316 |
317 | void FUNC_CALL ZCLOUD_SetServerInfo(const char* httpSvr, unsigned short httpPort, const char* authSvr, unsigned short authPort);
318 | // return 0:success, 1:failure, 2:https error, 3:user login info error, 4:mqtt connection error, 5:no device
319 | UINT FUNC_CALL ZCLOUD_ConnectServer(const char* username, const char* password);
320 | bool FUNC_CALL ZCLOUD_IsConnected();
321 | // return 0:success, 1:failure
322 | UINT FUNC_CALL ZCLOUD_DisconnectServer();
323 | const ZCLOUD_USER_DATA* FUNC_CALL ZCLOUD_GetUserData();
324 | UINT FUNC_CALL ZCLOUD_ReceiveGPS(DEVICE_HANDLE device_handle, ZCLOUD_GPS_FRAME* pReceive, UINT len, int wait_time DEF(-1));
325 |
326 | CHANNEL_HANDLE FUNC_CALL ZCAN_InitLIN(DEVICE_HANDLE device_handle, UINT can_index, PZCAN_LIN_INIT_CONFIG pLINInitConfig);
327 | UINT FUNC_CALL ZCAN_StartLIN(CHANNEL_HANDLE channel_handle);
328 | UINT FUNC_CALL ZCAN_ResetLIN(CHANNEL_HANDLE channel_handle);
329 | ULONG FUNC_CALL ZCAN_TransmitLIN(CHANNEL_HANDLE channel_handle, PZCAN_LIN_MSG pSend, ULONG Len);
330 | ULONG FUNC_CALL ZCAN_GetLINReceiveNum(CHANNEL_HANDLE channel_handle);
331 | ULONG FUNC_CALL ZCAN_ReceiveLIN(CHANNEL_HANDLE channel_handle, PZCAN_LIN_MSG pReceive, ULONG Len,int WaitTime);
332 | UINT FUNC_CALL ZCAN_SetLINSlaveMsg(CHANNEL_HANDLE channel_handle, PZCAN_LIN_MSG pSend, UINT nMsgCount);
333 | UINT FUNC_CALL ZCAN_ClearLINSlaveMsg(CHANNEL_HANDLE channel_handle, BYTE* pLINID, UINT nIDCount);
334 |
335 | #ifdef __cplusplus
336 | }
337 |
338 | #endif
339 |
340 | #endif //ZLGCAN_H_
341 |
--------------------------------------------------------------------------------
/zlgcan_x86/zlgcan.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/DoubleMonth/ZLG_USBCAN/bd4dcc1daaf558cb4db1b874efc779dd50e1ab78/zlgcan_x86/zlgcan.lib
--------------------------------------------------------------------------------