WO2017185597A1 - 发送数据的方法及装置 - Google Patents

发送数据的方法及装置 Download PDF

Info

Publication number
WO2017185597A1
WO2017185597A1 PCT/CN2016/099740 CN2016099740W WO2017185597A1 WO 2017185597 A1 WO2017185597 A1 WO 2017185597A1 CN 2016099740 W CN2016099740 W CN 2016099740W WO 2017185597 A1 WO2017185597 A1 WO 2017185597A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
power consumption
transmitting
transmitting end
operating current
Prior art date
Application number
PCT/CN2016/099740
Other languages
English (en)
French (fr)
Inventor
贺斌
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017185597A1 publication Critical patent/WO2017185597A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of Internet of Things data transmission, and in particular to a method and apparatus for transmitting data.
  • LTE-M Long-Term Evolution
  • MTC machine type communication
  • M2M machine type communication
  • the LTE-M is better than the Cat0 and R12 in the upcoming terminal devices, and will be the main target technology for Chinese manufacturers to enter the M2M market.
  • Some vendors will directly invest in LTE-M directly beyond cat0/1.
  • LTE-M is the ultimate focus of M2M vendors, and cat0/1 is only transitional. European telecom operators are also building infrastructure for LTE-M.
  • the communication volume is small and the communication frequency is low, but it has completely different characteristics from the traditional mobile phone, that is, the number is large, and in some cases, it must be operated by dry battery for 10 years.
  • the low power consumption of the terminal chip is a very important feature that LTE-M is exploring and needs to implement, and the power consumed by the transmission occupies a considerable portion of the power consumption of the module. Therefore, if the original data can be compressed to a certain extent during transmission, the power consumed by the module on the transmission will be reduced, especially in the case of a weak signal, the effect will be more obvious.
  • the LTE technology in the related art has a technology of compressing an IP packet header, and also compresses an entire data packet, and the purpose thereof is to effectively provide utilization of wireless spectrum resources.
  • the related technology does not dynamically judge whether the power consumption required to compress the data is large, or whether the power consumption required to transmit the data is large, and if the data is compressed in any scenario, especially strong. Under the signal, it may be counterproductive.
  • the embodiments of the present invention provide a method and an apparatus for transmitting data, so as to at least solve the problem that the power consumption of the transmitted data in the related art is excessive.
  • a method for transmitting data including: acquiring first data to be sent, and working parameters for characterizing performance of a transmitting end; and determining, according to the working parameter, compressing the first Whether the total power consumption required for transmitting after the data is smaller than the power consumption required to directly transmit the first data; when the determination result is YES, the first data is compressed and then transmitted.
  • the operating parameter includes at least one of the following: signal strength, signal to noise ratio, operating current in a compressed state, operating voltage in a compressed state, operating current when the radio frequency transmits data, and operating voltage when the radio frequency transmits data.
  • the operating current in the idle state and the operating voltage in the idle state are the following: signal strength, signal to noise ratio, operating current in a compressed state, operating voltage in a compressed state, operating current when the radio frequency transmits data, and operating voltage when the radio frequency transmits data.
  • determining, according to the working parameter, whether the total power consumption required to perform the sending after compressing the first data is smaller than a power consumption required to directly send the first data includes: calculating, compressing, the first data The required power consumption W1, the power consumption W2 required to transmit the second data, and the power consumption W3 required to transmit the first data, wherein the second data is data compressed by the first data ; Determine whether the sum of W1 plus W2 is less than W3.
  • W1 ((I 2 *V 2 )-(I 0 *V 0 ))*T 2 ;
  • W2 ((I 1 *V 1 )-(I 0 *V 0 ))*T 1 *S 1 ;
  • I 1 is the operating current of the transmitting end when the radio frequency transmits data
  • V 1 is the working voltage of the transmitting end when the radio frequency transmits data
  • I 0 is the working current of the transmitting end when the idle state is in the idle state
  • V 0 is an operating current when the transmitting end is in an idle state
  • I 2 is an operating current when the transmitting end is in a compressed state
  • V 2 is an operating current when the transmitting end is in a compressed state
  • T 1 is the transmitting current.
  • T 2 is the time required for the transmitting end to compress the first data
  • S is the data amount of the first data
  • S 1 is the data amount of the second data.
  • the first predetermined value I 2; the second predetermined value V 2; T 2 is the calculated according to the predetermined compression rate and S; S 1 is at the depending The compression ratio of S and compression algorithm is calculated.
  • the method before determining, according to the working parameter, whether the total power consumption required to perform the sending after compressing the first data is less than the power consumption required to directly send the first data, the method further includes: determining Whether the data amount of the first data is less than or equal to a preset threshold; when the determination result is yes, determining whether the total power consumption required to perform the transmission after compressing the first data according to the working parameter is smaller than direct sending The power consumption required by the first data.
  • the first data is compressed by a compression algorithm of at least one of the following formats: LZMA, LZMA2, PPMD, BCJ, BCJ2.
  • the sending end is a terminal
  • the receiving end is a base station
  • determining, by the receiving end, that the receiving end supports decompression of the first data sending, at the sending end, the receiving end to the receiving end
  • the registration request message carries a field for inquiring whether the receiving end supports decompression capability, and receiving a message fed back by the receiving end for responding to the decompression capability.
  • an apparatus for transmitting data including: an obtaining module, configured to acquire first data to be sent, and an operating parameter for characterizing performance of a transmitting end; and a determining module, configured to Determining, according to the working parameter, whether the total power consumption required to transmit the first data and then transmitting is smaller than the power consumption required to directly send the first data; and the processing module is configured to: when the determination result is yes, The first data is compressed and then transmitted.
  • the operating parameter includes at least one of the following: signal strength, signal to noise ratio, operating current in a compressed state, operating voltage in a compressed state, operating current when the radio frequency transmits data, and operating voltage when the radio frequency transmits data.
  • the operating current in the idle state and the operating voltage in the idle state are the following: signal strength, signal to noise ratio, operating current in a compressed state, operating voltage in a compressed state, operating current when the radio frequency transmits data, and operating voltage when the radio frequency transmits data.
  • the determining module further includes: a calculating unit, configured to calculate and compress the first data The required power consumption W1, the power consumption W2 required to transmit the second data, and the power consumption W3 required to transmit the first data, wherein the second data is compressed after the first data is compressed.
  • the data; the determining unit is set to determine whether the sum of W1 plus W2 is less than W3.
  • the calculation unit calculates W1, W2, W3 by the following formula:
  • W1 ((I 2 *V 2 )-(I 0 *V 0 ))*T 2 ;
  • W2 ((I 1 *V 1 )-(I 0 *V 0 ))*T 1 *S 1 ;
  • I 1 is the operating current of the transmitting end when the radio frequency transmits data
  • V 1 is the working voltage of the transmitting end when the radio frequency transmits data
  • I 0 is the working current of the transmitting end when the idle state is in the idle state
  • V 0 is an operating current when the transmitting end is in an idle state
  • I 2 is an operating current when the transmitting end is in a compressed state
  • V 2 is an operating current when the transmitting end is in a compressed state
  • T 1 is the transmitting current.
  • T 2 is the time required for the transmitting end to compress the first data
  • S is the data amount of the first data
  • S 1 is the data amount of the second data.
  • the first data to be sent and the working parameters for characterizing the working performance of the transmitting end are obtained according to the present invention; whether the total power consumption required for transmitting the first data and then transmitting is smaller than the direct sending according to the working parameter The power consumption required by the first data; when the determination result is yes, the first data is compressed and then sent to the receiving end, wherein the receiving end supports decompression of the compressed first data. Capability, since the power consumption of the compressed data is also judged before the data is compressed, it can be obtained whether the data is compressed and then transmitted, whether the power consumption is really saved, and the problem that the power consumption of the transmitted data in the related art is excessively large can be solved, and the transmission power consumption can be saved. Technical effect.
  • FIG. 1 is a block diagram showing the hardware structure of a mobile terminal for transmitting data according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a method for transmitting data according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of an apparatus for transmitting data according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing an optional structure of an apparatus for transmitting data according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of interaction negotiation between a terminal and a base station according to Embodiment 3 of the present invention.
  • FIG. 6 is a flow chart of transmitting data by a terminal according to Embodiment 3 of the present invention.
  • FIG. 1 is a block diagram showing a hardware structure of a mobile terminal for transmitting data according to an embodiment of the present invention.
  • the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • a memory 104 that is configured to store data
  • a transmission device 106 that is configured as a communication function.
  • the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the method of transmitting data in the embodiment of the present invention, and the processor 102 executes by executing a software program and a module stored in the memory 104.
  • application software such as program instructions/modules corresponding to the method of transmitting data in the embodiment of the present invention
  • the processor 102 executes by executing a software program and a module stored in the memory 104.
  • Various functional applications and data processing, that is, the above methods are implemented.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network.
  • networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is arranged to receive or transmit data via a network.
  • the above-described network specific example may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 2 is a flowchart of a method for transmitting data according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 acquiring first data to be sent, and working parameters for characterizing performance of the transmitting end
  • Step S204 determining, according to the working parameter, whether the total power consumption required to perform the transmission after compressing the first data is smaller than the power consumption required to directly send the first data;
  • step S206 when the determination result is YES, the first data is compressed and then transmitted.
  • the first data to be sent and the working parameter for characterizing the working performance of the transmitting end; determining whether the total power consumption required to perform the sending after compressing the first data is smaller than directly sending the first data according to the working parameter.
  • the required power consumption when the judgment result is yes, the first data is compressed and then transmitted. Since the power consumption of the compressed data is also determined before the data is compressed, it can be obtained whether the data is compressed and then transmitted to actually save power. It can solve the problem that the power consumption of the transmitted data in the related technology is too large, and achieve the technical effect of saving the transmission power.
  • the execution body of the foregoing steps may be a base station, a terminal, or the like, such as an Internet of Things terminal using a disposable battery, but is not limited thereto.
  • the operating parameters may be, but are not limited to, signal strength, signal to noise ratio, operating current in a compressed state, operating voltage in a compressed state, operating current in a radio frequency state, operating voltage in a radio frequency state, and an idle state.
  • the radio frequency state can be the state when the radio frequency transmits data.
  • determining whether the total power consumption required to perform the transmission after compressing the first data is smaller than the power consumption required to directly send the first data according to the working parameter includes:
  • W1, W2, and W3 can be calculated by the following formula:
  • W1 ((I 2 *V 2 )-(I 0 *V 0 ))*T 2 ;
  • W2 ((I 1 *V 1 )-(I 0 *V 0 ))*T 1 *S 1 ;
  • I 1 is the operating current of the transmitting end in the radio frequency state
  • V 1 is the operating voltage of the transmitting end in the radio frequency state
  • I 0 is the working current of the transmitting end in the idle state
  • V 0 is when the transmitting end is in the idle state.
  • the working current I 2 is the operating current of the transmitting end in the compressed state
  • V 2 is the working current of the transmitting end in the compressed state
  • T 1 is the time required for the transmitting end to send the unit data
  • T 2 is the transmitting end compressing the first
  • S is the amount of data of the first data
  • S 1 is the amount of data of the second data.
  • Obtaining the above parameters may be obtained by testing the empirical value, where I 2 is a first preset value; the V 2 is a second preset value; and the T 2 is divided according to the S by a preset.
  • I 1 and V 1 it is also necessary to refer to the real-time acquired signal strength and signal-to-noise ratio, and further obtain the corresponding relationship between signal strength and signal-to-noise ratio and I 1 and V 1 because, along with signal strength and signal to noise ratio
  • the change, the power when the RF transmits data is also changed, and the corresponding I 1 and V 1 are also changed.
  • the greater the signal strength and the signal-to-noise ratio the larger I 1 and V 1 are, as another way.
  • the current and voltage at the time of the last RF transmission of data can be taken as I 1 and V 1 .
  • an initial judgment can be made before determining the power consumption, and the first data is determined. If the total power consumption required to transmit after compressing the first data is smaller than the power consumption required to directly send the first data, the method further includes:
  • the preset threshold Threshold1 can be obtained by: forcibly turning on compression for the uplink data, sending the persistent and stable traffic data to the base station, observing the delay of the data transmission, or directly sending the ping packet to the network. Observe the delay of returning packets. If it is greater than a certain value, such as 500ms, record the traffic at this time as threshold1.
  • the first data may be compressed by using the following algorithm: a compression algorithm of 7z, including: LZMA, LZMA2, PPMD, BCJ, BCJ2, wherein LZMA (Lempel-Ziv-Markov chain-Algorithm) is improved and optimized LZ77 algorithm, LZMA2 is an improved algorithm of LZMA, PPMD is based on Dmitry Shkarin's PPMdH algorithm, BCJ is a 32-bit x86 executable file conversion program; BCJ2 is a 32-bit x86 executable file conversion program.
  • LZMA Lempel-Ziv-Markov chain-Algorithm
  • PPMD is based on Dmitry Shkarin's PPMdH algorithm
  • BCJ is a 32-bit x86 executable file conversion program
  • BCJ2 is a 32-bit x86 executable file conversion program.
  • the foregoing compression algorithms may be combined with each other.
  • the foregoing algorithm is only an example.
  • the first data
  • the receiving end can determine the decompression capability of the first data by using the following manner:
  • the registration request message carries a field for inquiring whether the receiving end supports the decompression capability; optionally, it may be a data_comp_cap_flag field.
  • the receiving end When the receiving end is a terminal, it can negotiate with the receiving end to support data compression through IP packet communication.
  • the advantage of this is that the intermediate terminal does not need to support the data compression capability, and the receiving end can independently implement the decompression function.
  • the entire IP data packet is not compressed at this time, but the data to be sent is compressed, and the compressed data is sent to the receiving end through the IP packet;
  • the receiving end is a base station, the entire IP data packet can be directly compressed without compressing the data to be sent in advance.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
  • a device for transmitting data is provided, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 3 is a structural block diagram of an apparatus for transmitting data according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes:
  • the obtaining module 30 is configured to acquire first data to be sent, and work parameters for characterizing the working performance of the transmitting end;
  • the determining module 32 is configured to determine, according to the working parameter, whether the total power consumption required for transmitting the compressed first data is smaller than the power consumption required for directly transmitting the first data;
  • the processing module 34 is configured to, after the determination result is yes, compress the first data and then send the data to the receiving end, where the receiving end supports the decompression capability of the compressed first data.
  • the operating parameters may be, but are not limited to, signal strength, signal to noise ratio, operating current in a compressed state, operating voltage in a compressed state, operating current in a radio frequency state, operating voltage in a radio frequency state, and an idle state. Operating current, operating voltage in idle state.
  • the device includes, in addition to all the modules shown in FIG. 3, the determining module 32 further includes:
  • the calculating unit 40 is configured to calculate a power consumption W1 required to compress the first data, a power consumption W2 required to transmit the first data, and a power consumption W3 required to transmit the first data, where the second data is the first Data after compression;
  • the determining unit 42 is arranged to determine whether the sum of W1 plus W2 is less than W3.
  • the calculation unit can calculate W1, W2, W3 by the following formula:
  • W1 ((I 2 *V 2 )-(I 0 *V 0 ))*T 2 ;
  • W2 ((I 1 *V 1 )-(I 0 *V 0 ))*T 1 *S 1 ;
  • I 1 is the operating current of the transmitting end in the radio frequency state
  • V 1 is the operating voltage of the transmitting end in the radio frequency state
  • I 0 is the working current of the transmitting end in the idle state
  • V 0 is when the transmitting end is in the idle state.
  • the working current I 2 is the operating current of the transmitting end in the compressed state
  • V 2 is the working current of the transmitting end in the compressed state
  • T 1 is the time required for the transmitting end to send the unit data
  • T 2 is the transmitting end compressing the first
  • S is the amount of data of the first data
  • S 1 is the amount of data of the second data.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiment 3 is an optional embodiment of the present invention, and is used to describe the present invention in detail in conjunction with specific application entities and scenarios.
  • the sending end is a terminal, and the embodiment includes a capability negotiation module, an information collecting module, a compression module, a determining module, and a transmitting module.
  • the capability negotiation module is configured to negotiate with the base station whether the compression function is supported when the terminal and the base station register the interaction, and which compression algorithm is supported.
  • the terminal's registration capability includes the data_comp_cap_flag flag. If the value of this field is 0, the terminal does not support data compression. If the value of this field is 1, the terminal supports data compression.
  • the data_comp_cap_flag field is followed by the length field and the compression algorithm field. Length Field 1 byte represents the length of the compression algorithm field, and each byte of the compression algorithm represents a compression algorithm, and these compression algorithms are arranged in descending order of priority that the terminal wishes to use.
  • FIG. 5 is a schematic diagram of interaction negotiation between a terminal and a base station according to Embodiment 3 of the present invention. As shown in FIG. 5, the method includes:
  • the terminal sends an attach request to the base station.
  • the base station feeds back a capability request request (Capability request) to the terminal.
  • Capability request a capability request request
  • the terminal sends a UE capability response (Capability response) to the base station.
  • Capability response UE capability response
  • the base station feeds back an attach accept message to the terminal.
  • the terminal sends an Attach Complete message to the base station.
  • the information collection module is configured to collect the received signals of the terminal and the environmental parameters such as the signal to noise ratio in real time.
  • the compression module is responsible for pre-compressing and compressing the data.
  • the compression module does not really start compression by pre-compressing the data, but only estimates the time required to compress the data, and the length of the compressed data.
  • the decision module is set to determine whether the data is to be compressed or sent or sent directly.
  • the determining module determines the data according to the following conditions, and compresses the data when all the conditions are met; otherwise, the uplink data is directly sent: 1 the base station supports data compression and the terminal negotiates a suitable data compression algorithm with the base station; At this time, the amount of user data is small, lower than the threshold threshold1; 3 the power consumption for compressing the data is less than the power consumption saved by the transmission.
  • Threshold1 can be obtained by forcibly turning on compression for the uplink, and the terminal sends persistent and stable traffic data to the base station to observe the delay of data transmission, or can directly send the ping packet to the network and observe the delay of returning the packet.
  • Two kinds of index tables are preset in the determination module.
  • the index table 1 is the correspondence between the signal strength, the signal-to-noise ratio and the like and the power consumption of the transmission unit data.
  • the index table 2 is the correspondence between the time required for data compression and the required power consumption. relationship. Both the index table 1 and the index table 2 can be obtained by actual measurement on the terminal. For example, in index table 1, the terminal can be tested first.
  • a transmitting module configured to transmit user data to a base station.
  • the terminal in this embodiment can be adapted to a base station supporting a compression function and a base station not supporting a compression function.
  • the terminal registers with the base station for capability negotiation, the terminal reports the data compression capability and the supported compression algorithm, and the base station replies to its supported capabilities.
  • the terminal does not compress when transmitting data; for the supported base stations, the terminal determines whether compression is required before data transmission according to the distance from the base station, and which algorithm is used for compression, and the base station transmits the received terminal. After the data is decompressed.
  • This embodiment uses a compression algorithm that can be open source, such as a 7z compression algorithm, including LZMA, LZMA2, PPMD, BCJ, BCJ2, etc., to compress the data packet.
  • a compression algorithm that can be open source, such as a 7z compression algorithm, including LZMA, LZMA2, PPMD, BCJ, BCJ2, etc., to compress the data packet.
  • FIG. 6 is a flowchart of transmitting data by the terminal according to Embodiment 3 of the present invention, combined with the steps shown in FIG. 6, the terminal side Method embodiments include:
  • Step S601 The terminal establishes communication with the base station
  • Step S602 The terminal carries a data_comp_cap_flag field with a value of 1 in a capability set of the registration message, and a supported compression algorithm, and the compression algorithm is arranged according to a desired priority from high to low;
  • Step S603 The terminal parses the capability response of the base station. If the value of the data_comp_cap_flag field is 0, the base station does not support the data compression algorithm. If the value is 1, the supported compression algorithm replied by the base station is parsed, and the first supported compression algorithm that the base station replies is subsequently used. ;
  • Step S604 The terminal transmitting module receives the data to be transmitted, if the registered base station does not support Send data directly by holding data compression, then execute S610 to send data;
  • Step S605 If the data required to be transmitted is relatively large, and exceeds threshold1, the S610 is executed to execute the data;
  • Step S606 If there is less data to be sent, and the registered base station supports data compression, the next step is to determine whether data compression is to be performed;
  • Step S607 The data collection module collects information such as signal strength, signal to noise ratio, and working voltage of the terminal;
  • Step S608 The compression module performs pre-compression processing on the data, and determines the number of bytes that can be saved after the data is compressed, and the time required for compression;
  • Step S609 The determining module firstly detects the power consumption consumed by the transmitting unit data from the index table 1 according to the signal strength and the signal-to-noise ratio, multiplies the number of bytes saved after the compression, and obtains the power consumption saved by the transmission;
  • Table 2 shows the power consumption required for unit time compression multiplied by the time required for compression, and the power consumption required for compression is obtained. Comparing the two power consumptions, if the power consumption saved by the transmission is large, the data is compressed;
  • Step S610 transmitting data, and setting a data compression flag in the transmitted data.
  • Step S701 The terminal establishes communication with the base station to perform registration.
  • Step S702 The base station determines whether to support data compression according to the capability set sent by the terminal and its own capability. If supported, the data_comp_cap_flag field value is set to 1 in the capability negotiation corresponding, and then the supported compression algorithm is carried.
  • the compression algorithm is a common subset of compression algorithms supported by the base station and the terminal;
  • Step S703 After receiving the data transmitted by the terminal, the base station first checks whether the data compression is supported by the terminal before negotiation. If the data compression is supported, it is determined whether the compression flag bit is set. If there is a setting, the data is decompressed according to the compression algorithm. Otherwise, Pass data directly.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs, according to the stored program code in the storage medium, the first data to be sent, and the working parameter used to represent the working performance of the sender;
  • the processor performs, according to the stored program code in the storage medium, whether the total power consumption required to perform the transmission after the first data is compressed according to the working parameter is smaller than that required to directly send the first data. Power consumption
  • the processor performs, according to the stored program code in the storage medium, the first data is compressed and then sent to the receiving end, where the receiving end supports the compression.
  • the decompression capability of the first data is configured to perform, according to the stored program code in the storage medium, the first data is compressed and then sent to the receiving end, where the receiving end supports the compression.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the method and apparatus for transmitting data provided by the embodiments of the present invention have the following beneficial effects: since the power consumption of the compressed data is also determined before the data is compressed, whether the data is compressed and then transmitted is actually saved. Consumption, to achieve the technical effect of saving transmission power.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供了一种发送数据的方法及装置,其中,该方法包括:获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗;在判断结果为是时,将所述第一数据进行压缩后再发送。通过本发明,解决了相关技术中发送数据功耗过大的问题。

