WO2016082385A1 - Message transmission method, device, system and computer storage medium - Google Patents

Message transmission method, device, system and computer storage medium Download PDF

Info

Publication number
WO2016082385A1
WO2016082385A1 PCT/CN2015/074788 CN2015074788W WO2016082385A1 WO 2016082385 A1 WO2016082385 A1 WO 2016082385A1 CN 2015074788 W CN2015074788 W CN 2015074788W WO 2016082385 A1 WO2016082385 A1 WO 2016082385A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
transmitted
bit
data
value
Prior art date
Application number
PCT/CN2015/074788
Other languages
French (fr)
Chinese (zh)
Inventor
陈杰
汪波
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016082385A1 publication Critical patent/WO2016082385A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received

Definitions

  • the present invention relates to data communication transmission technologies, and in particular, to a method, device, system and computer storage medium for message transmission.
  • Serial communication refers to a communication method in which message data is transmitted in bit order on a single transmission line.
  • serial communication can effectively save data transmission lines.
  • the asynchronous serial communication is transmitted by the transmitting end frame by frame after the data is formed into the character frame, and is received by the receiving end frame by frame through a single transmission line, so that Avoid setting the clock line on the transmitter and receiver for clock synchronization.
  • asynchronous serial communication not only has a complicated codec, but also needs to add too many information bits, that is, an additional overhead of message transmission, and usually asynchronous serial communication is only used for point-to-point message transmission.
  • embodiments of the present invention are expected to provide a method, device, system, and computer storage medium for message transmission.
  • an embodiment of the present invention provides a message transmission method applied to a transmitting end, including:
  • the sending end sets a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
  • the sending end performs verification according to the data value of the to-be-transmitted message, to obtain the to-be-transmitted The check value of the message;
  • the transmitting end sequentially forms the synchronization header data, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message into serial data corresponding to the to-be-transmitted message, and connects the serial through a transmission line.
  • the data is transmitted to the receiving end.
  • the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit The number of message types supported by the sender is determined.
  • the start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value last for N transmit clock cycles; the wait bit And each bit of the type bit lasts for K transmission clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
  • the method further includes:
  • the transmitting end transmits an idle bit opposite to the bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
  • an embodiment of the present invention provides a message transmission method applied to a receiving end, including:
  • the message to be transmitted is determined to be a message that needs to be received according to the type of the message to be transmitted indicated by the synchronization header data;
  • the serial data is composed of the synchronization header data, the data value of the to-be-transmitted message, and the check value sequence of the to-be-transmitted message;
  • the receiving end determines that the message to be transmitted is a message that needs to be received by itself, sampling the data value of the to-be-transmitted message in the serial data and the check value of the to-be-transmitted message;
  • the receiving end verifies the data value of the to-be-transmitted message according to the check value of the to-be-transmitted message obtained by sampling;
  • the receiving end determines that the data value of the message to be transmitted is available. According to the value.
  • the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit continues M transmission clock cycles; each of the data values of the message to be transmitted and each of the check values last for N transmission clock cycles; each of the wait bits and the type bits The bits all last for K transmission clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
  • the frequency of the sampling clock of the receiving end is the same as the frequency of the sending clock of the transmitting end;
  • the receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, including:
  • the receiving end When the receiving end continuously receives the start bit value of the M sampling clock cycles, it determines that the synchronization header data of the serial data corresponding to the to-be-transmitted message is detected.
  • the receiving end determines, according to the type of the to-be-transmitted message that the synchronization header data indicates, that the to-be-transmitted message is a message that needs to be received by the receiving end, including:
  • the receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted;
  • the receiving end matches the type of the message to be transmitted according to the type of the message that needs to be received by the receiving end;
  • the receiving end determines that the to-be-transmitted message is a message that it needs to receive.
  • the receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted, including:
  • the receiving end selects, according to the value of the corresponding bit, the data value corresponding to the center beat in the K sampling clock cycles in which each bit of the type of the synchronization header data continues;
  • the receiving end determines the type of the message to be transmitted according to the correspondence between the type bit value of the synchronization header data and the preset type bit value and the message type.
  • the receiving end samples the data value of the to-be-transmitted message and the check value of the to-be-transmitted message in the serial data, including:
  • the receiving end selects a data value corresponding to the center beat in the N sampling clock periods of each of the data values of the to-be-transmitted message and the check value, and the value of the corresponding bit.
  • an embodiment of the present invention provides a sending end, where the sending end includes: a setting unit, a check unit, a component unit, and a transmission unit, where
  • the setting unit is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
  • the checking unit is configured to perform verification according to the data value of the to-be-transmitted message, to obtain a check value of the to-be-transmitted message;
  • the component unit is configured to sequentially form the synchronization header data set by the setting unit, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message obtained by the verification unit to form the to-be-transmitted message.
  • the transmission unit is configured to transmit serial data composed of the constituent units to a receiving end through a transmission line.
  • the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit The number of message types supported by the sender is determined.
  • the start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value last for N transmit clock cycles; the wait bit And each bit of the type bit lasts for K transmission clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
  • the transmission unit is further configured to transmit an idle bit opposite to a bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
  • an embodiment of the present invention provides a receiving end, where the receiving end includes: a monitoring unit, a determining unit, a sampling unit, and a check unit, where
  • the monitoring unit is configured to monitor synchronization header data of serial data corresponding to the message to be transmitted;
  • the determining unit is configured to determine, when the monitoring unit detects the synchronization header data of the serial data corresponding to the to-be-transmitted message, the to-be-transmitted according to the type of the to-be-transmitted message indicated by the synchronization header data
  • the message is a message that the receiving end itself needs to receive; and the sampling unit is triggered after determining that the to-be-transmitted message is a message that the receiving end itself needs to receive; wherein the serial data is used by the synchronization header Data, the data value of the to-be-transmitted message, and the check value sequence of the to-be-transmitted message;
  • the sampling unit is configured to sample a data value of the to-be-transmitted message in the serial data and a check value of the to-be-transmitted message;
  • the checking unit is configured to check the data value of the to-be-transmitted message according to the check value of the to-be-transmitted message sampled by the sampling unit;
  • the determining unit is further configured to: after the verification unit successfully verifies, determine that the data value of the to-be-transmitted message is an available data value.
  • the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit continues M transmission clock cycles; each of the data values of the message to be transmitted and each of the check values last for N transmission clock cycles; each of the wait bits and the type bits The bits all last for K transmission clock cycles; wherein M, N are integers greater than 1, and N is greater than M+2, and K is an integer greater than two.
  • the frequency of the sampling clock of the receiving end is the same as the frequency of the sending clock of the transmitting end;
  • the monitoring unit is configured to, when configured to continuously receive the start bit values of the M sampling clock cycles, determine the synchronization header data of the serial data corresponding to the to-be-transmitted message.
  • the determining unit is configured to:
  • the sampling unit is configured to select a data value corresponding to a center beat in a K sampling clock period in which each bit of the type of the synchronization header data continues for a value of a corresponding bit;
  • the sampling unit is configured to select a data value corresponding to a center beat in each of the N sampling clock periods in which the data value of the message to be transmitted and the check value last for each bit is a value of a corresponding bit.
  • an embodiment of the present invention provides a message transmission system, where the system includes a sending end and a receiving end, where
  • the sending end is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
  • the synchronization header data, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message are sequentially formed into serial data corresponding to the to-be-transmitted message, and the serial data is transmitted through a transmission line.
  • the receiving end is configured to: when the synchronization header data of the serial data corresponding to the message to be transmitted is monitored, determine, according to the type of the to-be-transmitted message indicated by the synchronization header data, that the to-be-transmitted message needs to be received by itself News
  • the embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a transmitting end.
  • the embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a receiving end.
  • the embodiment of the invention provides a method, a device and a system for message transmission.
  • a message to be transmitted is processed by a new codec method, so that in the process of message transmission, Reduces extra overhead and can also be used for point-to-multipoint messaging.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for message transmission according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a serial data waveform according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another method for message transmission according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another serial data waveform according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a sending end according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a receiving end according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a message transmission system according to an embodiment of the present invention.
  • the basic idea of the embodiment of the present invention is: in the process of asynchronous serial communication, the message to be transmitted is processed by a new codec method, so that in the process of message transmission, additional overhead is reduced, and Used for point-to-multipoint messaging.
  • FIG. 1 an application scenario provided by an embodiment of the present invention is shown.
  • the transmitting end 10 and the three receiving ends 20, 30 and 40 are connected between the transmitting end 10 and each receiving end.
  • Data is connected and transmitted through a single transmission line 50.
  • the technical solution is described by using a single transmission line 50 and transmitting data between the transmitting end 10 and the single receiving end.
  • the application scenario can be applied to the transmitting end 10 and other receiving ends.
  • the data is transmitted between the embodiments of the present invention, and the present application is not limited to the specific embodiments of the present invention.
  • FIG. 2 a method flow of a message transmission according to an embodiment of the present invention is shown.
  • the method is applied to a sending end, and the method includes:
  • the sender sets a fixed number of synchronization header data, where the synchronization header data is used to indicate the start of the message to be transmitted and the type of the message to be transmitted;
  • the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein, the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit is supported by the sender to send the message type. Number determination
  • the start bit lasts for M transmit clock cycles; each bit in the data value of the message to be transmitted and each bit in the check value last for N transmit clock cycles; wait bits and type bits Each bit lasts for K transmission clock cycles; wherein, in order to enable the receiving end to allow error sampling when detecting the start bit, M and N are integers greater than 1; and in order to distinguish the start bit of the message, Preferably, N is greater than M+2 and K is an integer greater than two.
  • the receiving end may be configured to determine whether the message needs to be received by the receiving end according to the type of the message to be transmitted indicated by the type bit, thereby Data can be sent to multiple receiving ends on a single transmission line to achieve point-to-multipoint messaging.
  • S202 The sending end performs verification according to the data value of the message to be transmitted, and obtains a check value of the message to be transmitted.
  • the verification algorithm used by the transmitting end to perform verification according to the data value of the message to be transmitted may be a Cyclic Redundancy Check (CRC) check, or may be a checksum parity check.
  • CRC Cyclic Redundancy Check
  • the other embodiment of the present invention is not specifically limited; the embodiment is preferably a CRC check.
  • S203 The transmitting end sequentially synchronizes the synchronization header data, the data value of the message to be transmitted, and the check value of the message to be transmitted into serial data corresponding to the message to be transmitted, and transmits the serial data to the receiving end through the transmission line.
  • the transmitting end may set the transmission interval between the serial data for transmitting the data to be transmitted twice to be greater than the time for transmitting the serial data once, and the transmitting end may The transmission interval between the serial data of the secondary transmission data sets the idle time, thereby simplifying the design of the monitoring synchronization head at the receiving end, and avoiding the case where the receiving end mistakenly uses the data in the message as the synchronization header;
  • the method provided in this embodiment further includes: the sending end is in two, in order to be able to distinguish the serial data of the data to be transmitted, which is sent by the transmitting end, when the transmitting end has two idle data transmissions.
  • the idle bit opposite to the bit value of the start bit is transmitted in the transmission interval between the serial data of the secondary transmission data. Understandably, when the transmitting end continuously transmits serial data, the transmitting end may not need to transmit idle bits.
  • FIG. 3 an exemplary serial data waveform diagram sent by the transmitting end in the method flow of the message transmission shown in FIG. 2 is shown.
  • the start bit is shown in the synchronization header data.
  • a high level is indicated by a logic 1 in this embodiment;
  • FIG. 4 shows a method flow of another message transmission provided by the embodiment of the present invention, and the method is applied.
  • the method includes:
  • the serial data is composed of the synchronization header data, the data value of the message to be transmitted, and the check value of the message to be transmitted.
  • the synchronization header data includes: a start bit and a wait bit. And a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit lasts for M transmit clock cycles; each bit in the data value of the message to be transmitted and the check value Each bit in the bit lasts for N transmit clock cycles; each bit of the wait bit and the type bit lasts for K transmit clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, K is an integer greater than 2.
  • the frequency of the sampling clock of the receiving end is the same as the frequency of the transmitting clock; correspondingly, the receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, including:
  • the receiving end When the receiving end continuously receives the start bit value of the M sampling clock cycles, it determines that the synchronization header data of the serial data corresponding to the message to be transmitted is monitored.
  • the receiving end determines, according to the type of the to-be-transmitted message indicated by the synchronization header data, that the message to be transmitted is a message that needs to be received by itself, including:
  • the receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted;
  • the receiving end matches the type of the message to be transmitted according to the type of the message that needs to be transmitted by the receiving end;
  • the receiving end determines that the message to be transmitted is a message that needs to be received by itself.
  • the receiving end samples the type bit value of the synchronization header data, and the type of the message to be transmitted includes: the receiving end can select the center point of the K sampling clock cycles in which each bit in the type of the synchronization header data continues.
  • the data value is the value of the corresponding bit; then, the receiving end root Determining the type of the message to be transmitted according to the correspondence between the type bit value of the synchronization header data and the preset type bit value and the message type; it can be understood that the receiving end selects the center of the K sampling clock cycles in which the bit lasts.
  • the corresponding data value is the value of the corresponding bit, which ensures that the data can be correctly sampled even if the clocks of the transmitting end and the receiving end are non-homologous clocks; and when K is even, the center takes K/2 shots. When K is an odd number, the center takes the (K+1)/2 beat.
  • the transmitting end can transmit to multiple by using a single transmission line.
  • the receiving end transmits the message, and the receiving end itself determines whether to receive according to the type of the message to be transmitted, thereby implementing point-to-multipoint message transmission.
  • the receiving end determines that the message to be transmitted is not a message that needs to be received by itself, the serial data is directly discarded.
  • the receiving end samples the data value of the message to be transmitted in the serial data and the check value of the message to be transmitted, including:
  • the receiving end selects the data value of the message to be transmitted and the data value corresponding to the center beat in each of the N sampling clock periods in which each bit of the check value continues; it is understood that when N is even
  • the center takes N/2 beats; when N is odd, the center takes the (N+1)/2 beats.
  • S403 The receiving end verifies the data value of the message to be transmitted according to the check value of the sampled message to be transmitted.
  • the receiving end determines that the data value of the message to be transmitted in the serial data is not available, and discards the serial data.
  • FIG. 5 shows an exemplary serial data waveform diagram received by the receiving end in the method flow of the message transmission shown in FIG. 4, similar to FIG. 3, in the synchronization header data, the receiving end samples
  • the sampling clock period of the start bit is 2 transmission clock cycles;
  • the sampling clock period of the sampling wait bit of the receiving end is 5 transmission clock cycles;
  • the third beat data value of the five transmission periods is indicated by a broken line in the figure.
  • the message transmission method provided in the foregoing embodiment in the process of asynchronous serial communication, processes a message to be transmitted through a new codec method, thereby reducing additional overhead in the process of message transmission, and Used for point-to-multipoint messaging.
  • a structure of a transmitting end 60 including a setting unit 601, a check unit 602, a component unit 603, and a transmission unit 604. ,
  • the setting unit 601 is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate the start of the message to be transmitted and the type of the message to be transmitted;
  • the verification unit 602 is configured to perform verification according to the data value of the message to be transmitted, and obtain a check value of the message to be transmitted.
  • the component unit 603 is configured to sequentially form the synchronization header data set by the setting unit 601, the data value of the message to be transmitted, and the check value of the message to be transmitted obtained by the check unit 602 into serial data corresponding to the message to be transmitted;
  • the transmission unit 604 is configured to transmit the serial data composed of the constituent units 603 to the receiving end through the transmission line.
  • the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein, the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit is supported by the sender. The number of message types is determined.
  • the start bit lasts for M transmit clock cycles; each bit in the data value of the message to be transmitted and each bit in the check value last for N transmit clock cycles; each bit of the wait bit and the type bit continues K transmit clock cycles; where M and N are integers greater than 1, and N Greater than M+2, K is an integer greater than 2.
  • the transmission unit 604 is further configured to transmit an idle bit opposite to the bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
  • the transmitting end 60 encodes a message to be transmitted through a new encoding and decoding method in the process of asynchronous serial communication, thereby reducing additional overhead in the process of message transmission, and also capable of reducing additional overhead. Used for point-to-multipoint messaging.
  • setting unit 601, the verification unit 602, the component unit 603, and the transmission unit 604 may be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field at the transmitting end.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA Programming Gate Array
  • the structure of the receiving end 70 includes: a monitoring unit 701, a determining unit 702, a sampling unit 703, and a checking unit 704, based on the same technical concept of the foregoing embodiment. among them,
  • the monitoring unit 701 is configured to monitor synchronization header data of the serial data corresponding to the message to be transmitted;
  • the determining unit 702 is configured to: when the monitoring unit 701 monitors the synchronization header data of the serial data corresponding to the message to be transmitted, determine, according to the type of the message to be transmitted indicated by the synchronization header data, the message to be transmitted is a message that the receiving end 70 needs to receive. And when determining that the message to be transmitted is a message that the receiving end 70 itself needs to receive, triggering the sampling unit 703; wherein the serial data is composed of the synchronization header data, the data value of the message to be transmitted, and the check value sequence of the message to be transmitted;
  • the sampling unit 703 is configured to sample the data value of the message to be transmitted in the serial data and the check value of the message to be transmitted;
  • the checking unit 704 is configured to check, according to the check value of the message to be transmitted sampled by the sampling unit 703, the data value of the message to be transmitted;
  • the determining unit 702 is further configured to determine that the data value of the message to be transmitted is an available data value after the verification unit 704 successfully verifies.
  • the sync header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit continues for M transmit clocks a period; each bit in the data value of the message to be transmitted and each bit in the check value last for N transmission clock cycles; each bit of the wait bit and the type bit lasts for K transmission clock cycles; M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
  • the sampling clock of the receiving end has the same frequency as the transmitting clock of the transmitting end
  • the monitoring unit 701 is configured to continuously receive the start bit values of the M sampling clock cycles, it is determined that the synchronization header data of the serial data corresponding to the message to be transmitted is monitored.
  • the determining unit 702 is configured to:
  • the message to be transmitted is a message that needs to be received by itself.
  • the sampling unit 703 is configured to select a data value corresponding to a central beat of the K sampling clock cycles in each of the type bits of the synchronization header data, and a value of the corresponding bit;
  • the sampling unit 703 is configured to select a data value corresponding to a central beat in each of the N sample clock periods in which the data value of the message to be transmitted and the check value persist for each bit, and the value of the corresponding bit.
  • the receiving end 70 decodes the message to be transmitted by a new codec method in the process of asynchronous serial communication, thereby reducing additional overhead in the process of message transmission, and also capable of reducing additional overhead. Used for point-to-multipoint messaging.
  • monitoring unit 701, the determining unit 702, the sampling unit 703, and the checking unit 704 may be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field at the receiving end.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA Programming Gate Array
  • the system 80 includes a transmitting end 60 and a receiving end 70, where
  • the sending end 60 is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate the start of the message to be transmitted and the type of the message to be transmitted;
  • the synchronization header data, the data value of the message to be transmitted and the check value of the message to be transmitted are sequentially composed of the serial data corresponding to the message to be transmitted, and the serial data is transmitted to the receiving end 70 through the transmission line;
  • the receiving end 70 is configured to: when the synchronization header data of the serial data corresponding to the message to be transmitted is monitored, determine, according to the type of the message to be transmitted indicated by the synchronization header data, that the message to be transmitted is a message that needs to be received by itself;
  • the message transmission system 80 processes the message to be transmitted through a new codec method in the process of asynchronous serial communication, thereby reducing the extra overhead in the process of message transmission, and also Can be used for point-to-multipoint messaging.
  • the embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a transmitting end.
  • the embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a receiving end.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the present invention may employ computer-usable storage media (including but not limited to disks) in one or more of the computer-usable program code embodied therein. A form of computer program product embodied on a memory and optical storage, etc.).
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed in an embodiment of the present invention are a message transmission method, device and system. The method comprises: a transmission terminal sets synchronization header data having a fixed number of bit, the synchronization header data being used to indicate a start of a message to be transmitted and a type of the message to be transmitted; according to a data value of the message to be transmitted, the transmission terminal executes a verification to obtain a verification value of the message to be transmitted; the transmission terminal takes the synchronization header data, the data value and the verification value of the message to be transmitted in sequence to compose serial data corresponding to the message to be transmitted, and transmits the serial data to a receiving terminal via a transmission line.

