CN115242351A - Serial data communication rate self-adaption method - Google Patents

Serial data communication rate self-adaption method Download PDF

Info

Publication number
CN115242351A
CN115242351A CN202210820415.8A CN202210820415A CN115242351A CN 115242351 A CN115242351 A CN 115242351A CN 202210820415 A CN202210820415 A CN 202210820415A CN 115242351 A CN115242351 A CN 115242351A
Authority
CN
China
Prior art keywords
symbol
serial data
period
start bit
pulse
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
CN202210820415.8A
Other languages
Chinese (zh)
Other versions
CN115242351B (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.)
Xiamen jiuhua communication equipment factory
Original Assignee
Xiamen jiuhua communication equipment factory
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 Xiamen jiuhua communication equipment factory filed Critical Xiamen jiuhua communication equipment factory
Priority to CN202210820415.8A priority Critical patent/CN115242351B/en
Publication of CN115242351A publication Critical patent/CN115242351A/en
Application granted granted Critical
Publication of CN115242351B publication Critical patent/CN115242351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The invention provides a serial data communication rate self-adapting method, which comprises that a transmitting terminal: according to the set symbol period of the transmitting end, the transmitting end transmits a specific start bit symbol, and the pulse period of the receiving end receiving the specific start bit symbol pulse is positioned at the set proportion of the symbol period; further setting a specific end bit; receiving end: the receiving end receives the specific start bit symbol and obtains the symbol period of the transmitting end according to the pulse period of the specific start bit symbol and the set proportion of the symbol period; obtaining serial data according to the symbol period to realize the communication rate self-adaption of the serial data; both communication parties send and receive according to the specific start bit and stop bit, the communication rate and the data length do not need to be confirmed in advance, the self-adaption of the serial data communication rate can be realized, the parameter setting during serial data communication is reduced, and the communication errors caused by inconsistent communication parameter setting are also reduced.

Description

