项目

一般

简介

demo.txt

杜 小栋, 2024-05-22 15:11

 
1

    
2
[root@OM-A6-T300A:NandFlash]# ./omDemo1 837 0 0 1 0 RS232-1:2400,n,8,1
3
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
4
MemFree:          200148 kB
5
MemAvailable:     220128 kB
6
Buffers:               0 kB
7
!!!MemVsz 0: 4876 KB
8
SIGRTMAX-1= 63
9
SerManager new: 772710
10
!!!MemVsz change: 128 KB
11
!!!MemVsz change: 5424 KB
12
!!!MemVsz change: 1248 KB
13

    
14
SMxxx: Type=837  Addr=0  Port=0  Tag1=1  Ext1=0
15

    
16
SerDef=RS232-1:2400,n,8,1 Type=837
17
testSM SM=7755b8
18
CSerCom InitCom: 775930  1
19
CSerCom UpdParams: ComPort: RS232-1, 0, 0
20
CSerCom::Open: /dev/RS232-1,2400,8,N,0
21
set serial done+!
22
RS232-1:2400,n,8,1[100001] open ok!
23
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
24
MemFree:          199780 kB
25
MemAvailable:     219760 kB
26
Buffers:               0 kB
27
start SMxxx->DataGet ...
28
SEND: 23 30 30 51 33 4C 0D 0A
29
RECV:
30
testSM-0001 15:05:13  RS232-1:2400,n,8,1
31
SEND: 23 30 30 51 33 4C 0D 0A
32
RECV:
33
testSM-0002 15:05:15  RS232-1:2400,n,8,1
34
SEND: 23 30 30 51 33 4C 0D 0A
35
^C
36
[root@OM-A6-T300A:NandFlash]# ./omDemo1 837 0 0 1 0 RS232-1:2400,n,8,1
37
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
38
MemFree:          200108 kB
39
MemAvailable:     220088 kB
40
Buffers:               0 kB
41
!!!MemVsz 0: 4876 KB
42
SIGRTMAX-1= 63
43
SerManager new: 2a9710
44
!!!MemVsz change: 128 KB
45
!!!MemVsz change: 5424 KB
46
!!!MemVsz change: 1248 KB
47

    
48
SMxxx: Type=837  Addr=0  Port=0  Tag1=1  Ext1=0
49

    
50
SerDef=RS232-1:2400,n,8,1 Type=837
51
testSM SM=2ac5b8
52
CSerCom InitCom: 2ac930  1
53
CSerCom UpdParams: ComPort: RS232-1, 0, 0
54
CSerCom::Open: /dev/RS232-1,2400,8,N,0
55
set serial done+!
56
RS232-1:2400,n,8,1[100001] open ok!
57
VIDIOC_QUERYCAPno captureno streamingMemTotal:         248284 kB
58
MemFree:          199800 kB
59
MemAvailable:     219780 kB
60
Buffers:               0 kB
61
start SMxxx->DataGet ...
62
SEND: 23 30 30 51 33 4C 0D 0A
63
RECV:
64
testSM-0001 15:07:08  RS232-1:2400,n,8,1
65
SEND: 23 30 30 51 33 4C 0D 0A
66
RECV:
67
testSM-0002 15:07:10  RS232-1:2400,n,8,1
68
SEND: 23 30 30 51 33 4C 0D 0A
69
RECV:
70
testSM-0003 15:07:11  RS232-1:2400,n,8,1
71
SEND: 23 30 30 51 33 4C 0D 0A
72
RECV:
73
^C
74
[root@OM-A6-T300A:NandFlash]# ./sscomx
75
Input the com prot: RS232-2
76
baudrate: ^C
77
[root@OM-A6-T300A:NandFlash]# ./sscomx
78
Input the com prot: RS232-1
79
baudrate: 2400
80
Parity(n\o\e): n
81
DataBit(5\6\7\8): 8
82
StopBit(1\2): 1
83
data types:
84
   1. hex
85
   2. ascii
86
select data type: 1
87
select com prot: /dev/RS232-1, 2400, n, 8, 1 for hex
88
send: 23 30 30 51 33 4C 0D 0A
89
no data receive!
90
send: 23 30 30 51 33 4C 0D 0A
91
rece: 23 30 30 3A 33 30 2C 32 31 38 2E 30 2C 30 30 30 2E 30 2C 30 30 30 2E 30 2C 34 39 2E 39 2C 32 31 38 2E 38 2C 2D 2D 2D 2E 2D 2C 2D 2D 2D 2E 2D 2C 30 30 30 30 2E 34 2C 2D 2D 2D 2D 2E 2D 2C 2D 2D 2D 2D 2E 2D 2C 34 39 2E 39 2C 30 30 30 2C 2D 2D 2D 2C 2D 2D 2D 2C 32 31 39 2E 30 2C 31 30 30 2C 39 39 39 39 39 2C 32 38 2E 32 2C 30 30 30 30 30 30 30 30 30 30 2C 34 35 0D
92
send: 23 30 30 51 33 4C 0D 0A
93
rece: 23 30 30 3A 33 30 2C 32 31 37 2E 39 2C 30 30 30 2E 30 2C 30 30 30 2E 30 2C 34 39 2E 39 2C 32 31 38 2E 37 2C 2D 2D 2D 2E 2D 2C 2D 2D 2D 2E 2D 2C 30 30 30 30 2E 34 2C 2D 2D 2D 2D 2E 2D 2C 2D 2D 2D 2D 2E 2D 2C 34 39 2E 39 2C 30 30 30 2C 2D 2D 2D 2C 2D 2D 2D 2C 32 31 39 2E 30 2C 31 30 30 2C 39 39 39 39 39 2C 32 38 2E 32 2C 30 30 30 30 30 30 30 30 30 30 2C 34 43 0D
94
send: 23 30 30 51 33 4C 0D 0A
95
rece: 23 30 30 3A 33 30 2C 32 31 38 2E 31 2C 30 30 30 2E 30 2C 30 30 30 2E 30 2C 35 30 2E 30 2C 32 31 38 2E 37 2C 2D 2D 2D 2E 2D 2C 2D 2D 2D 2E 2D 2C 30 30 30 30 2E 34 2C 2D 2D 2D 2D 2E 2D 2C 2D 2D 2D 2D 2E 2D 2C 35 30 2E 30 2C 30 30 30 2C 2D 2D 2D 2C 2D 2D 2D 2C 32 31 39 2E 30 2C 31 30 30 2C 39 39 39 39 39 2C 32 38 2E 32 2C 30 30 30 30 30 30 30 30 30 30 2C 32 33 0D
96
send: