CN103793343B - A kind of realization method and system of Serial Port Transmission data - Google Patents

A kind of realization method and system of Serial Port Transmission data Download PDF

Info

Publication number
CN103793343B
CN103793343B CN201210417324.6A CN201210417324A CN103793343B CN 103793343 B CN103793343 B CN 103793343B CN 201210417324 A CN201210417324 A CN 201210417324A CN 103793343 B CN103793343 B CN 103793343B
Authority
CN
China
Prior art keywords
operation values
data
serial ports
transmitting terminal
port transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210417324.6A
Other languages
Chinese (zh)
Other versions
CN103793343A (en
Inventor
徐国进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201210417324.6A priority Critical patent/CN103793343B/en
Publication of CN103793343A publication Critical patent/CN103793343A/en
Application granted granted Critical
Publication of CN103793343B publication Critical patent/CN103793343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses the realization method and system of a kind of Serial Port Transmission data, for the communications field.Method includes: the data sent by the transmitting terminal of serial ports, calculates operation values a by algorithm, the data received by serial ports receiving terminal, operation values b is calculated by same algorithm, checking operation values b is the most identical with operation values a, and operation values is identical, sends correct order to the receiving terminal of serial ports;Operation values is different, and the transmitting terminal of order serial ports resends data.The present invention is by improving the method for Serial Port Transmission data, the effectiveness that can make Serial Port Transmission data strengthens, and the data that receiving terminal receives are more accurate, even if transmitted data amount increases, still can be substantially reduced the error probability receiving data, improve Serial Port Transmission data accuracy.

Description

A kind of realization method and system of Serial Port Transmission data
Technical field
The present invention relates to the communications field, particularly relate to the realization method and system of a kind of Serial Port Transmission data.
Background technology
Along with the fast development of field of data communication, serial communication increasingly seems important, but serial communication is easily subject to To outside interference, cause the mistake of transmission data, therefore, improve the transmission data accuracy between serial communication and just seem heavy Want.
But, serial communication of the prior art, directly data are used for transmitting, easily cause the mistake of data and lose Lose, directly use the data received at receiving terminal, easily produce the result of mistake.
Summary of the invention
Deficiency based on existing serial port communication method, embodiments provides the realization side of a kind of Serial Port Transmission data Method and system, so that the effectiveness of Serial Port Transmission data strengthens, the data that receiving terminal receives are more accurate so that even if transmission Data volume increases, and still can be substantially reduced the error probability receiving data, improves Serial Port Transmission data accuracy.
In order to realize above goal of the invention, the implementation method of a kind of Serial Port Transmission data that the embodiment of the present invention is provided and System is achieved through the following technical solutions:
The implementation method of a kind of Serial Port Transmission data, comprises the following steps:
The transmitting terminal of serial ports sends data;
The data sent by serial ports transmitting terminal, by one operation values a of binary system accumulation calculating;
The receiving terminal of serial ports receives data;
The data received by serial ports receiving terminal, by one operation values b of binary system accumulation calculating;
Operation values b is returned to the transmitting terminal of serial ports;
Operation values b that the transmitting terminal of checking serial ports receives is the most identical with operation values a;
When operation values b is identical with operation values a, then send correct order to the receiving terminal of serial ports;When operation values b and fortune During calculation value a difference, then the transmitting terminal of order serial ports resends data.
Further, described method also includes:
By the algorithm that binary system is cumulative, the data that serial ports transmitting terminal sends are calculated operation values a.
Further, described method also includes:
By the algorithm that binary system is cumulative, the data that serial ports receiving terminal receives are calculated operation values b.
In order to realize foregoing invention purpose, the embodiment of the present invention additionally provides the system of a kind of Serial Port Transmission data, described The system of Serial Port Transmission data is to be realized by following technical scheme:
A kind of system of Serial Port Transmission data, including:
The transmitting terminal of serial ports, in order to send data to the receiving terminal of serial ports, and by described data by the cumulative meter of binary system Calculating operation values a, operation values b that checking serial ports receiving terminal returns to serial ports transmitting terminal is the most identical with described operation values a, when When described operation values b is identical with operation values a, then send correct order to the receiving terminal of described serial ports;When described operation values b and During operation values a difference, then the transmitting terminal of described serial ports is ordered to resend data;
The receiving terminal of serial ports, in order to receive the data that the transmitting terminal of serial ports sends, and by the data of described reception, by two One operation values b of system accumulation calculating, and described operation values b is returned to the transmitting terminal of described serial ports.
Further, described system also includes:
By the algorithm that binary system is cumulative, the data that described serial ports transmitting terminal sends are calculated operation values a.
Further, described system also includes:
By the algorithm that binary system is cumulative, the data that described serial ports receiving terminal receives are calculated operation values b.
The implementation method of a kind of Serial Port Transmission data that the embodiment of the present invention provides so that the effectiveness of Serial Port Transmission data Strengthening, the data that receiving terminal receives are more accurate so that even if transmitted data amount increases, and still can be substantially reduced and receive data Error probability, improves Serial Port Transmission data accuracy, improves the experience of user.
Accompanying drawing explanation
The present invention is further described with embodiment below in conjunction with the accompanying drawings:
Fig. 1 is the block diagram of the implementation method of embodiment of the present invention Serial Port Transmission data;
Fig. 2 is the flow chart of the implementation method of embodiment of the present invention Serial Port Transmission data.
Detailed description of the invention
Fig. 1 is the block diagram of the implementation method of embodiment of the present invention Serial Port Transmission data.
As it is shown in figure 1, the system 100 of Serial Port Transmission data, including transmitting terminal 110 and receiving terminal 120.
Described data in order to send data to the receiving terminal 120 of serial ports, and are passed through binary system by the transmitting terminal 110 of serial ports One operation values a of accumulation calculating, checking serial ports receiving terminal 120 returns to operation values b of serial ports transmitting terminal 110 and described operation values A is the most identical, when described operation values b is identical with operation values a, then sends correct order to the receiving terminal 120 of described serial ports; When described operation values b is different with operation values a, then the transmitting terminal 110 of described serial ports is ordered to resend data;
The receiving terminal 120 of serial ports, in order to receive the data that the transmitting terminal 110 of serial ports sends, and by the data of described reception, By one operation values b of binary system accumulation calculating, and described operation values b is returned to the transmitting terminal 110 of described serial ports.
Fig. 2 is the flow chart of the implementation method of embodiment of the present invention Serial Port Transmission data.
As in figure 2 it is shown, the implementation method of embodiment of the present invention Serial Port Transmission data, comprise the following steps:
S201. the transmitting terminal of serial ports sends data;
S202. the data sent by serial ports transmitting terminal, by one operation values a of binary system accumulation calculating;
S203. the receiving terminal of serial ports receives data;
S204. the data received by serial ports receiving terminal, by one operation values b of binary system accumulation calculating;
S205. operation values b is returned to the transmitting terminal of serial ports;
S206. verify that operation values b that the transmitting terminal of serial ports receives is the most identical with operation values a;
S207. when operation values b is identical with operation values a, then correct order is sent to the receiving terminal of serial ports;Work as operation values When b is different with operation values a, then the transmitting terminal of order serial ports resends data.
Further, described method also includes:
By the algorithm that binary system is cumulative, the data that serial ports transmitting terminal sends are calculated operation values a.
Further, described method also includes:
By the algorithm that binary system is cumulative, the data that serial ports receiving terminal receives are calculated operation values b.
The implementation method of a kind of Serial Port Transmission data that the embodiment of the present invention provides so that the effectiveness of Serial Port Transmission data Strengthening, the data that receiving terminal receives are more accurate so that even if transmitted data amount increases, and still can be substantially reduced and receive data Error probability, improves Serial Port Transmission data accuracy.
The embodiment of the present invention additionally provides the system of a kind of Serial Port Transmission data, comprises the following steps:
The transmitting terminal of serial ports, in order to send data to the receiving terminal of serial ports, and by described data by the cumulative meter of binary system Calculating operation values a, operation values b that checking serial ports receiving terminal returns to serial ports transmitting terminal is the most identical with described operation values a, when When described operation values b is identical with operation values a, then send correct order to the receiving terminal of described serial ports;When described operation values b and During operation values a difference, then the transmitting terminal of described serial ports is ordered to resend data;
The receiving terminal of serial ports, in order to receive the data that the transmitting terminal of serial ports sends, and by the data of described reception, by two One operation values b of system accumulation calculating, and described operation values b is returned to the transmitting terminal of described serial ports.
Further, described system also includes:
By the algorithm that binary system is cumulative, the data that described serial ports transmitting terminal sends are calculated operation values a.
Further, described system also includes:
By the algorithm that binary system is cumulative, the data that described serial ports receiving terminal receives are calculated operation values b.
The system of a kind of Serial Port Transmission data that the embodiment of the present invention provides so that the effectiveness of Serial Port Transmission data increases By force, the data that receiving terminal receives are more accurate so that even if transmitted data amount increases, and still can be substantially reduced the mistake receiving data Probability, improves Serial Port Transmission data accuracy, improves Consumer's Experience by mistake.
One skilled in the art would recognize that above-mentioned detailed description of the invention is exemplary, be to make ability Field technique personnel can be better understood from this patent content, should not be understood as the restriction to this patent protection domain, as long as Any equivalent change made according to spirit disclosed in this patent or modification, each fall within this patent protection domain.

Claims (6)

1. an implementation method for Serial Port Transmission data, for the communications field, it is characterised in that comprise the following steps:
The transmitting terminal of described serial ports sends data;
The data sent by described serial ports transmitting terminal, the algorithm cumulative by binary system calculates operation values a;
The receiving terminal of described serial ports receives data;
The data received by described serial ports receiving terminal, the algorithm cumulative by binary system calculates operation values b;
Described operation values b is returned to the transmitting terminal of described serial ports;
Verify that operation values b that the transmitting terminal of described serial ports receives is the most identical with operation values a;
When described operation values b is identical with operation values a, then send correct order to the receiving terminal of described serial ports;When described fortune
When calculation value b is different with operation values a, then the transmitting terminal of described serial ports is ordered to resend data.
2. the implementation method of Serial Port Transmission data as claimed in claim 1, it is characterised in that:
By the algorithm that binary system is cumulative, the data that described serial ports transmitting terminal sends are calculated operation values a.
3. the implementation method of Serial Port Transmission data as claimed in claim 1, it is characterised in that:
By the algorithm that binary system is cumulative, the data that described serial ports receiving terminal receives are calculated operation values b.
4. the system of Serial Port Transmission data, it is characterised in that including:
The transmitting terminal of serial ports, in order to send data, and the algorithm described data added up by binary system to the receiving terminal of serial ports Calculating operation values a, operation values b that checking serial ports receiving terminal returns to serial ports transmitting terminal is the most identical with described operation values a, When described operation values b is identical with operation values a, then send correct order to the receiving terminal of described serial ports;When described operation values b Time different with operation values a, then the transmitting terminal of described serial ports is ordered to resend data;
The receiving terminal of serial ports, in order to receive the data that the transmitting terminal of serial ports sends, and by the data of described reception, passes through binary system Cumulative algorithm calculates operation values b, and described operation values b returns to the transmitting terminal of described serial ports.
5. the system of Serial Port Transmission data as claimed in claim 4, it is characterised in that:
By the algorithm that binary system is cumulative, the data that described serial ports transmitting terminal sends are calculated operation values a.
6. the system of Serial Port Transmission data as claimed in claim 4, it is characterised in that:
By the algorithm that binary system is cumulative, the data that described serial ports receiving terminal receives are calculated operation values b.
CN201210417324.6A 2012-10-29 2012-10-29 A kind of realization method and system of Serial Port Transmission data Active CN103793343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210417324.6A CN103793343B (en) 2012-10-29 2012-10-29 A kind of realization method and system of Serial Port Transmission data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210417324.6A CN103793343B (en) 2012-10-29 2012-10-29 A kind of realization method and system of Serial Port Transmission data

Publications (2)

Publication Number Publication Date
CN103793343A CN103793343A (en) 2014-05-14
CN103793343B true CN103793343B (en) 2016-12-21

Family

ID=50669038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210417324.6A Active CN103793343B (en) 2012-10-29 2012-10-29 A kind of realization method and system of Serial Port Transmission data

Country Status (1)

Country Link
CN (1) CN103793343B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933097A (en) * 2016-04-20 2016-09-07 上海斐讯数据通信技术有限公司 Testing method and system based on serial port communication
CN111258295A (en) * 2020-01-15 2020-06-09 重庆长安汽车股份有限公司 System and method for verifying big data acquisition and uploading accuracy
CN114153769A (en) * 2021-11-11 2022-03-08 天津市英贝特航天科技有限公司 Data verification method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179790A (en) * 2007-11-03 2008-05-14 青岛海信移动通信技术股份有限公司 Serial port communication method between mobile terminal processor
CN101296348A (en) * 2008-05-24 2008-10-29 青岛海信电器股份有限公司 Communication method of recordable television set

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179790A (en) * 2007-11-03 2008-05-14 青岛海信移动通信技术股份有限公司 Serial port communication method between mobile terminal processor
CN101296348A (en) * 2008-05-24 2008-10-29 青岛海信电器股份有限公司 Communication method of recordable television set

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于LabVIEW的串口通信数据校验和的实现方法;陈金平等;《自动化仪表》;20080320(第3期);第32-34页 *
基于串口自定义协议传输文件的设计;陈荔等;《计算机技术与发展》;20120229;第22卷(第2期);第45-22卷 *
自定义串口数据通信协议的分析与设计;王承君;《计算机工程》;20041231;第30卷(第24期);第192-194页 *

Also Published As

Publication number Publication date
CN103793343A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
NZ585742A (en) Determining random access transmit power based on preamble parameters and transmission attempt number
CN101047688B (en) Method and device for estimating signal noise ratio
WO2009140634A3 (en) Method and apparatus for using virtual noise figure in a wireless communication network
Yan et al. Derivative-based signal detection for high data rate molecular communication system
CN103793343B (en) A kind of realization method and system of Serial Port Transmission data
MX2011012670A (en) Trusted remote attestation agent (traa).
TWI461013B (en) Data processing apparatus and data processing method thereof for use in power line communications
CN103580772B (en) Data transmission method, system and equipment, terminal obtain the method and terminal of data
RU2016145148A (en) METHOD, DEVICE AND D2D DATA TRANSFER DETECTION SYSTEM
CN103067129B (en) network data transmission method and system
CN104753634A (en) DCI (Downlink Control Information) detection method and device
CN104467990A (en) Method and device for recognizing line-of-sight propagation path of wireless signals
CN104038963A (en) Method and device for transmitting control information in wireless communication system
GB2482433A (en) Estimation of signal and interference power
CN101404564B (en) Soft demodulation method for 8PSK Gray mapping
CN108923892A (en) A kind of bluetooth method of reseptance, bluetooth receiver and Bluetooth audio equipment
CN102035771B (en) Method and device for eliminating direct current offset
EP3447668B1 (en) Utilizing routing for secure transactions
CN104247287A (en) Method and device for determining CoMP user
CN103248460B (en) Under imperfect channel state in mimo system based on interference alignment signal processing method
CN102474316B (en) For switching device, the system and method for MIMO transmission technology in a wireless communication system
CN106576269B (en) Data transmission method, equipment and system
CN102802154A (en) Certification method, device and system for data transmission in Internet of Things
CN108322245B (en) Channel state reference signal sending method, device and receiving method and mobile terminal
Song et al. Quantifying the accuracy of high SNR BER approximation of MPSK and MDPSK in fading channels

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20180313

Granted publication date: 20161221

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20210313

Granted publication date: 20161221

PD01 Discharge of preservation of patent
PP01 Preservation of patent right

Effective date of registration: 20210313

Granted publication date: 20161221

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20240313

Granted publication date: 20161221