Description

发送数据的方法及装置 技术领域
本发明涉及物联网数据发送领域,具体而言,涉及一种发送数据的方法及装置。
背景技术
物联网应用需求倍增,各大公司相继推出支持长期演进(Long-Term Evolution,简称为LTE)机器类型通讯(MTC)规格的Cat.0和Cat.1晶片组,期携小尺寸、低功耗及低成本等特点,抢进机器对机器(M2M)通讯应用领域,可望进一步扩大LTE在物联网的市场范畴。而LTE-M比终端装置即将面世的Cat1和R12里的Cat0更好,将是中国大陆厂商进M2M市场的主要目标技术。部分厂商将直接越过cat0/1直接投入LTE-M。LTE-M才是M2M厂商最终关注焦点,cat0/1只是过渡性。欧洲电信运营商也在LTE-M基础建设。
由于物联网芯片的特殊应用场景,其通信量较小且通信频率较低,但具有与传统手机完全不同的特点,那就是数量多,某些情况下必须依靠干电池运行10年的时间。针对这样的特点,终端芯片的低功耗化是LTE-M正在探讨并需要实现的一个非常重要的特性,而发射所耗费的功率,在模块的功耗上占据相当大的部分。所以如果能在发射时将原始数据进行一定程度的压缩,会降低模块在发射上所消耗的功率,尤其是在弱信号的情况下,效果会比较明显。
相关技术中的LTE技术有对IP包头进行压缩的技术,也有对整个数据包进行压缩的,其目的是可以有效的提供无线频谱资源的利用率。
但是相关技术并不会动态的判断是压缩数据所需要的功耗多,还是发射数据所需要的功耗多,如果在任何场景下都对数据进行压缩,尤其是强 信号下,也许会适得其反。
针对相关技术中存在的上述问题,目前尚未发现有效的解决方案。
发明内容
本发明实施例提供了一种发送数据的方法及装置,以至少解决相关技术中发送数据功耗过大的问题。
根据本发明的一个实施例,提供了一种发送数据的方法,包括:获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗;在判断结果为是时,将所述第一数据进行压缩后再发送。
可选地,所述工作参数包括以下至少之一:信号强度、信噪比、压缩状态时的工作电流、压缩状态时的工作电压、射频发射数据时的工作电流、射频发射数据时的工作电压、空闲状态时的工作电流、空闲状态时的工作电压。
可选地,根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗包括:计算压缩所述第一数据所需要的功耗W1、发送第二数据所需要的功耗W2、以及发送所述第一数据所需要的功耗W3,其中,所述第二数据为对所述第一数据进行压缩后的数据;判断W1加上W2的和是否小于W3。
可选地,通过以下公式计算W1、W2、W3:
W1=((I2*V2)-(I0*V0))*T2
W2=((I1*V1)-(I0*V0))*T1*S1
W3=((I1*V1)-(I0*V0))*T1*S;
其中,I1为所述发送端在射频发射数据时的工作电流,V1为所述发送端在射频发射数据时的工作电压,I0为所述发送端在空闲状态时的工作电流,V0为所述发送端在空闲状态时的工作电流,I2为所述发送端在压缩状态时的工作电流,V2为所述发送端在压缩状态时的工作电流,T1为所 述发送端发送单位数据所需要的时间,T2为所述发送端压缩所述第一数据所需要的时间,S为所述第一数据的数据量,S1为所述第二数据的数据量。
可选地,所述I2为第一预设值;所述V2为第二预设值;所述T2为根据所述S和预设压缩速率计算得到;所述S1为根据所述S和压缩算法的压缩率计算得到。
可选地,在根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗之前,所述方法还包括:判断所述第一数据的数据量是否小于或等于预设阈值;在判断结果为是时,确定根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗。
可选地,通过以下至少之一格式的压缩算法将所述第一数据进行压缩:LZMA、LZMA2、PPMD、BCJ、BCJ2。
可选地,在所述发送端为终端,所述接收端为基站时,通过以下方式确定所述接收端支持对所述第一数据的解压能力:在所述发送端向所述接收端发送注册请求消息时,在所述注册请求消息中携带用于询问所述接收端是否支持解压能力的字段;接收所述接收端反馈的用于应答具备所述解压能力的消息。
根据本发明的另一个实施例,提供了一种发送数据的装置,包括:获取模块,设置为获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;判断模块,设置为根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗;处理模块,设置为在判断结果为是时,将所述第一数据进行压缩后再发送。
可选地,所述工作参数包括以下至少之一:信号强度、信噪比、压缩状态时的工作电流、压缩状态时的工作电压、射频发射数据时的工作电流、射频发射数据时的工作电压、空闲状态时的工作电流、空闲状态时的工作电压。
可选地,判断模块还包括:计算单元,设置为计算压缩所述第一数据 所需要的功耗W1、发送第二数据所需要的功耗W2、以及发送所述第一数据所需要的功耗W3,其中,所述第二数据为对所述第一数据进行压缩后的数据;判断单元,设置为判断W1加上W2的和是否小于W3。
可选地,所述计算单元通过以下公式计算W1、W2、W3:
W1=((I2*V2)-(I0*V0))*T2
W2=((I1*V1)-(I0*V0))*T1*S1
W3=((I1*V1)-(I0*V0))*T1*S;
其中,I1为所述发送端在射频发射数据时的工作电流,V1为所述发送端在射频发射数据时的工作电压,I0为所述发送端在空闲状态时的工作电流,V0为所述发送端在空闲状态时的工作电流,I2为所述发送端在压缩状态时的工作电流,V2为所述发送端在压缩状态时的工作电流,T1为所述发送端发送单位数据所需要的时间,T2为所述发送端压缩所述第一数据所需要的时间,S为所述第一数据的数据量,S1为所述第二数据的数据量。
通过本发明,获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗;在判断结果为是时,将所述第一数据进行压缩后再发送给接收端,其中,所述接收端支持对压缩的所述第一数据的解压能力,由于在压缩数据之前还判断了压缩数据的功耗,可以得到将数据压缩后再发送是否真正节约了功耗,可以解决相关技术中发送数据功耗过大的问题,达到节约发送功耗的技术效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是本发明实施例的一种发送数据的方法的移动终端的硬件结构框图;
图2是根据本发明实施例的一种发送数据的方法流程图;
图3是根据本发明实施例的发送数据的装置的结构框图;
图4是根据本发明实施例的发送数据的装置的可选结构框图;
图5是根据本发明实施例3的终端和基站交互协商示意图;
图6是根据本发明实施例3的终端发送数据的流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种发送数据的方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、设置为存储数据的存储器104、以及设置为通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可设置为存储应用软件的软件程序以及模块,如本发明实施例中的发送数据的方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上 述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其设置为通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于上述移动终端的发送数据的方法,图2是根据本发明实施例的一种发送数据的方法流程图,如图2所示,该流程包括如下步骤:
步骤S202,获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;
步骤S204,根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗;
步骤S206,在判断结果为是时,将第一数据进行压缩后再发送。
通过上述步骤,获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗;在判断结果为是时,将第一数据进行压缩后再发送,由于在压缩数据之前还判断了压缩数据的功耗,可以得到将数据压缩后再发送是否真正节约了功耗,可以解决相关技术中发送数据功耗过大的问题,达到节约发送功耗的技术效果。
可选地,上述步骤的执行主体可以为基站、终端等,如使用一次性电池的物联网终端,但不限于此。
可选的,工作参数可以但不限于为:信号强度、信噪比、压缩状态时的工作电流、压缩状态时的工作电压、射频状态时的工作电流、射频状态时的工作电压、空闲状态时的工作电流、空闲状态时的工作电压。射频状态可以是射频发射数据时的状态。
在根据本实施例的可选实施方式中,根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗包括:
计算压缩第一数据所需要的功耗W1、发送第二数据所需要的功耗W2、以及发送第一数据所需要的功耗W3,其中,第二数据为对第一数据进行压缩后的数据;
判断W1加上W2的和是否小于W3。
具体可通过以下公式计算W1、W2、W3:
W1=((I2*V2)-(I0*V0))*T2
W2=((I1*V1)-(I0*V0))*T1*S1
W3=((I1*V1)-(I0*V0))*T1*S;
其中,I1为发送端在射频状态时的工作电流,V1为发送端在射频状态时的工作电压,I0为发送端在空闲状态时的工作电流,V0为发送端在空闲状态时的工作电流,I2为发送端在压缩状态时的工作电流,V2为发送端在压缩状态时的工作电流,T1为发送端发送单位数据所需要的时间,T2为发送端压缩第一数据所需要的时间,S为第一数据的数据量,S1为第二数据的数据量。
对于上述各个参数的获取,可以经过测试的经验值得到,所述I2为第一预设值;所述V2为第二预设值;所述T2为根据所述S除以预设压缩速率计算得到;所述S1为根据所述S乘以压缩算法的压缩率计算得到,如压缩算法的压缩率为50%,则S1=0.5S。而对于I1和V1,还需要参考实时获取的信号强度和信噪比,进一步根据信号强度和信噪比与I1和V1的对应关系得到,因为,随着信号强度和信噪比的变化,射频发射数据时的功率也是变化的,对应的I1和V1也是变化的,一般来将,信号强度和信噪比越大,I1和V1也越大,作为另一方式,可以将最近一次射频发射数据时的电流和电压作为I1和V1
可选的还可以在判断功耗大小之前先进行一个初判,判断第一数据是 否过大,在根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗之前,方法还包括:
S11,判断第一数据的数据量是否小于或等于预设阈值;
S12,在判断结果为是时,确定根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗。
可选的,预设阈值Threshold1可以通过如下方法获取:对上行数据强制开启压缩,发送端发送持续并且流量稳定的数据到基站,观察数据发送的延时程度,或者可以直接发送ping包到网络并观察返回包的时延,如果大于一定的值,如500ms,则记录此时的流量作为threshold1。
可选的,可以使用以下算法对第一数据进行压缩:7z的压缩算法,包括:LZMA、LZMA2、PPMD、BCJ、BCJ2,其中,LZMA(Lempel-Ziv-Markov chain-Algorithm)为改良与优化后的LZ77算法,LZMA2为LZMA的改进算法,PPMD为基于Dmitry Shkarin的PPMdH算法,BCJ为32位x86可执行文件转换程序;BCJ2为32位x86可执行文件转换程序。在此需要说明的是,在不冲突的情况下,上述压缩算法可以相互结合,此外,上述算法只是举例说明,本实施例还可以使用其他未列举的压缩算法对第一数据进行压缩,在此并不做任何限制。
可选的,在发送端为终端,接收端为基站时,可以通过以下方式确定接收端支持对第一数据的解压能力:
S21,在发送端向接收端发送注册请求消息时,在注册请求消息中携带用于询问接收端是否支持解压能力的字段;可选的,可以是data_comp_cap_flag字段。
S22,接收接收端反馈的用于应答具备解压能力的消息。
而在接收端是终端时,可以通过IP数据包通信与接收端协商是否支持数据压缩,这样做的好处是不需要中转基站支持数据压缩能力,接收端可以独立实现解压功能。
可选的,在接收端是终端时,此时不对整个IP数据包进行压缩,而是要对待发送的数据压缩,再将压缩过的数据通过IP包发送到接收端; 而在接收端是基站时,可以对直接对整个IP数据包进行压缩,而不需要提前对待发送的数据进行压缩。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。
实施例2
在本实施例中还提供了一种发送数据的装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图3是根据本发明实施例的发送数据的装置的结构框图,如图3所示,该装置包括:
获取模块30,设置为获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;
判断模块32,设置为根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗;
处理模块34,设置为在判断结果为是时,将第一数据进行压缩后再发送给接收端,其中,接收端支持对压缩的第一数据的解压能力。
可选的,工作参数可以但不限于为:信号强度、信噪比、压缩状态时的工作电流、压缩状态时的工作电压、射频状态时的工作电流、射频状态时的工作电压、空闲状态时的工作电流、空闲状态时的工作电压。
图4是根据本发明实施例的发送数据的装置的可选结构框图,如图4 所示,该装置除包括图3所示的所有模块外,判断模块32还包括:
计算单元40,设置为计算压缩第一数据所需要的功耗W1、发送第一数据所需要的功耗W2、以及发送第一数据所需要的功耗W3,其中,第二数据为对第一数据进行压缩后的数据;
判断单元42,设置为判断W1加上W2的和是否小于W3。
可选的,计算单元可以通过以下公式计算W1、W2、W3:
W1=((I2*V2)-(I0*V0))*T2
W2=((I1*V1)-(I0*V0))*T1*S1
W3=((I1*V1)-(I0*V0))*T1*S;
其中,I1为发送端在射频状态时的工作电流,V1为发送端在射频状态时的工作电压,I0为发送端在空闲状态时的工作电流,V0为发送端在空闲状态时的工作电流,I2为发送端在压缩状态时的工作电流,V2为发送端在压缩状态时的工作电流,T1为发送端发送单位数据所需要的时间,T2为发送端压缩第一数据所需要的时间,S为第一数据的数据量,S1为第二数据的数据量。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例3
实施例3作为对本发明的可选实施例,用于结合具体的应用实体和场景对本发明进行详细说明。发送端为终端,本实施例在终端侧包括:能力协商模块、信息采集模块、压缩模块、判定模块、发射模块。
能力协商模块,设置为在终端和基站注册交互时与基站协商是否支持压缩功能,以及支持何种压缩算法。终端的注册能力里包含data_comp_cap_flag标志位,如果此字段值为0表明终端不支持数据压缩能力,如果此字段值为1表明终端支持数据压缩能力;在data_comp_cap_flag字段后紧接着是长度字段和压缩算法字段,其中长度 字段1字节表示压缩算法字段的长度,而压缩算法的每个字节代表一种压缩算法,并且这些压缩算法按照终端所希望使用的优先级降序排列。在收到基站的注册回应消息后终端解析data_comp_cap_flag标志位以及压缩算法,从而判定基站是否支持数据压缩算法,如果支持在后续数据压缩时使用何种算法。图5是根据本发明实施例3的终端和基站交互协商示意图,如图5所示,包括:
S501,终端向基站发送附着请求(Attach request);
S502,基站向终端反馈UE能力请求(Capability request);
S503,终端向基站发送UE能力响应(Capability response);
S504,基站向终端反馈附着接受(Attach accept)消息;
S505,终端向基站发送附着完成(Attach complete)消息。
信息采集模块,设置为实时收集终端的接收信号以及信噪比等环境参数。
压缩模块负责对数据进行预压缩以及压缩,压缩模块通过对数据的预压缩并不是真正的开始压缩,而只是估算压缩数据所需要的时间,以及压缩后数据的长度是多少。
判定模块,设置为判定是否要对数据进行压缩再发送还是直接发送。判定模块在判定时要根据以下条件以此进行判定,当所有条件全部满足时才对数据进行压缩,否则直接发送上行数据:①基站支持数据压缩并且终端与基站协商到了合适的数据压缩算法;②此时的用户数据量较少,低于阈值threshold1;③对数据进行压缩所消耗的功耗小于发射所节约的功耗。Threshold1可以通过如下方法获取:对上行强制开启压缩,终端发送持续并且流量稳定的数据到基站,观察数据发送的延时程度,或者可以直接发送ping包到网络并观察返回包的时延,如果大于一定的值,如500ms,则记录此时的流量作为threshold1。判定模块内部预置了2种索引表,索引表1是信号强度、信噪比等条件和发射单位数据功耗的对应关系,索引表2是数据压缩所需要的时间和所需功耗的对应关系。索引表1和索引表2均可通过在终端上实测进行获取,如索引表1,可以先测试出终端在某一 特定的信号强度及信噪比下的平均电流和电压,然后持续发送上行数据,测试此时终端的平均电流再和工作电压,使用公式((发射时电流*发射时电压)-(空闲电流*空闲电压))*发送单位数据所需要的时间,得出的结果就是发射单位数据所需要的功率;而对于索引表2,在关闭射频的情况下,首先测试终端的空闲电流和空闲电压,再使用特定的算法压缩一定量的数据,计算数据在压缩时终端的电压和电流,使用公式((压缩时电流*压缩时电压)-(空闲时电流*空闲时电压))*单位时间,得出的就是数据压缩时间和功耗的对应关系。
发射模块,设置为将用户数据发射到基站。
本实施例的终端,可以适配支持压缩功能的基站以及不支持压缩功能的基站。在终端注册到基站进行能力协商时,终端会上报支持数据压缩能力以及支持的压缩算法,而基站会答复其支持的能力。对于不支持的基站,终端在发射数据时不进行压缩;而对于支持的基站,终端会根据和基站的距离判断在数据发送前是否需要压缩,以及采用何种算法压缩,基站在接收到终端发送的数据后进行解压缩。
本实施例使用可以使用开源的压缩算法,如7z的压缩算法,包括LZMA、LZMA2、PPMD、BCJ、BCJ2等,对数据包进行压缩。
下面对系统中的发送端和接收端进行分开说明,即,终端侧和基站侧,图6是根据本发明实施例3的终端发送数据的流程图,结合图6所示的步骤,终端侧方法实施例包括:
步骤S601:终端和基站建立通信;
步骤S602:终端在注册消息的能力集合中携带data_comp_cap_flag字段其值为1,以及支持的压缩算法,压缩算法按照期望的优先级从高到低排列;
步骤S603:终端解析基站的能力响应,如果data_comp_cap_flag字段值为0则基站不支持数据压缩算法,如果值为1则解析基站答复的支持的压缩算法,后续使用基站答复的第一个支持的压缩算法;
步骤S604:终端发射模块收到待发射的数据,如果注册的基站不支 持数据压缩则直接发送数据,则执行S610发送数据;
步骤S605:如果要求发射的数据比较多,超过了threshold1,则执行S610发射数据;
步骤S606:如果要发送的数据较少,并且注册的基站支持数据压缩,下一步判断是否要进行数据压缩;
步骤S607:数据采集模块收集终端的信号强度、信噪比以及工作电压等信息;
步骤S608:压缩模块对数据进行预压缩处理,判断数据压缩后能节约的字节数,以及压缩需要的时间;
步骤S609:判定模块首先根据信号强度和信噪比从索引表1中查出发射单位数据所消耗的功耗,乘以压缩后节约的字节数,得出发射节约的功耗;再根据索引表2得出单位时间压缩所需要的功耗乘以压缩所需要的时间,得出压缩所需要的功耗,比较这两个功耗,如果发射节约的功耗较多则对数据进行压缩;
步骤S610:发射数据,并且在发射的数据里设置数据压缩标志位。
基站侧方法实施例包括:
步骤S701:终端和基站建立通信,进行注册;
步骤S702:基站根据终端发送的能力集以及自身能力,判断是否要支持数据压缩,如果支持,则在能力协商相应中将data_comp_cap_flag字段值设置为1,并且紧随其后携带支持的压缩算法,此压缩算法为基站和终端支持的压缩算法的公共子集;
步骤S703:基站收到终端发射的数据后,首先检查之前与此终端协商是否支持数据压缩,如果支持数据压缩再判断压缩标志位是否有设置,如果有设置则根据压缩算法对数据解压缩,否则直接传递数据。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,获取待发送的第一数据,以及用于表征发送端工作性能的工作参 数;
S2,根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗;
S3,在判断结果为是时,将第一数据进行压缩后再发送给接收端,其中,接收端支持对压缩的第一数据的解压能力。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行根据工作参数判断压缩第一数据后再进行发送所需要的总功耗是否小于直接发送第一数据所需要的功耗;
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行在判断结果为是时,将第一数据进行压缩后再发送给接收端,其中,接收端支持对压缩的第一数据的解压能力。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于 本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种发送数据的方法及装置具有以下有益效果:由于在压缩数据之前还判断了压缩数据的功耗,可以得到将数据压缩后再发送是否真正节约了功耗,达到节约发送功耗的技术效果。