Description

一种消息传输的方法、设备、系统和计算机存储介质Method, device, system and computer storage medium for message transmission 技术领域Technical field
本发明涉及数据通信传输技术,尤其涉及一种消息传输的方法、设备、系统和计算机存储介质。The present invention relates to data communication transmission technologies, and in particular, to a method, device, system and computer storage medium for message transmission.
背景技术Background technique
串行通信是指在单根传输线上将消息数据按位顺序传送的一种通信方式。在对消息传输效率要求不高的应用场景下,串行通信能够有效节省数据传输线。在发送端和接收端在各自的时钟没有严格的同步要求情况下,异步串行通信通过将数据组成字符帧之后,由发送端逐帧发送,通过单根传输线被接收端逐帧接收,这样可以避免在发送端和接收端设置时钟线来进行时钟同步。Serial communication refers to a communication method in which message data is transmitted in bit order on a single transmission line. In an application scenario where message transmission efficiency is not high, serial communication can effectively save data transmission lines. In the case that the transmitting end and the receiving end do not have strict synchronization requirements in the respective clocks, the asynchronous serial communication is transmitted by the transmitting end frame by frame after the data is formed into the character frame, and is received by the receiving end frame by frame through a single transmission line, so that Avoid setting the clock line on the transmitter and receiver for clock synchronization.
但是,目前异步串行通信不仅编解码较为复杂,需要增加过多的信息位,也就是增加了消息传输的额外开销,而且通常异步串行通信仅用于点对点的消息传输。However, at present, asynchronous serial communication not only has a complicated codec, but also needs to add too many information bits, that is, an additional overhead of message transmission, and usually asynchronous serial communication is only used for point-to-point message transmission.
发明内容Summary of the invention
为了解决现有存在的技术问题,本发明实施例期望提供一种消息传输的方法、设备、系统和计算机存储介质。In order to solve the existing technical problems, embodiments of the present invention are expected to provide a method, device, system, and computer storage medium for message transmission.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供了一种应用于发送端的消息传输方法,包括:In a first aspect, an embodiment of the present invention provides a message transmission method applied to a transmitting end, including:
所述发送端设置固定位数的同步头数据;其中,所述同步头数据用于指示待传输消息的起始以及所述待传输消息的类型;The sending end sets a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
所述发送端根据所述待传输消息的数据值进行校验,得到所述待传输 消息的校验值;The sending end performs verification according to the data value of the to-be-transmitted message, to obtain the to-be-transmitted The check value of the message;
所述发送端将所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成所述待传输消息对应的串行数据,并通过传输线将所述串行数据传输至接收端。The transmitting end sequentially forms the synchronization header data, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message into serial data corresponding to the to-be-transmitted message, and connects the serial through a transmission line. The data is transmitted to the receiving end.
其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;所述类型位的比特位数由所述发送端支持发送的消息类型数确定。The synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit The number of message types supported by the sender is determined.
其中,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value last for N transmit clock cycles; the wait bit And each bit of the type bit lasts for K transmission clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
其中,所述方法还包括:The method further includes:
所述发送端在两次待传输数据的串行数据之间的传输间隔内传输与所述起始位的位值相反的空闲位。The transmitting end transmits an idle bit opposite to the bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
第二方面,本发明实施例提供了一种应用于接收端的消息传输方法,包括:In a second aspect, an embodiment of the present invention provides a message transmission method applied to a receiving end, including:
接收端监测到待传输消息对应的串行数据的同步头数据时,根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为自身需要接收的消息;其中,所述串行数据由所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成;When the receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, the message to be transmitted is determined to be a message that needs to be received according to the type of the message to be transmitted indicated by the synchronization header data; The serial data is composed of the synchronization header data, the data value of the to-be-transmitted message, and the check value sequence of the to-be-transmitted message;
当所述接收端确定所述待传输消息为自身需要接收的消息之后,对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样;After the receiving end determines that the message to be transmitted is a message that needs to be received by itself, sampling the data value of the to-be-transmitted message in the serial data and the check value of the to-be-transmitted message;
所述接收端根据采样得到的所述待传输消息的校验值对所述待传输消息的数据值进行校验;The receiving end verifies the data value of the to-be-transmitted message according to the check value of the to-be-transmitted message obtained by sampling;
当校验成功后,所述接收端确定所述待传输消息的数据值为可用的数 据值。After the verification is successful, the receiving end determines that the data value of the message to be transmitted is available. According to the value.
其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;并且,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit continues M transmission clock cycles; each of the data values of the message to be transmitted and each of the check values last for N transmission clock cycles; each of the wait bits and the type bits The bits all last for K transmission clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
其中,所述接收端的采样时钟的频率与所述发送端的发送时钟的频率相同;The frequency of the sampling clock of the receiving end is the same as the frequency of the sending clock of the transmitting end;
所述接收端监测到待传输消息对应的串行数据的同步头数据,包括:The receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, including:
所述接收端连续接收到M个采样时钟周期的起始位位值时,确定监测到所述待传输消息对应的串行数据的同步头数据。When the receiving end continuously receives the start bit value of the M sampling clock cycles, it determines that the synchronization header data of the serial data corresponding to the to-be-transmitted message is detected.
其中,所述接收端根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为自身需要接收的消息,包括:The receiving end determines, according to the type of the to-be-transmitted message that the synchronization header data indicates, that the to-be-transmitted message is a message that needs to be received by the receiving end, including:
所述接收端对所述同步头数据的类型位位值进行采样,得到所述待传输消息的类型;The receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted;
所述接收端根据自身需要接收的消息类型与所述待传输消息的类型进行匹配;The receiving end matches the type of the message to be transmitted according to the type of the message that needs to be received by the receiving end;
当匹配成功时,所述接收端确定所述待传输消息为自身需要接收的消息。When the matching is successful, the receiving end determines that the to-be-transmitted message is a message that it needs to receive.
其中,所述接收端对所述同步头数据的类型位位值进行采样,得到所述待传输消息的类型,包括:The receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted, including:
所述接收端选取所述同步头数据的类型位中每个比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;The receiving end selects, according to the value of the corresponding bit, the data value corresponding to the center beat in the K sampling clock cycles in which each bit of the type of the synchronization header data continues;
所述接收端根据所述同步头数据的类型位位值与预设的类型位位值和消息类型的对应关系,确定所述待传输消息的类型。 The receiving end determines the type of the message to be transmitted according to the correspondence between the type bit value of the synchronization header data and the preset type bit value and the message type.
其中,所述接收端对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样,包括:The receiving end samples the data value of the to-be-transmitted message and the check value of the to-be-transmitted message in the serial data, including:
所述接收端选取所述待传输消息的数据值和校验值中每个比特位持续的N个采样时钟周期中的中心拍对应的数据值为相应的比特位的值。The receiving end selects a data value corresponding to the center beat in the N sampling clock periods of each of the data values of the to-be-transmitted message and the check value, and the value of the corresponding bit.
第三方面,本发明实施例提供了一种发送端,所述发送端包括:设置单元、校验单元、组成单元和传输单元,其中,In a third aspect, an embodiment of the present invention provides a sending end, where the sending end includes: a setting unit, a check unit, a component unit, and a transmission unit, where
所述设置单元,配置为设置固定位数的同步头数据;其中,所述同步头数据用于指示待传输消息的起始以及所述待传输消息的类型;The setting unit is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
所述校验单元,配置为根据所述待传输消息的数据值进行校验,得到所述待传输消息的校验值;The checking unit is configured to perform verification according to the data value of the to-be-transmitted message, to obtain a check value of the to-be-transmitted message;
所述组成单元,配置为将所述设置单元设置的同步头数据、所述待传输消息的数据值与所述校验单元得到的所述待传输消息的校验值顺序组成所述待传输消息对应的串行数据;The component unit is configured to sequentially form the synchronization header data set by the setting unit, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message obtained by the verification unit to form the to-be-transmitted message. Corresponding serial data;
所述传输单元,配置为通过传输线将所述组成单元组成的串行数据传输至接收端。The transmission unit is configured to transmit serial data composed of the constituent units to a receiving end through a transmission line.
其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;所述类型位的比特位数由所述发送端支持发送的消息类型数确定。The synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit The number of message types supported by the sender is determined.
其中,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value last for N transmit clock cycles; the wait bit And each bit of the type bit lasts for K transmission clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
其中,所述传输单元,还配置为在两次待传输数据的串行数据之间的传输间隔内传输与所述起始位的位值相反的空闲位。The transmission unit is further configured to transmit an idle bit opposite to a bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
第四方面,本发明实施例提供了一种接收端,所述接收端包括:监测单元、确定单元、采样单元和校验单元,其中, In a fourth aspect, an embodiment of the present invention provides a receiving end, where the receiving end includes: a monitoring unit, a determining unit, a sampling unit, and a check unit, where
所述监测单元,配置为监测待传输消息对应的串行数据的同步头数据;The monitoring unit is configured to monitor synchronization header data of serial data corresponding to the message to be transmitted;
所述确定单元,配置为当所述监测单元监测到所述待传输消息对应的串行数据的同步头数据时,根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为所述接收端自身需要接收的消息;以及当确定所述待传输消息为所述接收端自身需要接收的消息之后,触发所述采样单元;其中,所述串行数据由所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成;The determining unit is configured to determine, when the monitoring unit detects the synchronization header data of the serial data corresponding to the to-be-transmitted message, the to-be-transmitted according to the type of the to-be-transmitted message indicated by the synchronization header data The message is a message that the receiving end itself needs to receive; and the sampling unit is triggered after determining that the to-be-transmitted message is a message that the receiving end itself needs to receive; wherein the serial data is used by the synchronization header Data, the data value of the to-be-transmitted message, and the check value sequence of the to-be-transmitted message;
所述采样单元,配置为对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样;The sampling unit is configured to sample a data value of the to-be-transmitted message in the serial data and a check value of the to-be-transmitted message;
所述校验单元,配置为根据所述采样单元采样得到的所述待传输消息的校验值对所述待传输消息的数据值进行校验;The checking unit is configured to check the data value of the to-be-transmitted message according to the check value of the to-be-transmitted message sampled by the sampling unit;
所述确定单元,还配置为当所述校验单元校验成功后,确定所述待传输消息的数据值为可用的数据值。The determining unit is further configured to: after the verification unit successfully verifies, determine that the data value of the to-be-transmitted message is an available data value.
其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;并且,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N为大于1的整数,且N大于M+2,K为大于2的整数。The synchronization header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit continues M transmission clock cycles; each of the data values of the message to be transmitted and each of the check values last for N transmission clock cycles; each of the wait bits and the type bits The bits all last for K transmission clock cycles; wherein M, N are integers greater than 1, and N is greater than M+2, and K is an integer greater than two.
其中,所述接收端的采样时钟的频率与所述发送端的发送时钟的频率相同;The frequency of the sampling clock of the receiving end is the same as the frequency of the sending clock of the transmitting end;
相应地,所述监测单元,配置为连续接收到M个采样时钟周期的起始位位值时,确定监测到所述待传输消息对应的串行数据的同步头数据。Correspondingly, the monitoring unit is configured to, when configured to continuously receive the start bit values of the M sampling clock cycles, determine the synchronization header data of the serial data corresponding to the to-be-transmitted message.
其中,所述确定单元,配置为:The determining unit is configured to:
指示所述采样单元对所述同步头数据的类型位位值进行采样,得到所述待传输消息的类型; Instructing the sampling unit to sample a type bit value of the synchronization header data to obtain a type of the message to be transmitted;
以及,根据自身需要接收的消息类型与所述待传输消息的类型进行匹配;And matching, according to the type of the message that needs to be received, the type of the message to be transmitted;
以及,当匹配成功时,确定所述待传输消息为自身需要接收的消息。And, when the matching is successful, determining that the to-be-transmitted message is a message that needs to be received by itself.
其中,所述采样单元,配置为选取所述同步头数据的类型位中每个比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;The sampling unit is configured to select a data value corresponding to a center beat in a K sampling clock period in which each bit of the type of the synchronization header data continues for a value of a corresponding bit;
以及,根据所述同步头数据的类型位位值与预设的类型位位值和消息类型的对应关系,确定所述待传输消息的类型。And determining a type of the message to be transmitted according to a correspondence between a type bit value of the synchronization header data and a preset type bit value and a message type.
其中,所述采样单元,配置为选取所述待传输消息的数据值和校验值中每个比特位持续的N个采样时钟周期中的中心拍对应的数据值为相应的比特位的值。The sampling unit is configured to select a data value corresponding to a center beat in each of the N sampling clock periods in which the data value of the message to be transmitted and the check value last for each bit is a value of a corresponding bit.
第五方面,本发明实施例提供了一种消息传输系统,所述系统包括发送端和接收端,其中,In a fifth aspect, an embodiment of the present invention provides a message transmission system, where the system includes a sending end and a receiving end, where
所述发送端,配置为设置固定位数的同步头数据;其中,所述同步头数据用于指示待传输消息的起始以及所述待传输消息的类型;The sending end is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
以及,根据所述待传输消息的数据值进行校验,得到所述待传输消息的校验值;And performing verification according to the data value of the to-be-transmitted message to obtain a check value of the to-be-transmitted message;
以及,将所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成所述待传输消息对应的串行数据,并通过传输线将所述串行数据传输至所述接收端;And, the synchronization header data, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message are sequentially formed into serial data corresponding to the to-be-transmitted message, and the serial data is transmitted through a transmission line. To the receiving end;
所述接收端,配置为监测到所述待传输消息对应的串行数据的同步头数据时,根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为自身需要接收的消息;The receiving end is configured to: when the synchronization header data of the serial data corresponding to the message to be transmitted is monitored, determine, according to the type of the to-be-transmitted message indicated by the synchronization header data, that the to-be-transmitted message needs to be received by itself News
以及,当确定所述待传输消息为所述接收端自身需要接收的消息之后,对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样; And determining, after the message to be transmitted is the message that the receiving end needs to receive, sampling the data value of the to-be-transmitted message in the serial data and the check value of the to-be-transmitted message;
以及,根据采样得到的所述待传输消息的校验值对所述待传输消息的数据值进行校验;And verifying, according to the sampled value of the to-be-transmitted message, the data value of the to-be-transmitted message;
以及,当校验成功后,确定所述待传输消息的数据值为可用的数据值。And, after the verification is successful, determining that the data value of the message to be transmitted is an available data value.
本发明实施例还提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行应用于发送端的消息传输方法。The embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a transmitting end.
本发明实施例还提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行应用于接收端的消息传输方法。The embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a receiving end.
本发明实施例提供了一种消息传输的方法、设备和系统,在异步串行通信的过程中,通过一种新的编解码方法对待传输的消息进行处理,从而使得在消息传输的过程中,降低额外的开销,而且还能够用于点对多点的消息传输。The embodiment of the invention provides a method, a device and a system for message transmission. In the process of asynchronous serial communication, a message to be transmitted is processed by a new codec method, so that in the process of message transmission, Reduces extra overhead and can also be used for point-to-multipoint messaging.
附图说明DRAWINGS
图1为本发明实施例提供的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种消息传输的方法流程示意图;2 is a schematic flowchart of a method for message transmission according to an embodiment of the present invention;
图3为本发明实施例提供的一种串行数据波形图;FIG. 3 is a schematic diagram of a serial data waveform according to an embodiment of the present invention; FIG.
图4为本发明实施例提供的另一种消息传输的方法流程示意图;4 is a schematic flowchart of another method for message transmission according to an embodiment of the present invention;
图5为本发明实施例提供的另一种串行数据波形图;FIG. 5 is a schematic diagram of another serial data waveform according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的一种发送端的结构示意图;FIG. 6 is a schematic structural diagram of a sending end according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种接收端的结构示意图;FIG. 7 is a schematic structural diagram of a receiving end according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种消息传输系统的结构示意图。FIG. 8 is a schematic structural diagram of a message transmission system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。 The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
本发明实施例的基本思想是:在异步串行通信的过程中,通过一种新的编解码方法对待传输的消息进行处理,从而使得在消息传输的过程中,降低额外的开销,而且还能够用于点对多点的消息传输。The basic idea of the embodiment of the present invention is: in the process of asynchronous serial communication, the message to be transmitted is processed by a new codec method, so that in the process of message transmission, additional overhead is reduced, and Used for point-to-multipoint messaging.
基于上述的基本思想,参见图1,其示出了本发明实施例提供的一种应用场景,发送端10和三个接收端20、30和40,发送端10与每个接收端之间均通过单根传输线50相连接并传输数据。本发明实施例仅以发送端10与单个接收端之间通过单根传输线50相连接并传输数据为例对技术方案进行说明,可以理解的,该应用场景能够应用于发送端10与其他接收端之间进行传输数据,而且本应用场景仅用于对本发明实施例的技术方案进行说明,并非对本发明实施例进行任何的具体限定。Based on the above basic idea, referring to FIG. 1 , an application scenario provided by an embodiment of the present invention is shown. The transmitting end 10 and the three receiving ends 20, 30 and 40 are connected between the transmitting end 10 and each receiving end. Data is connected and transmitted through a single transmission line 50. In the embodiment of the present invention, the technical solution is described by using a single transmission line 50 and transmitting data between the transmitting end 10 and the single receiving end. The application scenario can be applied to the transmitting end 10 and other receiving ends. The data is transmitted between the embodiments of the present invention, and the present application is not limited to the specific embodiments of the present invention.
参见图2,其示出了本发明实施例提供的一种消息传输的方法流程,该方法应用于发送端,该方法包括:Referring to FIG. 2, a method flow of a message transmission according to an embodiment of the present invention is shown. The method is applied to a sending end, and the method includes:
S201:发送端设置固定位数的同步头数据;其中,同步头数据用于指示待传输消息的起始以及待传输消息的类型;S201: The sender sets a fixed number of synchronization header data, where the synchronization header data is used to indicate the start of the message to be transmitted and the type of the message to be transmitted;
同步头数据包括:起始位、等待位及类型位;其中,起始位与所述等待位均为1个比特位且位值相反;类型位的比特位数由发送端支持发送的消息类型数确定;The synchronization header data includes: a start bit, a wait bit, and a type bit; wherein, the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit is supported by the sender to send the message type. Number determination
在本实施例中,起始位持续M个发送时钟周期;待传输消息的数据值中每个比特位以及校验值中每个比特位均持续N个发送时钟周期;等待位和类型位的每个比特位均持续K个发送时钟周期;其中,为了能够使得接收端在检测起始位时允许存在误采样,M、N均为大于1的整数;而且为了区分出消息的起始位,优选地,N大于M+2,K为大于2的整数。In this embodiment, the start bit lasts for M transmit clock cycles; each bit in the data value of the message to be transmitted and each bit in the check value last for N transmit clock cycles; wait bits and type bits Each bit lasts for K transmission clock cycles; wherein, in order to enable the receiving end to allow error sampling when detecting the start bit, M and N are integers greater than 1; and in order to distinguish the start bit of the message, Preferably, N is greater than M+2 and K is an integer greater than two.
需要说明的是,由于同步头数据中通过类型位来指示待传输消息的类型,因此,可以使得接收端根据类型位所指示的待传输消息的类型来确定是否为接收端需要接收的消息,从而可以在单根传输线上向多个接收端发送数据,以实现点对多点的消息传输。 It should be noted that, because the type of the message to be transmitted is indicated by the type bit in the synchronization header data, the receiving end may be configured to determine whether the message needs to be received by the receiving end according to the type of the message to be transmitted indicated by the type bit, thereby Data can be sent to multiple receiving ends on a single transmission line to achieve point-to-multipoint messaging.
S202:发送端根据待传输消息的数据值进行校验,得到待传输消息的校验值;S202: The sending end performs verification according to the data value of the message to be transmitted, and obtains a check value of the message to be transmitted.
可以理解的,发送端根据待传输消息的数据值进行校验所采用的校验算法可以是循环冗余校验码(CRC,Cyclic Redundancy Check)校验,也可以是和校验、奇偶校验等用其他校验算法,本发明实施例对此不作具体限定;本实施例优选为CRC校验。It can be understood that the verification algorithm used by the transmitting end to perform verification according to the data value of the message to be transmitted may be a Cyclic Redundancy Check (CRC) check, or may be a checksum parity check. The other embodiment of the present invention is not specifically limited; the embodiment is preferably a CRC check.
S203:发送端将同步头数据、待传输消息的数据值与待传输消息的校验值顺序组成待传输消息对应的串行数据,并通过传输线将串行数据传输至接收端。S203: The transmitting end sequentially synchronizes the synchronization header data, the data value of the message to be transmitted, and the check value of the message to be transmitted into serial data corresponding to the message to be transmitted, and transmits the serial data to the receiving end through the transmission line.
当消息传输速率低于预设的速率阈值时,发送端可以将发送两次待传输数据的串行数据之间的传输间隔设置为可大于传输一次串行数据的时间,而发送端可以将两次待传输数据的串行数据之间的传输间隔设置空闲时间,从而能简化接收端对于监测同步头的设计,并且能避免出现接收端误将消息中数据作为同步头的情况;When the message transmission rate is lower than the preset rate threshold, the transmitting end may set the transmission interval between the serial data for transmitting the data to be transmitted twice to be greater than the time for transmitting the serial data once, and the transmitting end may The transmission interval between the serial data of the secondary transmission data sets the idle time, thereby simplifying the design of the monitoring synchronization head at the receiving end, and avoiding the case where the receiving end mistakenly uses the data in the message as the synchronization header;
当发送端两次传输串行数据间有空闲时间的时候,为了能够区分发送端所发送的两次待传输数据的串行数据,优选地,本实施例提供的方法还包括:发送端在两次待传输数据的串行数据之间的传输间隔内传输与起始位的位值相反的空闲位。可以理解地,当发送端连续发送串行数据时,发送端可以不需要发送空闲位。The method provided in this embodiment further includes: the sending end is in two, in order to be able to distinguish the serial data of the data to be transmitted, which is sent by the transmitting end, when the transmitting end has two idle data transmissions. The idle bit opposite to the bit value of the start bit is transmitted in the transmission interval between the serial data of the secondary transmission data. Understandably, when the transmitting end continuously transmits serial data, the transmitting end may not need to transmit idle bits.
详细地,参见图3,其示出了图2所示消息传输的方法流程中,发送端所发送的示例性的串行数据波形图,如图3所示,同步头数据中,起始位为持续2个发送时钟周期高电平,在本实施例中以逻辑1表示;等待位为持续5个发送时钟周期的低电平,在本实施例中以逻辑0表示;类型位的位数为3,表示图3所示的串行数据可以用于表示23=8种数据类型,类型位的每个比特位也同样持续5个发送时钟周期;待传输消息及校验值的每个比特位也同样持续5个发送周期。 In detail, referring to FIG. 3, an exemplary serial data waveform diagram sent by the transmitting end in the method flow of the message transmission shown in FIG. 2 is shown. As shown in FIG. 3, in the synchronization header data, the start bit is shown. In order to continue for 2 transmission clock cycles, a high level is indicated by a logic 1 in this embodiment; the wait bit is a low level lasting 5 transmission clock cycles, which is represented by a logic 0 in this embodiment; 3, indicating that the serial data shown in FIG. 3 can be used to represent 2 3 = 8 data types, and each bit of the type bit also continues for 5 transmission clock cycles; each of the message to be transmitted and the check value The bit also lasts for 5 transmission cycles.
基于上述实施例相同的技术构思,当发送端通过传输线将串行数据传输至接收端之后,参见图4,其示出了本发明实施例提供的另一种消息传输的方法流程,该方法应用于接收端,该方法包括:Based on the same technical concept of the foregoing embodiment, after the transmitting end transmits the serial data to the receiving end through the transmission line, referring to FIG. 4, it shows a method flow of another message transmission provided by the embodiment of the present invention, and the method is applied. At the receiving end, the method includes:
S401:接收端监测到待传输消息对应的串行数据的同步头数据时,根据同步头数据指示的待传输消息的类型确定待传输消息为自身需要接收的消息;S401: When the receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, determining, according to the type of the message to be transmitted indicated by the synchronization header data, the message to be transmitted is a message that needs to be received by itself;
其中,串行数据由同步头数据、待传输消息的数据值与待传输消息的校验值顺序组成;与前述实施例中的同步头数据一致的,同步头数据包括:起始位、等待位及类型位;其中,起始位与等待位均为1个比特位且位值相反;并且,起始位持续M个发送时钟周期;待传输消息的数据值中每个比特位以及校验值中每个比特位均持续N个发送时钟周期;等待位和类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The serial data is composed of the synchronization header data, the data value of the message to be transmitted, and the check value of the message to be transmitted. In accordance with the synchronization header data in the foregoing embodiment, the synchronization header data includes: a start bit and a wait bit. And a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit lasts for M transmit clock cycles; each bit in the data value of the message to be transmitted and the check value Each bit in the bit lasts for N transmit clock cycles; each bit of the wait bit and the type bit lasts for K transmit clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, K is an integer greater than 2.
示例性地,接收端的采样时钟的频率与发送时钟的频率相同;相应地,接收端监测到待传输消息对应的串行数据的同步头数据,包括:Illustratively, the frequency of the sampling clock of the receiving end is the same as the frequency of the transmitting clock; correspondingly, the receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, including:
接收端连续接收到M个采样时钟周期的起始位位值时,确定监测到待传输消息对应的串行数据的同步头数据。When the receiving end continuously receives the start bit value of the M sampling clock cycles, it determines that the synchronization header data of the serial data corresponding to the message to be transmitted is monitored.
接收端根据同步头数据指示的待传输消息的类型确定待传输消息为自身需要接收的消息,包括:The receiving end determines, according to the type of the to-be-transmitted message indicated by the synchronization header data, that the message to be transmitted is a message that needs to be received by itself, including:
接收端对同步头数据的类型位位值进行采样,得到待传输消息的类型;The receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted;
以及,接收端根据自身需要接收的消息类型与待传输消息的类型进行匹配;And the receiving end matches the type of the message to be transmitted according to the type of the message that needs to be transmitted by the receiving end;
以及,当匹配成功时,接收端确定待传输消息为自身需要接收的消息。And, when the matching is successful, the receiving end determines that the message to be transmitted is a message that needs to be received by itself.
接收端对同步头数据的类型位位值进行采样,得到待传输消息的类型包括:接收端可以选取同步头数据的类型位中每个比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;接着,接收端根 据同步头数据的类型位位值与预设的类型位位值和消息类型的对应关系,确定待传输消息的类型;可以理解的,接收端选取比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值,可以保证即使发送端和接收端的时钟是非同源的同频时钟也能正确采样到数据;并且当K为偶数时,中心拍取K/2拍;当K为奇数时,中心拍取第(K+1)/2拍。The receiving end samples the type bit value of the synchronization header data, and the type of the message to be transmitted includes: the receiving end can select the center point of the K sampling clock cycles in which each bit in the type of the synchronization header data continues. The data value is the value of the corresponding bit; then, the receiving end root Determining the type of the message to be transmitted according to the correspondence between the type bit value of the synchronization header data and the preset type bit value and the message type; it can be understood that the receiving end selects the center of the K sampling clock cycles in which the bit lasts. The corresponding data value is the value of the corresponding bit, which ensures that the data can be correctly sampled even if the clocks of the transmitting end and the receiving end are non-homologous clocks; and when K is even, the center takes K/2 shots. When K is an odd number, the center takes the (K+1)/2 beat.
需要说明的是,由于接收端能够根据串行数据中待传输消息的类型来确定该串行数据中的待传输消息是否是自身需要接收的消息,那么,发送端可以通过单根传输线向多个接收端传输消息,由接收端自身根据待传输消息的类型来确定是否接收,从而实现点对多点的消息传输。It should be noted that, since the receiving end can determine whether the message to be transmitted in the serial data is a message that needs to be received according to the type of the message to be transmitted in the serial data, the transmitting end can transmit to multiple by using a single transmission line. The receiving end transmits the message, and the receiving end itself determines whether to receive according to the type of the message to be transmitted, thereby implementing point-to-multipoint message transmission.
S402:当接收端确定待传输消息为自身需要接收的消息之后,对串行数据中待传输消息的数据值与待传输消息的校验值进行采样;S402: After the receiving end determines that the message to be transmitted is a message that needs to be received by itself, sampling the data value of the message to be transmitted in the serial data and the check value of the message to be transmitted;
可以理解的,当接收端确定待传输消息不为自身需要接收的消息之后,直接丢弃该串行数据。It can be understood that when the receiving end determines that the message to be transmitted is not a message that needs to be received by itself, the serial data is directly discarded.
接收端对串行数据中待传输消息的数据值与待传输消息的校验值进行采样,包括:The receiving end samples the data value of the message to be transmitted in the serial data and the check value of the message to be transmitted, including:
接收端选取待传输消息的数据值和校验值中每个比特位持续的N个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;可以理解的,当N为偶数时,中心拍取N/2拍;当N为奇数时,中心拍取第(N+1)/2拍。The receiving end selects the data value of the message to be transmitted and the data value corresponding to the center beat in each of the N sampling clock periods in which each bit of the check value continues; it is understood that when N is even The center takes N/2 beats; when N is odd, the center takes the (N+1)/2 beats.
S403:接收端根据采样得到的待传输消息的校验值对待传输消息的数据值进行校验;S403: The receiving end verifies the data value of the message to be transmitted according to the check value of the sampled message to be transmitted.
S404:当校验成功后,接收端确定待传输消息的数据值为可用的数据值;S404: After the verification succeeds, the receiving end determines that the data value of the message to be transmitted is an available data value;
可以理解的,若校验不成功,接收端确定串行数据中待传输消息的数据值不可用,并将串行数据进行丢弃。It can be understood that if the verification is unsuccessful, the receiving end determines that the data value of the message to be transmitted in the serial data is not available, and discards the serial data.
详细地,参见图5,其示出了图4所示消息传输的方法流程中,接收端所接收的示例性的串行数据波形图,与图3类似的,同步头数据中,接收 端采样起始位的采样时钟周期为2个发送时钟周期;接收端采样等待位的采样时钟周期为5个发送时钟周期;类型位的位数为3,表示图3所示的串行数据可以用于表示23=8种数据类型,类型位的每个比特位、待传输消息及校验值的每个比特位的采样周期也同样是5个发送时钟周期,而中心拍对应的数据值则为5个发送周期中的第3拍数据值,如图中的虚线所示。In detail, referring to FIG. 5, which shows an exemplary serial data waveform diagram received by the receiving end in the method flow of the message transmission shown in FIG. 4, similar to FIG. 3, in the synchronization header data, the receiving end samples The sampling clock period of the start bit is 2 transmission clock cycles; the sampling clock period of the sampling wait bit of the receiving end is 5 transmission clock cycles; the number of bits of the type bit is 3, indicating that the serial data shown in FIG. 3 can be used for Representing 2 3 = 8 data types, the sampling period of each bit of the type bit, the message to be transmitted, and the check value are also 5 transmission clock cycles, and the data value corresponding to the center beat is The third beat data value of the five transmission periods is indicated by a broken line in the figure.
上述实施例提供的消息传输方法,在异步串行通信的过程中,通过一种新的编解码方法对待传输的消息进行处理,从而使得在消息传输的过程中,降低额外的开销,而且还能够用于点对多点的消息传输。The message transmission method provided in the foregoing embodiment, in the process of asynchronous serial communication, processes a message to be transmitted through a new codec method, thereby reducing additional overhead in the process of message transmission, and Used for point-to-multipoint messaging.
基于前述实施例相同的技术构思,参见图6,其示出了本发明实施例提供的一种发送端60的结构,包括设置单元601、校验单元602、组成单元603和传输单元604,其中,Based on the same technical concept of the foregoing embodiment, referring to FIG. 6, a structure of a transmitting end 60 according to an embodiment of the present invention is provided, including a setting unit 601, a check unit 602, a component unit 603, and a transmission unit 604. ,
设置单元601,配置为设置固定位数的同步头数据;其中,同步头数据用于指示待传输消息的起始以及待传输消息的类型;The setting unit 601 is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate the start of the message to be transmitted and the type of the message to be transmitted;
校验单元602,配置为根据待传输消息的数据值进行校验,得到待传输消息的校验值;The verification unit 602 is configured to perform verification according to the data value of the message to be transmitted, and obtain a check value of the message to be transmitted.
组成单元603,配置为将设置单元601设置的同步头数据、待传输消息的数据值与校验单元602得到的待传输消息的校验值顺序组成待传输消息对应的串行数据;The component unit 603 is configured to sequentially form the synchronization header data set by the setting unit 601, the data value of the message to be transmitted, and the check value of the message to be transmitted obtained by the check unit 602 into serial data corresponding to the message to be transmitted;
传输单元604,配置为通过传输线将组成单元603组成的串行数据传输至接收端。The transmission unit 604 is configured to transmit the serial data composed of the constituent units 603 to the receiving end through the transmission line.
示例性地,同步头数据包括:起始位、等待位及类型位;其中,起始位与等待位均为1个比特位且位值相反;类型位的比特位数由发送端支持发送的消息类型数确定。Illustratively, the synchronization header data includes: a start bit, a wait bit, and a type bit; wherein, the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit is supported by the sender. The number of message types is determined.
起始位持续M个发送时钟周期;待传输消息的数据值中每个比特位以及校验值中每个比特位均持续N个发送时钟周期;等待位和类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N 大于M+2,K为大于2的整数。The start bit lasts for M transmit clock cycles; each bit in the data value of the message to be transmitted and each bit in the check value last for N transmit clock cycles; each bit of the wait bit and the type bit continues K transmit clock cycles; where M and N are integers greater than 1, and N Greater than M+2, K is an integer greater than 2.
传输单元604,还配置为在两次待传输数据的串行数据之间的传输间隔内传输与起始位的位值相反的空闲位。The transmission unit 604 is further configured to transmit an idle bit opposite to the bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
本实施例提供的发送端60,在异步串行通信的过程中,通过一种新的编解码方法对待传输的消息进行编码,从而使得在消息传输的过程中,降低额外的开销,而且还能够用于点对多点的消息传输。The transmitting end 60 provided in this embodiment encodes a message to be transmitted through a new encoding and decoding method in the process of asynchronous serial communication, thereby reducing additional overhead in the process of message transmission, and also capable of reducing additional overhead. Used for point-to-multipoint messaging.
需要说明的是,上述设置单元601、校验单元602、组成单元603和传输单元604可由发送端的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。It should be noted that the foregoing setting unit 601, the verification unit 602, the component unit 603, and the transmission unit 604 may be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field at the transmitting end. Programming Gate Array (FPGA) implementation.
基于前述实施例相同的技术构思,参见图7,其示出了本发明实施例提供的一种接收端70的结构,包括:监测单元701、确定单元702、采样单元703和校验单元704,其中,The structure of the receiving end 70 according to the embodiment of the present invention includes: a monitoring unit 701, a determining unit 702, a sampling unit 703, and a checking unit 704, based on the same technical concept of the foregoing embodiment. among them,
监测单元701,配置为监测待传输消息对应的串行数据的同步头数据;The monitoring unit 701 is configured to monitor synchronization header data of the serial data corresponding to the message to be transmitted;
确定单元702,配置为当监测单元701监测到待传输消息对应的串行数据的同步头数据时,根据同步头数据指示的待传输消息的类型确定待传输消息为接收端70自身需要接收的消息;以及当确定待传输消息为接收端70自身需要接收的消息之后,触发采样单元703;其中,串行数据由同步头数据、待传输消息的数据值与待传输消息的校验值顺序组成;The determining unit 702 is configured to: when the monitoring unit 701 monitors the synchronization header data of the serial data corresponding to the message to be transmitted, determine, according to the type of the message to be transmitted indicated by the synchronization header data, the message to be transmitted is a message that the receiving end 70 needs to receive. And when determining that the message to be transmitted is a message that the receiving end 70 itself needs to receive, triggering the sampling unit 703; wherein the serial data is composed of the synchronization header data, the data value of the message to be transmitted, and the check value sequence of the message to be transmitted;
采样单元703,配置为对串行数据中待传输消息的数据值与待传输消息的校验值进行采样;The sampling unit 703 is configured to sample the data value of the message to be transmitted in the serial data and the check value of the message to be transmitted;
校验单元704,配置为根据采样单元703采样得到的待传输消息的校验值对待传输消息的数据值进行校验;The checking unit 704 is configured to check, according to the check value of the message to be transmitted sampled by the sampling unit 703, the data value of the message to be transmitted;
确定单元702,还配置为当校验单元704校验成功后,确定待传输消息的数据值为可用的数据值。The determining unit 702 is further configured to determine that the data value of the message to be transmitted is an available data value after the verification unit 704 successfully verifies.
示例性地,同步头数据包括:起始位、等待位及类型位;其中,起始位与等待位均为1个比特位且位值相反;并且,起始位持续M个发送时钟 周期;待传输消息的数据值中每个比特位以及校验值中每个比特位均持续N个发送时钟周期;等待位和类型位的每个比特位均持续K个发送时钟周期;其中,M、N为大于1的整数,且N大于M+2,K为大于2的整数。Illustratively, the sync header data includes: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; and the start bit continues for M transmit clocks a period; each bit in the data value of the message to be transmitted and each bit in the check value last for N transmission clock cycles; each bit of the wait bit and the type bit lasts for K transmission clock cycles; M and N are integers greater than 1, and N is greater than M+2, and K is an integer greater than 2.
接收端的采样时钟的频率与发送端的发送时钟的频率相同;The sampling clock of the receiving end has the same frequency as the transmitting clock of the transmitting end;
相应地,监测单元701,配置为连续接收到M个采样时钟周期的起始位位值时,确定监测到待传输消息对应的串行数据的同步头数据。Correspondingly, when the monitoring unit 701 is configured to continuously receive the start bit values of the M sampling clock cycles, it is determined that the synchronization header data of the serial data corresponding to the message to be transmitted is monitored.
确定单元702,配置为:The determining unit 702 is configured to:
指示采样单元703对同步头数据的类型位位值进行采样,得到待传输消息的类型;Instructing the sampling unit 703 to sample the type bit value of the synchronization header data to obtain the type of the message to be transmitted;
以及,根据自身需要接收的消息类型与待传输消息的类型进行匹配;And matching the type of the message that needs to be received according to the type of the message to be transmitted;
以及,当匹配成功时,确定待传输消息为自身需要接收的消息。And, when the matching is successful, it is determined that the message to be transmitted is a message that needs to be received by itself.
采样单元703,配置为选取同步头数据的类型位中每个比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;The sampling unit 703 is configured to select a data value corresponding to a central beat of the K sampling clock cycles in each of the type bits of the synchronization header data, and a value of the corresponding bit;
以及,根据同步头数据的类型位位值与预设的类型位位值和消息类型的对应关系,确定待传输消息的类型。And determining the type of the message to be transmitted according to the correspondence between the type bit value of the synchronization header data and the preset type bit value and the message type.
采样单元703,配置为选取待传输消息的数据值和校验值中每个比特位持续的N个采样时钟周期中的中心拍对应的数据值为相应的比特位的值。The sampling unit 703 is configured to select a data value corresponding to a central beat in each of the N sample clock periods in which the data value of the message to be transmitted and the check value persist for each bit, and the value of the corresponding bit.
本实施例提供的接收端70,在异步串行通信的过程中,通过一种新的编解码方法对待传输的消息进行解码,从而使得在消息传输的过程中,降低额外的开销,而且还能够用于点对多点的消息传输。The receiving end 70 provided in this embodiment decodes the message to be transmitted by a new codec method in the process of asynchronous serial communication, thereby reducing additional overhead in the process of message transmission, and also capable of reducing additional overhead. Used for point-to-multipoint messaging.
需要说明的是,上述监测单元701、确定单元702、采样单元703和校验单元704可由接收端的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。It should be noted that the foregoing monitoring unit 701, the determining unit 702, the sampling unit 703, and the checking unit 704 may be implemented by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field at the receiving end. Programming Gate Array (FPGA) implementation.
基于上述实施例相同的技术构思,参见图8,其示出了本发明实施例提供的一种消息传输系统80结构,该系统80包括发送端60和接收端70,其中, Based on the same technical concept of the above embodiment, referring to FIG. 8, a structure of a message transmission system 80 according to an embodiment of the present invention is shown. The system 80 includes a transmitting end 60 and a receiving end 70, where
发送端60,配置为设置固定位数的同步头数据;其中,同步头数据用于指示待传输消息的起始以及待传输消息的类型;The sending end 60 is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate the start of the message to be transmitted and the type of the message to be transmitted;
以及,根据待传输消息的数据值进行校验,得到待传输消息的校验值;And performing verification according to the data value of the message to be transmitted, and obtaining a check value of the message to be transmitted;
以及,将同步头数据、待传输消息的数据值与待传输消息的校验值顺序组成待传输消息对应的串行数据,并通过传输线将串行数据传输至接收端70;And the synchronization header data, the data value of the message to be transmitted and the check value of the message to be transmitted are sequentially composed of the serial data corresponding to the message to be transmitted, and the serial data is transmitted to the receiving end 70 through the transmission line;
接收端70,配置为监测到待传输消息对应的串行数据的同步头数据时,根据同步头数据指示的待传输消息的类型确定待传输消息为自身需要接收的消息;The receiving end 70 is configured to: when the synchronization header data of the serial data corresponding to the message to be transmitted is monitored, determine, according to the type of the message to be transmitted indicated by the synchronization header data, that the message to be transmitted is a message that needs to be received by itself;
以及,当确定待传输消息为接收端70自身需要接收的消息之后,对串行数据中待传输消息的数据值与待传输消息的校验值进行采样;And, after determining that the message to be transmitted is a message that the receiving end 70 itself needs to receive, sampling the data value of the message to be transmitted in the serial data and the check value of the message to be transmitted;
以及,根据采样得到的待传输消息的校验值对待传输消息的数据值进行校验;And verifying, according to the check value of the sampled message to be transmitted, the data value of the message to be transmitted;
以及,当校验成功后,确定待传输消息的数据值为可用的数据值。And, when the verification is successful, determining that the data value of the message to be transmitted is an available data value.
本实施例提供的消息传输系统80,在异步串行通信的过程中,通过一种新的编解码方法对待传输的消息进行处理,从而使得在消息传输的过程中,降低额外的开销,而且还能够用于点对多点的消息传输。The message transmission system 80 provided in this embodiment processes the message to be transmitted through a new codec method in the process of asynchronous serial communication, thereby reducing the extra overhead in the process of message transmission, and also Can be used for point-to-multipoint messaging.
本发明实施例还提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行应用于发送端的消息传输方法。The embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a transmitting end.
本发明实施例还提供一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行应用于接收端的消息传输方法。The embodiment of the invention further provides a computer readable storage medium, the storage medium comprising a set of computer executable instructions for executing a message transmission method applied to a receiving end.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘 存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the present invention may employ computer-usable storage media (including but not limited to disks) in one or more of the computer-usable program code embodied therein. A form of computer program product embodied on a memory and optical storage, etc.).
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (23)

  1. 一种消息传输方法,所述方法应用于发送端,所述方法包括:A message transmission method, the method is applied to a sender, and the method includes:
    所述发送端设置固定位数的同步头数据;其中,所述同步头数据用于指示待传输消息的起始以及所述待传输消息的类型;The sending end sets a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
    所述发送端根据所述待传输消息的数据值进行校验,得到所述待传输消息的校验值;The sending end performs verification according to the data value of the to-be-transmitted message, and obtains a check value of the to-be-transmitted message;
    所述发送端将所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成所述待传输消息对应的串行数据,并通过传输线将所述串行数据传输至接收端。The transmitting end sequentially forms the synchronization header data, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message into serial data corresponding to the to-be-transmitted message, and connects the serial through a transmission line. The data is transmitted to the receiving end.
  2. 根据权利要求1所述的方法,其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;所述类型位的比特位数由所述发送端支持发送的消息类型数确定。The method of claim 1, wherein the sync header data comprises: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite The number of bits of the type bits is determined by the number of message types supported by the sender.
  3. 根据权利要求2所述的方法,其中,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The method of claim 2, wherein the start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value lasts for N Transmitting a clock cycle; each bit of the wait bit and the type bit lasts for K transmit clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is greater than 2 The integer.
  4. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    所述发送端在两次待传输数据的串行数据之间的传输间隔内传输与所述起始位的位值相反的空闲位。The transmitting end transmits an idle bit opposite to the bit value of the start bit in a transmission interval between serial data of two data to be transmitted.
  5. 一种消息传输方法,所述方法应用于接收端,所述方法包括:A message transmission method, the method is applied to a receiving end, and the method includes:
    接收端监测到待传输消息对应的串行数据的同步头数据时,根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为自身需要接收的消息;其中,所述串行数据由所述同步头数据、所述待传输 消息的数据值与所述待传输消息的校验值顺序组成;When the receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, the message to be transmitted is determined to be a message that needs to be received according to the type of the message to be transmitted indicated by the synchronization header data; Serial data from the synchronization header data, the to-be-transmitted The data value of the message is composed of the check value sequence of the message to be transmitted;
    当所述接收端确定所述待传输消息为自身需要接收的消息之后,对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样;After the receiving end determines that the message to be transmitted is a message that needs to be received by itself, sampling the data value of the to-be-transmitted message in the serial data and the check value of the to-be-transmitted message;
    所述接收端根据采样得到的所述待传输消息的校验值对所述待传输消息的数据值进行校验;The receiving end verifies the data value of the to-be-transmitted message according to the check value of the to-be-transmitted message obtained by sampling;
    当校验成功后,所述接收端确定所述待传输消息的数据值为可用的数据值。After the verification is successful, the receiving end determines that the data value of the message to be transmitted is an available data value.
  6. 根据权利要求5所述的方法,其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;并且,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The method of claim 5, wherein the sync header data comprises: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite And, the start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value last for N transmit clock cycles; the wait Each bit of the bit and the type bit lasts for K transmit clock cycles; wherein M, N are integers greater than 1, and N is greater than M+2, and K is an integer greater than two.
  7. 根据权利要求6所述的方法,其中,所述接收端的采样时钟的频率与所述发送端的发送时钟的频率相同;The method according to claim 6, wherein the frequency of the sampling clock of the receiving end is the same as the frequency of the transmitting clock of the transmitting end;
    所述接收端监测到待传输消息对应的串行数据的同步头数据,包括:The receiving end monitors the synchronization header data of the serial data corresponding to the message to be transmitted, including:
    所述接收端连续接收到M个采样时钟周期的起始位位值时,确定监测到所述待传输消息对应的串行数据的同步头数据。When the receiving end continuously receives the start bit value of the M sampling clock cycles, it determines that the synchronization header data of the serial data corresponding to the to-be-transmitted message is detected.
  8. 根据权利要求7所述的方法,其中,所述接收端根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为自身需要接收的消息,包括:The method according to claim 7, wherein the receiving end determines, according to the type of the to-be-transmitted message indicated by the synchronization header data, that the message to be transmitted is a message that needs to be received by itself, including:
    所述接收端对所述同步头数据的类型位位值进行采样,得到所述待传输消息的类型;The receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted;
    所述接收端根据自身需要接收的消息类型与所述待传输消息的类型 进行匹配;The type of the message to be transmitted by the receiving end according to the type of the message to be transmitted Matching;
    当匹配成功时,所述接收端确定所述待传输消息为自身需要接收的消息。When the matching is successful, the receiving end determines that the to-be-transmitted message is a message that it needs to receive.
  9. 根据权利要求8所述的方法,其中,所述接收端对所述同步头数据的类型位位值进行采样,得到所述待传输消息的类型,包括:The method according to claim 8, wherein the receiving end samples the type bit value of the synchronization header data to obtain the type of the message to be transmitted, including:
    所述接收端选取所述同步头数据的类型位中每个比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;The receiving end selects, according to the value of the corresponding bit, the data value corresponding to the center beat in the K sampling clock cycles in which each bit of the type of the synchronization header data continues;
    所述接收端根据所述同步头数据的类型位位值与预设的类型位位值和消息类型的对应关系,确定所述待传输消息的类型。The receiving end determines the type of the message to be transmitted according to the correspondence between the type bit value of the synchronization header data and the preset type bit value and the message type.
  10. 根据权利要求7所述的方法,其中,所述接收端对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样,包括:The method according to claim 7, wherein the receiving end samples the data value of the message to be transmitted and the check value of the message to be transmitted in the serial data, including:
    所述接收端选取所述待传输消息的数据值和校验值中每个比特位持续的N个采样时钟周期中的中心拍对应的数据值为相应的比特位的值。The receiving end selects a data value corresponding to the center beat in the N sampling clock periods of each of the data values of the to-be-transmitted message and the check value, and the value of the corresponding bit.
  11. 一种发送端,所述发送端包括:设置单元、校验单元、组成单元和传输单元,其中,a transmitting end, the sending end includes: a setting unit, a check unit, a component unit, and a transmission unit, where
    所述设置单元,配置为设置固定位数的同步头数据;其中,所述同步头数据用于指示待传输消息的起始以及所述待传输消息的类型;The setting unit is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
    所述校验单元,配置为根据所述待传输消息的数据值进行校验,得到所述待传输消息的校验值;The checking unit is configured to perform verification according to the data value of the to-be-transmitted message, to obtain a check value of the to-be-transmitted message;
    所述组成单元,配置为将所述设置单元设置的同步头数据、所述待传输消息的数据值与所述校验单元得到的所述待传输消息的校验值顺序组成所述待传输消息对应的串行数据;The component unit is configured to sequentially form the synchronization header data set by the setting unit, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message obtained by the verification unit to form the to-be-transmitted message. Corresponding serial data;
    所述传输单元,配置为通过传输线将所述组成单元组成的串行数据传输至接收端。The transmission unit is configured to transmit serial data composed of the constituent units to a receiving end through a transmission line.
  12. 根据权利要求11所述的发送端,其中,所述同步头数据包括: 起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;所述类型位的比特位数由所述发送端支持发送的消息类型数确定。The transmitting end according to claim 11, wherein the synchronization header data comprises: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value is opposite; the bit number of the type bit is supported by the sender to send the message The number of types is determined.
  13. 根据权利要求12所述的发送端,其中,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N均为大于1的整数,且N大于M+2,K为大于2的整数。The transmitting end according to claim 12, wherein said start bit lasts for M transmission clock cycles; each bit of said data value of said message to be transmitted and each bit of said check value continues N transmit clock cycles; each bit of the wait bit and the type bit lasts for K transmit clock cycles; wherein, M and N are integers greater than 1, and N is greater than M+2, and K is greater than An integer of 2.
  14. 根据权利要求12所述的发送端,其中,所述传输单元,还配置为在两次待传输数据的串行数据之间的传输间隔内传输与所述起始位的位值相反的空闲位。The transmitting end according to claim 12, wherein said transmitting unit is further configured to transmit a free bit opposite to a bit value of said start bit in a transmission interval between serial data of two data to be transmitted .
  15. 一种接收端,所述接收端包括:监测单元、确定单元、采样单元和校验单元,其中,a receiving end, the receiving end includes: a monitoring unit, a determining unit, a sampling unit, and a check unit, where
    所述监测单元,配置为监测待传输消息对应的串行数据的同步头数据;The monitoring unit is configured to monitor synchronization header data of serial data corresponding to the message to be transmitted;
    所述确定单元,配置为当所述监测单元监测到所述待传输消息对应的串行数据的同步头数据时,根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为所述接收端自身需要接收的消息;以及当确定所述待传输消息为所述接收端自身需要接收的消息之后,触发所述采样单元;其中,所述串行数据由所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成;The determining unit is configured to determine, when the monitoring unit detects the synchronization header data of the serial data corresponding to the to-be-transmitted message, the to-be-transmitted according to the type of the to-be-transmitted message indicated by the synchronization header data The message is a message that the receiving end itself needs to receive; and the sampling unit is triggered after determining that the to-be-transmitted message is a message that the receiving end itself needs to receive; wherein the serial data is used by the synchronization header Data, the data value of the to-be-transmitted message, and the check value sequence of the to-be-transmitted message;
    所述采样单元,配置为对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样;The sampling unit is configured to sample a data value of the to-be-transmitted message in the serial data and a check value of the to-be-transmitted message;
    所述校验单元,配置为根据所述采样单元采样得到的所述待传输消息的校验值对所述待传输消息的数据值进行校验;The checking unit is configured to check the data value of the to-be-transmitted message according to the check value of the to-be-transmitted message sampled by the sampling unit;
    所述确定单元,还配置为当所述校验单元校验成功后,确定所述待 传输消息的数据值为可用的数据值。The determining unit is further configured to: after the verification unit successfully verifies, determine the to-be-determined The data value of the transmitted message is the available data value.
  16. 根据权利要求15所述的接收端,其中,所述同步头数据包括:起始位、等待位及类型位;其中,所述起始位与所述等待位均为1个比特位且位值相反;并且,所述起始位持续M个发送时钟周期;所述待传输消息的数据值中每个比特位以及所述校验值中每个比特位均持续N个发送时钟周期;所述等待位和所述类型位的每个比特位均持续K个发送时钟周期;其中,M、N为大于1的整数,且N大于M+2,K为大于2的整数。The receiving end according to claim 15, wherein the synchronization header data comprises: a start bit, a wait bit, and a type bit; wherein the start bit and the wait bit are both 1 bit and the bit value Conversely; and the start bit lasts for M transmit clock cycles; each bit of the data value of the message to be transmitted and each bit of the check value lasts for N transmit clock cycles; Each bit of the wait bit and the type bit lasts for K transmit clock cycles; wherein M, N are integers greater than 1, and N is greater than M+2, and K is an integer greater than two.
  17. 根据权利要求16所述的接收端,其中,所述接收端的采样时钟的频率与所述发送端的发送时钟的频率相同;The receiving end according to claim 16, wherein a frequency of a sampling clock of the receiving end is the same as a frequency of a transmitting clock of the transmitting end;
    相应地,所述监测单元,配置为连续接收到M个采样时钟周期的起始位位值时,确定监测到所述待传输消息对应的串行数据的同步头数据。Correspondingly, the monitoring unit is configured to, when configured to continuously receive the start bit values of the M sampling clock cycles, determine the synchronization header data of the serial data corresponding to the to-be-transmitted message.
  18. 根据权利要求17所述的接收端,其中,所述确定单元,配置为指示所述采样单元对所述同步头数据的类型位位值进行采样,得到所述待传输消息的类型;The receiving end according to claim 17, wherein the determining unit is configured to instruct the sampling unit to sample a type bit value of the synchronization header data to obtain a type of the message to be transmitted;
    以及,根据自身需要接收的消息类型与所述待传输消息的类型进行匹配;And matching, according to the type of the message that needs to be received, the type of the message to be transmitted;
    以及,当匹配成功时,确定所述待传输消息为自身需要接收的消息。And, when the matching is successful, determining that the to-be-transmitted message is a message that needs to be received by itself.
  19. 根据权利要求18所述的接收端,其中,所述采样单元,配置为选取所述同步头数据的类型位中每个比特位持续的K个采样时钟周期中的中心拍对应的数据值为相应的比特位的值;The receiving end according to claim 18, wherein the sampling unit is configured to select a data value corresponding to a center beat in a K sampling clock period in which each bit of the type of the synchronization header data continues The value of the bit;
    以及,根据所述同步头数据的类型位位值与预设的类型位位值和消息类型的对应关系,确定所述待传输消息的类型。And determining a type of the message to be transmitted according to a correspondence between a type bit value of the synchronization header data and a preset type bit value and a message type.
  20. 根据权利要求17所述的接收端,其中,所述采样单元,配置为选取所述待传输消息的数据值和校验值中每个比特位持续的N个采样时钟周期中的中心拍对应的数据值为相应的比特位的值。 The receiving end according to claim 17, wherein the sampling unit is configured to select a center point in the N sampling clock periods in which the data value of the message to be transmitted and the check value last for each of the N sampling clock periods The data value is the value of the corresponding bit.
  21. 一种消息传输系统,所述系统包括发送端和接收端,其中,A message transmission system, the system comprising a transmitting end and a receiving end, wherein
    所述发送端,配置为设置固定位数的同步头数据;其中,所述同步头数据用于指示待传输消息的起始以及所述待传输消息的类型;The sending end is configured to set a synchronization bit data of a fixed number of bits; wherein the synchronization header data is used to indicate a start of a message to be transmitted and a type of the message to be transmitted;
    以及,根据所述待传输消息的数据值进行校验,得到所述待传输消息的校验值;And performing verification according to the data value of the to-be-transmitted message to obtain a check value of the to-be-transmitted message;
    以及,将所述同步头数据、所述待传输消息的数据值与所述待传输消息的校验值顺序组成所述待传输消息对应的串行数据,并通过传输线将所述串行数据传输至所述接收端;And, the synchronization header data, the data value of the to-be-transmitted message, and the check value of the to-be-transmitted message are sequentially formed into serial data corresponding to the to-be-transmitted message, and the serial data is transmitted through a transmission line. To the receiving end;
    所述接收端,配置为监测到所述待传输消息对应的串行数据的同步头数据时,根据所述同步头数据指示的所述待传输消息的类型确定所述待传输消息为自身需要接收的消息;The receiving end is configured to: when the synchronization header data of the serial data corresponding to the message to be transmitted is monitored, determine, according to the type of the to-be-transmitted message indicated by the synchronization header data, that the to-be-transmitted message needs to be received by itself News
    以及,当确定所述待传输消息为所述接收端自身需要接收的消息之后,对所述串行数据中所述待传输消息的数据值与所述待传输消息的校验值进行采样;And determining, after the message to be transmitted is the message that the receiving end needs to receive, sampling the data value of the to-be-transmitted message in the serial data and the check value of the to-be-transmitted message;
    以及,根据采样得到的所述待传输消息的校验值对所述待传输消息的数据值进行校验;And verifying, according to the sampled value of the to-be-transmitted message, the data value of the to-be-transmitted message;
    以及,当校验成功后,确定所述待传输消息的数据值为可用的数据值。And, after the verification is successful, determining that the data value of the message to be transmitted is an available data value.
  22. 一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行应用于发送端的消息传输方法。A computer readable storage medium comprising a set of computer executable instructions for performing a message transmission method applied to a transmitting end.
  23. 一种计算机可读存储介质,所述存储介质包括一组计算机可执行指令,所述指令用于执行应用于接收端的消息传输方法。 A computer readable storage medium comprising a set of computer executable instructions for performing a message transmission method applied to a receiving end.
