1
|
|
2
|
[root@OM-A6-T300A:NandFlash]# ./omDemo1 1314 29 0 0 0 RS485-2:9600,n,8,1
|
3
|
VIDIOC_QUERYCAPno captureno streamingMemTotal: 248284 kB
|
4
|
MemFree: 185620 kB
|
5
|
MemAvailable: 209856 kB
|
6
|
Buffers: 0 kB
|
7
|
!!!MemVsz 0: 4876 KB
|
8
|
SIGRTMAX-1= 63
|
9
|
SerManager new: a6b710
|
10
|
!!!MemVsz change: 128 KB
|
11
|
!!!MemVsz change: 4916 KB
|
12
|
!!!MemVsz change: 1248 KB
|
13
|
|
14
|
SMxxx: Type=1314 Addr=29 Port=0 Tag1=0 Ext1=0
|
15
|
|
16
|
SerDef=RS485-2:9600,n,8,1 Type=1314
|
17
|
testSM SM=a6e3a8
|
18
|
CSerCom InitCom: a6e518 1
|
19
|
CSerCom UpdParams: ComPort: RS485-2, 0, 0
|
20
|
CSerCom::Open: /dev/RS485-2,9600,8,N,0
|
21
|
set serial done+!
|
22
|
RS485-2:9600,n,8,1[100002] open ok!
|
23
|
VIDIOC_QUERYCAPno captureno streamingMemTotal: 248284 kB
|
24
|
MemFree: 185252 kB
|
25
|
MemAvailable: 209488 kB
|
26
|
Buffers: 0 kB
|
27
|
start SMxxx->DataGet ...
|
28
|
SEND: 1D 03 00 02 00 03 A6 57
|
29
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
30
|
testSM-0001 13:44:18 RS485-2:9600,n,8,1
|
31
|
SEND: 1D 03 00 02 00 03 A6 57
|
32
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
33
|
testSM-0002 13:44:20 RS485-2:9600,n,8,1
|
34
|
SEND: 1D 03 00 02 00 03 A6 57
|
35
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
36
|
testSM-0003 13:44:21 RS485-2:9600,n,8,1
|
37
|
SEND: 1D 03 00 02 00 03 A6 57
|
38
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
39
|
testSM-0004 13:44:22 RS485-2:9600,n,8,1
|
40
|
SEND: 1D 03 00 02 00 03 A6 57
|
41
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
42
|
testSM-0005 13:44:24 RS485-2:9600,n,8,1
|
43
|
SEND: 1D 03 00 02 00 03 A6 57
|
44
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
45
|
testSM-0006 13:44:25 RS485-2:9600,n,8,1
|
46
|
SEND: 1D 03 00 02 00 03 A6 57
|
47
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
48
|
testSM-0007 13:44:26 RS485-2:9600,n,8,1
|
49
|
SEND: 1D 03 00 02 00 03 A6 57
|
50
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
51
|
testSM-0008 13:44:27 RS485-2:9600,n,8,1
|
52
|
SEND: 1D 03 00 02 00 03 A6 57
|
53
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
54
|
testSM-0009 13:44:29 RS485-2:9600,n,8,1
|
55
|
SEND: 1D 03 00 02 00 03 A6 57
|
56
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
57
|
testSM-0010 13:44:30 RS485-2:9600,n,8,1
|
58
|
SEND: 1D 03 00 02 00 03 A6 57
|
59
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
60
|
testSM-0011 13:44:31 RS485-2:9600,n,8,1
|
61
|
SEND: 1D 03 00 02 00 03 A6 57
|
62
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
63
|
testSM-0012 13:44:33 RS485-2:9600,n,8,1
|
64
|
SEND: 1D 03 00 02 00 03 A6 57
|
65
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
66
|
testSM-0013 13:44:34 RS485-2:9600,n,8,1
|
67
|
SEND: 1D 03 00 02 00 03 A6 57
|
68
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
69
|
^C
|
70
|
[root@OM-A6-T300A:NandFlash]# ./sscomx
|
71
|
Input the com prot: RS485-2
|
72
|
baudrate: 9600
|
73
|
Parity(n\o\e): n
|
74
|
DataBit(5\6\7\8): 8
|
75
|
StopBit(1\2): 1
|
76
|
data types:
|
77
|
1. hex
|
78
|
2. ascii
|
79
|
select data type: 1
|
80
|
select com prot: /dev/RS485-2, 9600, n, 8, 1 for hex
|
81
|
send: 1D 03 00 01 00 01 D7 96
|
82
|
rece: 1D 03 02 00 03 29 87
|
83
|
send: 1D 03 00 04 00 01 C7 97
|
84
|
rece: 1D 03 02 FF F7 69 F0
|
85
|
send:
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
|
91
|
SEND: 1D 03 00 02 00 03 A6 57
|
92
|
1D Addr:29
|
93
|
03 Func:03
|
94
|
00 02 reg:02
|
95
|
00 03 cnt:3
|
96
|
A6 57 crc:
|
97
|
|
98
|
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
|
99
|
1D Addr:29
|
100
|
03 Func:03
|
101
|
06 cnt:06
|
102
|
00 10 单位:16 压力单位:0~8 温度单位:0~2
|
103
|
00 03 小数点位数:3
|
104
|
FF F7 压力测量值/温度测量值:65527
|
105
|
88 00 crc:
|
106
|
|
107
|
|