项目

一般

简介

#4831-水位数值负数处理问题-SM1314.txt

黄 正梁, 2022-06-23 13:53

 
1
login as: root
2
root@192.168.1.222's password:
3
[root@OM-A6-T300A:~]# cd /NandFlash
4
[root@OM-A6-T300A:NandFlash]# ps
5
  PID USER       VSZ STAT COMMAND
6
    1 root      1708 S    init [5]
7
    2 root         0 SW   [kthreadd]
8
    3 root         0 SW   [ksoftirqd/0]
9
    5 root         0 SW<  [kworker/0:0H]
10
    6 root         0 SW   [kworker/u2:0]
11
    7 root         0 SW   [rcu_preempt]
12
    8 root         0 SW   [rcu_sched]
13
    9 root         0 SW   [rcu_bh]
14
   10 root         0 SW   [migration/0]
15
   11 root         0 SW<  [khelper]
16
   12 root         0 SW   [kdevtmpfs]
17
   13 root         0 SW<  [perf]
18
   14 root         0 SW<  [writeback]
19
   15 root         0 SW<  [crypto]
20
   16 root         0 SW<  [bioset]
21
   17 root         0 SW<  [kblockd]
22
   18 root         0 SW<  [ata_sff]
23
   20 root         0 SW<  [cfg80211]
24
   21 root         0 SW<  [rpciod]
25
   22 root         0 SW   [kswapd0]
26
   23 root         0 SW   [fsnotify_mark]
27
   24 root         0 SW<  [nfsiod]
28
   61 root         0 SW   [spi0]
29
   67 root         0 SW<  [ci_otg]
30
   68 root         0 SW   [cfinteractive]
31
   69 root         0 SW   [irq/220-mmc0]
32
   70 root         0 SW   [irq/47-2190000.]
33
   72 root         0 SW   [mxs_dcp_chan/sh]
34
   73 root         0 SW   [mxs_dcp_chan/ae]
35
   78 root         0 SW<  [ipv6_addrconf]
36
   79 root         0 SW<  [deferwq]
37
   80 root         0 SW   [irq/202-imx_the]
38
   81 root         0 SW   [ubi_bgt0d]
39
  118 root      2836 S    /sbin/udevd -d
40
  144 root         0 SW   [ubifs_bgt0_0]
41
  437 messageb  2912 S    /usr/bin/dbus-daemon --system
42
  453 root      4668 S    /usr/sbin/sshd
43
  458 rpc       2196 S    /usr/sbin/rpcbind
44
  473 root      2724 S    /sbin/syslogd -n -O /var/log/messages
45
  476 root      2724 S    /sbin/klogd -n
46
  483 avahi     4108 S    avahi-daemon: running [OM-A6-T300A.local]
47
  484 avahi     3460 S    avahi-daemon: chroot helper
48
  488 root      4776 S    /usr/sbin/ofonod
49
  498 root      1948 S    /usr/sbin/cron
50
  506 root      2764 S    {rmimages.sh} /bin/sh ./rmimages.sh 100
51
  553 root         0 SW   [kworker/u2:2]
52
  618 root     16684 S    ./goahead --log /opt/log.txt:2 /NandFlash/www/wwwpub
53
  684 root     15208 S    ./omTray
54
  710 root      2768 S    {start_getty} /bin/sh /bin/start_getty 115200 ttymxc
55
  711 root      2724 S    /sbin/getty 38400 tty1
56
  712 root      2724 S    /sbin/getty -L 115200 ttymxc0