Claims (11)

  1. 一种发送数据的方法,包括:
    获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;
    根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗;
    在判断结果为是时,将所述第一数据进行压缩后再发送。
  2. 根据权利要求1所述的方法,其中,所述工作参数包括以下至少之一:信号强度、信噪比、压缩状态时的工作电流、压缩状态时的工作电压、射频发射数据时的工作电流、射频发射数据时的工作电压、空闲状态时的工作电流、空闲状态时的工作电压。
  3. 根据权利要求1所述的方法,其中,根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗包括:
    计算压缩所述第一数据所需要的功耗W1、发送第二数据所需要的功耗W2、以及发送所述第一数据所需要的功耗W3,其中,所述第二数据为对所述第一数据进行压缩后的数据;
    判断W1加上W2的和是否小于W3。
  4. 根据权利要求3所述的方法,其中,通过以下公式计算W1、W2、W3:
    W1=((I2*V2)-(I0*V0))*T2
    W2=((I1*V1)-(I0*V0))*T1*S1
    W3=((I1*V1)-(I0*V0))*T1*S;
    其中,I1为所述发送端在射频发射数据时的工作电流,V1为所述发送端在射频发射数据时的工作电压,I0为所述发送端在空闲状态时的工作电流,V0为所述发送端在空闲状态时的工作电流,I2为所述发送端在压缩状态时的工作电流,V2为所述发送端在压缩状态时的工作电流,T1为所述发送端发送单位数据所需要的时间,T2为所述发送端压缩所述第一数据所需要的时间,S为所述第一数据的数据量,S1为所述第二数据的数据量。
  5. 根据权利要求4所述的方法,其中,其中,
    所述I2为第一预设值;
    所述V2为第二预设值;
    所述T2为根据所述S和预设压缩速率计算得到;
    所述S1为根据所述S和压缩算法的压缩率计算得到。
  6. 根据权利要求1所述的方法,其中,在根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗之前,所述方法还包括:
    判断所述第一数据的数据量是否小于或等于预设阈值;
    在判断结果为是时,确定根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗。
  7. 根据权利要求1所述的方法,其中,在所述发送端为终端,接收端为基站时,通过以下方式确定所述接收端支持对所述第一数据的解压能力:
    在所述发送端向所述接收端发送注册请求消息时,在所述注册请求消息中携带用于询问所述接收端是否支持解压能力的字段;
    接收所述接收端反馈的用于应答具备所述解压能力的消息。
  8. 一种发送数据的装置,包括:
    获取模块,设置为获取待发送的第一数据,以及用于表征发送端工作性能的工作参数;
    判断模块,设置为根据所述工作参数判断压缩所述第一数据后再进行发送所需要的总功耗是否小于直接发送所述第一数据所需要的功耗;
    处理模块,设置为在判断结果为是时,将所述第一数据进行压缩后再发送。
  9. 根据权利要求8所述的装置,其中,所述工作参数包括以下至少之一:信号强度、信噪比、压缩状态时的工作电流、压缩状态时的工作电压、射频发射数据时的工作电流、射频发射数据时的工作电压、空闲状态时的工作电流、空闲状态时的工作电压。
  10. 根据权利要求8所述的装置,其中,判断模块还包括:
    计算单元,设置为计算压缩所述第一数据所需要的功耗W1、发送第二数据所需要的功耗W2、以及发送所述第一数据所需要的功耗W3,其中,所述第二数据为对所述第一数据进行压缩后的数据;
    判断单元,设置为判断W1加上W2的和是否小于W3。
  11. 根据权利要求10所述的装置,其中,所述计算单元通过以下公式计算W1、W2、W3:
    W1=((I2*V2)-(I0*V0))*T2
    W2=((I1*V1)-(I0*V0))*T1*S1
    W3=((I1*V1)-(I0*V0))*T1*S;
    其中,I1为所述发送端在射频发射数据时的工作电流,V1为所述 发送端在射频发射数据时的工作电压,I0为所述发送端在空闲状态时的工作电流,V0为所述发送端在空闲状态时的工作电流,I2为所述发送端在压缩状态时的工作电流,V2为所述发送端在压缩状态时的工作电流,T1为所述发送端发送单位数据所需要的时间,T2为所述发送端压缩所述第一数据所需要的时间,S为所述第一数据的数据量,S1为所述第二数据的数据量。
