Data sending and receiving method, apparatus, and system
10582495 ยท 2020-03-03
Assignee
Inventors
Cpc classification
H04L27/34
ELECTRICITY
H04L27/362
ELECTRICITY
International classification
Abstract
Embodiments of the present invention provide a data sending and receiving method, an apparatus, and a system. The method can be executed by a microwave device, which includes: obtaining a control word (CW) and a first antenna-carrier (AC) from a common public radio interface (CPRI) frame; modulating the CW to obtain in-phase/quadrature (I/Q) data of the CW; determining a first timeslot in which the first AC does not carry antenna-carrier I/Q data; writing a preset synchronization sequence, first information, and a random number in the first timeslot to generate a second AC; and combining the second AC with the I/Q data of the CW to generate a microwave air interface frame, and sending the microwave air interface frame in a time division multiplexing manner.
Claims
1. A method, comprising: receiving, by a first microwave device, a common public radio interface (CPRI) frame, and obtaining a control word (CW) and a first antenna-carrier (AC) from the CPRI frame; modulating, by the first microwave device, the CW to obtain in-phase/quadrature (I/Q) data of the CW; determining, by the first microwave device, a first timeslot, wherein the first AC does not carry antenna-carrier I/Q data in the first timeslot; writing, by the first microwave device, a preset synchronization sequence, first information, and a random number in the first timeslot to generate a second AC, wherein the first information comprises a preset channel estimate or a preset radio frequency weighted matrix of the first microwave device; and combining, by the first microwave device, the second AC with the I/Q data of the CW to generate a microwave air interface frame, and sending the microwave air interface frame in a time division multiplexing manner.
2. The method according to claim 1, wherein the CW comprises a preset timeslot identifier, the preset timeslot identifier comprises a first timeslot identifier or a second timeslot identifier, the first timeslot identifier indicates the first timeslot, the second timeslot identifier indicates a second timeslot, and the first AC carries antenna-carrier I/Q data in the second timeslot; and wherein determining, by the first microwave device, the first timeslot comprises: extracting, by the first microwave device, the preset timeslot identifier from the CW; and determining, by the first microwave device, the first timeslot according to the preset timeslot identifier.
3. The method according to claim 1, wherein determining, by the first microwave device, the first timeslot comprises: computing, by the first microwave device, an attribute of the first AC, wherein the attribute comprises power or a frequency spectrum of the first AC; determining, by the first microwave device, a starting location of the first timeslot, wherein the starting location of the first timeslot is a moment at which a value of the attribute is less than a second preset threshold; and determining, by the first microwave device, the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
4. The method according to claim 3, wherein the attribute is power; and wherein determining, by the first microwave device, the starting location of the first timeslot comprises: determining, by the first microwave device, whether a value of the power is less than a third preset threshold, wherein the third preset threshold is greater than the second preset threshold; when the value of the power is less than the third preset threshold, recording, by the first microwave device, a first moment, and computing power of n consecutive pieces of data starting from the first moment in the first AC, wherein at the first moment the value of the power is less than the third preset threshold, and n is a positive integer; determining, by the first microwave device, whether power values of the n consecutive pieces of data are less than the second preset threshold; and when the power values of the n consecutive pieces of data are less than the second preset threshold, determining, by the first microwave device, the starting location of the first timeslot, wherein the starting location of the first timeslot is a moment in a first time period, and wherein the first time period is a time period starting from a first piece of data to a last piece of data in the n consecutive pieces of data.
5. A method, comprising: receiving, by a second microwave device, a microwave air interface frame from a microwave air interface; obtaining, by the second microwave device, a second antenna-carrier (AC) and in-phase/quadrature (I/Q) data of a control word (CW) from the microwave air interface frame, wherein the second AC comprises first information and a preset synchronization sequence, and the first information comprises a preset channel estimate or a preset radio frequency weighted matrix of a first microwave device; demodulating, by the second microwave device, the I/Q data of the CW to generate the CW; performing, by the second microwave device, autocorrelation computation on the second AC using the preset synchronization sequence, and extracting the first information to generate a first AC; and recombining, by the second microwave device, the CW and the first AC to generate a common public radio interface (CPRI) frame, and sending the CPRI frame.
6. The method according to claim 5, wherein the first information comprises the preset channel estimate.
7. The method according to claim 6, wherein the first information comprises the preset radio frequency weighted matrix of the first microwave device.
8. The method according to claim 6, wherein the microwave air interface frame is transmitted by the first microwave device to the second microwave device.
9. A microwave device, comprising: computing hardware; and a non-transitory computer-readable storage medium including computer-executable instructions, wherein the computing hardware is configured to execute the instructions to: receive, using a receiver of the microwave device, a common public radio interface (CPRI) frame, and obtain a control word (CW) and a first antenna-carrier (AC) from the CPRI frame; modulate the CW to obtain in-phase/quadrature (I/Q) data of the CW; determine a first timeslot, wherein the first AC does not carry antenna-carrier I/Q data in the first timeslot; write a preset synchronization sequence, first information, and a random number in the first timeslot to generate a second AC, wherein the first information comprises a preset channel estimate or a preset radio frequency weighted matrix of the microwave device; and combine the second AC with the I/Q data of the CW to generate a microwave air interface frame, and send the microwave air interface frame in a time division multiplexing manner.
10. The microwave device according to claim 9, wherein the CW comprises a preset timeslot identifier, the preset timeslot identifier comprises a first timeslot identifier or a second timeslot identifier, the first timeslot identifier indicates the first timeslot, the second timeslot identifier indicates a second timeslot, and the first AC carries antenna-carrier I/Q data in the second timeslot; and wherein the computing hardware is further configured to execute the instructions to: extract the preset timeslot identifier from the CW; and determine the first timeslot according to the preset timeslot identifier.
11. The microwave device according to claim 9, wherein the computing hardware being configured to execute the instructions to determine a first timeslot comprises the computing hardware being configured to execute the instructions to: compute an attribute of the first AC, wherein the attribute comprises power or a frequency spectrum of the first AC; determine a starting location of the first timeslot, wherein the starting location of the first timeslot is a moment at which a value of the attribute is less than a second preset threshold; and determine the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
12. The microwave device according to claim 11, wherein the attribute is power; and wherein the computing hardware being configured to execute the instructions to determine a starting location of the first timeslot comprises the computing hardware being configured to execute the instructions to: determine whether a value of the power is less than a third preset threshold, wherein the third preset threshold is greater than the second preset threshold; when the value of the power is less than the third preset threshold, record a first moment, and compute power of n consecutive pieces of data starting from the first moment in the first AC, the value of the power is less than the third preset threshold at the first moment, and n is a positive integer; determine whether power values of the n consecutive pieces of data are less than the second preset threshold; and when the power values of the n consecutive pieces of data are less than the second preset threshold, determine the starting location of the first timeslot, wherein the starting location of the first timeslot is a moment in a first time period, and wherein the first time period starts from a first piece of data to a last piece of data in the n consecutive pieces of data.
13. A microwave device, comprising: computing hardware; and a non-transitory computer-readable storage medium including computer-executable instructions, wherein the computing hardware is configured to execute the instructions to: receive, using a receiver, a microwave air interface frame from a microwave air interface; obtain a second antenna-carrier (AC) and in-phase/quadrature (I/Q) data of a control word (CW) from the microwave air interface frame, wherein the second AC comprises first information and a preset synchronization sequence, and the first information comprises a preset channel estimate or a preset radio frequency weighted matrix of another microwave device; demodulate the I/Q data of the CW to generate the CW; perform autocorrelation computation on the second AC using the preset synchronization sequence, and extract the first information to generate a first AC; and recombine the CW and the first AC to generate a common public radio interface (CPRI) frame, and send the CPRI frame.
14. The microwave device according to claim 13, wherein the first information comprises the preset channel estimate.
15. The microwave device according to claim 13, wherein the first information comprises the preset radio frequency weighted matrix of the another microwave device.
16. The microwave device according to claim 13, wherein the microwave air interface frame is transmitted by the another microwave device to the microwave device.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(20) The following describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention.
(21) In the following description, to illustrate rather than limit, specific details such as a particular system structure, an interface, and a technology are provided to make a thorough understanding of the present invention. However, a person skilled in the art should know that the present invention may be practiced in other embodiments without these specific details. In other cases, detailed descriptions of well-known apparatuses, circuits, and methods are omitted, so that the present invention is described without being obscured by unnecessary details.
(22) In addition, the term and/or in this specification describes only an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, the character / in this specification generally indicates an or relationship between the associated objects.
(23) It should be understood that ordinal numbers such as first and second, if mentioned in the embodiments of the present invention, are only used for distinguishing, unless the ordinal numbers definitely represent a sequence according to the context.
(24) It is known to all that a core concept of a structure of a distributed base station is separating a BBU and an RRU that are of a conventional macro base station, and the BBU and the RRU are connected using an optical fiber or a cable. Data transmitted between the BBU and the RRU may be referred to as digital fronthaul data (the digital fronthaul data may include common information and radio signal information). That is, the digital fronthaul data may be transmitted in both directions between the BBU and the RRU using an optical fiber or a cable. In addition, with development of radio access technologies, a transmission rate of digital fronthaul data becomes increasingly high and may be higher in the future, and because of large bandwidth and a high rate of an optical fiber, the optical fiber is usually used in the industry to transmit the digital fronthaul data.
(25) The common information and the radio signal information may constitute the digital fronthaul data according to a CPRI protocol. In this case, the digital fronthaul data is referred to as a CPRI frame.
(26) In a current system, the CPRI frame is transmitted in a bit transparent transmission manner. However, in this transmission manner, as a transmission rate of the CPRI frame increases, microwave signal bandwidth required for transmitting the CPRI frame rapidly increases. Consequently, frequency spectrum utilization is reduced.
(27) To increase the frequency spectrum utilization, the CPRI frame may be transmitted by using an ROR/AROF system. Specifically, a transmit end can perform analogue transmission on antenna-carrier I/Q data in the CPRI frame by directly using a microwave, so as to increase the frequency spectrum utilization. However, neither the transmit end nor a receive end in the ROR/AROF system can learn of a transmission timeslot of antenna-carrier I/Q data. Therefore, uplink-downlink handover cannot be performed well. This causes relatively large fluctuation in an AGC gain of the receive end, and further causes relatively large jitter of an MSE curve of a microwave link. Consequently, system performance is reduced.
(28) For example,
(29) As shown in
(30) In the system architecture shown in
(31) It should be noted that, in the embodiments of the present invention, roles of the second microwave device and the first microwave device may be interchanged. That is, in the system architecture shown in
(32) It can be easily understood that both the first microwave device and the second microwave device in the embodiments of the present invention belong to a microwave device. As shown in
(33) It can be understood that the microwave device in the embodiments of the present invention may be used as a receive end device. As shown in
(34) For ease of understanding by a person skilled in the art, a data sending and receiving method provided in the embodiments of the present invention may be applicable to the foregoing two possible implementations. This is not limited in the present invention.
Embodiment 1
(35) This embodiment of the present invention provides a data sending and receiving method. As shown in
(36) S101. A first microwave device receives a common public radio interface (CPRI) frame.
(37) The first microwave device may receive the CPRI frame from a BBU that is connected to the first microwave device.
(38) S102. The first microwave device obtains a control word CW and a first antenna-carrier AC from the CPRI frame.
(39) After receiving the CPRI frame, the first microwave device processes (for example, parses) the CPRI frame, so as to separate and obtain the control word CW and the first antenna-carrier AC that are included in the CPRI frame. The control word CW is mainly used to implement functions such as control, management, timing, and synchronization. The first antenna-carrier AC may carry one or more pieces of antenna-carrier I/Q data. The antenna-carrier I/Q data is digital sampling of a baseband I/Q signal of a radio carrier signal transmitted or received by an antenna.
(40) S103. The first microwave device modulates the CW to obtain in-phase/quadrature I/Q data of the CW.
(41) After obtaining the CW and the first antenna-carrier AC that are included in the CPRI frame, to reduce microwave signal bandwidth required for transmitting the CPRI frame, the first microwave device needs to modulate the separated CW by using a preset modulation method, so as to generate the I/Q data of the CW. The I/Q data of the CW is data of the CW modulated by using the preset modulation method.
(42) Preferably, the preset modulation method is quadrature amplitude modulation (QAM).
(43) S104. The first microwave device determines a first timeslot in which the first AC does not carry antenna-carrier I/Q data.
(44) Radio signal information may carry one or more pieces of antenna-carrier I/Q data. Therefore, in a timeslot, the radio signal information may not carry antenna-carrier I/Q data. Specifically, when the radio signal information does not carry antenna-carrier I/Q data in a timeslot, power of the radio signal information in the timeslot is extremely low or even zero.
(45) Similarly, if an AC does not carry antenna-carrier I/Q data in a timeslot, power of the AC in the timeslot is extremely low or even zero. When a second microwave device receives such a CPRI frame, an AGC gain of the second microwave device fluctuates greatly.
(46) To reduce fluctuation in the AGC gain of the second microwave device, the first microwave device needs to determine the first timeslot in which the first AC sent by the first microwave device does not carry antenna-carrier I/Q data, so that the first microwave device performs corresponding processing on data in the first timeslot.
(47) It should be noted that, in actual application, there is at least one first timeslot. The first microwave device uses a same method to determine all first timeslots. The first microwave device determines all the first timeslots basically in real time due to a delay requirement of a data transmission system. Therefore, an example in which the first microwave device determines one of the first timeslots is used for description in this embodiment of the present invention.
(48) A method for determining a first timeslot by the first microwave device may include the following implementations, and is not specifically limited in this embodiment of the present invention.
(49) Optionally, the CW of the CPRI frame includes a preset timeslot identifier. The timeslot identifier includes a first timeslot identifier or a second timeslot identifier, or both. The first timeslot identifier indicates the first timeslot in which the first AC does not carry antenna-carrier I/Q data. The second timeslot identifier indicates a second timeslot in which the first AC carries antenna-carrier I/Q data. In this case, the method for determining a first timeslot by the first microwave device is as follows. The first microwave device extracts the timeslot identifier from the CW, and the first microwave device determines the first timeslot according to the timeslot identifier.
(50) Optionally, the method for determining a first timeslot by the first microwave device is as follows. The first microwave device stores data with a preset length in the first AC. The first microwave device computes an energy histogram of data stored in the first microwave device, and determines a starting location of the first timeslot according to a curve feature in the energy histogram. The first microwave device determines the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(51) For example, as shown in
(52) It can be understood that, in this application scenario, the first microwave device determines the first timeslot by computing a histogram. However, computation for a histogram belongs to a category of statistics, and a histogram cannot be computed according to a single piece of data. Therefore, in this application scenario, the first microwave device needs to store data with a preset length in the first AC, and then performs histogram computation on the data with a preset length.
(53) It should be noted that the first microwave device in this embodiment of the present invention may cache the data with a preset length in the first AC. To reduce a delay caused by storing data, a length of data stored in the first microwave device should not be extremely long. The preset length of data stored in the first microwave device needs to be specifically determined according to an actual application situation, and is not specifically limited in this embodiment of the present invention.
(54) Specifically, the first microwave device may determine, according to the curve feature in the energy histogram, whether data stored in the first microwave device carries antenna-carrier I/Q data. If the data stored in the first microwave device does not carry antenna-carrier I/Q data, the first microwave device may use a moment corresponding to the last piece of data in the data stored in the first microwave device as the starting location of the first timeslot.
(55) It should be noted that a length of data stored in the first microwave device is a preset length, and the preset length is relatively short, usually at a nano level. Therefore, in this application scenario, the first microwave device may use a moment corresponding to the last piece of data in the data stored in the first microwave device as the starting location of the first timeslot, or may use a moment corresponding to intermediate data in the data stored in the first microwave device as the starting location of the first timeslot. This is not specifically limited in this embodiment of the present invention.
(56) Further, according to the determined starting location of the first timeslot and the preset uplink-downlink subframe configuration, the first microwave device determines the first timeslot in which the AC does not carry antenna-carrier I/Q data.
(57) For example, if the preset uplink-downlink subframe configuration is m:n, where m1, and n1, the first microwave device may use a formula (1) or a formula (2) to determine the first timeslot.
(58)
(59) It should be noted that the first microwave device in this embodiment of the present invention may also analyze data stored in the first microwave device using another statistical method such as an amplitude histogram or a line graph, and determine the starting location of the first timeslot according to an analysis result. This is not specifically limited in this embodiment of the present invention.
(60) Optionally, the method for determining a first timeslot by the first microwave device is as follows. The first microwave device computes power or a frequency spectrum of the first AC; the first microwave device determines a moment at which the power or the frequency spectrum of the first AC is less than a second preset threshold as a starting location of the first timeslot; and the first microwave device determines the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(61) Specifically, when a peak value of the frequency spectrum of the first AC is less than the second preset threshold, it indicates that the first microwave device receives a signal with extremely low energy. In this case, the first antenna-carrier (AC) does not carry antenna-carrier I/Q data. The first microwave device computes the frequency spectrum of the first AC, and determines a moment at which the peak value of the frequency spectrum of the first AC is less than the second preset threshold as the starting location of the first timeslot.
(62) Specifically, to prevent a false negative, the first microwave device first determines whether a value of the power is less than a third preset threshold. The third preset threshold is greater than the second preset threshold. If the value of the power is less than the third preset threshold, the first microwave device records a moment at which the value of the power is less than the third preset threshold as a first moment.
(63) Further, in actual application, there may be data with extremely low power in antenna-carrier I/Q data carried by the first AC. A difference between power of these data and power of the first AC that does not carry antenna-carrier I/Q data is extremely small. Therefore, to prevent a false positive, the first microwave device further needs to compute power of n (n1) consecutive pieces of data starting from the first moment in the first AC, and determine whether power values of the n consecutive pieces of data are less than the second preset threshold; and if the power values of the n consecutive pieces of data are less than the second preset threshold, the first microwave device determines a moment in a time period starting from the first piece of data to the last piece of data in the n consecutive pieces of data as the starting location of the first timeslot.
(64) It should be noted that, in actual application, a length of the time period starting from the first piece of data to the last piece of data in the n consecutive pieces of data is extremely short, usually at a nano level. Therefore, in this application scenario, the starting location of the first timeslot determined by the first microwave device may be any moment in a first time period.
(65) In addition, a quantitative value n of the n consecutive pieces of data starting from the first moment needs to be specifically determined according to an actual application situation, and is not specifically limited in this embodiment of the present invention.
(66) Further, according to the determined starting location of the first timeslot and the preset uplink-downlink subframe configuration, the first microwave device determines the first timeslot in which the AC does not carry antenna-carrier I/Q data. The first microwave device may use the formula (1) or the formula (2) to determine the first timeslot. Details are not described herein.
(67) S105. The first microwave device writes a preset synchronization sequence, first information, and a random number in the first timeslot to generate a second AC.
(68) To reduce the fluctuation in the AGC gain of the second microwave device, the first microwave device writes the synchronization sequence, the first information, and the random number in the first timeslot in which the first AC does not carry antenna-carrier I/Q data, so as to generate the second AC.
(69) The first information includes at least one of a preset channel estimate or a preset radio frequency weighted matrix of the first microwave device. The preset channel estimate is used to assist the first microwave device in precoding. The preset synchronization sequence is used to ensure that the second microwave device can identify the first information.
(70) Generally, time occupied by the first information and the preset synchronization sequence is less than the first timeslot. Therefore, the first microwave device further needs to write some random numbers in the first timeslot, in addition to writing the first information and the preset synchronization sequence.
(71) Preferably, the random number written in the first timeslot by the first microwave device is a random number with energy normalization.
(72) For example, the time occupied by the first information and the preset synchronization sequence is t1 in total, time occupied by the random number with energy normalization is t2, and the first timeslot is T. In this case, T=t1+t2.
(73) S106. The first microwave device combines the second AC with the I/Q data of the CW to generate a microwave air interface frame.
(74) Optionally, the first microwave device evenly interleaves the second AC with the I/Q data of the CW in a payload area of the microwave air interface frame.
(75) S107. The first microwave device sends the microwave air interface frame to a second microwave device.
(76) After combining the second AC with the I/Q data of the CW to generate the microwave air interface frame, the first microwave device sends the microwave air interface frame in a time division multiplexing manner. In this way, the microwave air interface frame may be transmitted on one microwave channel, so as to enable an entire microwave system to be a single carrier system, thereby reducing hardware complexity, and reducing costs.
(77) Specifically, the first microwave device may perform processing such as shaping filtering, digital-to-analog conversion, and up-conversion on the microwave air interface frame to generate a microwave radio frequency signal, and then send the microwave radio frequency signal by using a microwave air interface.
(78) S108. The second microwave device receives the microwave air interface frame from a microwave air interface, and obtains the second antenna-carrier AC and the I/Q data of the control word CW from the microwave air interface frame, where the second AC includes at least the first information and the preset synchronization sequence.
(79) Specifically, a method for receiving the microwave air interface frame from the microwave air interface by the second microwave device may be as follows. The second microwave device receives the microwave radio frequency signal from the microwave air interface, and after receiving the microwave radio frequency signal, performs processing such as down-conversion, digital-to-analog conversion, and filtering on the microwave radio frequency signal to generate the microwave air interface frame.
(80) Further, after receiving the microwave air interface frame, the second microwave device may parse the microwave air interface frame to extract the second antenna-carrier AC and the I/Q data of the control word CW that are included in the microwave air interface frame.
(81) The second antenna-carrier AC includes at least the first information and the preset synchronization sequence. The preset synchronization sequence is used to identify the first information. The first information includes at least one of the preset channel estimate or the preset radio frequency weighted matrix of the first microwave device.
(82) S109. The second microwave device demodulates the I/Q data of the CW to generate the CW.
(83) S110. The second microwave device performs autocorrelation computation on the second AC by using the preset synchronization sequence, and extracts the first information to obtain the first AC.
(84) S111. The second microwave device recombines the CW and the first AC to generate a CPRI frame, and sends the CPRI frame.
(85) Specifically, after obtaining the first AC and the CW, the second microwave device recombines the first AC and the CW to generate the CPRI frame, and sends the generated CPRI frame to an RRU that is connected to the second microwave device.
(86) It can be learned from the foregoing description that the method for determining a first timeslot by the first microwave device may be as follows. The first microwave device determines the first timeslot according to the preset timeslot identifier included in the CW; or the first microwave device determines the first timeslot after performing related computation on the first AC.
(87) Specifically, as shown in
(88) S104a. The first microwave device extracts a timeslot identifier from the CW that includes a preset timeslot identifier.
(89) S104b. The first microwave device determines a first timeslot according to the timeslot identifier.
(90) Specifically, as shown in
(91) S104c. The first microwave device stores data with a preset length in the first AC.
(92) S104d. The first microwave device computes an energy histogram of data stored in the first microwave device, and determines a starting location of a first timeslot according to a curve feature in the energy histogram.
(93) S104e. The first microwave device determines the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(94) Specifically, as shown in
(95) S104f. The first microwave device computes a frequency spectrum of the first AC.
(96) S104m. The first microwave device determines a moment at which a peak value of the frequency spectrum of the first AC is less than a second preset threshold as a starting location of a first timeslot.
(97) S104t. The first microwave device determines the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(98) Specifically, as shown in
(99) S104n. The first microwave device computes power of the first AC.
(100) S104p. The first microwave device determines whether a value of the power is less than a third preset threshold, where the third preset threshold is greater than a second preset threshold.
(101) S104q. If the value of the power is less than the third preset threshold, the first microwave device records a moment at which the value of the power is less than the third preset threshold as a first moment, and computes power of n (n1) consecutive pieces of data starting from the first moment in the first AC.
(102) S104s. The first microwave device determines whether power values of the n consecutive pieces of data are less than the second preset threshold.
(103) S104x. If the power values of the n consecutive pieces of data are less than the second preset threshold, the first microwave device determines a moment in a time period starting from the first piece of data to the last piece of data in the n consecutive pieces of data as a starting location of a first timeslot.
(104) S104y. The first microwave device determines the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(105) According to the method described above, the first microwave device writes the preset synchronization sequence, the first information, and the random number in the first timeslot in which the first AC does not carry antenna-carrier I/Q data, so as to improve the power of the first AC after the data is written. In this way, when the first microwave device sends the second AC generated after the data is written and the I/Q data of the CW to the second microwave device, the AGC gain of the second microwave device may not increase or decrease sharply, that is, the fluctuation in the AGC gain of the second microwave device is reduced, thereby reducing fluctuation in an MSE curve of a microwave link, and improving system performance. For example,
(106) It can be learned from
(107) According to the data sending and receiving method provided in this embodiment of the present invention, after obtaining the first AC and the CW, the first microwave device determines the first timeslot in which the first AC does not carry antenna-carrier I/Q data, and writes the preset synchronization sequence, the first information, and the random number in the first timeslot to generate the second AC, so that power of the second AC is improved as a whole. In addition, the first microwave device modulates the CW to obtain the in-phase/quadrature I/Q data of the CW. Then, the first microwave device combines the second AC with the I/Q data of the CW to generate the microwave air interface frame, and sends the microwave air interface frame in the time division multiplexing manner, so that the second AC and the I/Q data of the CW can be transmitted through one microwave channel. Because the power of the second AC is improved as a whole, after the second microwave device that is opposite to the first microwave device receives the microwave air interface frame, the AGC gain of the second microwave device may not increase or decrease sharply, that is, the fluctuation in the AGC gain of the second microwave device is reduced, thereby reducing the fluctuation in the MSE curve of the microwave link, and improving the system performance.
Embodiment 2
(108) As shown in
(109) Optionally, the CW includes a preset timeslot identifier. The timeslot identifier includes a first timeslot identifier and/or a second timeslot identifier. The first timeslot identifier is used to indicate the first timeslot. The second timeslot identifier indicates a second timeslot. The second timeslot is a timeslot in which the first AC carries antenna-carrier I/Q data.
(110) Further, as shown in
(111) The extraction unit 17 is configured to extract the timeslot identifier from the CW obtained by the obtaining unit 11.
(112) Further, the determining unit 13 is configured to determine the first timeslot according to the timeslot identifier extracted by the extraction unit 17.
(113) Optionally, as shown in
(114) The storage unit 18 is configured to store data with a preset length in the first AC.
(115) Further, as shown in
(116) The computation unit 19 is further configured to compute an energy histogram of the data stored in the storage unit 18.
(117) Further, the determining unit 13 is configured to determine a starting location of the first timeslot according to a curve feature in the energy histogram computed by the computation unit 19, and determine the first timeslot according to a preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(118) Further, the computation unit 19 is further configured to compute an attribute of the first AC obtained by the obtaining unit 11. The attribute includes power or a frequency spectrum of the first AC.
(119) Further, the determining unit 13 is specifically configured to determine a moment at which a value of the attribute computed by the computation unit 19 is less than a second preset threshold as the starting location of the first timeslot, and specifically configured to determine the first timeslot according to the preset uplink-downlink subframe configuration and the starting location of the first timeslot.
(120) Further, the attribute is the power.
(121) As shown in
(122) The judging unit 20 is configured to determine whether a value of the power computed by the computation unit 19 is less than a third preset threshold, where the third preset threshold is greater than the second preset threshold.
(123) Further, the computation unit 19 is further configured to: if the judging unit 20 determines that the value of the power is less than the third preset threshold, record a first moment, and compute power of n consecutive pieces of data starting from the first moment in the first AC, where the first moment is a moment at which the value of the power is less than the third preset threshold, and n is a positive integer.
(124) Further, the judging unit 20 is further configured to determine whether power values that are of the n consecutive pieces of data and that are computed by the computation unit 19 are less than the second preset threshold.
(125) Further, the determining unit 13 is configured to: if the judging unit 20 determines that the power values of the n consecutive pieces of data are less than the second preset threshold, determine a moment in a first time period as the starting location of the first timeslot, where the first time period is a time period starting from the first piece of data to the last piece of data in the n consecutive pieces of data.
(126) It can be understood that the microwave device in this embodiment may be corresponding to the first microwave device in the data sending and receiving method of the embodiment described in any one of
(127) This embodiment of the present invention provides the microwave device. The microwave device is the first microwave device. After obtaining the first AC and the CW, the first microwave device determines the first timeslot in which the first AC does not carry antenna-carrier I/Q data, and writes the preset synchronization sequence, the first information, and the random number in the first timeslot to generate the second AC, so that power of the second AC is improved as a whole. In addition, the first microwave device modulates the CW to obtain the in-phase/quadrature I/Q data of the CW. Then, the first microwave device combines the second AC with the I/Q data of the CW to generate the microwave air interface frame, and sends the microwave air interface frame in the time division multiplexing manner, so that the second AC and the I/Q data of the CW can be transmitted through one microwave channel. Because the power of the second AC is improved as a whole, after a second microwave device that is opposite to the first microwave device receives the microwave air interface frame, an AGC gain of the second microwave device may not increase or decrease sharply, that is, fluctuation in the AGC gain of the second microwave device is reduced, thereby reducing fluctuation in an MSE curve of a microwave link, and improving system performance.
Embodiment 3
(128) This embodiment of the present invention provides a microwave device. As shown in
(129) It can be understood that the microwave device in this embodiment may be corresponding to the second microwave device in the data sending and receiving method of the embodiment described in any one of
(130) This embodiment of the present invention provides the microwave device. The microwave device is the second microwave device. The second AC is generated after the first microwave device writes the preset synchronization sequence, the first information, and a random number in a first timeslot in which the first AC does not carry I/Q data, and power of these written data is relatively high. Therefore, power of the second AC in the microwave air interface frame sent by the first microwave device is also improved. When the second microwave device obtains the second AC and the I/Q data of the CW from the microwave air interface frame, an AGC gain of the second microwave device may not increase or decrease sharply, so that fluctuation in the AGC gain of the second microwave device is reduced, thereby reducing fluctuation in an MSE curve of a microwave link, and improving system performance.
Embodiment 4
(131) This embodiment of the present invention provides a microwave device. As shown in
(132) The receiver 30, the processor 31, the memory 32, and the transmitter 34 are connected and complete mutual communication by using the system bus 33.
(133) Specifically, the microwave device in this embodiment of the present invention may be a sending device, or may be a receiving device.
(134) The memory 32 is configured to store a computer execution instruction. The processor 31 is connected to the memory 32 using the system bus 33. When the microwave device runs, the processor 31 executes the computer execution instruction stored in the memory 32, so that the microwave device performs the data sending and receiving method of the embodiment described in any one of
(135) Specifically, the processor 31 may be a central processing unit (CPU). Alternatively, the processor 31 may be another general purpose processor, a digital signal processor (DSP), another programmable logic device, a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor, or the processor may be any normal processor, or the like.
(136) The processor 31 may be a dedicated processor, and the dedicated processor may include at least one of a baseband processing chip, a radio frequency processing chip, or the like. Further, the dedicated processor may further include a chip having another processing function dedicated to a microwave device.
(137) Specifically, the memory 32 may include a volatile memory such as a random access memory (RAM). Alternatively, the memory 32 may include a nonvolatile memory such as a read-only memory (ROM), a flash memory, an hard disk drive (HDD), or an solid-state drive (SSD). Alternatively, the memory 32 may include a combination of the foregoing types of memories.
(138) The system bus 33 may include a data bus, a power bus, a control bus, a status signal bus, or the like. In this embodiment, to clarify description, various buses in
(139) The receiver 30 and the transmitter 34 may be collectively referred to as a communications interface. In addition, in a specific implementation of the microwave device, the receiver 30 and the transmitter 34 may be specifically a transceiver on the microwave device. The transceiver may be a wireless transceiver. For example, the wireless transceiver may be an antenna or the like of the microwave device.
(140) This embodiment of the present invention provides the microwave device. The microwave device may be a first microwave device, or may be a second microwave device. After obtaining a first AC and a CW, the first microwave device determines a first timeslot in which the first AC does not carry antenna-carrier I/Q data, and writes a preset synchronization sequence, first information, and a random number in the first timeslot to generate a second AC, so that power of the second AC is improved as a whole. In addition, the first microwave device modulates the CW to obtain in-phase/quadrature (I/Q) data of the CW. Then, the first microwave device combines the second AC with the I/Q data of the CW to generate a microwave air interface frame, and sends the microwave air interface frame in a time division multiplexing manner, so that the second AC and the I/Q data of the CW can be transmitted through one microwave channel. Because the power of the second AC is improved as a whole, after the second microwave device that is opposite to the first microwave device receives the microwave air interface frame, an AGC gain of the second microwave device may not increase or decrease sharply, that is, fluctuation in the AGC gain of the second microwave device is reduced, thereby reducing fluctuation in an MSE curve of a microwave link, and improving system performance.
Embodiment 5
(141) This embodiment of the present invention provides a data transmission system. As shown in
(142) In the data transmission system provided in this embodiment of the present invention, the first microwave device 3 performs corresponding steps in the data sending and receiving method process of the embodiment described in any one of
(143) This embodiment of the present invention provides the data transmission system. After obtaining a first AC and a CW, the first microwave device in the system determines a first timeslot in which the first AC does not carry antenna-carrier I/Q data, and writes a preset synchronization sequence, first information, and a random number in the first timeslot to generate a second AC, so that power of the second AC is improved as a whole. In addition, the first microwave device modulates the CW to obtain in-phase/quadrature (I/Q) data of the CW. Then, the first microwave device combines the second AC with the I/Q data of the CW to generate a microwave air interface frame, and sends the microwave air interface frame in a time division multiplexing manner, so that the second AC and the I/Q data of the CW can be transmitted through one microwave channel. Because the power of the second AC is improved as a whole, after the second microwave device that is opposite to the first microwave device receives the microwave air interface frame, an AGC gain of the second microwave device may not increase or decrease sharply, that is, fluctuation in the AGC gain of the second microwave device is reduced, thereby reducing fluctuation in an MSE curve of a microwave link, and improving system performance.
(144) It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, division of the foregoing function modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different function modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or some of the functions described above. For a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein again.
(145) In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the module or unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
(146) The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.
(147) In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
(148) When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or all or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or a part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
(149) The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.