57
20682 root         0 SW   [kworker/0:1]
58
22572 root         0 SW   [kworker/0:0]
59
24430 root         0 SW   [kworker/0:2]
60
24729 root      4796 R    sshd: root@pts/0
61
24740 root      3000 S    -sh
62
24757 root      1948 S    /usr/sbin/cron
63
24758 root      4464 S    /usr/bin/ntpdate cn.pool.ntp.org
64
24779 root      2592 S    sleep 300
65
24795 root      2960 R    ps
66
[root@OM-A6-T300A:NandFlash]# ^C
67
[root@OM-A6-T300A:NandFlash]# ls
68
SM/                      libomser-bak.so*         omMonitor.ini
69
SerialPortQuickDef.ini   libomser-bak2.so*        omOneNetPost*
70
bak/                     libomser-quick.so*       omOneNetPost.ini
71
dbCfg.db3                libomser.so              omTray*
72
dbData.db3               libomsm.so*              omTray.ini
73
dbLog.db3                libomsuw.so*             omapp.conf
74
hwtest*                  omApp.ini                readme.txt
75
hwtest.ini*              omAppPost*               sscomx*
76
hwtestEx*                omAppPost.ini            tmp/
77
libomalm.so              omAppSU*                 update_dbcfg_quick.sh
78
libomdb.so*              omAppSU.ini              update_dbcfg_xxx_bak.sh*
79
libomdev.so*             omDemo1*                 www/
80
[root@OM-A6-T300A:NandFlash]# ./omDemo1 1314 29 0 0 0 RS485-2:9600,n,8,1
81
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
82
MemFree:          185616 kB
83
MemAvailable:     209836 kB
84
Buffers:               0 kB
85
!!!MemVsz 0: 4876 KB
86
SIGRTMAX-1= 63
87
SerManager new: 8eb710
88
!!!MemVsz change: 128 KB
89
!!!MemVsz change: 4916 KB
90
!!!MemVsz change: 1248 KB
91

    
92
SMxxx: Type=1314  Addr=29  Port=0  Tag1=0  Ext1=0
93

    
94
SerDef=RS485-2:9600,n,8,1 Type=1314
95
testSM SM=8ee3a8
96
CSerCom InitCom: 8ee518  1
97
CSerCom UpdParams: ComPort: RS485-2, 0, 0
98
CSerCom::Open: /dev/RS485-2,9600,8,N,0
99
set serial done+!
100
RS485-2:9600,n,8,1[100002] open ok!
101
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
102
MemFree:          185248 kB
103
MemAvailable:     209480 kB
104
Buffers:               0 kB
105
start SMxxx->DataGet ...
106
SEND: 1D 03 00 02 00 03 A6 57
107
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
108
testSM-0001 13:40:58  RS485-2:9600,n,8,1
109
SEND: 1D 03 00 02 00 03 A6 57
110
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
111
testSM-0002 13:40:59  RS485-2:9600,n,8,1
112
SEND: 1D 03 00 02 00 03 A6 57
113
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
114
testSM-0003 13:41:01  RS485-2:9600,n,8,1
115
SEND: 1D 03 00 02 00 03 A6 57
116
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
117
testSM-0004 13:41:02  RS485-2:9600,n,8,1
118
SEND: 1D 03 00 02 00 03 A6 57
119
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
120
testSM-0005 13:41:03  RS485-2:9600,n,8,1
121
SEND: 1D 03 00 02 00 03 A6 57
122
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
123
testSM-0006 13:41:04  RS485-2:9600,n,8,1
124
SEND: 1D 03 00 02 00 03 A6 57
125
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
126
^C
127
[root@OM-A6-T300A:NandFlash]# ./omDemo1 1314 31 0 0 0 RS485-2:9600,n,8,1
128
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
129
MemFree:          185576 kB
130
MemAvailable:     209808 kB
131
Buffers:               0 kB
132
!!!MemVsz 0: 4876 KB
133
SIGRTMAX-1= 63
134
SerManager new: 1d58710
135
!!!MemVsz change: 128 KB
136
!!!MemVsz change: 4916 KB
137
!!!MemVsz change: 1248 KB
138

    
139
SMxxx: Type=1314  Addr=31  Port=0  Tag1=0  Ext1=0
140

    
141
SerDef=RS485-2:9600,n,8,1 Type=1314
142
testSM SM=1d5b3a8
143
CSerCom InitCom: 1d5b518  1
144
CSerCom UpdParams: ComPort: RS485-2, 0, 0
145
CSerCom::Open: /dev/RS485-2,9600,8,N,0
146
set serial done+!
147
RS485-2:9600,n,8,1[100002] open ok!
148
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
149
MemFree:          185268 kB
150
MemAvailable:     209504 kB
151
Buffers:               0 kB
152
start SMxxx->DataGet ...
153
SEND: 1F 03 00 02 00 03 A7 B5
154
RECV:
155
testSM-0001 13:41:24  RS485-2:9600,n,8,1
156
SEND: 1F 03 00 02 00 03 A7 B5
157
RECV:
158
testSM-0002 13:41:26  RS485-2:9600,n,8,1
159
SEND: 1F 03 00 02 00 03 A7 B5
160
RECV:
161
testSM-0003 13:41:27  RS485-2:9600,n,8,1
162
SEND: 1F 03 00 02 00 03 A7 B5
163
RECV:
164
testSM-0004 13:41:29  RS485-2:9600,n,8,1
165
SEND: 1F 03 00 02 00 03 A7 B5
166
RECV:
167
^C
168
[root@OM-A6-T300A:NandFlash]# ./omDemo1 1314 27 0 0 0 RS485-2:9600,n,8,1
169
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
170
MemFree:          185568 kB
171
MemAvailable:     209804 kB
172
Buffers:               0 kB
173
!!!MemVsz 0: 4876 KB
174
SIGRTMAX-1= 63
175
SerManager new: 1624710
176
!!!MemVsz change: 128 KB
177
!!!MemVsz change: 4916 KB
178
!!!MemVsz change: 1248 KB
179

    
180
SMxxx: Type=1314  Addr=27  Port=0  Tag1=0  Ext1=0
181

    
182
SerDef=RS485-2:9600,n,8,1 Type=1314
183
testSM SM=16273a8
184
CSerCom InitCom: 1627518  1
185
CSerCom UpdParams: ComPort: RS485-2, 0, 0
186
CSerCom::Open: /dev/RS485-2,9600,8,N,0
187
set serial done+!
188
RS485-2:9600,n,8,1[100002] open ok!
189
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
190
MemFree:          185260 kB
191
MemAvailable:     209496 kB
192
Buffers:               0 kB
193
start SMxxx->DataGet ...
194
SEND: 1B 03 00 02 00 03 A6 31
195
RECV: 1B 03 06 00 10 00 03 00 00 A3 D6
196
testSM-0001 13:41:46  RS485-2:9600,n,8,1
197
SEND: 1B 03 00 02 00 03 A6 31
198
RECV: 1B 03 06 00 10 00 03 00 00 A3 D6
199
testSM-0002 13:41:47  RS485-2:9600,n,8,1
200
SEND: 1B 03 00 02 00 03 A6 31
201
RECV: 1B 03 06 00 10 00 03 00 00 A3 D6
202
testSM-0003 13:41:49  RS485-2:9600,n,8,1
203
SEND: 1B 03 00 02 00 03 A6 31
204
^C
205
[root@OM-A6-T300A:NandFlash]# ./omDemo1 1314 29 0 0 0 RS485-2:9600,n,8,1
206
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
207
MemFree:          185620 kB
208
MemAvailable:     209856 kB
209
Buffers:               0 kB
210
!!!MemVsz 0: 4876 KB
211
SIGRTMAX-1= 63
212
SerManager new: a6b710
213
!!!MemVsz change: 128 KB
214
!!!MemVsz change: 4916 KB
215
!!!MemVsz change: 1248 KB
216

    
217
SMxxx: Type=1314  Addr=29  Port=0  Tag1=0  Ext1=0
218

    
219
SerDef=RS485-2:9600,n,8,1 Type=1314
220
testSM SM=a6e3a8
221
CSerCom InitCom: a6e518  1
222
CSerCom UpdParams: ComPort: RS485-2, 0, 0
223
CSerCom::Open: /dev/RS485-2,9600,8,N,0
224
set serial done+!
225
RS485-2:9600,n,8,1[100002] open ok!
226
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
227
MemFree:          185252 kB
228
MemAvailable:     209488 kB
229
Buffers:               0 kB
230
start SMxxx->DataGet ...
231
SEND: 1D 03 00 02 00 03 A6 57
232
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
233
testSM-0001 13:44:18  RS485-2:9600,n,8,1
234
SEND: 1D 03 00 02 00 03 A6 57
235
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
236
testSM-0002 13:44:20  RS485-2:9600,n,8,1
237
SEND: 1D 03 00 02 00 03 A6 57
238
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
239
testSM-0003 13:44:21  RS485-2:9600,n,8,1
240
SEND: 1D 03 00 02 00 03 A6 57
241
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
242
testSM-0004 13:44:22  RS485-2:9600,n,8,1
243
SEND: 1D 03 00 02 00 03 A6 57
244
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
245
testSM-0005 13:44:24  RS485-2:9600,n,8,1
246
SEND: 1D 03 00 02 00 03 A6 57
247
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
248
testSM-0006 13:44:25  RS485-2:9600,n,8,1
249
SEND: 1D 03 00 02 00 03 A6 57
250
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
251
testSM-0007 13:44:26  RS485-2:9600,n,8,1
252
SEND: 1D 03 00 02 00 03 A6 57
253
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
254
testSM-0008 13:44:27  RS485-2:9600,n,8,1
255
SEND: 1D 03 00 02 00 03 A6 57
256
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
257
testSM-0009 13:44:29  RS485-2:9600,n,8,1
258
SEND: 1D 03 00 02 00 03 A6 57
259
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
260
testSM-0010 13:44:30  RS485-2:9600,n,8,1
261
SEND: 1D 03 00 02 00 03 A6 57
262
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
263
testSM-0011 13:44:31  RS485-2:9600,n,8,1
264
SEND: 1D 03 00 02 00 03 A6 57
265
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
266
testSM-0012 13:44:33  RS485-2:9600,n,8,1
267
SEND: 1D 03 00 02 00 03 A6 57
268
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
269
testSM-0013 13:44:34  RS485-2:9600,n,8,1
270
SEND: 1D 03 00 02 00 03 A6 57
271
RECV: 1D 03 06 00 10 00 03 FF F7 88 00
272
^C
273
[root@OM-A6-T300A:NandFlash]# ./sscomx
274
Input the com prot: RS485-2
275
baudrate: 9600
276
Parity(n\o\e): n
277
DataBit(5\6\7\8): 8
278
StopBit(1\2): 1
279
data types:
280
   1. hex
281
   2. ascii
282
select data type: 1
283
select com prot: /dev/RS485-2, 9600, n, 8, 1 for hex
284
send: 1D 03 00 01 00 01 D7 96
285
rece: 1D 03 02 00 03 29 87
286
send: 1D 03 00 04 00 01 C7 97
287
rece: 1D 03 02 FF F7 69 F0
288
send: