Background
With the development and application of high-capacity and high-speed communication technologies such as 5G and optical fiber, the amount of information transmitted in unit time is larger and larger. For the consistency of information between the transmitting and receiving parties in the communication process, a challenge is faced. In application scenarios such as long distance, multi-terminal, high altitude, etc., various interferences may be received during transmission to cause signal distortion data errors. Meanwhile, with the large application of electronic equipment and the change of environments such as atmospheric geology and the like, various electromagnetic interference phenomena frequently occur. For modern communication with high speed, large capacity, low delay and high consistency, a new communication mechanism is needed to ensure the information consistency between the transmitting side and the receiving side. Especially for scenes related to large-range crowd safety, high-risk industries, special mechanical operation and the like, once the transmission error rate is too high, a great result is generated. At present, the error rate is reduced by a modulation and demodulation mode, a time domain and a frequency domain are balanced, an error control coding mode and the like. However, for the development of high-capacity and high-speed communication technologies such as 5G and optical fiber, the reduction effect of the existing scheme cannot keep up with the development of the technology, and the reduction of the bit error rate still cannot achieve the ideal effect, so a new communication mechanism is needed to ensure the data accuracy in the transmission process.
Corresponding improvement is also carried out aiming at the problems, for example, Chinese patent application No. CN201710774263.1, the publication date is 29.12.2017, the patent discloses a link error code detection diagnosis method and a device based on a digital optical fiber distribution system, an error code detection module and an uplink signal switch function module are added at the service transmission physical interface of each node, when an error code is generated at any service transmission physical interface in the digital optical fiber distribution system, the error code accumulated number difference in adjacent unit time periods is calculated through the error code accumulated number detected by the error code detection module at the corresponding node, and the change condition of the error code is obtained; based on the change condition of the error code, the uplink service data signal is managed by adopting a fast-switching and slow-switching mode through the uplink signal switching functional module at the corresponding node through a diagnosis mechanism, so that the influence of the error code is reduced. The disadvantages of the patent are that: the cost is high, and troubleshooting is tedious.
Also, for example, chinese patent application No. CN201210008511.9, published as 2012, 5, 16, discloses a method and an apparatus for transmitting uplink data and uplink scheduling information. The uplink data transmission method comprises the following steps: the terminal counts the error rate of the uplink data transmission in the current period; judging whether the error rate is larger than a set error rate threshold or not; if yes, the terminal sets transmission parameters according to the average transmission rate and the target transmission rate in the current period; if not, judging whether the error rates of the continuous appointed number of periods including the current period are all less than or equal to the error rate threshold, if so, setting transmission parameters by the terminal according to the average transmission block value of the current period and the transmission block threshold; and then, the subsequent uplink data is transmitted according to the set transmission parameters. The disadvantages of the patent are that: although the threshold of the error rate is limited, the degree of the overall error reduction is limited.
Disclosure of Invention
1. Problems to be solved
Aiming at the problems of higher error rate and complex process of the existing communication, the invention provides a communication method, a system and a storage medium for reducing the error code of information transmission. The invention adds the step of extracting the core data and returning the core data to the sender for confirmation after the receiver receives the data on the basis of the original data transmission, ensures the reliability and the accuracy of the communication transmission, achieves the effect of reducing the bit error rate on the premise of not greatly changing the existing communication standards, and embodies the compatibility of the existing standards.
2. Technical scheme
In order to solve the above problems, the present invention adopts the following technical solutions.
A communication method for reducing information transmission error codes comprises the following steps:
s1: a sender encodes data to be transmitted according to a format to form an original code stream and sends the original code stream to a receiver;
s2: the receiver performs decoding check after receiving the original code stream, and if the receiver has a problem, the sender retransmits the code stream; if no problem exists, the next step is carried out;
s3: the receiver extracts the core data in the original code stream, encodes the core data to form a check code stream and then sends the check code stream to the sender;
s4: the sender receives the check code stream and then performs decoding check, and if a problem exists, the receiver retransmits the check code stream; if no problem exists, the next step is carried out;
s5: the sender extracts and checks the core data in the check code stream, and if no problem exists, the sender sends a confirmation code to the receiver; if yes, repeating the steps S1 to S5 until the sender checks that there is no problem;
s6: and after receiving the confirmation code, the receiving party completes the data transmission process.
Further, the step S2 includes requesting the sender to resend the data to be transmitted when the receiver does not receive the original code stream of the sender within the set interval.
Further, in step S2, after the receiving side receives the original codestream, security verification is performed, and then decoding verification is performed.
Further, in step S5, when the sender resends the data to be transmitted to the receiver, the receiver performs subsequent operations based on the newly received data code stream, and deletes the previously received original code stream.
A system for communication using any of the above methods for reducing information transmission errors, comprising: the transmitting terminal and the receiving terminal both comprise:
a communication module: the system is used for communication between a sending end and a receiving end;
the coding module: the code stream is formed by coding the data;
a sending module: used for sending code stream or instruction;
a decoding and checking module: the decoder is used for decoding and checking the code stream;
a receiving module: used for receiving code stream or instruction;
an extraction module: the core data extraction module is used for extracting core data in the code stream;
a request module: for generating a request instruction;
and the sending end further comprises a verification module: for verifying the core data.
Furthermore, the sending end and the receiving end are both provided with a security module: and the method is used for carrying out safety monitoring on the received code stream and the received command.
Furthermore, the sending end and the receiving end also comprise alarm modules, and the alarm modules are electrically connected with the safety modules and used for monitoring the working conditions of the sending end and the receiving end.
A storage medium having a plurality of instructions adapted to be loaded by a processor to perform the steps of a method of communication for reducing errors in the transmission of information as described in any one of the above.
3. Advantageous effects
Compared with the prior art, the invention has the beneficial effects that:
(1) on the basis of original data transmission, the invention adds a step of extracting core data and returning the core data to a sender for confirmation after the receiver receives the data, the sender checks whether the core data is correct so as to determine whether to send a confirmation code to the receiver, and the receiver indicates the end of the whole transmission process after receiving the confirmation code; by adding the verification step, the new transmission mechanism effectively reduces the error rate in the data transmission process, ensures the reliability and accuracy of communication transmission, achieves the effect of reducing the error rate on the premise of not greatly changing the existing communication standards, embodies the compatibility of the existing standards, and meets the modern communication requirements facing high speed, large capacity, low time delay and high consistency;
(2) the receiver in the invention can request the sender to resend the data stream as long as the receiver does not receive the data stream of the sender within the specified interval, thereby effectively avoiding the inaccuracy of transmission results caused by the data stream not being updated and sent to the receiver in time or the data stream received by the receiver for delaying the data stream, and ensuring the timeliness of the data stream within the specified interval; meanwhile, before decoding verification, security verification is carried out on the code stream, so that the security of the whole transmission process is ensured; the data code stream received by the receiver is ensured to be the latest data code stream, the original code stream is deleted, the disorder caused by a plurality of data streams is avoided, the subsequent processing and transmission process is influenced, the accuracy of the whole data transmission is greatly ensured, and the error rate is further reduced;
(3) the invention has the advantages that the modules in the sending end and the receiving end work normally, communicate with each other and work independently, the structure is simple, and the realization is easy; meanwhile, the safety module effectively monitors the messages received by the sending end and the receiving end, so that the virus invasion risk is avoided, and the safety and the stability of the whole transmission are effectively ensured; and the safety module is electrically connected with the alarm module, the alarm module increases the timeliness of the whole system, and when an accident or a risk occurs, the alarm module is started to draw the attention of a worker, so that the adjustment is convenient in time, and the smooth proceeding of the transmission process is ensured.
Detailed Description
The invention is further described with reference to specific examples.
Taking the CCITT (international telegraph telephone counseling committee) standard as an example, the committee has two standards for digital data transmission. Respectively x.50 and x.51. X.50 employs the (6+2) envelope format and X.51 employs the (8+2) envelope format, both formats being as follows: CCITT x.50 employs the (6+2) encapsulation format:
[ note ] F: a frame synchronization bit; d: a data bit; s: status bit
CCITT X.51 in (8+2) envelope format
[ note ] S: a status bit; a: wrapping the synchronization bits; d: data bit
Where F (frame sync bit), a (envelope sync bit) and S (status bit) are all used to mark the data integrity agreed by the data sender and receiver. Although the size and the amount of data in the transmission process are consistent, the error recognition after D (data bit) is interfered cannot be ensured. The method and the device creatively construct a new communication transmission mechanism through the research on the communication mechanism, achieve the effect of reducing the bit error rate on the premise of not changing a plurality of existing communication standards and embody the compatibility of the existing standards. The method meets the modern communication requirements for high speed, large capacity, low time delay and high consistency.
Example 1
Specifically, in this embodiment, a communication method for reducing information transmission errors includes the following steps:
s1: the method comprises the steps that a communication link is established between a sender and a receiver, the sender encodes data to be transmitted according to a selected format, and an original code stream is formed after encoding and is sent to the receiver; specifically, the encoding rule may refer to table 1 below:
TABLE 1 encoding rules
| Means of | Code |
| 00001111 | Start code |
| 11110000 | End code |
| 10101010 | Temperature sign |
| 11001100 | Equipment sign |
| 01010101 | Interval code |
| 00000000 | Equipment is normal |
| 11111111 | Equipment failure |
In this step, the encoding rule is: start code-temperature flag-temperature value-interval code-equipment flag-equipment state-end code; the coding rule has complete data, is concise and clear, and has high coding efficiency; for example: the 'temperature is 10 ℃, the equipment state is normal' can be coded into the following initial code streams:
s2: the receiver decodes and checks the original code stream according to the communication protocol agreed by the two parties, if the check is successful, the receiver sends a retransmission request to the sender to request the sender to resend the data code stream; if no problem exists, the next step is carried out; in the step, the receiver requests the sender to resend the data to be transmitted when the receiver does not receive the original code stream of the sender within a set interval, the set interval is determined according to the actual situation, the inaccuracy of the transmission result caused by the delayed data stream which is not sent to the receiver in time after the update of the data stream occurs is effectively avoided, and the timeliness of the data stream is ensured within a specified interval; meanwhile, after receiving the original code stream, the receiver firstly carries out security verification and then carries out decoding verification, thereby ensuring the security of the whole process;
s3: the receiver extracts core data (such as a sensing value, a key instruction and the like) in the original code stream, encodes the core data to form a check code stream and then sends the check code stream to the sender; specifically, the receiver feedback coding rule may refer to table 2 below:
table 2 receiver feedback coding rules
| Means of | Code |
| 00001111 | Start code |
| 11110000 | End code |
| 01010101 | Interval code |
| 00000000 | Equipment is normal |
| 11111111 | Equipment failure |
In this step, the encoding rule is: start code-interval code-extraction temperature value-interval code-extraction equipment state-end code; for example: the received 'the temperature is 10 ℃, the equipment state is normal', and the check code stream formed after the coding is as follows:
s4: the sender receives the check code stream and then carries out decoding check, if the sender has problems, the sender sends a retransmission request to the receiver, and then the receiver resends the check code stream; if no problem exists, the next step is carried out;
s5: the sender extracts and checks the core data in the check code stream, and if no problem exists, the sender sends a confirmation code to the receiver; if yes, repeating the steps S1 to S5 until the sender checks that there is no problem; it is noted that if the sender checks that there is a problem, the data to be transmitted will be retransmitted to the receiver, i.e. steps S1 to S5 will be repeated until the sender checks that there is no error, and a confirmation code is formed; in the step, when the sender resends the data to be transmitted to the receiver, the receiver performs subsequent operation based on the newly received data code stream, and simultaneously deletes the previously received original code stream, so as to avoid confusion between the latest data code stream and the original code stream, and influence on the extraction of the core data and the checking process between the latest data code stream and the sender; the accuracy of the data is ensured to the maximum extent, so that the error rate is reduced;
s6: and after receiving the confirmation code, the receiving party completes the data transmission process.
The invention adds the steps that the core data is extracted and returned to the sender for confirmation after the receiver receives the data on the basis of the original data transmission, and the confirmation code is sent to the receiver if the core data is correct after the sender checks. If the data is wrong, the transmitting side retransmits the data to carry out circulation. The new transmission mechanism effectively reduces the error rate in the data transmission process by adding the verification step, ensures the reliability and the accuracy of communication transmission, and has simple and convenient operation and simple flow. After the communication method is adopted, the acceptable maximum bit error rate set by a 1000Base-T network is 10-10 and is reduced to 10-18 in comparison with the IEEE802.3 standard of the Institute of Electrical and Electronics Engineers (Institute of Electrical and Electronics Engineers).
Example 2
A system for communication using any of the above methods for reducing information transmission errors, comprising: the device comprises a sending end and a receiving end, wherein the sending end is used for sending data to be transmitted, and the receiving end is used for receiving the data sent by the sending end. The transmitting end and the receiving end both comprise:
a communication module: the system is used for communication between a sending end and a receiving end;
the coding module: the code stream is formed by coding the data according to the selected format; specifically, data of a sending end needs to be coded by a coding module and then sent to a receiving end; core data in a receiving end needs to be coded by a coding module and then sent to a sending end for verification;
a sending module: used for sending the code stream or corresponding request command; the code stream or the request instruction sent by the sending module is sent to a corresponding sending end or a corresponding receiving end through the communication module;
a decoding and checking module: the decoding and checking device is used for decoding and checking the code stream sent by the sender or the receiver;
a receiving module: used for receiving code stream or instruction;
an extraction module: the core data extraction module is used for extracting the core data in the code stream sent by the sender or the receiver;
a request module: for generating a request instruction;
the sending end further comprises a verification module: for verifying the core data extracted in the extraction module.
The system works normally through each module, works independently while depending on each other, is simple in structure and easy to realize, verifies whether core data sent by a receiving end is consistent with core data sent by the receiving end through a verification module of a sending end, sends a confirmation code to the receiving end if the core data is consistent with the core data, and sends the most original data to be transmitted to the receiving end for circular operation if the core data is inconsistent with the core data until the whole transmission process of sending the confirmation code to the receiving end is finished. Therefore, the effect of effectively reducing the error rate is achieved, and the reliability and the accuracy of communication transmission are ensured by colleagues. Furthermore, the sending end and the receiving end are both provided with a security module: the method and the device are used for carrying out safety monitoring on the received code stream and the received command, avoiding virus invasion risks or other potential safety hazards, and effectively ensuring the safety and the stability of the whole transmission. Meanwhile, the alarm module is electrically connected with the safety module and used for monitoring the working conditions of the sending end and the receiving end, the alarm module increases the timeliness of the whole system, when an accident or a risk occurs, the alarm module is started to arouse the attention of a worker, so that the adjustment is convenient to carry out in time, and the smooth proceeding of the transmission process is ensured.
Example 3
A storage medium having a plurality of instructions adapted to be loaded by a processor to perform the steps of any of the above-mentioned methods for reducing transmission errors. The storage medium in this embodiment may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, and may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
The examples described herein are merely illustrative of the preferred embodiments of the present invention and do not limit the spirit and scope of the present invention, and various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the design concept of the present invention shall fall within the protection scope of the present invention.