CN105703875A - Message transmission method, device and system - Google Patents

Message transmission method, device and system Download PDF

Info

Publication number
CN105703875A
CN105703875A CN201410690020.6A CN201410690020A CN105703875A CN 105703875 A CN105703875 A CN 105703875A CN 201410690020 A CN201410690020 A CN 201410690020A CN 105703875 A CN105703875 A CN 105703875A
Authority
CN
China
Prior art keywords
message
transmitted
data
bit
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410690020.6A
Other languages
Chinese (zh)
Other versions
CN105703875B (en
Inventor
陈杰
汪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410690020.6A priority Critical patent/CN105703875B/en
Priority to PCT/CN2015/074788 priority patent/WO2016082385A1/en
Publication of CN105703875A publication Critical patent/CN105703875A/en
Application granted granted Critical
Publication of CN105703875B publication Critical patent/CN105703875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a message transmission method, device and system. The method includes the following steps that: a sending end sets synchronous header data of fixed bits, wherein the synchronous header data are used for indicating the initiation of a message to be transmitted and the type of the message to be transmitted; the sending end carries out verification according to the data value of the message to be transmitted so as to obtain the verification value of the message to be transmitted; and the sending end sequentially combines the synchronous header data, the data value of the message to be transmitted and the verification value of the message to be transmitted into serial data corresponding to the message to be transmitted and transmits the serial data to a receiving end through a transmission line.

Description

The method of a kind of message transmission, equipment and system
Technical field
The present invention relates to data communication transmission, particularly relate to a kind of method that message is transmitted, equipment and system。
Background technology
Serial communication refers to a kind of communication mode message data step-by-step order transmitted on single transmission line。To under the less demanding application scenarios of message efficiency of transmission, data line can be effectively saved in serial communication。And not having strict synchronization to require in situation at transmitting terminal and receiving terminal at respective clock, asynchronous serial communication, by after data form character frame, transmitting terminal sending frame by frame, is received frame by frame by single transmission line receiving end。So can be avoided, at transmitting terminal and receiving terminal, clock line is set to carry out clock synchronization。
But, current asynchronous serial communication not only encoding and decoding are complex, it is necessary to increase too much information bit, namely add the overhead of message transmission, and generally asynchronous serial communication is only for the transmission of point-to-point message。
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of method that message is transmitted, equipment and system, can not only reduce the overhead of message transmission, and can be used in the message transmission of point-to-multipoint。
The technical scheme is that and be achieved in that:
First aspect, embodiments provides a kind of method for message transmission being applied to transmitting terminal, including:
Described transmitting terminal arranges the synchronous head data of fixing figure place;Wherein, described synchronous head data are for indicating the type of the initial of message to be transmitted and described message to be transmitted;
Described transmitting terminal verifies according to the data value of described message to be transmitted, obtains the check value of described message to be transmitted;
The data value of described synchronous head data, described message to be transmitted is formed, with the check value of described message to be transmitted order, the serial data that described message to be transmitted is corresponding by described transmitting terminal, and by transmission line by described serial data transmission to receiving terminal。
Further, described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;The type of message number that the number of bits of described type bit is sent by described transmitting terminal support is determined。
Further, described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Further, described method also includes:
The spare bits contrary with the place value of described start bit is transmitted in described transmitting terminal transmission intercal between the serial data of twice data to be transmitted。
Second aspect, embodiments provides a kind of method for message transmission being applied to receiving terminal, including:
When receiving terminal monitors the synchronous head data of serial data corresponding to message to be transmitted, determine that described message to be transmitted is the message self needing to receive according to the type of the message described to be transmitted of described synchronous head data instruction;Wherein, described serial data is made up of with the check value order of described message to be transmitted described synchronous head data, the data value of described message to be transmitted;
When described receiving terminal determines that described message to be transmitted is, after self needs the message received, the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted are sampled;
The data value of described message to be transmitted is verified by described receiving terminal according to the check value of the message described to be transmitted that sampling obtains;
When verifying after successfully, described receiving terminal determines that the data value of described message to be transmitted is available data value。
Further, described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;Further, described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Further, the frequency of the sampling clock of described receiving terminal is identical with the frequency of the tranmitting data register of described transmitting terminal;
Correspondingly, described receiving terminal monitors the synchronous head data of serial data corresponding to message to be transmitted, including:
When described receiving terminal continuously receives the start bit place value of M sampling clock cycle, it is determined that monitor the synchronous head data of serial data corresponding to described message to be transmitted。
Further, the type of the message described to be transmitted that described receiving terminal indicates according to described synchronous head data determines that described message to be transmitted is the message self needing to receive, including:
The type bit place value of described synchronous head data is sampled by described receiving terminal, obtains the type of described message to be transmitted;
The type of message that described receiving terminal receives according to self needs mates with the type of described message to be transmitted;
When the match is successful, described receiving terminal determines that described message to be transmitted is the message self needing to receive。
Further, the type bit place value of described synchronous head data is sampled by described receiving terminal, obtains the type of described message to be transmitted, including:
Described receiving terminal is chosen the center in K the sampling clock cycle that in the type bit of described synchronous head data, each bit is lasting and is clapped the corresponding value that data value is corresponding bit;
The described receiving terminal corresponding relation according to the type bit place value of described synchronous head data with the type bit place value preset and type of message, it is determined that the type of described message to be transmitted。
Further, the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted are sampled by described receiving terminal, including:
Described receiving terminal is chosen the center in N number of sampling clock cycle that the data value bit each with in check value of described message to be transmitted is lasting and is clapped the corresponding value that data value is corresponding bit。
The third aspect, embodiments provides a kind of transmitting terminal, and described transmitting terminal includes: arrange unit, verification unit, component units and transmission unit, wherein,
Described unit is set, for arranging the synchronous head data of fixing figure place;Wherein, described synchronous head data are for indicating the type of the initial of message to be transmitted and described message to be transmitted;
Described verification unit, verifies for the data value according to described message to be transmitted, obtains the check value of described message to be transmitted;
Described component units, for sequentially forming the serial data that described message to be transmitted is corresponding by the check value of message described to be transmitted described arranging synchronous head data that unit arranges, the data value of described message to be transmitted obtains with described verification unit;
Described transmission unit, for the serial data transmission that consisted of by described component units transmission line to receiving terminal。
Further, described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;The type of message number that the number of bits of described type bit is sent by described transmitting terminal support is determined。
Further, described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Further, described transmission unit, it is additionally operable in the transmission intercal between the serial data of twice data to be transmitted and transmits the spare bits contrary with the place value of described start bit。
Fourth aspect, embodiments provides a kind of receiving terminal, and described receiving terminal includes: monitoring means, determine unit, sampling unit and verification unit, wherein,
Described monitoring means, for monitoring the synchronous head data of serial data corresponding to message to be transmitted;
Described determine unit, during for monitoring the synchronous head data of serial data corresponding to described message to be transmitted when described monitoring means, determine that described message to be transmitted is the message that described receiving terminal self needs to receive according to the type of the message described to be transmitted of described synchronous head data instruction;And when determining that described message to be transmitted is, after described receiving terminal self needs the message received, trigger described sampling unit;Wherein, described serial data is made up of with the check value order of described message to be transmitted described synchronous head data, the data value of described message to be transmitted;
Described sampling unit, for sampling to the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted;
Described verification unit, the data value of described message to be transmitted is verified by the check value of the message described to be transmitted for obtaining according to the sampling of described sampling unit;
Described determine unit, be additionally operable to when described verification unit verifies after successfully, it is determined that the data value of described message to be transmitted is available data value。
Further, described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;Further, described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Further, the frequency of the sampling clock of described receiving terminal is identical with the frequency of the tranmitting data register of described transmitting terminal;
Correspondingly, described monitoring means, when being used for the start bit place value continuously receiving M sampling clock cycle, it is determined that monitor the synchronous head data of serial data corresponding to described message to be transmitted。
Further, described determine unit, be used for:
Indicate described sampling unit that the type bit place value of described synchronous head data is sampled, obtain the type of described message to be transmitted;
And, mate with the type of described message to be transmitted according to self needing the type of message received;
And, when the match is successful, it is determined that described message to be transmitted is the message self needing to receive。
Further, described sampling unit, the value that data value is corresponding bit of correspondence is clapped for choosing the center in K the sampling clock cycle that in the type bit of described synchronous head data, each bit is lasting;
And, the corresponding relation according to the type bit place value of described synchronous head data with the type bit place value preset and type of message, it is determined that the type of described message to be transmitted。
Further, described sampling unit, the corresponding value that data value is corresponding bit is clapped at the center in N number of sampling clock cycle lasting for choosing the data value bit each with in check value of described message to be transmitted。
5th aspect, embodiments provides a kind of message delivery system, and described system includes transmitting terminal and receiving terminal, wherein,
Described transmitting terminal, for arranging the synchronous head data of fixing figure place;Wherein, described synchronous head data are for indicating the type of the initial of message to be transmitted and described message to be transmitted;
And, verify according to the data value of described message to be transmitted, obtain the check value of described message to be transmitted;
And, the data value of described synchronous head data, described message to be transmitted is formed, with the check value of described message to be transmitted order, the serial data that described message to be transmitted is corresponding, and by transmission line by described serial data transmission to described receiving terminal;
According to the type of the message described to be transmitted of described synchronous head data instruction, described receiving terminal, when being used for the synchronous head data monitoring serial data corresponding to described message to be transmitted, determines that described message to be transmitted is the message self needing to receive;
And, when determining that described message to be transmitted is, after described receiving terminal self needs the message received, the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted are sampled;
And, according to the check value of the message described to be transmitted obtained of sampling, the data value of described message to be transmitted is verified;
And, when verifying after successfully, it is determined that the data value of described message to be transmitted is available data value。
The method embodiments providing the transmission of a kind of message, equipment and system, in the process of asynchronous serial communication, by a kind of new decoding method, message waiting for transmission is processed, so that in the process of message transmission, reduce extra expense, but also can be used in the message transmission of point-to-multipoint。
Accompanying drawing explanation
A kind of application scenarios schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The method flow schematic diagram of a kind of message transmission that Fig. 2 provides for the embodiment of the present invention;
A kind of serial data oscillogram that Fig. 3 provides for the embodiment of the present invention;
The method flow schematic diagram of the another kind of message transmission that Fig. 4 provides for the embodiment of the present invention;
The another kind of serial data oscillogram that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of transmitting terminal that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of receiving terminal that Fig. 7 provides for the embodiment of the present invention;
The structural representation of a kind of message delivery system that Fig. 8 provides for the embodiment of the present invention。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described。
The basic thought of the embodiment of the present invention is: in the process of asynchronous serial communication, by a kind of new decoding method, message waiting for transmission is processed, so that in the process of message transmission, reduce extra expense, but also can be used in the message transmission of point-to-multipoint。
Based on above-mentioned basic thought, referring to Fig. 1, it illustrates a kind of application scenarios that the embodiment of the present invention provides, transmitting terminal 10 and three receiving terminals 20,30 and 40, be connected each through single transmission line 50 and transmit data between transmitting terminal 10 with each receiving terminal。Technical scheme is only illustrated by the embodiment of the present invention to be connected by single transmission line 50 and to be transmitted data instance between transmitting terminal 10 with single receiving terminal, understandable, this application scenarios can be applied between transmitting terminal 10 and other receiving terminals and be transmitted data, and this application scene is only for illustrating the technical scheme of the embodiment of the present invention, not the embodiment of the present invention is carried out any concrete restriction。
Referring to Fig. 2, the method flow that it illustrates a kind of message transmission that the embodiment of the present invention provides, the method is applied to transmitting terminal, and the method may include that
S201: transmitting terminal arranges the synchronous head data of fixing figure place;Wherein, synchronous head data are for indicating the type of the initial of message to be transmitted and message to be transmitted;
Specifically, synchronous head data may include that start bit, wait position and type bit;Wherein, start bit is 1 bit with described wait position and place value is contrary;The type of message number that the number of bits of type bit is sent by transmitting terminal support is determined;
Further, in the present embodiment, start bit continues M tranmitting data register cycle;In the data value of message to be transmitted, in each bit and check value, each bit all continues N number of tranmitting data register cycle;Wait that each bit of position and type bit all continues K tranmitting data register cycle;Wherein, in order to make receiving terminal allow there is sampling by mistake when detecting start bit, M, N are the integer more than 1;And in order to distinguish the start bit of message, it is preferable that N is the integer more than 2 more than M+2, K。
It should be noted that, owing to synchronous head data being indicated the type of message to be transmitted by type bit, therefore, can so that the type of receiving terminal message to be transmitted indicated by type bit determines whether the message needing reception for receiving terminal, such that it is able to send data to multiple receiving terminals on single transmission line, the message to realize point-to-multipoint is transmitted。
S202: transmitting terminal verifies according to the data value of message to be transmitted, obtains the check value of message to be transmitted;
Understandable, it can be CRC (CRC that transmitting terminal carries out verifying the checking algorithm adopted according to the data value of message to be transmitted, CyclicRedundancyCheck) verification, can also being use other checking algorithms with verify, even-odd check etc., this be not especially limited by the embodiment of the present invention;The present embodiment is preferably CRC check。
S203: the data value of synchronous head data, message to be transmitted is formed, with the check value of message to be transmitted order, the serial data that message to be transmitted is corresponding by transmitting terminal, and by transmission line by serial data transmission to receiving terminal。
Preferably, when message transmission rate is lower than default rate-valve value, the transmission intercal sent between the serial data of twice data to be transmitted can be set to by transmitting terminal can more than the time of transmission primaries serial data, and the transmission intercal between the serial data of twice data to be transmitted can be arranged free time by transmitting terminal, it is thus possible to simplify receiving terminal for monitoring the design of synchronous head, and it is avoided that receiving terminal occurs by mistake using the situation as synchronous head of the data in message;
Further, when between twice transmitting serial data of transmitting terminal when the available free time, in order to distinguish the serial data of twice data to be transmitted that transmitting terminal sends, preferably, the method that the present embodiment provides can also include: transmits the spare bits contrary with the place value of start bit in transmitting terminal transmission intercal between the serial data of twice data to be transmitted。It is to be appreciated that when transmitting terminal continuously transmits serial data, transmitting terminal can send spare bits。
In detail, referring to Fig. 3, it illustrates in the method flow of the transmission of message shown in Fig. 2, the exemplary serial data oscillogram that transmitting terminal sends, as it is shown on figure 3, in synchronous head data, start bit, for continuing 2 tranmitting data register cycle high level, represents with logic 1 in the present embodiment;Wait that position is the low level continuing 5 tranmitting data register cycles, represent with logical zero in the present embodiment;The figure place of type bit is 3, represents that the serial data shown in Fig. 3 can be used to indicate that 23=8 kinds of data types, each bit of type bit continues 5 tranmitting data register cycles too;Each bit of message to be transmitted and check value continues 5 too and sends the cycle。
Based on the technology design that above-described embodiment is identical, when transmitting terminal by transmission line by serial data transmission to receiving terminal after, referring to Fig. 4, it illustrates the method flow of the another kind of message transmission that the embodiment of the present invention provides, the method is applied to receiving terminal, and the method may include that
According to the type of the message to be transmitted of synchronous head data instruction, S401: when receiving terminal monitors the synchronous head data of serial data corresponding to message to be transmitted, determines that message to be transmitted is the message self needing to receive;
Wherein, serial data is made up of with the check value order of message to be transmitted synchronous head data, the data value of message to be transmitted;Further, with the synchronous head data consistent in previous embodiment, synchronous head data may include that start bit, wait position and type bit;Wherein, start bit with wait that position is 1 bit and place value is contrary;Further, start bit continues M tranmitting data register cycle;In the data value of message to be transmitted, in each bit and check value, each bit all continues N number of tranmitting data register cycle;Wait that each bit of position and type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Exemplarily, the frequency of the sampling clock of receiving terminal and the frequency of tranmitting data register are identical;Correspondingly, receiving terminal monitors the synchronous head data of serial data corresponding to message to be transmitted, including:
When receiving terminal continuously receives the start bit place value of M sampling clock cycle, it is determined that monitor the synchronous head data of serial data corresponding to message to be transmitted。
Further, the type of the message to be transmitted that receiving terminal indicates according to synchronous head data determines that message to be transmitted is the message self needing to receive, including:
The type bit place value of synchronous head data is sampled by receiving terminal, obtains the type of message to be transmitted;
And, the type of message that receiving terminal receives according to self needs mates with the type of message to be transmitted;
And, when the match is successful, receiving terminal determines that message to be transmitted is the message self needing to receive;
Specifically, the type bit place value of synchronous head data is sampled by receiving terminal, obtains the center that the type of message to be transmitted may include that receiving terminal can be chosen in K the sampling clock cycle that in the type bit of synchronous head data, each bit is lasting and claps the corresponding value that data value is corresponding bit;Then, the receiving terminal corresponding relation according to the type bit place value of synchronous head data with the type bit place value preset and type of message, it is determined that the type of message to be transmitted;It should be understood that receiving terminal chooses the center in K the sampling clock cycle that bit is lasting claps the corresponding value that data value is corresponding bit, it is ensured that even if the clock of transmitting terminal and receiving terminal is nonhomologous same frequency clock also can correctly sample data;And when K is even number, center is clapped and is taken K/2 bat;When K is odd number, center is clapped and is taken (K+1)/2 bat。
It should be noted that, because according to the type of message to be transmitted in serial data, receiving terminal can determine whether the message to be transmitted in this serial data is the message self needing to receive, so, transmitting terminal can by the multiple receiving terminal transmission message of single transmission alignment, determined whether to receive according to the type of message to be transmitted by receiving terminal self, thus realizing the message transmission of point-to-multipoint。
S402: when receiving terminal determines that message to be transmitted is, after self needs the message received, the data value of message to be transmitted in serial data and the check value of message to be transmitted are sampled;
It should be understood that after receiving terminal determines that message to be transmitted does not need, for self, the message received, directly abandon this serial data。
Further, the data value of message to be transmitted in serial data and the check value of message to be transmitted are sampled by receiving terminal, specifically may include that
Receiving terminal is chosen the center in N number of sampling clock cycle that the data value bit each with in check value of message to be transmitted is lasting and is clapped the corresponding value that data value is corresponding bit;It should be understood that when N is even number, center is clapped and is taken N/2 bat;When N is odd number, center is clapped and is taken (N+1)/2 bat。
S403: the data value of message to be transmitted is verified by receiving terminal according to the check value of the message to be transmitted that sampling obtains;
S404: when verifying after successfully, receiving terminal determines that the data value of message to be transmitted is available data value;
If it should be understood that verify unsuccessful, receiving terminal determines that in serial data, the data value of message to be transmitted is unavailable, and serial data is abandoned。
In detail, referring to Fig. 5, it illustrates in the method flow of the transmission of message shown in Fig. 4, the exemplary serial data oscillogram that receiving terminal receives, similar with Fig. 3, in synchronous head data, the sampling clock cycle of receiving terminal sampling start bit is 2 tranmitting data register cycles;Receiving terminal sampling waits that the sampling clock cycle of position is 5 tranmitting data register cycles;The figure place of type bit is 3, represents that the serial data shown in Fig. 3 can be used to indicate that 23=8 kinds of data types, the sampling period of each bit of each bit of type bit, message to be transmitted and check value is 5 tranmitting data register cycles too, it is then the 3rd beat of data value in 5 transmission cycles that corresponding data value is clapped at center, as shown in broken lines。
The method for message transmission that above-described embodiment provides, in the process of asynchronous serial communication, by a kind of new decoding method, message waiting for transmission is processed, so that in the process of message transmission, reduce extra expense, but also can be used in the message transmission of point-to-multipoint。
Based on the technology design that previous embodiment is identical, referring to Fig. 6, it illustrates the structure of a kind of transmitting terminal 60 that the embodiment of the present invention provides, including arranging unit 601, verification unit 602, component units 603 and transmission unit 604, wherein,
Unit 601 is set, for arranging the synchronous head data of fixing figure place;Wherein, synchronous head data are for indicating the type of the initial of message to be transmitted and message to be transmitted;
Verification unit 602, verifies for the data value according to message to be transmitted, obtains the check value of message to be transmitted;
Component units 603, for by arranging the synchronous head data that unit 601 arranges, the check value of message to be transmitted that the data value of message to be transmitted obtains with verification unit 602 sequentially form the serial data that message to be transmitted is corresponding;
Transmission unit 604, for the serial data transmission that consisted of by component units 603 transmission line to receiving terminal。
Exemplarily, synchronous head data include: start bit, wait position and type bit;Wherein, start bit with wait that position is 1 bit and place value is contrary;The type of message number that the number of bits of type bit is sent by transmitting terminal support is determined。
Further, start bit continues M tranmitting data register cycle;In the data value of message to be transmitted, in each bit and check value, each bit all continues N number of tranmitting data register cycle;Wait that each bit of position and type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Further, transmission unit 604, it is additionally operable in the transmission intercal between the serial data of twice data to be transmitted and transmits the spare bits contrary with the place value of start bit。
The transmitting terminal 60 that the present embodiment provides, in the process of asynchronous serial communication, by a kind of new decoding method, message waiting for transmission is encoded, so that in the process of message transmission, reduce extra expense, but also can be used in the message transmission of point-to-multipoint。
Based on the technology design that previous embodiment is identical, referring to Fig. 7, it illustrates the structure of a kind of receiving terminal 70 that the embodiment of the present invention provides, including: monitoring means 701, determine unit 702, sampling unit 703 and verification unit 704, wherein,
Monitoring means 701, for monitoring the synchronous head data of serial data corresponding to message to be transmitted;
Determine unit 702, for when monitoring means 701 monitors the synchronous head data of serial data corresponding to message to be transmitted, determining that message to be transmitted is the message that receiving terminal 70 self needs to receive according to the type of the message to be transmitted of synchronous head data instruction;And when determining that message to be transmitted is, after receiving terminal 70 self needs the message received, trigger sampling unit 703;Wherein, serial data is made up of with the check value order of message to be transmitted synchronous head data, the data value of message to be transmitted;
Sampling unit 703, for sampling to the data value of message to be transmitted in serial data and the check value of message to be transmitted;
Verification unit 704, the data value of message to be transmitted is verified by the check value of the message to be transmitted for obtaining according to sampling unit 703 sampling;
Determine unit 702, be additionally operable to when verification unit 704 verifies after successfully, it is determined that the data value of message to be transmitted is available data value。
Exemplarily, synchronous head data include: start bit, wait position and type bit;Wherein, start bit with wait that position is 1 bit and place value is contrary;Further, start bit continues M tranmitting data register cycle;In the data value of message to be transmitted, in each bit and check value, each bit all continues N number of tranmitting data register cycle;Wait that each bit of position and type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
Further, the frequency of the sampling clock of receiving terminal is identical with the frequency of the tranmitting data register of transmitting terminal;
Correspondingly, monitoring means 701, when being used for the start bit place value continuously receiving M sampling clock cycle, it is determined that monitor the synchronous head data of serial data corresponding to message to be transmitted。
Further, it is determined that unit 702, it is used for:
The type bit place value of synchronous head data is sampled by instruction sampling unit 703, obtains the type of message to be transmitted;
And, mate with the type of message to be transmitted according to self needing the type of message received;
And, when the match is successful, it is determined that message to be transmitted is the message self needing to receive。
Further, sampling unit 703, the value that data value is corresponding bit of correspondence is clapped for choosing the center in K the sampling clock cycle that in the type bit of synchronous head data, each bit is lasting;
And, the corresponding relation according to the type bit place value of synchronous head data with the type bit place value preset and type of message, it is determined that the type of message to be transmitted。
Further, sampling unit 703, the corresponding value that data value is corresponding bit is clapped at the center in N number of sampling clock cycle lasting for choosing the data value bit each with in check value of message to be transmitted。
The receiving terminal 70 that the present embodiment provides, in the process of asynchronous serial communication, by a kind of new decoding method, message waiting for transmission is decoded, so that in the process of message transmission, reduce extra expense, but also can be used in the message transmission of point-to-multipoint。
Based on the technology design that above-described embodiment is identical, referring to Fig. 8, it illustrates a kind of message delivery system 80 structure that the embodiment of the present invention provides, this system 80 can include transmitting terminal 60 and receiving terminal 70, wherein,
Transmitting terminal 60, for arranging the synchronous head data of fixing figure place;Wherein, synchronous head data are for indicating the type of the initial of message to be transmitted and message to be transmitted;
And, verify according to the data value of message to be transmitted, obtain the check value of message to be transmitted;
And, the data value of synchronous head data, message to be transmitted is formed, with the check value of message to be transmitted order, the serial data that message to be transmitted is corresponding, and by transmission line by serial data transmission to receiving terminal 70;
According to the type of the message to be transmitted of synchronous head data instruction, receiving terminal 70, when being used for the synchronous head data monitoring serial data corresponding to message to be transmitted, determines that message to be transmitted is the message self needing to receive;
And, when determining that message to be transmitted is, after receiving terminal 70 self needs the message received, the data value of message to be transmitted in serial data and the check value of message to be transmitted are sampled;
And, according to the check value of the message to be transmitted obtained of sampling, the data value of message to be transmitted is verified;
And, when verifying after successfully, it is determined that the data value of message to be transmitted is available data value。
The message delivery system 80 that the present embodiment provides, in the process of asynchronous serial communication, by a kind of new decoding method, message waiting for transmission is processed, so that in the process of message transmission, reduce extra expense, but also can be used in the message transmission of point-to-multipoint。
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program。Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect。And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code。
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe。It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame。These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
Above, it is only presently preferred embodiments of the present invention, is not intended to limit protection scope of the present invention。

Claims (21)

1. a method for message transmission, it is characterised in that described method is applied to transmitting terminal, and described method includes:
Described transmitting terminal arranges the synchronous head data of fixing figure place;Wherein, described synchronous head data are for indicating the type of the initial of message to be transmitted and described message to be transmitted;
Described transmitting terminal verifies according to the data value of described message to be transmitted, obtains the check value of described message to be transmitted;
The data value of described synchronous head data, described message to be transmitted is formed, with the check value of described message to be transmitted order, the serial data that described message to be transmitted is corresponding by described transmitting terminal, and by transmission line by described serial data transmission to receiving terminal。
2. method according to claim 1, it is characterised in that described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;The type of message number that the number of bits of described type bit is sent by described transmitting terminal support is determined。
3. method according to claim 2, it is characterised in that described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
4. method according to claim 2, it is characterised in that described method also includes:
The spare bits contrary with the place value of described start bit is transmitted in described transmitting terminal transmission intercal between the serial data of twice data to be transmitted。
5. a method for message transmission, it is characterised in that described method is applied to receiving terminal, and described method includes:
When receiving terminal monitors the synchronous head data of serial data corresponding to message to be transmitted, determine that described message to be transmitted is the message self needing to receive according to the type of the message described to be transmitted of described synchronous head data instruction;Wherein, described serial data is made up of with the check value order of described message to be transmitted described synchronous head data, the data value of described message to be transmitted;
When described receiving terminal determines that described message to be transmitted is, after self needs the message received, the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted are sampled;
The data value of described message to be transmitted is verified by described receiving terminal according to the check value of the message described to be transmitted that sampling obtains;
When verifying after successfully, described receiving terminal determines that the data value of described message to be transmitted is available data value。
6. method according to claim 5, it is characterised in that described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;Further, described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
7. method according to claim 6, it is characterised in that the frequency of the sampling clock of described receiving terminal is identical with the frequency of the tranmitting data register of described transmitting terminal;
Correspondingly, described receiving terminal monitors the synchronous head data of serial data corresponding to message to be transmitted, including:
When described receiving terminal continuously receives the start bit place value of M sampling clock cycle, it is determined that monitor the synchronous head data of serial data corresponding to described message to be transmitted。
8. method according to claim 7, it is characterised in that the type of the message described to be transmitted that described receiving terminal indicates according to described synchronous head data determines that described message to be transmitted is the message self needing to receive, including:
The type bit place value of described synchronous head data is sampled by described receiving terminal, obtains the type of described message to be transmitted;
The type of message that described receiving terminal receives according to self needs mates with the type of described message to be transmitted;
When the match is successful, described receiving terminal determines that described message to be transmitted is the message self needing to receive。
9. method according to claim 8, it is characterised in that the type bit place value of described synchronous head data is sampled by described receiving terminal, obtains the type of described message to be transmitted, including:
Described receiving terminal is chosen the center in K the sampling clock cycle that in the type bit of described synchronous head data, each bit is lasting and is clapped the corresponding value that data value is corresponding bit;
The described receiving terminal corresponding relation according to the type bit place value of described synchronous head data with the type bit place value preset and type of message, it is determined that the type of described message to be transmitted。
10. method according to claim 7, it is characterised in that the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted are sampled by described receiving terminal, including:
Described receiving terminal is chosen the center in N number of sampling clock cycle that the data value bit each with in check value of described message to be transmitted is lasting and is clapped the corresponding value that data value is corresponding bit。
11. a transmitting terminal, it is characterised in that described transmitting terminal includes: unit, verification unit, component units and transmission unit are set, wherein,
Described unit is set, for arranging the synchronous head data of fixing figure place;Wherein, described synchronous head data are for indicating the type of the initial of message to be transmitted and described message to be transmitted;
Described verification unit, verifies for the data value according to described message to be transmitted, obtains the check value of described message to be transmitted;
Described component units, for sequentially forming the serial data that described message to be transmitted is corresponding by the check value of message described to be transmitted described arranging synchronous head data that unit arranges, the data value of described message to be transmitted obtains with described verification unit;
Described transmission unit, for the serial data transmission that consisted of by described component units transmission line to receiving terminal。
12. transmitting terminal according to claim 11, it is characterised in that described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;The type of message number that the number of bits of described type bit is sent by described transmitting terminal support is determined。
13. transmitting terminal according to claim 12, it is characterised in that described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
14. transmitting terminal according to claim 12, it is characterised in that described transmission unit, it is additionally operable in the transmission intercal between the serial data of twice data to be transmitted and transmits the spare bits contrary with the place value of described start bit。
15. a receiving terminal, it is characterised in that described receiving terminal includes: monitoring means, determine unit, sampling unit and verification unit, wherein,
Described monitoring means, for monitoring the synchronous head data of serial data corresponding to message to be transmitted;
Described determine unit, during for monitoring the synchronous head data of serial data corresponding to described message to be transmitted when described monitoring means, determine that described message to be transmitted is the message that described receiving terminal self needs to receive according to the type of the message described to be transmitted of described synchronous head data instruction;And when determining that described message to be transmitted is, after described receiving terminal self needs the message received, trigger described sampling unit;Wherein, described serial data is made up of with the check value order of described message to be transmitted described synchronous head data, the data value of described message to be transmitted;
Described sampling unit, for sampling to the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted;
Described verification unit, the data value of described message to be transmitted is verified by the check value of the message described to be transmitted for obtaining according to the sampling of described sampling unit;
Described determine unit, be additionally operable to when described verification unit verifies after successfully, it is determined that the data value of described message to be transmitted is available data value。
16. receiving terminal according to claim 15, it is characterised in that described synchronous head data include: start bit, wait position and type bit;Wherein, described start bit is 1 bit with described wait position and place value is contrary;Further, described start bit continues M tranmitting data register cycle;In the data value of described message to be transmitted, in each bit and described check value, each bit all continues N number of tranmitting data register cycle;Each bit of described wait position and described type bit all continues K tranmitting data register cycle;Wherein, M, N are the integer more than 1, and N is the integer more than 2 more than M+2, K。
17. receiving terminal according to claim 16, it is characterised in that the frequency of the sampling clock of described receiving terminal is identical with the frequency of the tranmitting data register of described transmitting terminal;
Correspondingly, described monitoring means, when being used for the start bit place value continuously receiving M sampling clock cycle, it is determined that monitor the synchronous head data of serial data corresponding to described message to be transmitted。
18. receiving terminal according to claim 17, it is characterised in that described determine unit, it is used for:
Indicate described sampling unit that the type bit place value of described synchronous head data is sampled, obtain the type of described message to be transmitted;
And, mate with the type of described message to be transmitted according to self needing the type of message received;
And, when the match is successful, it is determined that described message to be transmitted is the message self needing to receive。
19. receiving terminal according to claim 18, it is characterised in that described sampling unit, clap the value that data value is corresponding bit of correspondence for choosing the center in K the sampling clock cycle that in the type bit of described synchronous head data, each bit is lasting;
And, the corresponding relation according to the type bit place value of described synchronous head data with the type bit place value preset and type of message, it is determined that the type of described message to be transmitted。
20. receiving terminal according to claim 17, it is characterized in that, described sampling unit, the corresponding value that data value is corresponding bit is clapped at the center in N number of sampling clock cycle lasting for choosing the data value bit each with in check value of described message to be transmitted。
21. a message delivery system, it is characterised in that described system includes transmitting terminal and receiving terminal, wherein,
Described transmitting terminal, for arranging the synchronous head data of fixing figure place;Wherein, described synchronous head data are for indicating the type of the initial of message to be transmitted and described message to be transmitted;
And, verify according to the data value of described message to be transmitted, obtain the check value of described message to be transmitted;
And, the data value of described synchronous head data, described message to be transmitted is formed, with the check value of described message to be transmitted order, the serial data that described message to be transmitted is corresponding, and by transmission line by described serial data transmission to described receiving terminal;
According to the type of the message described to be transmitted of described synchronous head data instruction, described receiving terminal, when being used for the synchronous head data monitoring serial data corresponding to described message to be transmitted, determines that described message to be transmitted is the message self needing to receive;
And, when determining that described message to be transmitted is, after described receiving terminal self needs the message received, the data value of message to be transmitted described in described serial data and the check value of described message to be transmitted are sampled;
And, according to the check value of the message described to be transmitted obtained of sampling, the data value of described message to be transmitted is verified;
And, when verifying after successfully, it is determined that the data value of described message to be transmitted is available data value。
CN201410690020.6A 2014-11-25 2014-11-25 Method, equipment and system for transmitting message Active CN105703875B (en)

Priority Applications (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
PCT/CN2015/074788 WO2016082385A1 (en) 2014-11-25 2015-03-20 Message transmission method, device, system and computer storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN105703875A true CN105703875A (en) 2016-06-22
CN105703875B CN105703875B (en) 2020-08-07

Family

ID=56073453

Family Applications (1)

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

Country Status (2)

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

Cited By (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
CN111475447A (en) * 2019-01-24 2020-07-31 广州彩熠灯光股份有限公司 L VDS-based high-speed serial transmission device and method thereof
CN111722940A (en) * 2020-05-22 2020-09-29 百富计算机技术(深圳)有限公司 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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567416B (en) * 2022-04-06 2024-06-07 西安羚控电子科技有限公司 TCP-based data transmission verification-free method and system
CN117221894B (en) * 2023-11-09 2024-01-12 湖南雷诺科技发展有限公司 Big data-based 5G communication transmission method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1988009969A1 (en) * 1987-06-03 1988-12-15 General Electric Company Process-to-processor communications protocol for a public service trunking system
US20050257117A1 (en) * 2004-05-12 2005-11-17 Weirong Chiang Method and circuit for determining an ending of an ethernet frame
CN101014007A (en) * 2007-01-31 2007-08-08 华为技术有限公司 Data transmission method and transmitting apparatus and receiving apparatus
CN101364939A (en) * 2007-08-07 2009-02-11 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN101488825A (en) * 2008-01-16 2009-07-22 宏达国际电子股份有限公司 Error detection method and system for data transmission
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data
CN102647252A (en) * 2012-03-26 2012-08-22 航天东方红卫星有限公司 Serial communication method
CN103782283A (en) * 2011-06-29 2014-05-07 罗伯特·博世有限公司 Method and device for serial data transmission having a flexible message size and a variable bit length

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394655B (en) * 2011-10-31 2013-12-11 中国兵器工业集团第二一四研究所苏州研发中心 Manchester code converting method on MIC bus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1988009969A1 (en) * 1987-06-03 1988-12-15 General Electric Company Process-to-processor communications protocol for a public service trunking system
US20050257117A1 (en) * 2004-05-12 2005-11-17 Weirong Chiang Method and circuit for determining an ending of an ethernet frame
CN101014007A (en) * 2007-01-31 2007-08-08 华为技术有限公司 Data transmission method and transmitting apparatus and receiving apparatus
CN101364939A (en) * 2007-08-07 2009-02-11 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN101488825A (en) * 2008-01-16 2009-07-22 宏达国际电子股份有限公司 Error detection method and system for data transmission
CN102143073A (en) * 2011-03-23 2011-08-03 深圳创维数字技术股份有限公司 Data transmission method and system
CN103782283A (en) * 2011-06-29 2014-05-07 罗伯特·博世有限公司 Method and device for serial data transmission having a flexible message size and a variable bit length
CN102510323A (en) * 2011-09-22 2012-06-20 航天科工惯性技术有限公司 Frame identifying method for serial data
CN102647252A (en) * 2012-03-26 2012-08-22 航天东方红卫星有限公司 Serial communication method

Cited By (6)

* 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
CN111475447A (en) * 2019-01-24 2020-07-31 广州彩熠灯光股份有限公司 L VDS-based high-speed serial transmission device and method thereof
CN111475447B (en) * 2019-01-24 2021-10-22 广州彩熠灯光股份有限公司 High-speed serial transmission device based on LVDS and data transmission method
CN111722940A (en) * 2020-05-22 2020-09-29 百富计算机技术(深圳)有限公司 Message transmission method, terminal equipment and transmission system based on asynchronous serial port
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

Also Published As

Publication number Publication date
CN105703875B (en) 2020-08-07
WO2016082385A1 (en) 2016-06-02

Similar Documents

Publication Publication Date Title
CN105703875A (en) Message transmission method, device and system
CN107888344B (en) Method, equipment and system for detecting error code
CN102281121A (en) Method, equipment and system for transmitting and verifying data file
CN106031072A (en) Harq frame data structure and method of transmitting and receiving with harq in systems using blind detection
CN105634666A (en) Method and device for transmitting data on non-authorized frequency band
CN108833542B (en) Upgrading method of TWS earphone and TWS earphone
CN103957073B (en) A kind of method carried out data transmission by COBBAIF
EP4254826A2 (en) Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus
CN105119967A (en) Picture segmentation transmission method and device
CN108513701B (en) Data transmission method, device, machine readable storage medium and system
JP2018093296A (en) Radio communication equipment, radio communication method, and program
US10959214B2 (en) Information processing method, communication device, and computer storage medium for ensuring correct generation of a check bit
CN105281810A (en) Data transmission method, device and system
EP3637657A1 (en) Communication method, network device and terminal
CN112069008A (en) Equipment debugging information acquisition method and device and equipment debugging information generation method
CN107113818B (en) Data transmission method and device
CN108028767B (en) Method for upgrading adapter, mobile terminal and adapter
CN106060962B (en) Communication method and device
CN106027196B (en) A kind of data transmission method and system
CN107852275A (en) Data transmission device and data transmission method, reception device and method of reseptance, program and data transmission system
CN104536789A (en) Data burning method and data burning device
CN113556210B (en) Upper computer and method for establishing communication connection
CN107888326B (en) Data transmission method and device
CN109039536A (en) Transmission method, equipment and the readable medium of data
CN106471785A (en) A kind of virtual carrier sensing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200706

Address after: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Applicant after: Nanjing Zhongxing New Software Co.,Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corp.

GR01 Patent grant
GR01 Patent grant