PCT/CN2015/074788 2014-11-25 2015-03-20 Message transmission method, device, system and computer storage medium WO2016082385A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410690020.6A CN105703875B (en) 2014-11-25 2014-11-25 Method, equipment and system for transmitting message
CN201410690020.6 2014-11-25

Publications (1)

Publication Number Publication Date
WO2016082385A1 true WO2016082385A1 (en) 2016-06-02

Family

ID=56073453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074788 WO2016082385A1 (en) 2014-11-25 2015-03-20 Message transmission method, device, system and computer storage medium

Country Status (2)

Country Link
CN (1) CN105703875B (en)
WO (1) WO2016082385A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221894A (en) * 2023-11-09 2023-12-12 湖南雷诺科技发展有限公司 Big data-based 5G communication transmission method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107957523A (en) * 2017-11-23 2018-04-24 苏州达方电子有限公司 Detection device
CN111475447B (en) * 2019-01-24 2021-10-22 广州彩熠灯光股份有限公司 High-speed serial transmission device based on LVDS and data transmission method
CN111722940B (en) * 2020-05-22 2024-04-16 百富计算机技术(深圳)有限公司 Message transmission method, terminal equipment and transmission system based on asynchronous serial port
WO2023087143A1 (en) * 2021-11-16 2023-05-25 华为技术有限公司 Video transmission method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050257117A1 (en) * 2004-05-12 2005-11-17 Weirong Chiang Method and circuit for determining an ending of an ethernet frame
CN101364939A (en) * 2007-08-07 2009-02-11 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN102394655A (en) * 2011-10-31 2012-03-28 中国兵器工业集团第二一四研究所苏州研发中心 Manchester code converting method on MIC bus
CN102647252A (en) * 2012-03-26 2012-08-22 航天东方红卫星有限公司 Serial communication method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2790147B2 (en) * 1987-06-03 1998-08-27 エリクソン ジーイー モービル コミュニケーションズ インコーポレーテッド Communication protocol between processors for public trunking.
CN100583826C (en) * 2007-01-31 2010-01-20 华为技术有限公司 Data transmission method and transmitting apparatus and receiving apparatus
CN101488825B (en) * 2008-01-16 2011-11-09 宏达国际电子股份有限公司 Error detection method and system for data transmission
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system
RU2603534C2 (en) * 2011-06-29 2016-11-27 Роберт Бош Гмбх Method and device for serial data transmission having a flexible message size and a variable bit length
CN102510323B (en) * 2011-09-22 2014-11-26 航天科工惯性技术有限公司 Frame identifying method for serial data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050257117A1 (en) * 2004-05-12 2005-11-17 Weirong Chiang Method and circuit for determining an ending of an ethernet frame
CN101364939A (en) * 2007-08-07 2009-02-11 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN102394655A (en) * 2011-10-31 2012-03-28 中国兵器工业集团第二一四研究所苏州研发中心 Manchester code converting method on MIC bus
CN102647252A (en) * 2012-03-26 2012-08-22 航天东方红卫星有限公司 Serial communication method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221894A (en) * 2023-11-09 2023-12-12 湖南雷诺科技发展有限公司 Big data-based 5G communication transmission method
CN117221894B (en) * 2023-11-09 2024-01-12 湖南雷诺科技发展有限公司 Big data-based 5G communication transmission method