Serial data communication rate self-adaption method
Technical Field
The invention relates to the field of serial asynchronous communication, in particular to a serial data communication rate self-adaption method.
Background
Serial asynchronous communication is the most common data information transmission mode in computer communication; it is transmitted in units of character bits, with no fixed time interval between characters, and the bits in each character are transmitted at fixed times.
In the prior art, a method for synchronization of both receiving and transmitting parties of serial asynchronous communication is to set a start bit and a stop bit in a character format, before a valid character is formally transmitted, a transmitter firstly transmits a start bit, then transmits a valid character bit, and then transmits a stop bit when the character is finished, wherein the start bit and the stop bit form a frame. Wherein, the start bit is a logic '0' level lasting for one bit time, and the stop bit is a logic '1' level of 1 bit, 1.5 bits or 2 bits, and is only used as the identification of the start bit and the stop bit. The parameters, including communication rate, data length, etc., must be preset and must be consistent for the sender and the receiver of serial asynchronous communication, otherwise, errors and confusion of data transmission will be caused by inconsistency agreed between the sender and the receiver.
Disclosure of Invention
The main purpose of the present invention is to overcome the above-mentioned defects in the prior art, and to provide a serial data communication rate adaptive method, in which both communication parties transmit and receive according to specific start bits and stop bits, and the communication rate and data length do not need to be confirmed in advance, so that the serial data communication rate adaptive method can be implemented, parameter setting during serial data communication is reduced, and communication errors caused by inconsistent communication parameter settings are also reduced.
The invention adopts the following technical scheme:
a serial data communication rate adaptation method, comprising:
a transmitting end:
according to the set symbol period of the transmitting end, the transmitting end transmits a specific start bit symbol, and the pulse period of the receiving end receiving the specific start bit symbol pulse is positioned at the set proportion of the symbol period;
the transmitting terminal transmits serial data according to a symbol period;
the transmitting end transmits a specific stop bit symbol, and the pulse period of the receiving end receiving the specific stop bit symbol pulse is positioned at the tail end of the symbol period, so that the transmission of the serial data of the frame is finished;
receiving end:
the receiving end receives the specific start bit symbol and obtains the symbol period of the transmitting end according to the pulse period of the specific start bit symbol and the set proportion in the symbol period;
obtaining serial data according to the symbol period to realize the communication rate self-adaption of the serial data;
the receiving end receives the specific stop sign bit and finishes the receiving of the frame serial data.
Specifically, according to a set symbol period of the transmitting end, the transmitting end sends a specific start bit symbol, and a pulse period of the receiving end receiving the specific start bit symbol is located at a set proportion of the symbol period, specifically:
the specific start bit symbol pulse is at high level, and the specific start bit symbol is at low level, high level and low level; the pulse period of a particular start bit symbol is located in one of the 2 nd and third symbol periods.
Specifically, the sending end sends a specific stop bit symbol, and the pulse period in which the receiving end receives the specific stop bit symbol is located at the end of the symbol period, and ends the sending of the serial data this time, specifically:
the specific stop bit symbol pulse is at high level, and the specific stop bit symbol is at low level, low level and high level; the pulse period of a particular stop bit symbol is located in one of the 3 rd three symbol periods.
Specifically, the serial data symbol periods are different for different frames.
As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following advantages:
(1) A serial data communication rate adaptation method, comprising, at a transmitting end: according to the set symbol period of the transmitting end, the transmitting end transmits a specific start bit symbol, and the pulse period of the receiving end receiving the specific start bit symbol pulse is positioned at the set proportion of the symbol period; the transmitting terminal transmits serial data according to the symbol period; the transmitting end transmits a specific stop bit symbol, and the pulse period of the receiving end receiving the specific stop bit symbol pulse is positioned at the tail end of the symbol period, so that the transmission of the serial data of the frame is finished; receiving end: the receiving end receives the specific start bit symbol and obtains the symbol period of the transmitting end according to the pulse period of the specific start bit symbol and the set proportion of the symbol period; obtaining serial data according to the symbol period to realize the communication rate self-adaption of the serial data; the receiving end receives the specific stop sign bit and finishes the receiving of the serial data of the frame; both communication parties of the invention send and receive according to the specific start bit and stop bit, without confirming the communication rate and data length in advance, the invention can realize the self-adaption of the serial data communication rate, reduce the parameter setting during the serial data communication and also reduce the communication errors caused by the inconsistency of the communication parameter setting.
(2) According to the serial data communication rate self-adaption method provided by the invention, serial data of different frames can set different symbol periods, and the safety of data transmission can be improved.
Drawings
FIG. 1 is a schematic diagram of a start bit according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of serial data transmission according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a stop bit according to an embodiment of the present invention.
The invention is described in further detail below with reference to the figures and specific examples.
Detailed Description
The invention provides a serial data communication rate self-adapting method, both communication parties send and receive according to specific start bits and stop bits, the communication rate and the data length do not need to be confirmed in advance, the serial data communication rate self-adapting can be realized, the parameter setting during serial data communication is reduced, and the communication errors caused by inconsistent communication parameter setting are also reduced.
A serial data communication rate adaptation method, comprising:
a transmitting end:
s11: according to the set symbol period of the transmitting end, the transmitting end transmits a specific start bit symbol, and the pulse period of the receiving end receiving the specific start bit symbol pulse is positioned at the set proportion of the symbol period;
the pulse period of the symbol pulse of the specific start bit received by the receiving end is located at a set proportion of the symbol period, and the set proportion can be one half, one third, two thirds, one quarter, three quarters and the like;
in a specific embodiment, according to a set symbol period of the transmitting end, the transmitting end sends a specific start bit symbol, and a pulse period of the specific start bit symbol received by the receiving end is located at a set proportion of the symbol period, specifically, as shown in fig. 1;
the specific start bit symbol pulse is at high level, and the specific start bit symbol is at low level, high level and low level; the pulse period of a particular start bit symbol is located in one of the 2 nd and third symbol periods.
The embodiment of the invention sets specific start bit symbols of low level, high level and low level; and the pulse period of a particular start bit symbol is located in one of the 2 nd and third symbol periods, such an arrangement facilitates identification of the start bit symbol.
S12: the transmitting terminal transmits serial data according to a symbol period; FIG. 2 is a schematic diagram of serial data transmission according to an embodiment of the present invention;
s13: the transmitting end transmits a specific stop bit symbol, and the pulse period of the receiving end receiving the specific stop bit symbol pulse is positioned at the tail end of the set proportion of the symbol period, so that the transmission of the frame serial data is finished;
the pulse period of the specific stop sign pulse received by the receiving end is located at the end of the set proportion of the sign period, the set proportion can also be one half, one third, two thirds, one fourth, three fourths, and the like, and the end located at the set proportion is the second half, the third, and the fourth quarter.
Specifically, the transmitting end sends a specific stop bit symbol, and makes the pulse period, in which the receiving end receives the specific stop bit symbol, located at the end of the symbol period, and ends the sending of the serial data this time, specifically, as shown in fig. 3:
the specific stop bit symbol pulse is high level, and the specific stop bit symbol is low level, low level and high level; the pulse period of a particular stop bit symbol is located in one of the 3 rd three symbol periods.
Receiving end:
s21: the receiving end receives the specific start bit symbol and obtains the symbol period of the transmitting end according to the pulse period of the specific start bit symbol and the set proportion of the symbol period;
in a specific embodiment, the embodiment of the invention sets specific start bit symbols of low level, high level and low level; and the pulse period of the specific start bit symbol is located in the 2 nd one-third symbol period, namely the pulse period is one third of the symbol period, the symbol mark determines the start position, and the symbol period is calculated according to the fact that the pulse period is one third of the symbol period.
S22: obtaining serial data according to the symbol period to realize the communication rate self-adaption of the serial data;
when the receiving end receives effective data, the data is acquired according to the calculated symbol period, so that the communication rate self-adaptation of serial data is realized, the communication rate and the data length do not need to be confirmed in advance, the parameter setting during serial data communication is reduced, and communication errors caused by inconsistent communication parameter setting are also reduced.
S23: the receiving end receives the specific stop sign bit and finishes the receiving of the serial data of the frame.
The receiving end receives the symbols of low level, low level and high level, namely the set specific stop bit, and the receiving end locates in one of the 3 rd symbol period according to the pulse period of the specific stop bit symbol to end the receiving of the frame serial data.
In addition, serial data symbol periods of different frames can be set to be different, and the safety of data transmission can be further improved.
(1) The invention provides a serial data communication rate self-adapting method, which comprises that a transmitting terminal: according to the set symbol period of the transmitting terminal, the transmitting terminal transmits a specific start bit symbol, and the pulse period of the specific start bit symbol pulse received by the receiving terminal is positioned at the set proportion of the symbol period; the transmitting terminal transmits serial data according to a symbol period; the transmitting end transmits a specific stop bit symbol, and the pulse period of the receiving end receiving the specific stop bit symbol pulse is positioned at the tail end of the symbol period, so that the transmission of the frame serial data is finished; receiving end: the receiving end receives the specific start bit symbol and obtains the symbol period of the transmitting end according to the pulse period of the specific start bit symbol and the set proportion of the symbol period; obtaining serial data according to the symbol period to realize the communication rate self-adaption of the serial data; the receiving end receives the specific stop sign bit and finishes the receiving of the serial data of the frame; both communication parties send and receive according to the specific start bit and stop bit, the communication rate and the data length do not need to be confirmed in advance, the self-adaption of the serial data communication rate can be realized, the parameter setting during serial data communication is reduced, and the communication errors caused by inconsistent communication parameter setting are also reduced.
(2) The serial data communication rate self-adaption method provided by the invention can set different symbol periods for the serial data of different frames, and can improve the safety of data transmission
The above description is only an embodiment of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modifications made by using the design concept should fall within the scope of infringing the present invention.

