CN114845342A - Data compression method, compression device, processor and electronic equipment - Google Patents
Data compression method, compression device, processor and electronic equipment Download PDFInfo
- Publication number
- CN114845342A CN114845342A CN202210467525.0A CN202210467525A CN114845342A CN 114845342 A CN114845342 A CN 114845342A CN 202210467525 A CN202210467525 A CN 202210467525A CN 114845342 A CN114845342 A CN 114845342A
- Authority
- CN
- China
- Prior art keywords
- compression ratio
- target
- signal data
- initial
- preset
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The application provides a data compression method, a compression device, a processor and electronic equipment, wherein the terminal equipment comprises a baseband chip, a radio frequency chip and a DigRF interface, the DigRF interface is used for transmitting signal data between the baseband chip and the radio frequency chip, and the compression method comprises the following steps: under the condition that the terminal equipment is in a starting-up stage, controlling a DigRF interface to transmit signal data at an initial compression ratio, wherein the initial compression ratio is the ratio of the bit width of the signal data before transmission to the bit width in the transmission process; and adjusting the initial compression ratio at least according to preset parameters to obtain a target compression ratio, wherein the preset parameters are used for representing the signal quality corresponding to the transmitted signal data. The scheme realizes the self-adaptive adjustment of the compression ratio of the signal data transmitted by the DigRF interface, and ensures that the signal data is less damaged by compression.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data compression method, a compression apparatus, a computer-readable storage medium, a processor, and an electronic device.
Background
With the development of communication technology, especially the gradual commercialization of 5G NR (New Radio), discrete schemes of a baseband chip (BBIC) and a Radio Frequency chip (RFIC) have become mainstream in the industry, and digrf (digital rf) is used as a bridge for connecting the BBIC and the RFIC, and it is necessary to ensure sufficiently low power consumption overhead while satisfying high-speed data transmission.
For the existing chip, a method does not adopt a data compression algorithm, but increases the DigRF line rate or increases LANE (channel) to meet the requirement of high-speed signal data transmission, and the method only simply compresses to a bit (bit) bit width according to a fixed mode, and cannot change in a self-adaptive manner. Another method is to implement the compression algorithm according to a fixed compression Ratio, and although the requirement for the DigRF can be reduced, the signal to Noise Ratio (SNR) deteriorates more significantly as the compression Ratio is larger.
Therefore, a method capable of adaptively adjusting the compression ratio of signal data is needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The present application mainly aims to provide a data compression method, a compression apparatus, a computer-readable storage medium, a processor, and an electronic device, so as to solve the problem that it is difficult to adaptively adjust the compression ratio of signal data in the process of transmitting signal data through a DigRF interface in the prior art.
According to an aspect of the embodiments of the present invention, a method for compressing data is provided, where a terminal device includes a baseband chip, a radio frequency chip, and a DigRF interface, where the DigRF interface is used for transmitting signal data between the baseband chip and the radio frequency chip, and the method includes: under the condition that the terminal equipment is in a starting-up stage, controlling the DigRF interface to transmit the signal data at an initial compression ratio, wherein the initial compression ratio is the ratio of the bit width of the signal data before transmission to the bit width in the transmission process; and adjusting the initial compression ratio at least according to a preset parameter to obtain a target compression ratio, wherein the preset parameter is used for representing the signal quality corresponding to the transmitted signal data.
Optionally, adjusting the initial compression ratio according to at least a predetermined parameter to obtain a target compression ratio, includes: smoothing the estimated value of the preset parameter to obtain a target value of the preset parameter; and adjusting the initial compression ratio according to the target value of the preset parameter to obtain the target compression ratio.
Optionally, smoothing the estimated value of the predetermined parameter to obtain a target value of the predetermined parameter, includes: and carrying out filtering processing on the estimated value of the preset parameter to obtain a target value of the preset parameter.
Optionally, the step of adjusting the initial compression ratio according to the target value of the predetermined parameter to obtain the target compression ratio includes: and under the condition that the target values of the preset parameters in the first preset time exceed a first preset threshold value, increasing the initial compression ratio to obtain the first target compression ratio.
Optionally, the target compression ratio further includes a second target compression ratio, and when the target values of the predetermined parameters all exceed a first predetermined threshold within a first predetermined time, the initial compression ratio is increased to obtain the first target compression ratio, and then the compression method includes: and reducing the first target compression ratio to obtain the second target compression ratio under the condition that the target values of the preset parameters are all lower than a second preset threshold value in second preset time.
Optionally, after adjusting the initial compression ratio according to at least a predetermined parameter to obtain a target compression ratio, the compression method includes: controlling the DigRF interface to compress the signal data by the target compression ratio and transmit the compressed signal data, and/or adjusting the number of LANE switches according to the target compression ratio, wherein the LANE is a channel for transmitting the signal data between the baseband chip and the radio frequency chip; and/or, the predetermined parameter comprises at least one of: RSRP, RSRQ, RSSI, SINR, SNR.
According to another aspect of the embodiments of the present invention, there is also provided a data compression apparatus, where a terminal device includes a baseband chip, a radio frequency chip, and a DigRF interface, where the DigRF interface is used for signal data transmission between the baseband chip and the radio frequency chip, and the compression apparatus includes: the first control unit is configured to control the DigRF interface to transmit the signal data at an initial compression ratio when the terminal device is in a boot stage, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data in a transmission process; and the first adjusting unit is used for adjusting the initial compression ratio at least according to a preset parameter to obtain a target compression ratio, wherein the preset parameter is used for representing the signal quality corresponding to the transmitted signal data.
According to still another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes any one of the compression methods.
According to still another aspect of the embodiments of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the compression methods.
According to an aspect of the embodiments of the present invention, there is also provided an electronic device, including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the compression methods.
In the embodiment of the present invention, in the data compression method, first, when the terminal device is in a boot-up stage, the DigRF interface compresses and transmits the signal data by an initial compression ratio, and then adjusts the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio. According to the scheme, the initial compression ratio is adjusted according to the preset parameters in the process of transmitting the signal data through the DigRF interface to obtain the target compression ratio, namely, the compression ratio of the signal data transmitted through the DigRF interface is adaptively adjusted, and the fact that the signal data is damaged by compression is small is guaranteed, so that the problem that in the prior art, the compression ratio of the signal data is difficult to adaptively adjust in the process of transmitting the signal data through the DigRF interface is solved. In addition, compared with the prior art that the bit width of the signal data transmitted between the baseband chip and the radio frequency chip is compressed through a fixed compression ratio, the scheme not only realizes the self-adaptive adjustment of the initial compression ratio, but also ensures that the communication system has lower requirements on the transmission rate of the high-speed IO interface.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 shows a flow diagram of a method of compression of data according to an embodiment of the present application;
FIG. 2 shows a schematic diagram of an apparatus for compressing data according to an embodiment of the present application;
fig. 3 shows a flow chart of a method of compression of data according to a specific embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As mentioned in the background, in the prior art, it is difficult to adaptively adjust the compression ratio of signal data in the process of transmitting signal data through the DigRF interface, and in order to solve the above problems, in an exemplary embodiment of the present application, a data compression method, a compression apparatus, a computer-readable storage medium, a processor, and an electronic device are provided.
According to an embodiment of the present application, there is provided a method of compressing data.
Fig. 1 is a flowchart of a method of compressing data according to an embodiment of the present application. As shown in fig. 1, the terminal device includes a baseband chip, a radio frequency chip, and a DigRF interface, where the DigRF interface is used to transmit signal data between the baseband chip and the radio frequency chip, and the compression method includes the following steps:
step S101, when the terminal device is in a boot stage, controlling the DigRF interface to transmit the signal data at an initial compression ratio, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data during transmission;
and step S102, adjusting the initial compression ratio at least according to preset parameters to obtain a target compression ratio, wherein the preset parameters are used for representing the signal quality corresponding to the transmitted signal data.
In the data compression method, first, when the terminal device is in a boot-up stage, the DigRF interface compresses and transmits the signal data by an initial compression ratio, and then adjusts the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio. According to the scheme, the initial compression ratio is adjusted according to the preset parameters in the process of transmitting the signal data through the DigRF interface to obtain the target compression ratio, namely, the compression ratio of the signal data transmitted through the DigRF interface is adaptively adjusted, and the fact that the signal data is damaged by compression is small is guaranteed, so that the problem that in the prior art, the compression ratio of the signal data is difficult to adaptively adjust in the process of transmitting the signal data through the DigRF interface is solved. In addition, compared with the prior art that the bit width of the signal data transmitted between the baseband chip and the radio frequency chip is compressed through a fixed compression ratio, the scheme not only realizes the self-adaptive adjustment of the initial compression ratio, but also ensures that the communication system has lower requirements on the transmission rate of the high-speed IO interface.
In an actual application process, when the terminal device is in a boot-up stage, since the quality of an external signal is not known, in order to ensure that signal data can be transmitted normally, the DigRF interface is controlled to transmit the signal data at an initial compression ratio, that is, the initial compression ratio may be a compression ratio in the worst scenario. And then adjusting the initial compression ratio at least according to the preset parameters to obtain the target compression ratio. For example, if the external signal quality gradually becomes better, the initial compression ratio may be increased so that the DigRF interface can compress the signal data at a larger compression ratio. That is to say, the scheme not only realizes the self-adaptive adjustment of the compression ratio in the process of transmitting the signal data by the DigRF interface, but also further solves the problem of insufficient bandwidth of the high-speed IO interface.
In a specific embodiment of the present application, the predetermined parameter may be transmitted by a base station communicating with a terminal device, but is not limited to be transmitted by the base station communicating with the terminal device, and may also be transmitted by any other feasible device.
Specifically, the terminal device may be a mobile phone, and the terminal device may also be a PAD, and in the present application, the type of the terminal device is not limited, and a person skilled in the art may flexibly adjust the terminal device according to an actual application scenario.
Specifically, the data compression method of the present application may be applicable to an uplink scene and a downlink scene.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In an embodiment of the present application, adjusting the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio includes: smoothing the estimated value of the preset parameter to obtain a target value of the preset parameter; and adjusting the initial compression ratio according to the target value of the preset parameter to obtain the target compression ratio. Specifically, according to the scheme, the initial compression ratio is adjusted according to the target value of the preset parameter obtained through smoothing processing to obtain the target compression ratio, and therefore the obtained target compression ratio is reasonable and accurate.
Specifically, in the actual application process, the initial compression ratio may also be directly adjusted according to the predetermined parameter to obtain the target compression ratio, but such continuous adjustment of the compression ratio may cause further system deterioration and higher power consumption of the system.
In order to more easily smooth the estimated value of the predetermined parameter and ensure that the obtained target value of the predetermined parameter is more accurate and reasonable, in another embodiment of the present application, the smoothing the estimated value of the predetermined parameter to obtain the target value of the predetermined parameter includes: and filtering the estimated value of the preset parameter to obtain a target value of the preset parameter, and subsequently adjusting the initial compression ratio according to the target value of the preset parameter, thereby further ensuring that the obtained target compression ratio is more reasonable and accurate.
In practical applications, the estimated values of the predetermined parameters may also be subjected to weighted average processing, and of course, the processing is not limited to the processing of the estimated values of the predetermined parameters by weighted average, and the processing of the estimated values of the predetermined parameters may also be performed by any feasible smoothing method in the prior art.
Specifically, in the above embodiment, the estimated value of the predetermined parameter may be further processed by alpha mean filtering to obtain the target value of the predetermined parameter, and certainly, the method is not limited to the processing of the estimated value of the predetermined parameter by alpha mean filtering, and may also be processed by median filtering, and may also be processed by a sliding average filtering.
In another embodiment of the present application, the target compression ratio includes a first target compression ratio, and the adjusting the initial compression ratio according to the target value of the predetermined parameter to obtain the target compression ratio includes: when the target values of the predetermined parameters exceed a first predetermined threshold value within a first predetermined time, the initial compression ratio is increased to obtain the first target compression ratio. In the scheme, under the condition that target values of the preset parameters exceed a first preset threshold, the initial compression ratio is increased, so that the DigRF interface compresses the signal data by a larger compression ratio, the problem of insufficient bandwidth of the high-speed IO interface is further solved, and subsequently, when the initial compression ratio is increased to a certain degree, the number of LANE for partially transmitting the signal data can be closed, and the low power consumption of the system is further ensured.
Specifically, the first predetermined time may be adjusted according to an actual application, and the size of the first predetermined time is not limited in this application.
Specifically, the first predetermined threshold may be adjusted according to an actual application, and the size of the first predetermined threshold is not limited in this application.
In addition, the first target compression ratio does not refer to the maximum compression ratio that the DigRF interface can compress, and on the basis of the first target compression ratio, the first target compression ratio may be continuously increased according to a target value of a predetermined parameter until the maximum compression ratio that the DigRF interface can compress is reached.
In order to further ensure that signal data can be transmitted normally and better network service is provided for users, in another embodiment of the present application, the target compression ratio further includes a second target compression ratio, and when the target values of the predetermined parameters within a first predetermined time exceed a first predetermined threshold, the initial compression ratio is increased to obtain the first target compression ratio, and then the compression method includes: and reducing the first target compression ratio to obtain a second target compression ratio under the condition that the target values of the preset parameters are lower than a second preset threshold value in a second preset time.
Specifically, the second predetermined time may be adjusted according to an actual application, and the size of the second predetermined time is not limited in this application.
Specifically, the second predetermined threshold may be adjusted according to an actual application, and the size of the second predetermined threshold is not limited in this application. In addition, in an actual application process, the first predetermined threshold and the second predetermined threshold may be equal, but the first predetermined threshold and the second predetermined threshold may not be equal.
In addition, the second target compression ratio does not refer to the minimum compression ratio that the DigRF interface can compress, and on the basis of the second target compression ratio, the second target compression ratio may be continuously reduced according to a target value of a predetermined parameter until the minimum compression ratio that the DigRF interface can compress, that is, the initial compression ratio is reached.
In an embodiment of the present application, after adjusting the initial compression ratio according to at least a predetermined parameter to obtain a target compression ratio, the compression method includes: controlling the DigRF interface to compress the signal data by the target compression ratio and transmit the compressed signal data, and/or adjusting the number of LANE (channel for transmitting the signal data between the baseband chip and the radio frequency chip) according to the target compression ratio; and/or, the predetermined parameter includes at least one of: RSRP (Reference Signal Received Power, RSRP for short), RSRQ (Reference Signal Received Quality, RSRQ for short), RSSI (Received Signal Strength Indicator, RSSI for short), SINR (Signal to Interference plus Noise Ratio, SINR for short), SNR (Signal Noise Ratio, SNR for short). In this embodiment, when the initial compression ratio is increased to a certain extent, the number of LANEs LANE for transmitting signal data is reduced due to the increase of the initial compression ratio, so that a part of LANEs can be closed, the quality of the external signal is gradually deteriorated, so that the compression ratio is reduced to a certain extent on the basis of the first target compression ratio or the maximum compression ratio, so that the number of LANEs LANE for transmitting signal data is increased, and a part of LANEs can be opened, that is, the present solution also realizes the adjustment of the number of LANEs opened or closed according to the target compression ratio, thus ensuring the low power consumption of the system, and further ensuring the normal transmission of signal data.
In a specific embodiment of the present application, if the high-speed IO interface is in a single LANE, a transmission rate of 10Gbps can be achieved, for example, a data bit width of 12 bits per CC8 stream in a downlink 2CC 100M, and if signal data is compressed, the data transmission rate of the high-speed IO interface requires 58.9824Gbps, and at this time, 6 LANEs are required to run at a full rate. Considering the requirement of the initial compression ratio, the compression can be reduced to 8 bits, the data transmission rate requirement on the high-speed IO interface is reduced to 39.3216Gbps, and at this time, only 4 LANEs are needed to run at the full rate. If the SNR of the current signal data is high enough, the data bit width can be further compressed to 6 bits, the transmission rate requirement on the high-speed IO interface is further reduced to 29.4912Gbps, and only 3 LANEs are needed to run at the full rate, so the data compression method of the present application can further reduce the power consumption of the high-speed IO interface.
The embodiment of the present application further provides a data compression apparatus, and it should be noted that the data compression apparatus of the embodiment of the present application may be used to execute the data compression method provided in the embodiment of the present application. The following describes a compression apparatus for data provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of an apparatus for compressing data according to an embodiment of the present application. As shown in fig. 2, the terminal device includes a baseband chip, a radio frequency chip, and a DigRF interface, where the DigRF interface is used to transmit signal data between the baseband chip and the radio frequency chip, and the compression apparatus includes:
a first control unit 10, configured to control the DigRF interface to transmit the signal data at an initial compression ratio when the terminal device is in a boot-up stage, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data in a transmission process;
a first adjusting unit 20, configured to adjust the initial compression ratio at least according to a predetermined parameter, so as to obtain a target compression ratio, where the predetermined parameter is used to characterize signal quality corresponding to the transmitted signal data.
In the data compression apparatus, the first control unit is configured to control the DigRF interface to transmit the signal data at an initial compression ratio when the terminal device is in a boot stage, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data during transmission; the first adjusting unit is configured to adjust the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio, where the predetermined parameter is used to characterize signal quality corresponding to the transmitted signal data. According to the scheme, the initial compression ratio is adjusted according to the preset parameters in the process of transmitting the signal data through the DigRF interface to obtain the target compression ratio, namely, the compression ratio of the signal data transmitted through the DigRF interface is adaptively adjusted, and the fact that the signal data is damaged by compression is small is guaranteed, so that the problem that in the prior art, the compression ratio of the signal data is difficult to adaptively adjust in the process of transmitting the signal data through the DigRF interface is solved. In addition, compared with the prior art that the bit width of the signal data transmitted between the baseband chip and the radio frequency chip is compressed through a fixed compression ratio, the scheme not only realizes the self-adaptive adjustment of the initial compression ratio, but also ensures that the communication system has lower requirements on the transmission rate of the high-speed IO interface.
In an actual application process, under the condition that the terminal device is in a boot-up stage, since the quality of an external signal is unknown, in order to ensure that signal data can be normally transmitted, the DigRF interface is controlled to transmit the signal data at an initial compression ratio, that is, the initial compression ratio is the compression ratio in the worst scene. And then adjusting the initial compression ratio at least according to the preset parameters to obtain the target compression ratio. For example, if the external signal quality gradually becomes better, the initial compression ratio may be increased so that the DigRF interface can compress the signal data at a larger compression ratio. That is to say, the scheme not only realizes the self-adaptive adjustment of the compression ratio in the process of transmitting the signal data by the DigRF interface, but also further solves the problem of insufficient bandwidth of the high-speed IO interface.
In a specific embodiment of the present application, the predetermined parameter may be transmitted by a base station communicating with a terminal device, but is not limited to be transmitted by the base station communicating with the terminal device, and may also be transmitted by any other feasible device.
Specifically, the terminal device may be a mobile phone, and the terminal device may also be a PAD, and in the present application, the type of the terminal device is not limited, and a person skilled in the art may flexibly adjust the terminal device according to an actual application scenario.
Specifically, the data compression method of the present application may be applicable to an uplink scene and a downlink scene.
In an embodiment of the present application, the first adjusting unit includes a processing module and an adjusting module, wherein the processing module is configured to perform a smoothing process on the estimated value of the predetermined parameter to obtain a target value of the predetermined parameter; the adjusting module is used for adjusting the initial compression ratio according to the target value of the preset parameter to obtain the target compression ratio. Specifically, according to the scheme, the initial compression ratio is adjusted according to the target value of the preset parameter obtained after the smoothing processing, so that the target compression ratio is obtained, and the obtained target compression ratio is more reasonable and accurate.
Specifically, in the actual application process, the initial compression ratio may also be directly adjusted according to the predetermined parameter to obtain the target compression ratio, but such continuous adjustment of the compression ratio may cause further system deterioration and higher power consumption of the system.
In order to perform smoothing processing on the estimated value of the predetermined parameter more easily and ensure that the obtained target value of the predetermined parameter is more accurate and reasonable, in another embodiment of the present application, the processing module includes a filtering processing sub-module, which is configured to perform filtering processing on the estimated value of the predetermined parameter to obtain the target value of the predetermined parameter, and then adjust the initial compression ratio according to the target value of the predetermined parameter, so as to further ensure that the obtained target compression ratio is more reasonable and accurate.
In practical applications, the estimated values of the predetermined parameters may also be subjected to weighted average processing, and of course, the processing is not limited to the processing of the estimated values of the predetermined parameters by weighted average, and the processing of the estimated values of the predetermined parameters may also be performed by any feasible smoothing method in the prior art.
Specifically, in the above embodiment, the estimated value of the predetermined parameter may be further processed by alpha mean filtering to obtain the target value of the predetermined parameter, and certainly, the method is not limited to the processing of the estimated value of the predetermined parameter by alpha mean filtering, and may also be processed by median filtering, and may also be processed by a sliding average filtering.
In yet another embodiment of the present application, the target compression ratio comprises a first target compression ratio, and the adjusting module comprises an adjusting submodule, configured to increase the initial compression ratio to obtain the first target compression ratio when the target values of the predetermined parameters all exceed a first predetermined threshold within a first predetermined time. In the scheme, under the condition that the target values of the preset parameters exceed the first preset threshold, the initial compression ratio is increased, so that the DigRF interface transmits the signal data with a larger compression ratio, the problem of insufficient bandwidth of the high-speed IO interface is further solved, and subsequently, when the initial compression ratio is increased to a certain degree, the number of LANEs for partially transmitting the signal data can be closed, and the low power consumption of the system is further ensured.
Specifically, the first predetermined time may be adjusted according to an actual application, and the size of the first predetermined time is not limited in this application.
Specifically, the first predetermined threshold may be adjusted according to an actual application, and the size of the first predetermined threshold is not limited in this application.
In addition, the first target compression ratio does not refer to the maximum compression ratio that the DigRF interface can compress, and on the basis of the first target compression ratio, the first target compression ratio may be continuously increased according to a target value of a predetermined parameter until the maximum compression ratio that the DigRF interface can compress is reached.
In order to further ensure that the signal data can be transmitted normally and to further provide better network service for the user, in yet another embodiment of the present application, the target compression ratio further includes a second target compression ratio, and after the first target compression ratio is obtained by increasing the initial compression ratio when the target values of the predetermined parameters in the first predetermined time exceed the first predetermined threshold, the compression apparatus further includes a second adjusting unit, configured to decrease the first target compression ratio to obtain a second target compression ratio when the target values of the predetermined parameters in the second predetermined time are lower than the second predetermined threshold.
Specifically, the second predetermined time may be adjusted according to an actual application, and the size of the second predetermined time is not limited in this application.
Specifically, the second predetermined threshold may be adjusted according to an actual application, and the size of the second predetermined threshold is not limited in this application. In addition, in an actual application process, the first predetermined threshold and the second predetermined threshold may be equal, but the first predetermined threshold and the second predetermined threshold may not be equal.
In addition, the second target compression ratio does not refer to the minimum compression ratio that the DigRF interface can compress, and on the basis of the second target compression ratio, the second target compression ratio may be continuously reduced according to a target value of a predetermined parameter until the minimum compression ratio that the DigRF interface can compress, that is, the initial compression ratio is reached.
In an embodiment of the present application, after adjusting the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio, the compression apparatus includes a second control unit and a third adjustment unit, where the second control unit is configured to control the DigRF interface to compress the signal data by the target compression ratio and transmit the compressed signal data, and/or the third adjustment unit is configured to adjust an opening number of LANE according to the target compression ratio, where the LANE is a channel between the baseband chip and the radio frequency chip for transmitting the signal data; and/or, the predetermined parameter includes at least one of: RSRP (Reference Signal Received Power, RSRP for short), RSRQ (Reference Signal Received Quality, RSRQ for short), RSSI (Received Signal Strength Indicator, RSSI for short), SINR (Signal to Interference plus Noise Ratio, SINR for short), SNR (Signal Noise Ratio, SNR for short). In this embodiment, when the initial compression ratio is increased to a certain extent, the number of LANEs LANE for transmitting signal data is reduced due to the increase of the initial compression ratio, so that a part of LANEs can be closed, the quality of the external signal is gradually deteriorated, so that the compression ratio is reduced to a certain extent on the basis of the first target compression ratio or the maximum compression ratio, so that the number of LANEs LANE for transmitting signal data is increased, and a part of LANEs can be opened, that is, the present solution also realizes the adjustment of the number of LANEs opened or closed according to the target compression ratio, thus ensuring the low power consumption of the system, and further ensuring the normal transmission of signal data.
In order to make the technical solutions of the present application clearly understood by those skilled in the art, the following description will be made with reference to specific embodiments
Examples
As shown in fig. 3, when the terminal device is in the boot-up stage, the DigRF interface is controlled to transmit the signal data by the initial compression ratio, the initial compression ratio is adjusted at least according to a predetermined parameter to obtain a target compression ratio, then the target compression ratio is controlled to compress the signal data, the compressed signal data is transmitted, and finally the amount of opening or closing the LANE is adjusted according to the target compression ratio. After the number of the LANE to be opened or closed is adjusted, the current compression ratio is adjusted again according to the predetermined parameter (in FIG. 3, in order to ensure that the flow chart is simpler and clearer, the arrow points to the point to adjust the initial compression ratio at least according to the predetermined parameter to obtain the target compression ratio), and corresponding steps are executed accordingly.
The data compression device comprises a processor and a memory, wherein the first control unit, the first adjusting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that the compression ratio of the signal data is difficult to adjust in a self-adaptive manner in the process of transmitting the signal data through the DigRF interface in the prior art is solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, the program implementing the above-described data compression method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data compression method is executed when the program runs.
In an exemplary embodiment of the present application, there is also provided an electronic device comprising one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any one of the compression methods described above.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, when the terminal device is in a boot stage, controlling the DigRF interface to transmit the signal data at an initial compression ratio, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data during transmission;
and step S102, adjusting the initial compression ratio at least according to preset parameters to obtain a target compression ratio, wherein the preset parameters are used for representing the signal quality corresponding to the transmitted signal data.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, when the terminal device is in a boot stage, controlling the DigRF interface to transmit the signal data at an initial compression ratio, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data during transmission;
and step S102, adjusting the initial compression ratio at least according to preset parameters to obtain a target compression ratio, wherein the preset parameters are used for representing the signal quality corresponding to the transmitted signal data.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
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 place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) in the data compression method, first, under the condition that the terminal device is in a startup stage, the DigRF interface compresses and transmits the signal data by an initial compression ratio, and then adjusts the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio. According to the scheme, the initial compression ratio is adjusted according to the preset parameters in the process of transmitting the signal data through the DigRF interface to obtain the target compression ratio, namely, the compression ratio of the signal data transmitted through the DigRF interface is adaptively adjusted, and the fact that the signal data is damaged by compression is small is guaranteed, so that the problem that in the prior art, the compression ratio of the signal data is difficult to adaptively adjust in the process of transmitting the signal data through the DigRF interface is solved. In addition, compared with the prior art that the bit width of the signal data transmitted between the baseband chip and the radio frequency chip is compressed through a fixed compression ratio, the scheme not only realizes the self-adaptive adjustment of the initial compression ratio, but also ensures that the communication system has lower requirements on the transmission rate of the high-speed IO interface.
2) In the data compression apparatus of the present application, a first control unit is configured to control the DigRF interface to transmit the signal data at an initial compression ratio when the terminal device is in a boot-up stage, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data during a transmission process; the first adjusting unit is configured to adjust the initial compression ratio at least according to a predetermined parameter to obtain a target compression ratio, where the predetermined parameter is used to characterize signal quality corresponding to the transmitted signal data. According to the scheme, the initial compression ratio is adjusted according to the preset parameters in the process of transmitting the signal data through the DigRF interface to obtain the target compression ratio, namely, the compression ratio of the signal data transmitted through the DigRF interface is adaptively adjusted, and the fact that the signal data is damaged by compression is small is guaranteed, so that the problem that in the prior art, the compression ratio of the signal data is difficult to adaptively adjust in the process of transmitting the signal data through the DigRF interface is solved. In addition, compared with the prior art that the bit width of the signal data transmitted between the baseband chip and the radio frequency chip is compressed through a fixed compression ratio, the scheme not only realizes the self-adaptive adjustment of the initial compression ratio, but also ensures that the communication system has lower requirements on the transmission rate of the high-speed IO interface.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A data compression method is characterized in that a terminal device comprises a baseband chip, a radio frequency chip and a DigRF interface, wherein the DigRF interface is used for signal data transmission between the baseband chip and the radio frequency chip, and the compression method comprises the following steps:
under the condition that the terminal equipment is in a starting-up stage, controlling the DigRF interface to transmit the signal data at an initial compression ratio, wherein the initial compression ratio is the ratio of the bit width of the signal data before transmission to the bit width in the transmission process;
and adjusting the initial compression ratio at least according to a preset parameter to obtain a target compression ratio, wherein the preset parameter is used for representing the signal quality corresponding to the transmitted signal data.
2. The compression method according to claim 1, wherein adjusting the initial compression ratio to obtain a target compression ratio based on at least a predetermined parameter comprises:
smoothing the estimated value of the preset parameter to obtain a target value of the preset parameter;
and adjusting the initial compression ratio according to the target value of the preset parameter to obtain the target compression ratio.
3. The compression method according to claim 2, wherein smoothing the estimated value of the predetermined parameter to obtain the target value of the predetermined parameter comprises:
and carrying out filtering processing on the estimated value of the preset parameter to obtain a target value of the preset parameter.
4. The compression method according to claim 2, wherein the target compression ratio comprises a first target compression ratio, and the adjusting of the initial compression ratio according to the target value of the predetermined parameter to obtain the target compression ratio comprises:
and under the condition that the target values of the preset parameters in the first preset time exceed a first preset threshold value, increasing the initial compression ratio to obtain the first target compression ratio.
5. The compression method according to claim 4, wherein the target compression ratio further includes a second target compression ratio, and wherein, in the case where the target values of the predetermined parameters all exceed a first predetermined threshold within a first predetermined time, the initial compression ratio is increased, resulting in the first target compression ratio, the compression method includes:
and reducing the first target compression ratio to obtain the second target compression ratio under the condition that the target values of the preset parameters are all lower than a second preset threshold value in second preset time.
6. The compression method according to claim 1, wherein after adjusting the initial compression ratio to obtain a target compression ratio based on at least a predetermined parameter, the compression method comprises:
controlling the DigRF interface to compress the signal data by the target compression ratio and transmit the compressed signal data, and/or adjusting the number of LANE switches according to the target compression ratio, wherein the LANE is a channel for transmitting the signal data between the baseband chip and the radio frequency chip;
and/or the presence of a gas in the gas,
the predetermined parameters include at least one of: RSRP, RSRQ, RSSI, SINR, SNR.
7. A data compression device is characterized in that a terminal device comprises a baseband chip, a radio frequency chip and a DigRF interface, wherein the DigRF interface is used for signal data transmission between the baseband chip and the radio frequency chip, and the compression device comprises:
the first control unit is configured to control the DigRF interface to transmit the signal data at an initial compression ratio when the terminal device is in a boot stage, where the initial compression ratio is a ratio of a bit width of the signal data before transmission to a bit width of the signal data in a transmission process;
and the first adjusting unit is used for adjusting the initial compression ratio at least according to a preset parameter to obtain a target compression ratio, wherein the preset parameter is used for representing the signal quality corresponding to the transmitted signal data.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein the program executes the compression method of any one of claims 1 to 6.
9. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the compression method of any one of claims 1 to 6.
10. An electronic device, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the compression method of any of claims 1-6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210467525.0A CN114845342A (en) | 2022-04-29 | 2022-04-29 | Data compression method, compression device, processor and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210467525.0A CN114845342A (en) | 2022-04-29 | 2022-04-29 | Data compression method, compression device, processor and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114845342A true CN114845342A (en) | 2022-08-02 |
Family
ID=82567767
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210467525.0A Pending CN114845342A (en) | 2022-04-29 | 2022-04-29 | Data compression method, compression device, processor and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114845342A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102291773A (en) * | 2011-07-18 | 2011-12-21 | 电信科学技术研究院 | Data compression method and equipment |
| US20160080027A1 (en) * | 2013-05-29 | 2016-03-17 | Kddi Corporation | Base station system and communication apparatus |
| CN108886509A (en) * | 2016-02-16 | 2018-11-23 | 诺基亚通信公司 | Compression/de-compression frequency-region signal |
| US20180359123A1 (en) * | 2015-12-28 | 2018-12-13 | Sony Corporation | Apparatus and method |
| US20220110017A1 (en) * | 2019-01-21 | 2022-04-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and Apparatus for Transmitting Radio Data Over a Fronthaul Network |
-
2022
- 2022-04-29 CN CN202210467525.0A patent/CN114845342A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102291773A (en) * | 2011-07-18 | 2011-12-21 | 电信科学技术研究院 | Data compression method and equipment |
| US20160080027A1 (en) * | 2013-05-29 | 2016-03-17 | Kddi Corporation | Base station system and communication apparatus |
| US20180359123A1 (en) * | 2015-12-28 | 2018-12-13 | Sony Corporation | Apparatus and method |
| CN108886509A (en) * | 2016-02-16 | 2018-11-23 | 诺基亚通信公司 | Compression/de-compression frequency-region signal |
| US20220110017A1 (en) * | 2019-01-21 | 2022-04-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and Apparatus for Transmitting Radio Data Over a Fronthaul Network |
Non-Patent Citations (1)
| Title |
|---|
| 姜磊;黄广君;: "自适应的无损数据压缩算法", 计算机工程, no. 01, 5 January 2008 (2008-01-05) * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1330102C (en) | Data tramsitting method, system and network unit | |
| US9179417B2 (en) | Method, apparatus, and terminal for wireless network connection | |
| EP2519074B1 (en) | Method and device for adjusting service processing resources in a multi-mode base station system | |
| CN113498065B (en) | Spectrum resource scheduling method, device, computer equipment and computer readable medium | |
| CN112867069B (en) | Interference processing method and device, storage medium and electronic equipment | |
| CN110913442A (en) | Network switching method and device, electronic equipment and storage medium | |
| CN116782248A (en) | Method and device for adjusting wireless access network resources and related wireless access network | |
| US9642087B2 (en) | Methods for reducing the power consumption in voice communications and communications apparatus utilizing the same | |
| CN112868265A (en) | Network resource management method, management device, electronic device and storage medium | |
| CN106027113A (en) | A method and terminal for improving antenna stability | |
| US10880751B2 (en) | Resource allocation method, computer program product and communication device | |
| CN105979495B (en) | Method for improving call quality, radio network controller and core network | |
| CN114845342A (en) | Data compression method, compression device, processor and electronic equipment | |
| CN113163448B (en) | System and method for dynamic single-radio and dual-radio mode selection for DL MU-MIMO | |
| CN111132289A (en) | Antenna power consumption control method applied to mobile terminal and electronic equipment | |
| CN110062424A (en) | A kind of service-oriented frequency spectrum dicing method, device and computer storage medium | |
| CN111970754B (en) | Communication control method and device and electronic equipment | |
| CN119892154A (en) | Dual-mode communication distribution method and device based on power line carrier and wireless communication | |
| CN117979433A (en) | Service isolation method and device based on 5G network | |
| CN113825223B (en) | Transmitting power control method and electronic equipment | |
| CN112714435A (en) | Super uplink capability indication method and system, terminal equipment and network equipment | |
| CN107872835B (en) | Public network service protection method, device, MEC server and system | |
| CN112118620B (en) | Management method and device of double links, electronic device and storage medium | |
| WO2015010257A1 (en) | Base station state processing method and apparatus | |
| CN109036444A (en) | Speech encoding rate method of adjustment, device, computer storage medium and equipment |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 201203 Shanghai Pudong New Area BiBo Road 690, Building 5, 4th Floor Applicant after: Shanghai Xingsi Semiconductor Co., Ltd. Address before: 201203 Shanghai Pudong New Area BiBo Road 690, Building 5, 4th Floor Applicant before: Shanghai Xingsi Semiconductor Co.,Ltd. Country or region before: China |