PCT/CN2016/099740 2016-04-25 2016-09-22 发送数据的方法及装置 WO2017185597A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610261248.2A CN107306444A (zh) 2016-04-25 2016-04-25 发送数据的方法及装置
CN201610261248.2 2016-04-25

Publications (1)

Publication Number Publication Date
WO2017185597A1 true WO2017185597A1 (zh) 2017-11-02

Family

ID=60150261

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099740 WO2017185597A1 (zh) 2016-04-25 2016-09-22 发送数据的方法及装置

Country Status (2)

Country Link
CN (1) CN107306444A (zh)
WO (1) WO2017185597A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770530A (zh) * 2019-04-01 2020-10-13 Oppo广东移动通信有限公司 数据传输方法及相关设备
CN112153755A (zh) * 2019-06-27 2020-12-29 中国移动通信集团山东有限公司 数据传输方法、装置和计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420740A (zh) * 2008-12-05 2009-04-29 清华大学 一种用于无线传感器网络降低能耗的压缩判决方法
CN101599986A (zh) * 2008-06-02 2009-12-09 宏碁股份有限公司 加速文件传输速度的方法及计算机系统
CN103699587A (zh) * 2013-12-06 2014-04-02 北京奇虎科技有限公司 一种文件动态压缩方法及装置
CN103957582A (zh) * 2014-05-17 2014-07-30 浙江大学宁波理工学院 无线传感器网络自适应压缩方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039261A (zh) * 2006-03-16 2007-09-19 华为技术有限公司 用户终端接入网络及承载建立过程的处理方法、系统及装置
CN101197824A (zh) * 2006-12-08 2008-06-11 华为技术有限公司 一种确定压缩算法的方法及系统
CN101355554A (zh) * 2008-08-12 2009-01-28 华为技术有限公司 通过Cx或Sh接口协商数据压缩算法的方法及装置
CN101394425B (zh) * 2008-11-06 2012-05-09 清华大学 一种自适应划分簇的方法及系统
CN102131234B (zh) * 2010-01-18 2013-12-04 华为技术有限公司 Ip数据包的压缩及解压缩方法和装置
US8305947B2 (en) * 2010-02-12 2012-11-06 Intel Corporation Minimizing power consumption in a network device
CN102984753A (zh) * 2011-09-05 2013-03-20 普天信息技术研究院有限公司 一种提高无线通信数据传输效率的方法
CN102638579B (zh) * 2012-03-29 2016-05-04 深圳市高正软件有限公司 一种基于移动设备数据传输的数据处理方法及系统
CN104202124B (zh) * 2014-09-12 2017-10-10 成都博智维讯信息技术有限公司 一种erp数据包通讯方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599986A (zh) * 2008-06-02 2009-12-09 宏碁股份有限公司 加速文件传输速度的方法及计算机系统
CN101420740A (zh) * 2008-12-05 2009-04-29 清华大学 一种用于无线传感器网络降低能耗的压缩判决方法
CN103699587A (zh) * 2013-12-06 2014-04-02 北京奇虎科技有限公司 一种文件动态压缩方法及装置
CN103957582A (zh) * 2014-05-17 2014-07-30 浙江大学宁波理工学院 无线传感器网络自适应压缩方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770530A (zh) * 2019-04-01 2020-10-13 Oppo广东移动通信有限公司 数据传输方法及相关设备
CN111770530B (zh) * 2019-04-01 2023-09-19 Oppo广东移动通信有限公司 数据传输方法及相关设备
CN112153755A (zh) * 2019-06-27 2020-12-29 中国移动通信集团山东有限公司 数据传输方法、装置和计算机设备