Claims (4)

1. A method for serial data communication rate adaptation, comprising:
a transmitting end:
according to the set symbol period of the transmitting terminal, the transmitting terminal transmits a specific start bit symbol, and the pulse period of the specific start bit symbol pulse received by the receiving terminal is positioned at the set proportion of the symbol period;
the transmitting terminal transmits serial data according to the symbol period;
the transmitting end transmits a specific stop bit symbol, and the pulse period of the receiving end receiving the specific stop bit symbol pulse is positioned at the tail end of the symbol period, so that the transmission of the serial data of the frame is finished;
receiving end:
the receiving end receives the specific start bit symbol and obtains the symbol period of the transmitting end according to the pulse period of the specific start bit symbol and the set proportion of the symbol period;
obtaining serial data according to the symbol period to realize the communication rate self-adaption of the serial data;
the receiving end receives the specific stop sign bit and finishes the receiving of the frame serial data.
2. The method according to claim 1, wherein the transmitting end sends a specific start bit symbol according to a set symbol period of the transmitting end, and the pulse period of the specific start bit symbol received by the receiving end is located at a set ratio of the symbol period, specifically:
the specific start bit symbol pulse is high level, and the specific start bit symbol is low level, high level and low level; the pulse period of a particular start bit symbol is located in one of the 2 nd and third symbol periods.
3. The method according to claim 1, wherein the transmitting end sends a specific stop bit symbol, and the receiving end makes the pulse period of the specific stop bit symbol at the end of the symbol period, and ends the sending of the serial data, specifically:
the specific stop bit symbol pulse is at high level, and the specific stop bit symbol is at low level, low level and high level; the pulse period of a particular stop bit symbol is located in one of the 3 rd three symbol periods.
4. The serial data communication rate adaptation method of claim 1,
the serial data symbol periods are different for different frames.
CN202210820415.8A 2022-07-13 2022-07-13 Self-adaptive method for serial data communication rate Active CN115242351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820415.8A CN115242351B (en) 2022-07-13 2022-07-13 Self-adaptive method for serial data communication rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820415.8A CN115242351B (en) 2022-07-13 2022-07-13 Self-adaptive method for serial data communication rate

