Disclosure of Invention
The present invention is directed to overcome at least one of the above-mentioned drawbacks (or deficiencies) of the prior art, and provides a data processing method, apparatus, device and storage medium, which can perform group de-framing on a carrier signal according to one or more of the number of carrier signals, the sampling rate and the IQ data bit width of the carrier signal when the carrier signal is changed, so as to adapt to the change, thereby improving the adaptability of data transmission.
The technical scheme adopted by the invention is as follows:
a data processing method is applied to a transmitting end and comprises the following steps,
parameter determination: the parameters comprise the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal;
framing: and placing the IQ data of each carrier signal in an IQ data bearing domain of a basic frame, and placing the number of the carrier signals, the sampling rate and the IQ data bit width in a non-IQ data bearing domain of the basic frame.
By parameter determination and framing, the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured in the transmission process of the carrier signals, the number of different carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be adapted without modifying software design when parameters are changed, and the adaptability in the data transmission process is improved.
Further, the placing the IQ data of each carrier signal within the IQ data-carrying domain of the basic frame comprises:
and sequentially placing the IQ data of each carrier signal in an IQ data bearing domain of the basic frame from low to high or from high to low according to the bit number occupied by each carrier signal in the basic frame.
In the process of placing the IQ data of each carrier signal in the IQ data carrying domain of the basic frame, the IQ data of each carrier signal is sequentially filled from low to high or from high to low according to the bit number occupied by each carrier signal in the basic frame, so that the carrier signals can be conveniently and correctly analyzed according to the same sequence during unframing.
Further, before the framing, the method further includes:
judging whether the current optical fiber transmission rate and/or the sampling rate meet framing conditions;
if the framing condition is met, continuing to execute the framing;
and if the framing condition is not met, returning to the parameter determination.
By judging the current optical fiber transmission rate, the formed basic frame can meet the condition of the current optical fiber transmission bandwidth. By judging the sampling rate, the composed basic frame can avoid the loss of useful signals as much as possible.
Further, the determining whether the current optical fiber transmission rate meets the framing condition in the determining whether the current optical fiber transmission rate and/or the sampling rate meets the framing condition includes:
determining the total bit number of all carrier signals in a basic frame period, which needs to be occupied in the basic frame;
judging whether the total bits of all carrier signals in the basic frame within the basic frame period need to be occupied do not exceed the bits which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate;
if yes, the framing condition is satisfied;
if not, the framing condition is not satisfied.
Further, the determining whether the sampling rate satisfies the framing condition in the determining whether the current optical fiber transmission rate and/or the sampling rate satisfies the framing condition includes:
judging whether the sampling rate is a positive integral multiple of the frequency of the basic frame;
if yes, the framing condition is satisfied;
if not, the framing condition is not satisfied.
Further, the determining whether the current optical fiber transmission rate and/or the sampling rate satisfy the framing condition in the determining whether the current optical fiber transmission rate and/or the sampling rate satisfy the framing condition includes:
determining the total bit number of all carrier signals in a basic frame period, which needs to be occupied in the basic frame;
judging whether the total bits of all carrier signals in the basic frame within the basic frame period need to be occupied do not exceed the bits which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate;
judging whether the sampling rate is a positive integral multiple of the frequency of the basic frame;
if the total number of bits required to be occupied does not exceed the number of bits capable of being transmitted and the sampling rate is a positive integral multiple of the frequency of the basic frame, the framing condition is met, otherwise, the framing condition is not met.
Further, before determining whether the total bits occupied by all carrier signals in the basic frame period do not exceed the bits that can be transmitted by the basic frame corresponding to the current optical fiber transmission rate, the method further includes:
and determining the number of bits which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate in the basic frame period according to the current optical fiber transmission rate, the encoding rate of optical fiber transmission and the frequency of the basic frame.
A data processing method, applied to a receiving end, for parsing a basic frame composed by using the data processing method, includes:
analyzing the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal from the non-IQ data bearing domain of the basic frame;
analyzing the bits of each carrier signal according to the analyzed number of the carrier signals, the analyzed sampling rate and the IQ data bit width, and analyzing the IQ data of each carrier signal from the IQ data bearing domain of the basic frame according to the bits of each carrier signal and the corresponding framing sequence.
By the aid of the method, the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured in the transmission process of the carrier signals, software design is not required to be modified, the method can adapt to different numbers of carrier signals, sampling rates of each carrier signal and IQ data bit widths of each carrier signal, and adaptability in the data transmission process is improved.
A data processing device is applied to a sending end and comprises a parameter determining module and a framing module:
the parameter determining module is used for determining the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal;
the framing module is configured to place IQ data of each carrier signal in an IQ data bearer domain of a base frame, and place the number of carrier signals, the sampling rate, and the IQ data bit width in a non-IQ data bearer domain of the base frame.
Through the parameter determining module and the framing module, the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured in the transmission process of the carrier signals, the number of different carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be adapted without modifying software design when parameters are changed, and the adaptability of the data transmission system is improved.
A data processing device is applied to a receiving end and used for analyzing a basic frame formed by the framing modules, and comprises a parameter analyzing module and a data analyzing module;
the parameter analyzing module is used for analyzing the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal from the non-IQ data bearing domain of the basic frame;
the data analysis module is configured to analyze the bits of the carrier signals according to the analyzed number of the carrier signals, the analyzed sampling rate, and the IQ data bit width, and analyze the IQ data of each carrier signal from the IQ data bearer domain of the basic frame according to the bits of each carrier signal and the corresponding framing sequence.
Through the parameter analysis module and the data analysis module, the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured in the transmission process of the carrier signals, the number of different carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be adapted without modifying software design, and the adaptability of the data transmission system is improved.
A computer device comprising a memory storing a computer program and a processor implementing the data processing method as described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the data processing method as described above.
Compared with the prior art, the invention has the beneficial effects that:
(1) by the method and the device, the number of the carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured, and the applicability is higher under the condition of not modifying software design;
(2) the invention can utilize the optical fiber transmission bandwidth to the maximum extent according to the actual data transmission requirement, and avoids the waste of the optical fiber transmission bandwidth.
Detailed Description
The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For a better understanding of the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
In one embodiment, a data processing method is provided and may be applied to a transmitting end of a communication system.
As shown in fig. 1, a communication system includes a repeater and a base station 11, where the repeater includes a Digital Access Unit 12 (DAU) and a plurality of Digital Remote units 13 (DRUs), the Digital Access Unit 12 is connected to the base station 11 through a feeder 21, the Digital Access Unit 12 is connected to the Digital Remote units 13 through an optical fiber transmission medium 22, the plurality of Digital Remote units 13 are cascaded through a daisy chain or other cascading manner, and the Digital Remote units 13 are provided with a plurality of carrier antennas 14 for receiving and transmitting carrier signals.
The overall communication system includes a downlink and an uplink. In the downlink, after the digital access unit 12 couples a plurality of downlink carrier signals from the base station 11 through the feeder 21, it needs to be used as a sending end, and encapsulates the plurality of downlink carrier signals into basic frames and transmits the basic frames to the digital remote unit 13 at the lower stage serving as a receiving end through the optical fiber transmission medium 22, after receiving the basic frames, the digital remote unit 13 at the lower stage needs to continue to transmit the basic frames to the digital remote unit 13 at the lower stage on one hand, and on the other hand, it needs to perform de-framing on the reverse process of framing the downlink carrier signals according to the digital access unit 12 to restore the downlink carrier signals. In the uplink, after receiving the uplink carrier signal, the digital remote units 13 at each stage need to be used as a sending end, encapsulate the received uplink carrier signal into a basic frame and transmit the basic frame to the previous stage through the optical fiber transmission medium 22, and finally converge the uplink carrier signal to the digital access unit 12 used as a receiving end through step-by-step combination, and the digital access unit 12 performs a de-framing on the reverse process of the framing of the uplink carrier signal according to the digital remote units 13 to restore the uplink carrier signal.
As shown in fig. 2 and fig. 3, the data processing method provided is applied to the digital access unit 12 or the digital remote unit 13 as a transmitting end, and the data processing method includes,
parameter determination S1: determining the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal; framing S2: and placing the IQ data of each carrier signal in an IQ data bearing domain of the basic frame, and placing the number of the carrier signals, the sampling rate and the IQ data bit width in a non-IQ data bearing domain of the basic frame.
After determining the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal according to actual data transmission requirements, the transmitting end performs framing of an IQ data bearer in a basic frame according to the number of carrier signals, the sampling rate and the IQ data bit width, and transmits the number of carrier signals, the sampling rate and the IQ data bit width to the receiving end through a non-IQ data bearer in the basic frame, so that the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured in the transmission process of the carrier signals, software design can be adapted to different numbers of carrier signals, the sampling rates of each carrier signal and the IQ data bit width of each carrier signal without modifying the parameters when the parameters are changed, and adaptability in the data transmission process is improved.
In the parameter determination S1, the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal are determined by a user according to actual transmission requirements, or obtained by a computer device in real time.
As shown in fig. 3, in framing S2, the IQ data of each carrier signal is placed in the IQ data carrying field of the basic frame, and preferably, the IQ data of each carrier signal is placed in the IQ data carrying field of the basic frame sequentially from low to high or from high to low according to the number of bits occupied by each carrier signal in the basic frame, so as to facilitate correct analysis of the carrier signals in the same order when the frames are decoded. In a specific implementation process, the redundant position of the IQ data not placed in the IQ data bearer domain may be set to 0.
As shown in fig. 4, in an embodiment, before framing S2, the method further includes: judging whether the current optical fiber transmission rate meets the framing condition; if the framing condition is met, continuing to perform framing S2; if the framing condition is not satisfied, the parameter determination S1 is returned.
Specifically, the determining whether the current optical fiber transmission rate satisfies the framing condition may include:
s31, determining the total bit number of all carrier signals in the basic frame period;
s32, judging whether the total bit number of all carrier signals in the basic frame period does not exceed the bit number which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate; if yes, the framing condition is satisfied; if not, the framing condition is not satisfied.
Before determining whether the total bits occupied by all carrier signals in the basic frame period do not exceed the bits that can be transmitted by the basic frame corresponding to the current optical fiber transmission rate, the method further includes:
and S31', according to the current optical fiber transmission rate, the encoding rate of optical fiber transmission and the frequency of the basic frame, determining the number of bits which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate in the basic frame period.
Before framing, it is determined whether a current optical fiber transmission rate meets a framing condition, specifically, it is determined whether a total number of bits of all carrier signals in a basic frame period in the basic frame does not exceed a number of bits that can be transmitted by the basic frame corresponding to the current optical fiber transmission rate, and if not, the framing condition is not met, the number of the carrier signals, the sampling rate, and the IQ data bit width need to be re-determined, so that the formed basic frame can meet a condition of a current optical fiber transmission bandwidth.
As shown in fig. 5, in another embodiment, before framing S2, the method further includes: judging whether the sampling rate meets the framing condition; if the framing condition is met, continuing to perform framing S2; if the framing condition is not satisfied, the parameter determination S1 is returned.
Specifically, the determining whether the sampling rate satisfies the framing condition may include:
s3', judging whether the sampling rate is a positive integer multiple of the frequency of the basic frame; if yes, the framing condition is satisfied; if not, the framing condition is not satisfied.
Before framing, whether the sampling rate of each carrier signal is a positive integer multiple of the frequency of a basic frame is judged, if not, the sampling rate condition is judged not to be met, the sampling rate of each carrier signal needs to be determined again, and therefore the composed basic frame can avoid the loss of useful signals as much as possible.
In another embodiment, before framing S2, the method further includes: judging whether the current optical fiber transmission rate and the sampling rate meet framing conditions or not according to the number of carrier signals, the sampling rate and the IQ data bit width; if the framing condition is satisfied, continuing to execute the framing step S2; if the framing condition is not satisfied, the process returns to the step of determining parameters S1.
Specifically, the step of determining whether the current optical fiber transmission rate and the current sampling rate satisfy the framing condition according to the number of carrier signals, the sampling rate, and the IQ data bit width may include:
determining the total bit number of all carrier signals in a basic frame period, which needs to be occupied in the basic frame, according to the number of the carrier signals, the sampling rate and the IQ data bit width;
judging whether the total bit number of all carrier signals in the basic frame period does not exceed the bit number which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate;
judging whether the sampling rate is a positive integral multiple of the frequency of the basic frame;
if the total number of bits required to be occupied does not exceed the number of bits capable of being transmitted and the sampling rate is a positive integral multiple of the frequency of the basic frame, the framing condition is met, otherwise, the framing condition is not met.
As shown in fig. 6, a most preferred embodiment is:
the data processing method comprises the following steps:
parameter determination:
A1. determining the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal;
and (3) framing condition judgment:
A21. determining the total bit number of all carrier signals in the basic frame period;
A22. determining the number of bits which can be transmitted by a basic frame corresponding to the current optical fiber transmission rate in a basic frame period;
A23. judging whether the total bit number of all carrier signals in the basic frame period does not exceed the bit number which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate; if yes, go to step A24; if not, returning to execute the step A1;
A24. judging whether the sampling rate of each carrier signal is a positive integral multiple of the frequency of the basic frame; if yes, go to step A3; if not, returning to execute the step A1;
framing:
A3. and placing the IQ data of each carrier signal in an IQ data bearing domain of the basic frame, and placing the number of the carrier signals, the sampling rate and the IQ data bit width in a non-IQ data bearing domain of the basic frame.
Another most preferred embodiment, as shown in fig. 7, is:
the data processing method comprises the following steps:
parameter determination:
B1. determining the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal;
and (3) framing condition judgment:
B21. judging whether the sampling rate of each carrier signal is a positive integral multiple of the frequency of the basic frame; if yes, go to step B22; otherwise, the step B1 is executed in a returning way.
B22. Determining the total bit number of all carrier signals in the basic frame period;
B23. determining the number of bits which can be transmitted by a basic frame corresponding to the current optical fiber transmission rate in a basic frame period;
B24. judging whether the total bit number of all carrier signals in the basic frame period does not exceed the bit number which can be transmitted by the basic frame corresponding to the current optical fiber transmission rate; if yes, go to step B3; if not, returning to execute the step B1;
framing:
B3. and placing the IQ data of each carrier signal in an IQ data bearing domain of the basic frame, and placing the number of the carrier signals, the sampling rate and the IQ data bit width in a non-IQ data bearing domain of the basic frame.
In one embodiment, the total number of bits required to occupy the basic frame for all carrier signals within the basic frame is determined to conform to the following formula (1):
in the formula (1), Y is the total number of bits of all carrier signals in the basic frame period, and KiIs the sampling rate, W, of the ith carrier signaliIs the IQ data bit width of the ith carrier signal, n is the carrier number, and f is the frequency of the basic frame.
In one embodiment, the number of bits that can be transmitted in the basic frame corresponding to the current optical fiber transmission rate in the basic frame period is determined according to the current optical fiber transmission rate, the coding rate of the optical fiber transmission, and the frequency of the basic frame, and is according to the following formula (2):
X=(R×k)/f (2)
in the formula (2), X is the number of bits that can be transmitted by the basic frame corresponding to the current optical fiber transmission rate in the basic frame period, R is the current optical fiber transmission rate, k is the encoding rate of optical fiber transmission, and f is the frequency of the basic frame.
In the CPRI protocol, the time length of a standard basic frame is 1/3.84 μ s (that is, the basic frame period is 1/3.84 μ s), and the frequency f of the basic frame may be 3.84 MHz; the optical fiber transmission rate R may be any of the following values: 614.4Mbps, 1228.8Mbps, 2457.6Mbps, 3072.0Mbps, 4915.2Mbps, 6144.0Mbps, 8110.08Mbps, 9830.4Mbps, 10137.6Mbps, 12165.12 Mbps; the coding format of the carrier signal is generally 8B/10B and 64B/66B, when the coding format is 8B/10B, the coding rate k is 8/10, and when the coding format is 64B/66B, the coding rate k is 64/66.
It can be understood that the above embodiments may also break through the limitation of the CPRI protocol, and be applied to other communication protocols, and have certain compatibility. According to the regulations in other communication protocols, the values of the frequency f, the optical fiber transmission rate R and the encoding rate k of the basic frame are respectively determined.
As shown in fig. 8, based on the same inventive concept as the above-mentioned data processing method applied to the transmitting end, in an embodiment, there is also provided a data processing method applied to the receiving end, which can be specifically applied to the digital access unit 12 or the digital remote unit 13 when serving as the receiving end, and includes:
s1', analyzing the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal from the non-IQ data bearing domain of the basic frame;
and S2', analyzing the bit number of each carrier signal according to the analyzed number of the carrier signals, the sampling rate and the IQ data bit width, and analyzing the IQ data of each carrier signal from the IQ data bearing domain of the basic frame according to the bit number of each carrier signal and the corresponding framing sequence.
The receiving end can analyze the number of carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal from the non-IQ data bearing domain of the received basic frame, and analyze the bit number of each carrier signal from the IQ data bearing domain of the basic frame according to the number of the carrier signals, the sampling rate and the IQ data bit width, so that the number of the carrier signals, the sampling rate of each carrier signal and the IQ data bit width of each carrier signal can be flexibly configured in the transmission process of the carrier signals, the different numbers of the carrier signals, the sampling rates of each carrier signal and the IQ data bit widths of each carrier signal can be adapted without modifying software design, and the adaptability in the data transmission process is improved.
As shown in fig. 9, based on the same inventive concept as the above data processing method, in an embodiment, there is also provided a data processing apparatus applied to a transmitting end, and more specifically, the data processing apparatus can be applied to an optical fiber transmission module in a repeater system, and includes: parameter determination module 31 and framing module 32:
a parameter determining module 31, configured to determine the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal;
the framing module 32 is configured to place the IQ data of each carrier signal in an IQ data carrying domain of the base frame, and place the number of carrier signals, the sampling rate, and the IQ data bit width in a non-IQ data carrying domain of the base frame.
After the parameter determining module 31 determines the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal according to the actual data transmission requirement, the framing module 32 performs framing of an IQ data bearer in a basic frame according to the number of carrier signals, the sampling rate, and the IQ data bit width, and transmits the number of carrier signals, the sampling rate, and the IQ data bit width to a receiving end through a non-IQ data bearer in the basic frame, so that the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal can be flexibly configured during transmission of the carrier signals, and software design can be adapted to different numbers of carrier signals, sampling rates of each carrier signal, and IQ data bit widths of each carrier signal without changing parameters, thereby improving the adaptability of the data transmission system.
In a specific implementation process, the parameter determining module 31 may receive an input from a user, and determine the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal; the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal can also be obtained in real time from other computer devices.
As shown in fig. 3, preferably, the framing module 32 is configured to place the IQ data of each carrier signal in an IQ data carrying domain of a basic frame, specifically, to place the IQ data of each carrier signal in the IQ data carrying domain of the basic frame sequentially from low to high or from high to low according to a bit number occupied by each carrier signal in the basic frame.
In a specific implementation, the framing module 32 may set the redundant position of the IQ data not set in the IQ data bearer domain to 0.
As shown in fig. 10, in an embodiment, the data processing apparatus applied to the transmitting end further includes a framing condition determining module 33;
a framing condition determining module 33, configured to determine whether the current optical fiber transmission rate meets a framing condition;
a framing module 32, configured to, when a framing condition is satisfied, place IQ data of each carrier signal in an IQ data carrying domain of the base frame, and place the number of carrier signals, a sampling rate, and an IQ data bit width in a non-IQ data carrying domain of the base frame; the parameter determining module 31 is further configured to determine the number of carriers, the sampling rate, and the IQ data bit width again when the framing condition is not satisfied.
Before framing, the framing condition determining module 33 determines whether the current optical fiber transmission rate meets the framing condition, specifically, whether the total bits occupied by all carrier signals in the basic frame do not exceed the bits that can be transmitted by the basic frame corresponding to the current optical fiber transmission rate is determined, and if not, the parameter determining module 31 is required to re-determine the number of the carrier signals, the sampling rate and the IQ data bit width, so that the formed basic frame can meet the condition of the current optical fiber transmission bandwidth.
In another embodiment, the data processing apparatus applied to the transmitting end further includes a framing condition determining module 33;
a framing condition determining module 33, configured to determine whether the sampling rate satisfies a framing condition;
a framing module 32, configured to, when a framing condition is satisfied, place IQ data of each carrier signal in an IQ data carrying domain of the base frame, and place the number of carrier signals, a sampling rate, and an IQ data bit width in a non-IQ data carrying domain of the base frame; the parameter determining module 31 is further configured to determine the number of carriers, the sampling rate, and the IQ data bit width again when the framing condition is not satisfied.
Before framing, the framing condition determining module 33 determines that the sampling rate of each carrier signal satisfies the framing condition, specifically, determines whether the sampling rate of each carrier signal is a positive integer multiple of the frequency of the basic frame, and if not, determines that the sampling rate of each carrier signal does not satisfy the framing condition, the parameter determining module 31 needs to re-determine the sampling rate of each carrier signal, so that the composed basic frame can avoid the loss of useful signals as much as possible.
In another embodiment, the data processing apparatus applied to the transmitting end further includes a framing condition determining module 33;
a framing condition determining module 33, configured to determine whether the current optical fiber transmission rate and the sampling rate satisfy the framing condition according to the number of carrier signals, the sampling rate, and the IQ data bit width;
a framing module 32, configured to, when a framing condition is satisfied, place IQ data of each carrier signal in an IQ data carrying domain of the base frame, and place the number of carrier signals, a sampling rate, and an IQ data bit width in a non-IQ data carrying domain of the base frame; the parameter determining module 31 is further configured to determine the number of carriers, the sampling rate, and the IQ data bit width again when the framing condition is not satisfied.
Before framing, it is determined by the framing condition determining module 33 whether the current optical fiber transmission rate and the sampling rate of each carrier signal satisfy the framing condition, specifically, it is determined whether the total bits of all the carrier signals in the basic frame do not exceed the bits that can be transmitted by the basic frame corresponding to the current optical fiber transmission rate, and it is determined whether the sampling rate of each carrier signal is a positive integer multiple of the frequency of the basic frame, if the total bits that need to be occupied do not exceed the bits that can be transmitted and the sampling rate is a positive integer multiple of the frequency of the basic frame, the framing condition is satisfied, otherwise, the parameter determining module 31 is not satisfied, and the sampling rate of each carrier signal needs to be re-determined, thereby the composed basic frame can avoid the loss of useful signals as much as possible.
As shown in fig. 11, based on the same inventive concept as the above data processing method, in an embodiment, there is also provided a data processing apparatus applied to a receiving end, and more particularly, may be applied to an optical fiber transmission module in a repeater system, including:
a parameter analyzing module 41, configured to analyze the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal from the non-IQ data carrying domain of the basic frame;
and the data analysis module 42 is configured to analyze the bits of each carrier signal according to the analyzed number of carrier signals, the sampling rate, and the IQ data bit width, and analyze the IQ data of each carrier from the IQ data carrying domain of the basic frame according to the bits of each carrier signal and the corresponding framing sequence.
The parameter analyzing module 41 can analyze the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal from the non-IQ data carrying domain of the received basic frame, and the data analyzing module 42 can analyze the carrier signals from the IQ data carrying domain of the basic frame according to the number of carrier signals, the sampling rate, and the IQ data bit width, so that the number of carrier signals, the sampling rate of each carrier signal, and the IQ data bit width of each carrier signal can be flexibly configured during the transmission process of the carrier signals, and the parameter analyzing module can adapt to different numbers of carrier signals, sampling rates of each carrier signal, and IQ data bit widths of each carrier signal without modifying software design, thereby improving the adaptability of the data transmission system.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the data processing method in the above embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the data processing method in the various embodiments described above.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.