Also Published As

Publication number Publication date
CN107306444A (zh) 2017-10-31

Similar Documents

Publication Publication Date Title
US10623977B2 (en) Minimization of drive tests measurement method, user equipment, and network device
KR101639492B1 (ko) 데이터 속도 효율 인자를 이용하여 무선 장치들 내의 전력 소비를 최적화하기 위한 방법
US11617092B2 (en) Data analytics method and apparatus
EP3703338B1 (en) Data message transmission method and apparatus
CN111356216A (zh) 一种通信方法及其相关设备
US20230082590A1 (en) Unicast communication method and apparatus
JP2017504989A (ja) ローミングパラメータを動的に調整するための方法およびシステム
US9913279B2 (en) Method for establishing a radio connection, network apparatus and terminal apparatus
WO2020063318A1 (zh) 通信方法与设备
US20230300703A1 (en) Cell switching method and apparatus, storage medium, and electronic device
US9609579B2 (en) Systems and methods for sharing scanning information
WO2017185597A1 (zh) 发送数据的方法及装置
US10999887B2 (en) Data sending method, data receiving method, and device
WO2015143763A1 (zh) 一种负荷信息传递方法、系统、网元及计算机存储介质
US11121802B2 (en) CSI obtaining method, server, terminal, and AP
JP2022502945A (ja) データ伝送方法および装置
CN113301589B (zh) 业务kpi的获取方法和网络设备
KR20170113693A (ko) 정보 전송 방법 및 장치
WO2020063656A1 (zh) 控制面消息的传输方法及设备
CN113783744A (zh) 一种时延测量方法、装置、计算机设备和存储介质
CN107295119B (zh) 一种基于异构网络的信息采集系统及方法
WO2022153748A1 (ja) ユーザ機器及び基地局
CN110972180A (zh) 数据传输方法、装置、相关设备及存储介质
US20230199542A1 (en) Information transmission method, user equipment, base station device and computer storage medium
US20160150523A1 (en) Reporting idle mode equipment data

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16900106

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900106

Country of ref document: EP

Kind code of ref document: A1