Publications (2)

Publication Number Publication Date
CN115242351A true CN115242351A (en) 2022-10-25
CN115242351B CN115242351B (en) 2024-02-13

Family

ID=83673625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820415.8A Active CN115242351B (en) 2022-07-13 2022-07-13 Self-adaptive method for serial data communication rate

Country Status (1)

Country Link
CN (1) CN115242351B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010087047A (en) * 2000-03-06 2001-09-15 서평원 Universal Asynchronous receiver transmitter
JP2002271306A (en) * 2001-03-06 2002-09-20 Fujitsu Ltd Serial signal receiving circuit
KR20050101840A (en) * 2004-04-20 2005-10-25 매그나칩 반도체 유한회사 Serial communication circuit
CN103297186A (en) * 2012-02-29 2013-09-11 富士通株式会社 Data transmission apparatus, data transmission system and data transmission method
US20140219388A1 (en) * 2011-09-26 2014-08-07 Tendyron Corporation Method and device for sending and receiving data
CN105786753A (en) * 2016-02-22 2016-07-20 上海斐讯数据通信技术有限公司 Method and device for data transmission between master and slave devices on I2C bus
CN106850132A (en) * 2016-12-21 2017-06-13 深圳麦克维尔空调有限公司 Character frame transmission/method of reseptance, transmission/receiving terminal and simplex system
CN106877925A (en) * 2017-01-09 2017-06-20 深圳市欢创科技有限公司 A kind of point-to-point infrared communication method and system
CN107203485A (en) * 2017-05-24 2017-09-26 杭州迪普科技股份有限公司 The adaptive approach and device of a kind of baud rate
JP2018195306A (en) * 2017-05-18 2018-12-06 バスラー アーゲーBasler Ag Device and method for transmitting control information in data communication via serial interface
CN110096464A (en) * 2018-01-30 2019-08-06 Ls产电株式会社 UART Universal Asynchronous Receiver Transmitter communication speed automatic switching method
CN114745772A (en) * 2022-06-14 2022-07-12 杰创智能科技股份有限公司 Digital automatic gain control method, apparatus, device and program product thereof

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010087047A (en) * 2000-03-06 2001-09-15 서평원 Universal Asynchronous receiver transmitter
JP2002271306A (en) * 2001-03-06 2002-09-20 Fujitsu Ltd Serial signal receiving circuit
KR20050101840A (en) * 2004-04-20 2005-10-25 매그나칩 반도체 유한회사 Serial communication circuit
US20140219388A1 (en) * 2011-09-26 2014-08-07 Tendyron Corporation Method and device for sending and receiving data
CN103297186A (en) * 2012-02-29 2013-09-11 富士通株式会社 Data transmission apparatus, data transmission system and data transmission method
CN105786753A (en) * 2016-02-22 2016-07-20 上海斐讯数据通信技术有限公司 Method and device for data transmission between master and slave devices on I2C bus
CN106850132A (en) * 2016-12-21 2017-06-13 深圳麦克维尔空调有限公司 Character frame transmission/method of reseptance, transmission/receiving terminal and simplex system
CN106877925A (en) * 2017-01-09 2017-06-20 深圳市欢创科技有限公司 A kind of point-to-point infrared communication method and system
JP2018195306A (en) * 2017-05-18 2018-12-06 バスラー アーゲーBasler Ag Device and method for transmitting control information in data communication via serial interface
CN107203485A (en) * 2017-05-24 2017-09-26 杭州迪普科技股份有限公司 The adaptive approach and device of a kind of baud rate
CN110096464A (en) * 2018-01-30 2019-08-06 Ls产电株式会社 UART Universal Asynchronous Receiver Transmitter communication speed automatic switching method
CN114745772A (en) * 2022-06-14 2022-07-12 杰创智能科技股份有限公司 Digital automatic gain control method, apparatus, device and program product thereof