Also Published As

Publication number Publication date
CN105703875B (en) 2020-08-07
CN105703875A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
WO2016082385A1 (en) Message transmission method, device, system and computer storage medium
US9946677B2 (en) Managing single-wire communications
CN106656424B (en) Data transmission verification method
WO2018059436A1 (en) Error code detection method, device and system and computer-readable storage medium
WO2019134683A1 (en) Oscilloscope signal decoding method and apparatus, and oscilloscope
WO2017050234A1 (en) Data transmission method and data processing device
US20140269666A1 (en) Method and apparatus for efficient signaling of communication mode and delimiter information
CN102377521A (en) Systems and methods for performing forward error correction
JP2012147197A (en) Communication device, communication method, and communication program
AU2014227460B2 (en) Maximal transition hamming codes
WO2014101087A1 (en) Encoding/decoding method, device and system
EP3547577B1 (en) Data transmission method and terminal
CN111818632A (en) Method, device, equipment and storage medium for equipment synchronization
WO2017012389A1 (en) Link detection method, receiving device and computer storage medium
EP1605621A2 (en) Data transmission with improved error correction capability
US8812938B2 (en) Coding apparatus, coding method, decoding apparatus, decoding method, program and transmission system
US10516789B2 (en) Information processing apparatus and image processing apparatus that perform transmission and reception of data, and method of controlling information processing apparatus
US20150003570A1 (en) Method and apparatus for burst start detection
CN108551382B (en) Communication data error correction method and device
WO2017050232A1 (en) Data transmission method and system
WO2017000737A1 (en) Transmission checking method, node, system and computer storage medium
JP2007116752A (en) Method of confirming correctness of decrypted data
RU2018139479A (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, PROGRAM AND COMMUNICATION SYSTEM
JP2012124642A (en) Receiving device, data transfer device, and program
CN106877994B (en) Audio data transmitting and receiving method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15864104

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15864104

Country of ref document: EP

Kind code of ref document: A1