Also Published As

Publication number Publication date
CN115242351B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
US10716067B2 (en) Systems and methods for transmitting a wake-up radio signal to low power devices in a wireless communication system
KR102249435B1 (en) Short guard interval with green field preamble
US6085347A (en) System and method for enhancing modem performance using digital signal processing techniques
US8694710B2 (en) Conversion of a two-wire bus into a single-wire bus
WO2018076944A1 (en) Coding and decoding method and apparatus
DE60221606D1 (en) Method for controlling data transmission in a radio communication system
CN105519065B (en) The method and apparatus for transmitting data
ATE379893T1 (en) METHOD AND TRANSMITTER FOR AN EFFICIENT PACKET DATA TRANSFER IN A TRANSMISSION PROTOCOL WITH REPEAT REQUIREMENTS
EP2058971A3 (en) Method and apparatus for using different modulation schemes for retransmissions of a packet
EP1328096A3 (en) Multimedia data packet communication with data type identifiers
RU2016117905A (en) Subscriber station for a bus system and method of CAN-compatible broadband data transmission
CN109495157B (en) Full-duplex high-throughput rate bidirectional ARQ communication system and method based on CCSDS protocol
EP1496638A3 (en) Packet transceiver apparatus using retransmissions and adaptive modulation
CN104978301A (en) Two-line differential bus receiving and sending system based on I2C bus protocol and I2C double-line differential communication method
CN113169918A (en) Device for a subscriber station of a serial bus system and method for communication in a serial bus system
CN103997376B (en) data communication system and method for human body communication
CN107241161A (en) A kind of data transmission method and device
CN105915311B (en) Subscriber station of a bus system and method for time-optimized transmission of data in a bus system
CN103489448A (en) Processing method and system of voice data
CN115242351B (en) Self-adaptive method for serial data communication rate
EP3547577A1 (en) Data transmission method and terminal
US9621388B2 (en) Method for serial data transmission and system therefor
EP0954157A3 (en) Modem apparatus and data communication method
CN101534127A (en) Encoding and decoding method for improving decoding efficiency by pilot frequency information and device thereof
CN107911206B (en) Bit-oriented synchronous communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant