WO2015000305A1 - 一种降低LowMAC层功耗的方法、装置和终端 - Google Patents

一种降低LowMAC层功耗的方法、装置和终端 Download PDF

Info

Publication number
WO2015000305A1
WO2015000305A1 PCT/CN2014/072409 CN2014072409W WO2015000305A1 WO 2015000305 A1 WO2015000305 A1 WO 2015000305A1 CN 2014072409 W CN2014072409 W CN 2014072409W WO 2015000305 A1 WO2015000305 A1 WO 2015000305A1
Authority
WO
WIPO (PCT)
Prior art keywords
lowmac
layer
current state
state
polling
Prior art date
Application number
PCT/CN2014/072409
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 WO2015000305A1 publication Critical patent/WO2015000305A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/08Non-scheduled access, e.g. ALOHA
    • 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/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • 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 communications, and in particular, to a method, apparatus, and terminal for reducing power consumption of a LowMAC layer. Background technique
  • the most common architecture is to implement different protocol layers in different cores, as shown in Figure 1, where the LowMAC layer is the media access control layer with the most basic access function. (MAC, Med ia Acce ss Con t ro l ), the H i ghMAC layer is a fully functional MAC layer. Because different protocol layers are implemented in different cores, the LowMAC layer needs to check whether there are packets sent to the LowMAC layer at certain polling intervals. These packets can be event messages, command messages, status messages, and so on.
  • MAC Media access control layer with the most basic access function.
  • the LowMAC layer generally checks whether the polling interval of the data packet sent to the LowMAC layer is set to a short fixed value, so that the LowMAC layer can process the data packet in a timely manner, but also The power consumption of the LowMAC layer is large.
  • the present invention provides a method, apparatus and terminal for reducing power consumption of a LowMAC layer.
  • the LowMAC layer can reduce the power consumption of the LowMAC layer by adjusting the polling time interval.
  • the first aspect provides a method for reducing power consumption of a LowMAC layer, which is applied to a chip, where the method includes: a basic access function media intervention control, a LowMAC layer, determining a current state thereof; determining, according to a mapping rule, the current LowMAC layer The polling interval in the state; the mapping rule is a rule in which the state of the LowMAC layer is mapped to the polling interval; and the packet sent to the LowMAC layer is viewed according to the polling interval in the current state of the LowMAC layer.
  • the mapping rule includes: a rule corresponding to a polling time interval required by a plurality of different service applications; the method further includes: determining, before determining, according to the mapping rule, a polling time interval in a current state of the LowMAC layer Current business application;
  • Determining the polling time interval in the current state of the LowMAC layer according to the mapping rule includes: determining, according to the mapping rule, a polling time interval corresponding to the current service application in the current state of the LowMAC layer.
  • the mapping rule includes: a state of the LowMAC layer and multiple different service applications. a rule corresponding to a required polling interval, and a rule for obtaining a first polling interval by a polling interval required by a plurality of different service applications; determining the current state of the LowMAC layer according to a mapping rule
  • the polling interval includes: determining, according to the mapping rule, a first polling interval corresponding to a current state of the LowMAC layer.
  • the method further includes: recording a minimum number of empty polling times of the data packet in the current state of the LowMAC layer .
  • the mapping rule includes: a low MAC layer state and a minimum space polling The rule corresponding to the number of times, and the rule corresponding to the polling interval algorithm for the number of polling times of the minimum space;
  • Determining, according to the mapping rule, a polling interval in a current state of the LowMAC layer includes:
  • the state of the LowMAC layer includes at least one of the following: an idle I DLE state, a channel busy CHBUSY state, a frame interval I FS state, a backoff BACKOFF state, and a transmit data TXDATA Status, wait for acknowledgement frame WA I TACK state, process acknowledge PROCES SACK state.
  • the mapping rule includes: a rule that the I FS state corresponds to a DI FS time; Determining, according to the mapping rule, the polling time interval in the current state of the LowMAC layer, according to the mapping rule, using the DI FS time as a polling time interval in a current state of the LowMAC layer.
  • the mapping rule includes: a LowMAC layer a rule corresponding to an algorithm for the packet parsing time to be received in the current state of the LowMAC layer; wherein the algorithm for parsing the packet parsing time in the current state of the LowMAC layer is to be received according to the current state of the LowMAC layer
  • the indication information in the data packet obtains an algorithm for parsing the data packet to be received in the current state of the LowMAC layer
  • the method further includes:
  • Determining, according to the mapping rule, a polling time interval in a current state of the LowMAC layer includes:
  • the packet parsing time to be received in the current state of the L owMA C layer is used as the polling interval in the current state of the LowMAC layer.
  • the indication information of the data packet to be received in the current state of the LowMAC layer includes the current current The frequency offset error of the data packet to be received in the state.
  • the mapping rule includes: a current state of the LowMAC layer and a current state of the LowMAC layer a rule corresponding to an algorithm for sending a data packet transmission time; determining, according to the mapping rule, a polling time interval in a current state of the LowMAC layer, including: sending data to be sent according to a current state of the LowMAC layer corresponding to a current state of the LowMAC layer
  • the packet sending time algorithm calculates the sending time of the to-be-sent data packet in the current state of the LowMAC layer as the polling time interval in the current state of the LowMAC layer.
  • the mapping rule includes: a current state of the LowMAC layer and a current state of the LowMAC layer
  • the determining the polling time interval in the current state of the LowMAC layer according to the mapping rule comprises: following the LowMAC corresponding to the current state of the LowMAC layer
  • an apparatus for reducing power consumption of a LowMAC layer for use in a chip, the apparatus comprising: determining a status module: for basic access function media intervention control, the LowMAC layer determines its current state;
  • Determining a polling time interval module configured to determine a polling time interval in a current state of the LowMAC layer according to a mapping rule; the mapping rule is a rule that maps a state of a LowMAC layer to a polling time interval; The polling interval in the current state of the LowMAC layer, and the packets sent to the LowMAC layer are viewed.
  • the mapping rule includes: a rule corresponding to a polling time interval required by a plurality of different service applications; the device further includes a determining service application module, configured to determine a current service application; and the determining a polling time interval module is specifically used And determining, according to the mapping rule, a polling interval corresponding to the current service application in the current state of the LowMAC layer.
  • the determining a polling time interval module is specifically configured to:
  • the mapping rule includes a rule corresponding to a polling time interval required by a plurality of different service applications, and a requirement of a plurality of different service applications.
  • the polling interval is obtained by the rule of the first polling interval; and the first polling interval corresponding to the current state of the LowMAC layer is determined according to the mapping rule.
  • the apparatus further includes:
  • the determining a polling time interval module is specifically configured to:
  • the mapping rule includes a rule corresponding to a state of a LowMAC layer and a minimum number of polling times, and a minimum number of empty polling times and an adjusted polling interval algorithm.
  • the state of the LowMAC layer includes at least one of the following: an idle I DLE state, a channel busy CHBUSY state, a frame interval I FS state, a backoff BACKOFF state, and a transmit data TXDATA Status, wait for acknowledgement frame WA I TACK state, process acknowledge PROCESSACK state.
  • the determining a polling time interval module is specifically configured to:
  • the mapping rule includes: a rule that the I FS state corresponds to the D I FS time;
  • the D I FS time is used as a polling time interval in the current state of the LowMAC layer.
  • the apparatus further includes: a receiving module: the LowMAC layer receives the indication information of the to-be-received data packet in the current state, and the LowMAC in the current state The layer receives the data packet to be received in the current state; the determining the polling time interval module is specifically configured to:
  • the mapping rule includes: a current state of the LowMAC layer corresponding to an algorithm of a packet parsing time to be received in a current state of the LowMAC layer.
  • the algorithm for determining the parsing time of the data packet in the current state of the LowMAC layer is to obtain the parsing time of the data packet to be received in the current state of the LowMAC layer according to the indication information in the data packet to be received in the current state of the LowMAC layer.
  • the packet parsing time to be received in the current state is used as the polling interval in the current state of the LowMAC layer.
  • the indication information of the data packet to be received in the current state of the LowMAC layer includes a frequency offset error of the data packet to be received in the current state of the LowMAC layer.
  • the device further includes: a sending module, where the sending module is configured to send, by the LowMAC layer, a data packet to be sent in a current state; the determining a polling time interval module is specifically configured to:
  • the mapping rule includes: a rule corresponding to an algorithm of a current state of the LowMAC layer and an algorithm for sending a data packet to be sent in a current state of the LowMAC layer;
  • the determining a polling time interval module is specifically configured to:
  • the mapping rule includes: a rule corresponding to an algorithm of a current state of the LowMAC layer and a header resolution time of a packet to be received in a current state of the LowMAC layer;
  • a device comprising means for reducing L 0 wM A C layer power consumption provided by any of the above-described second aspects and all of the possible implementations thereof.
  • the method, device and terminal for reducing the power consumption of the LowMAC layer provided by the present invention determine the current state of the LowMAC layer according to the rule that the Low OAC layer determines its current state and the state maps to the polling time interval.
  • the polling interval, and according to the polling interval view the packets received by the LowMAC layer. In this way, under the premise of ensuring system performance, the LowMAC layer can be adjusted to check the polling interval of the received data packets, and the power consumption of the LowMAC layer is reduced.
  • FIG. 1 is a structural diagram of a wireless communication protocol stack applied to a multi-core chip provided by the prior art
  • FIG. 2 is a diagram showing relationship between multiple states of a LowMAC layer in a method for reducing power consumption of a LowMAC layer according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a method for reducing power consumption of a LowMAC layer according to an embodiment of the present invention
  • FIG. 4 is a graph showing a variation curve of an equivalent average power consumption of a chip with a packet length after a method for reducing power consumption of a LowMAC layer according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of an apparatus for reducing power consumption of a LowMAC layer according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another apparatus for reducing power consumption of a LowMAC layer according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another apparatus for reducing power consumption of a LowMAC layer according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of another apparatus for reducing power consumption of a LowMAC layer according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another apparatus for reducing power consumption of a LowMAC layer according to an embodiment of the present invention.
  • the function of the L 0 wM AC layer may be implemented by one chip alone or by one core of a multi-core chip.
  • Other layer functions such as physical layer, H i ghMAC layer function, can be implemented by another chip alone (not the same chip as the chip implementing the LowMAC layer function), and of course can also be implemented with the core of the LowMAC layer function.
  • a slice is a different core implementation of the same multicore chip.
  • the data packet mentioned in all the embodiments in the present invention represents any data packet received or sent by the LowMAC layer, and the arbitrary data packet may be a data packet containing valid data, and may also include an indication. Packet of information.
  • both the receiver and the transmitter are included, that is, it is assumed that the A device and the B device perform data interaction, and both the A device and the B device include the physical layer and the LowMAC layer.
  • a method for reducing power consumption of a LowMAC layer includes the following steps:
  • the S 1 0 LowMAC layer determines its current state.
  • the state of the LowMAC layer includes at least one of the following: idle I DLE state, channel busy CHBUSY state, frame interval I FS state, backoff BACKOFF state, transmit data TXDATA state, wait acknowledgement WA I TACK state, process acknowledgement PR0CESSACK state.
  • the relationship between the states of the LowMAC layer is as shown in FIG. 2.
  • the state of the above LowMAC layer will be described in detail below.
  • the LowMAC layer of the A device has a packet destined for the LowMAC layer of the B device.
  • the LowMAC layer of the A device receives the data packet to be sent sent by the upper layer in the I DLE state.
  • the LowMAC layer of the A device may receive the data packet in the CHBUSY state and process it (it may or may not be detected yet). The channel is idle, so it has not been switched to the I DLE state, but no other processing is performed.
  • the processing includes:
  • the LowMAC layer of the A device parses the received data packet. If the parsing result indicates that the data packet received by the LowMAC layer of the A device is a data packet sent to the LowMAC layer of the A device, the ACK is acknowledged and received immediately. If it is not a packet sent to the LowMAC layer of the A device itself, the received data packet is immediately discarded.
  • an I FS timer is started (this The timeout of the timer is defined by the standard.
  • the LowMAC layer of the A device detects that the channel is busy in the IFS state, it will immediately cancel the timer to switch to CHBUSY, otherwise it will wait until the I FS timer expires, then the A device The LowMAC layer switches to the BACKOFF state or the TXDATA state.
  • the LowMAC layer of the A device If the LowMAC layer of the A device first discovers the data packet 1 to be transmitted in the I DLE state, the LowMAC layer of the A device enters the TXDATA state after waiting for the I FS timeout period; if the LowMAC layer of the A device is first discovered in the I DLE state After the data packet 1, the Low FS layer of the UE's device waits for the I FS timeout period and enters the BACKOFF state after the channel is busy switched to CHBUSY and then enters the I FS state through the I DLE state.
  • a BACKOFF timer is started (the timer timeout period is calculated by the standard defined backoff algorithm), and the LowMAC layer of the A device immediately cancels the timing when it detects that the channel is busy.
  • the device switches to CHBUSY, otherwise it waits until the BACKOFF timer expires, and the LowMAC layer of the A device enters the TXDATA state.
  • the LowMAC layer of the A device transmits the data packet 1 to the physical layer of the A device, and then the physical layer of the A device performs physical layer related processing on the data packet 1 (example, The physical layer related processing may be a physical layer encapsulation operation or the like to obtain a data packet 2, and the physical layer of the A device sends the data packet 2 to the physical layer of the B device on the wireless channel, and the LowMAC layer of the A device immediately switches after the transmission is completed. Go to WA I TACK status.
  • the LowMAC layer of the A device After the LowMAC layer of the A device enters the WA I TACK state, a timer waiting for an acknowledgment frame is started (the timeout period of the timer is defined by the standard), that is, the LowMAC layer of the A device waits for the LowMAC layer of the B device to be sent to the LowMAC layer. Whether the packet 1 is correctly received by the Low MAC layer of the B device.
  • the physical layer of the B device After receiving the data packet 2, the physical layer of the B device performs physical layer related inverse processing on the data packet 2. For example, the physical layer relates to operations such as synchronizing and parsing data packets, and then to the LowMAC layer of the B device. The result of the processing is transmitted.
  • the LowMAC layer of the B device After the LowMAC layer of the B device receives the processing result transmitted by the physical layer of the B device, it is desirable to send the acknowledgement information to the data packet 1 to the LowMAC layer of the A device, that is, if the processing result is the correct data packet 1, Then the LowMAC layer of the device of B needs to feed back to the LowMAC layer of the A device that the packet 1 has been correctly received, therefore, the LowMAC of the B device The layer first transmits the data packet 3 including the packet 1 acknowledgement information to the physical layer of the B device.
  • the physical layer of the B device After receiving the data packet 3, the physical layer of the B device performs physical layer correlation processing on the data packet 3 to obtain the data packet 4, and then the physical layer of the B device sends the data packet 4 to the physical layer of the A device through the wireless channel.
  • the physical layer of the A device After receiving the data packet 4, the physical layer of the A device starts to perform physical layer inverse processing on the packet, that is, first finds the packet header of the data packet 3, obtains the packet 3 related indication information (rxstart), and then the physical layer direction of the A device.
  • the LowMAC layer of the A device transmits rxstart, and rxstart is used to indicate that the LowMAC layer of the A device is ready to start receiving the parsing result of the data packet 3. Then, the physical layer of the A device parses the data packet 3 to obtain the data packet 4. If the LowMAC layer of the A device receives rxstart, it will immediately cancel it.
  • the timer of the WAITACK state and switches to the PR0CESSACK state, and then begins to receive the data packet transmitted by the physical layer of the A device to him 4 .
  • the LowMAC layer of the A device does not receive the rxstart, it will wait until the timer of the LowMAC layer of the A device in the WAITACK state expires, and then the reception failure processing of the packet 4 is performed, that is, the LowMAC layer of the A device determines that it is the packet.
  • the LowMAC layer sent to the B device succeeds and receives the indication that the Low MAC layer of the B device feeds back to it that the data packet 1 has been successfully received by the message, or the retransmission of the data packet 1 by the LowMAC layer of the A device has exceeded the standard definition. The number of packet retransmissions.
  • the physical layer of the A device parses the data packet 3 to obtain the data packet 4, the physical layer of the A device sends an rxend to the LowMAC layer of the A device, indicating whether the data packet 3 is successfully received by the physical layer of the A device. If packet 3 has been successfully received by the physical layer of device A, then the physical layer of device A transmits packet 4 to the LowMAC layer of device A.
  • the LowMAC layer of the A device receives rxend, and rxend indicates that the data packet 4 has been successfully received by the physical layer of the A device, it continues to wait to receive the data packet 4, if the data packet 4 indicates that the LowMAC layer of the B device has successfully received the data packet 1 , indicates that packet 1 has been sent successfully, and the LowMAC layer of device A enters the IDLE state. If rxend indicates that packet 4 was not successfully received by the physical layer of device A, then the LowMAC layer of device A considers that packet 1 was not successfully received and will prepare to send the packet again. 1 .
  • the mapping rule is a rule that maps the state of the LowMAC layer to the polling time interval, that is, indicates how the polling time interval is obtained by the state of the LowMAC layer.
  • the mapping rule may be a table or an algorithm.
  • Embodiments of the present invention provide a method for reducing power consumption of a LowMAC layer, determining a current state according to a LowMAC layer, and determining a polling in a current state of the LowMAC layer according to a rule that the state maps to a polling time interval. Time interval, according to the polling interval, view the data packets received by the LowMAC layer. In this way, under the premise of ensuring system performance, the LowMAC layer can be adjusted to check the polling interval of the received data packet, thereby reducing the frequency of the LowMAC layer to view the data packet and achieving the purpose of reducing the power consumption of the LowMAC layer.
  • the LowMAC layer can further reduce its power consumption. For example, if the polling interval of the LowMAC layer in a certain state is 1 ms, there may be 0. l ms is used to query the data packet, the remaining 0. 9ms waiting to enter the next polling, in this 0. 9m s time, the chip that implements the LowMAC layer function can do no other operations, for some specific chips, you can Further reducing the power consumption of the LowMAC layer. Of course, for other chips, if the other operations cannot further reduce the power consumption of the LowMAC layer, the sleep mode may be adopted, or the chip frequency may be adjusted to further reduce the power consumption of the LowMAC layer.
  • the embodiment of the present invention provides another method for reducing the power consumption of the LowMAC layer.
  • the steps of the method are the same as those in the foregoing embodiment, and are not described here again.
  • the S1 02 determines the current current LowMAC layer according to the mapping rule. The polling interval in the state is described in detail.
  • each different state of the LowMAC layer can be obtained by offline performance testing, and a certain systemicity is satisfied under a plurality of different service applications corresponding to the state.
  • the maximum polling interval of the threshold can be saved and saved in the LowMAC layer, and the service application includes a voice application, a video application, or a QQ application.
  • the LowMAC layer processor is divided into an IDLE state, a CHBUSY state, an IFS state, a BACKOFF state, a TXDATA state, a ⁇ AITACK state, a PROCESSACK state, expressed as (S l S 2 , S n ), and second, each state is determined.
  • the maximum duration ( , d 2 , d n ), for example, the maximum duration of each state can be set according to the manner in Table 1.
  • the maximum polling interval ta m of the service application a (for example, a can represent the voice service) in each different state is obtained by offline performance test: 1.
  • test the system performance can be the throughput, the packet error rate, the retransmission rate, and the like.
  • step 3 Add ⁇ to A, and perform step 2 until ⁇ > or reach a certain system performance threshold, and save the polling interval ta m at this time.
  • the application in step 2 is replaced with another application and tested separately.
  • different states and t m corresponding to different services are obtained (as shown in Table 1).
  • the mapping rule may include: a rule corresponding to a status of the LowMAC layer and a polling time interval required by multiple different service applications.
  • the LowMAC layer needs to determine the current service application.
  • the service application may be the upper layer notifying the LowMAC layer, and then the LowMAC layer according to the mapping.
  • the rule can determine the polling interval corresponding to the current service application in the current state of the LowMAC layer.
  • the mapping rule includes : The rule of the LowMAC layer corresponds to the polling interval required by multiple different service applications, and the rule of the first polling interval is obtained by the polling interval required by multiple different service applications.
  • a rule corresponding to a polling interval required by a plurality of different service applications is determined by a currently determined state of the LowMAC layer and a state of the LowMAC layer, and a plurality of different service applications corresponding to the current state determined by the LowMAC layer are obtained.
  • the first polling interval is obtained by the polling time interval required by the corresponding multiple service applications in the current state determined by the LowMAC layer, and the polling time interval required by the multiple different service applications. , get the first polling interval.
  • the first polling interval is a polling interval determined by the LowMAC layer for the first time to enter its determined state. That is, the first polling time interval is obtained according to t ai , tbi , tci , tpi .
  • a minimum value may be selected from the polling time interval required by the plurality of different service applications as the first polling time interval, that is, if t ai , tbi , tci , . . . , t pl , If t cl is the smallest, the first polling interval is t cl .
  • an average value of the polling time intervals required by the plurality of different service applications may also be calculated, and the average value is used as the first polling time interval, that is, for t ai , tbi , tci , ... , t Pl is averaged, then the first polling interval is the average of ta l tbi , tci , ..., tpi.
  • the minimum number of polling times of the data packet in the current state of the LowMAC layer is recorded.
  • Each state in the L 0 wM AC layer is polled at a certain time interval to see if there is a message sent to the LowMAC layer.
  • the number of polling times indicates that in a certain state, how many times the polling is viewed will not be sent.
  • Message to the LowMAC layer For example, assume that I DLE Status, polling to view the message sent to the LowMAC layer 4 times, the minimum number of polling times is 4 minus 1 equals 3.
  • the LowMAC layer can save the minimum number of polling times in each state. For example, it can be stored in the minimum empty polling times table, whenever the LowMAC layer is from a state.
  • the current number of polling times will be compared with the value of the minimum polling number of the state in the minimum empty polling times table of the saved state, if the current empty polling If the number of times is less than the minimum number of polling states in the saved minimum number of polling times table, the minimum number of polling times in the state in the minimum empty polling number table is updated to the current number of empty polling times; Otherwise, there is no need to do an update.
  • the current minimum number of polling times in this state has not been saved in the polling frequency table for the first time, the current number of empty polling times in this state is saved in the minimum number of polling times. The position of the minimum number of empty polling times corresponding to this state in the table.
  • the mapping rule includes: a rule corresponding to a state of the LowMAC layer and a minimum number of polling times, and a minimum number of polling times and a polling interval
  • the algorithm corresponds to the rules.
  • the specific steps are as follows:
  • the minimum number of empty polling times corresponding to the current state of the LowMAC layer is obtained.
  • the minimum space polling frequency and the adjusting polling time interval algorithm may be: if the minimum number of empty polling times corresponding to the current state of the LowMAC layer is greater than 2, then enter once on the LowMAC layer.
  • the polling time interval of the state is increased by ⁇ t; if the minimum number of null polling times K corresponding to the current state of the LowMAC layer is less than or equal to 1, the polling is entered into the state once at the LowMAC layer. Subtract ⁇ t from the time interval. Or, for example, according to the mapping rule corresponding to the current state of the LowMAC layer, or according to the mapping rule corresponding to the current state of the LowMAC layer and the data packet currently received by the LowMAC layer in real time, the polling time that satisfies a certain system performance threshold is dynamically obtained. interval.
  • the mapping rule includes: a rule that the I FS state corresponds to the D I FS time. That is to say, according to the mapping rule, the D I FS time is obtained, and the D I FS time is the polling time interval in the current state of the LowMAC layer that satisfies a certain system performance threshold.
  • the mapping rule includes: I DLE state, CHBUSY state, backoff BACKOFF state, PR0CES SACK state, each state and current state
  • an algorithm corresponding to the current state of the LowMAC layer is obtained, and further calculated according to an algorithm corresponding to the current state of the LowMAC layer in the current state and the obtained indication information of the to-be-received data packet.
  • the parsing time of the data packet to be received, and the parsing time of the data packet to be received that is, the polling time interval in the current state of the LowMAC layer that satisfies a certain system performance threshold. For example, through the test and analysis results, it can be found that the time when the physical layer parses a data packet is related to the offset error of the data packet. Therefore, according to the frequency offset error of the data packet, the physical layer can be calculated by using the corresponding algorithm.
  • the time required for the packet, the LowMAC layer can estimate how long it takes for the physical layer to parse a packet. And send to the LowMAC layer, this packet is the data packet to be received for the LowMAC layer.
  • the algorithm is an algorithm for each of the IDLE state, the CHBUSY state, the backoff BACKOFF state, and the PROCESSACK state and the parsing time of the data packet to be received, thereby obtaining the polling of the current state of the LowMAC layer. time interval. For example, after the physical layer synchronizes to the header of a packet, the packet needs to be parsed before being sent to the LowMAC layer. After the physical layer synchronizes to the data packet, the indication information of the data packet may be obtained therefrom, and the indication information includes a frequency offset error of the data packet, and then the physical layer transmits the indication information to the LowMAC layer.
  • the LowMAC layer can use the following algorithm to calculate the polling interval by frequency offset error meter:
  • a packet length is an Orthogonal Frequency Division Multiplexing (OFDM, Orthogonal
  • the Frequency Division Multiplexing (symbol), after testing, can obtain the time 7 for the physical layer to parse an OFDM symbol; and the frequency offset error f has the following relationship:
  • microseconds /e (; r, 2; r] For example, if f of an OFDM symbol is equal to ⁇ /3, the corresponding 7 ⁇ is 21 microseconds, if f of an OFDM symbol is equal to 2 3, The corresponding 7> is 26 microseconds. If f of one OFDM symbol is equal to 4 3, the corresponding 7> is 28 microseconds.
  • the length of one data packet is M OFDM symbols, assuming that the receiving interval of one OFDM symbol is fixed to 40 microseconds, and the physical layer needs to complete the parsing of the data packet within the receiving interval, except for the last OFDM symbol,
  • the receiving time of the remaining 0FDM symbols is 40us, and the time of the last symbol is the parsing time of the OFDM symbol.
  • the time 7 of the physical layer parsing the M OFDM symbols has the following relationship with the frequency offset error f:
  • Microsecond, /e (; ⁇ ,2; ⁇ ) Using the above algorithm and the obtained frequency offset error of the data packet to be received, the time at which the physical layer parses a data packet can be obtained, thereby obtaining how long the LowMAC layer needs to be separated. Only The data packet to be received sent by the physical layer to the LowMAC layer is received, and the polling interval of the LowMAC layer in the current state is obtained.
  • the LowMAC layer can also adjust on the basis of the parsing time of the data packet to be received, and obtain the polling time interval in the current state of the LowMAC layer. If the current state of the LowMAC layer is a TXDATA state, the mapping rule includes:
  • the rule corresponding to the algorithm of the TXDATA state and the time when the packet is to be sent is to say, according to the mapping rule, the sending time of the to-be-sent data packet is calculated, and the sending time of the to-be-sent data packet is the polling time interval in the current state of the LowMAC layer.
  • the LowMAC layer can know the length of the data packet to be transmitted in the TXDATA state.
  • the polling interval of the LowMAC layer in the TXDATA state is the transmission time of the to-be-sent packet of the LowMAC layer in the TXDATA state, and the test and analysis result can be found that the LowMAC layer is in the TXDATA state, the packet transmission time and the
  • the length of the data packet has a certain correspondence.
  • the relationship between the two is a function.
  • the length of the data packet to be sent is the input of the function
  • the sending time of the data packet to be sent is the output of the function.
  • An algorithm for sending a packet so that the sending time of the data packet to be sent in the current state of the LowMAC layer is obtained according to the length of the data packet to be transmitted and the sending time of the data packet to be sent, and the LowMAC is obtained.
  • the polling interval in the current state of the layer is obtained according to the length of the data packet to be transmitted and the sending time of the data packet to be sent, and the LowMAC is obtained.
  • the mapping rule includes: a rule corresponding to an algorithm of a WA I TACK state and a packet header parsing time of a to-be-received packet in a WA I TACK state. That is to say, according to the algorithm corresponding to the current state of the LowMAC layer, the time required for the physical layer to parse the header of the packet to be received is calculated, and then used as the polling interval in the current state of the LowMAC layer.
  • the polling interval of the LowMAC layer is the parsing time of the physical layer to receive the packet header, that is, the time required for the physical layer to synchronize to and parse the header of a packet.
  • the time required for the physical layer to parse a packet header is related to the length of the physical layer header and the processing complexity. Since the physical layer header length of each packet is the same, it is mainly related to the processing complexity. Due to the consideration of versatility, the lowest complexity physical layer header resolution time can be considered as the polling interval in the current state of the LowMAC layer.
  • 4 is an equivalent average power consumption of a chip after reducing the power consumption of the LowMAC layer according to an embodiment of the present invention.
  • the unit of equivalent average power consumption in FIG. 4 represents mW, and dm has the same meaning as the above OFDM. As the data packet length changes, it can be seen that as the packet length increases, the equivalent average power consumption of the chip is significantly reduced.
  • an embodiment of the present invention further provides an apparatus for reducing power consumption of a LowMAC layer, where each function module can perform the foregoing corresponding steps.
  • each function module can perform the foregoing corresponding steps.
  • the device 50 includes: a determination status module 5 1 : for basic access function media intervention control, the LowMAC layer determines its current state;
  • Determining a polling interval module 52 determining, according to a mapping rule, a polling time interval in a current state of the LowMAC layer; the mapping rule is a rule in which a state of a LowMAC layer is mapped to a polling time interval;
  • View module 5 3 View the packets sent to the LowMAC layer according to the polling interval in the current state of the LowMAC layer.
  • the mapping rule includes: a rule corresponding to a status of the LowMAC layer and a polling time interval required by multiple different service applications;
  • the apparatus further includes: a determining service application module 54 configured to determine a current service application;
  • the determining the polling interval module 52 is specifically configured to: determine, according to the mapping rule, a polling time interval corresponding to a current service application in a current state of the LowMAC layer.
  • the determining the polling interval module 52 is specifically configured to: if the LowMAC layer is currently entering its determined state for the first time, the mapping rule includes a state of the LowMAC layer and multiple different service applications. a rule corresponding to a required polling interval, and a rule for obtaining a first polling interval by a polling interval required by a plurality of different service applications;
  • the device 50 may further include: a recording module 55, configured to record a minimum number of polling times of the data packet in the current state of the LowMAC layer.
  • the determining the polling interval module 52 is specifically configured to: if the LowMAC layer is currently in a state that is not first entered, the mapping rule includes a state of the LowMAC layer and a minimum null polling The rule corresponding to the number of times, and the rule corresponding to the polling interval algorithm for the number of polling times of the minimum space;
  • the polling time interval of the current state of the LowMAC layer is adjusted, and the polling interval in the current state of the LowMAC layer is obtained.
  • the status of the LowMAC layer includes at least one of the following: an idle I DLE state, a channel busy CHBUSY state, a frame interval I FS state, a back BACKOFF state, a transmit data TXDATA state, a wait acknowledgement frame WA I TACK state, and a process acknowledgement.
  • PROCES SACK status includes at least one of the following: an idle I DLE state, a channel busy CHBUSY state, a frame interval I FS state, a back BACKOFF state, a transmit data TXDATA state, a wait acknowledgement frame WA I TACK state, and a process acknowledgement.
  • the determining the polling interval module 52 is specifically configured to: if the current state of the LowMAC layer is an IFS state, the mapping rule includes: a rule that the IFS state corresponds to a DI FS time; The rule is to use the DI FS time as a polling interval in the current state of the LowMAC layer.
  • the apparatus further includes: a receiving module 56: configured to receive, by the low MAC layer, indication information of a to-be-received data packet in the current state in a current state;
  • the determining polling interval module 52 is specifically configured to:
  • the mapping rule includes: an algorithm of a current state of the LowMAC layer and a parsing time of a packet to be received in a current state of the LowMAC layer.
  • the algorithm for parsing the packet parsing time in the current state of the LowMAC layer is the root Obtaining, according to the indication information in the data packet to be received in the current state of the LowMAC layer, an algorithm for parsing the data packet to be received in the current state of the LowMAC layer; receiving the data packet in the current state corresponding to the current state of the LowMAC layer The algorithm for parsing the time, the indication information of the data packet to be received in the current state acquired by the receiving module 56 in the current state, and the calculated parsing time of the data packet to be received in the current state as the current state of the LowMAC layer The polling interval below.
  • the indication information of the data packet to be received in the current state of the LowMAC layer includes a frequency offset error of the data packet to be received in the current state of the LowMAC layer.
  • the determining the polling interval module 52 is specifically configured to: if the current state of the LowMAC layer is a TXDATA state, the mapping rule includes: a current state of the LowMAC layer and a data to be sent in a current state of the LowMAC layer The algorithm corresponding to the algorithm of the packet transmission time;
  • the determining the polling interval module 52 is specifically configured to: if the current state of the LowMAC layer is a WA I TACK state, the mapping rule includes: a current state of the LowMAC layer and a current state of the LowMAC layer The algorithm corresponding to the algorithm for the header resolution time of the data packet to be received;
  • the apparatus for reducing the power consumption of the LowMAC layer determines the current state of the LowMAC layer according to the LowMAC layer, and determines the polling of the current state of the LowMAC layer according to the rule that the state maps to the polling time interval. Time interval, and according to the polling interval, view the data packets received by the LowMAC layer.
  • the embodiment of the present invention further provides a device 90 for reducing power consumption of a LowMAC layer.
  • the device 90 includes: a memory 91 and a processor 92.
  • the memory 91 is used to save the mapping rule; the processor 92 is configured to determine the current state of the current state; and the polling time interval in the current state of the LowMAC layer is determined according to the mapping rule, where the mapping rule is LowMAC.
  • the state of the layer is mapped to the rule of the polling interval; the packet sent to the LowMAC layer is viewed according to the polling interval in the current state of the LowMAC layer.
  • the mapping rule includes: a rule corresponding to a polling time interval required by a plurality of different service applications; and determining, according to the mapping rule, a polling interval in a current state of the LowMAC layer
  • the processor 92 is further configured to determine a current service application.
  • the determining, according to the mapping rule, the polling time interval in the current state of the LowMAC layer includes: determining, according to the mapping rule, the current current LowMAC layer The polling interval corresponding to the current business application in the state.
  • the mapping rule includes: a rule in which the state of the LowMAC layer corresponds to a polling time interval required by a plurality of different service applications, and a plurality of different service applications. The required polling interval is obtained by the first polling interval.
  • the determining the polling interval in the current state of the LowMAC layer according to the mapping rule includes: determining the current state of the LowMAC layer according to the mapping rule. The corresponding first polling interval.
  • the memory 9 1 is further configured to record a minimum number of polling times of the data packet in the current state of the LowMAC layer.
  • the mapping rule includes: a rule corresponding to a minimum number of polling times of a state of the LowMAC layer, and a minimum number of polling times and a polling time. a rule corresponding to the interval algorithm; determining, according to the mapping rule, a polling time interval in a current state of the LowMAC layer, comprising: determining the LowMAC according to a rule corresponding to a state of the LowMAC layer and a minimum number of empty polling times The minimum number of polling times corresponding to the current state of the layer; determining the polling time corresponding to the current state of the LowMAC layer according to the corresponding rule of the minimum number of polling times in the mapping rule and the adjusting polling interval algorithm Interval algorithm; according to the adjustment polling interval algorithm corresponding to the current state of the LowMAC layer, entering the state once at the LowMAC layer The polling interval is adjusted based on the polling interval to obtain the polling interval in the current state of the LowMAC layer.
  • the state of the LowMAC layer includes at least one of the following: an idle I DLE state, a channel busy CHBUSY state, a frame interval I FS state, a backoff BACKOFF state, a transmit data TXDATA state, a wait acknowledgement frame WA I TACK state, a process acknowledgement PROCES SACK state. .
  • the mapping rule includes: a rule corresponding to the DI FS time of the IFS state; and determining, according to the mapping rule, a polling time interval in a current state of the LowMAC layer, including: The mapping rule uses the DI FS time as a polling time interval in a current state of the LowMAC layer.
  • the device 90 may further include: a receiver 9 3 , the receiver
  • the third MAC address is used by the LowMAC layer to receive the indication information of the data packet to be received in the current state of the LowMAC layer in the current state, and the data packet to be received received by the LowMAC layer in the current state; the data to be received in the current state of the LowMAC layer.
  • the indication information of the packet includes a frequency offset error of the data packet to be received in the current state of the LowMAC layer.
  • the BACKOFF state or the PROCES SACK state the mapping rule includes: a rule corresponding to an algorithm of a low MAC layer current state and a packet parsing time to be received in a current state of the LowMAC layer; where the LowMAC layer is to receive data in a current state
  • the packet parsing time algorithm is an algorithm for obtaining a parsing time of the data packet to be received in the current state of the LowMAC layer according to the indication information in the data packet to be received in the current state of the LowMAC layer; and determining the LowMAC layer according to the mapping rule.
  • the polling time interval in the current state includes: an algorithm for the packet parsing time to be received in the current state of the LowMAC layer corresponding to the current state of the LowMAC layer, and the LowMAC obtained by the receiver 93 in the current state.
  • the indication information of the data packet to be received in the current state of the layer, and the calculated data packet parsing time in the current state of the LowMAC layer is used as the polling time interval in the current state of the LowMAC layer.
  • the device 90 may further include a transmitter 94, where the transmitter 94 is configured to send a data packet to be sent in a current state.
  • the mapping rule includes: a rule corresponding to an algorithm of a current state of the LowMAC layer and a sending time of a data packet to be sent in a current state of the LowMAC layer;
  • the polling interval in the current state of the LowMAC layer includes: according to the current state of the LowMAC layer
  • the algorithm for sending a packet to be sent in the current state of the LowMAC layer, and the calculated transmission time of the to-be-sent packet in the current state of the LowMAC layer is used as the polling interval in the current state of the LowMAC layer.
  • the mapping rule includes: a rule corresponding to an algorithm for describing a current state of the LowMAC layer and a packet header parsing time of the data packet to be received in the current state of the LowMAC layer; Determining the polling time interval in the current state of the LowMAC layer according to the mapping rule includes: calculating an algorithm according to an algorithm for determining a packet header time of a data packet to be received in a current state of the LowMAC layer corresponding to a current state of the LowMAC layer The header resolution time of the data packet to be received in the current state of the L ow MAC layer is used as the polling time interval in the current state of the LowMAC layer.
  • Another apparatus for reducing power consumption of a LowMAC layer determines a current state according to a LowMAC layer, and determines a round of the current state of the LowMAC layer according to a rule that the state maps to a polling time interval. Interval time interval, and according to the polling interval, view the data packets received by the LowMAC layer. In this way, under the premise of ensuring system performance, the LowMAC layer can be adjusted to check the polling interval of the received data packets, thereby reducing the power consumption of the LowMAC layer.
  • the embodiment of the present invention further provides a terminal.
  • the terminal may be a notebook computer, a tablet computer, or a mobile phone.
  • the terminal includes any of the devices provided in the above embodiments for reducing the power consumption of the LowMAC layer.
  • the disclosed systems, apparatus, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be in place. In one place, or distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit 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, etc.) to perform part of the steps of the method of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and the like, and the program code can be stored. Medium.

Landscapes

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

Abstract

本发明公开了一种降低LowMAC层功耗的方法、装置和终端,涉及通讯领域,通过调整LowMAC层查看是否有发送给LowMAC层的数据包的轮询时间间隔,降低了LowMAC层功耗。所述方法包括:LowMAC层确定当前其自身的状态;根据映射规则确定所述LowMAC层当前状态下的轮询时间间隔;所述映射规则为LowMAC层的状态映射到轮询时间间隔的规则;按照所述LowMAC层当前状态下的轮询时间间隔,查看发送给LowMAC层的数据包。

Description

一种降低 LowMAC层功耗的方法、 装置和终端 技术领域
本发明涉及通讯领域, 尤其涉及一种降低 LowMAC层功耗的方法、 装置和终端。 背景技术
现有系统越来越多的采用多核芯片来实现各种应用, 因此布局在 不同核的操作之间需要通过直接存储器访问 ( DMA , D i rec t Memory Acce s s ) 、 中断等操作来实现核间通信。
在用多核芯片实现无线通信协议栈时, 最常见的架构是将不同的 协议层分在不同的核内实现, 如图 1所示, 其中 LowMAC层是具有最基 本接入功能的媒体访问控制层( MAC , Med i a Acce s s Con t ro l ) , H i ghMAC 层是具有完整功能的 MAC层。 因为不同的协议层分在不同的核内实现, 导致 LowMAC层需要以一定轮询时间间隔查看是否有发送给 LowMAC层 的数据包, 这些数据包可以是事件消息, 命令消息, 状态消息等。
现有技术中, 一般将 LowMAC层查看是否有发送给 LowMAC层的数 据包的轮询时间间隔设置为一个较短的固定值, 这样可以保证 LowMAC 层可以更及时的处理数据包, 但同时也会导致 LowMAC层的功耗较大。
发明内容
本发明的提供了一种降低 LowMAC 层功耗的方法、 装置和终端, LowMAC层通过调整轮询时间间隔, 可以降低 LowMAC层的功耗。
为达到上述目的, 本发明的实施例采用如下技术方案:
第一方面, 提供了一种降低 LowMAC层功耗的方法, 应用于芯片, 所述方法包括: 基本接入功能媒体介入控制 LowMAC层确定当前其自身的状态; 根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔; 所 述映射规则为 LowMAC层的状态映射到轮询时间间隔的规则; 按照所述 LowMAC 层当前状态下的轮询时间间隔, 查看发送给 LowMAC层的数据包。 在第一种可能实现的方式中, 根据第一方面, 所述映射规则包括: LowMAC 层的状态与多个不同业务应用所需要的轮询时间间隔相对应的 规则; 在所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间 隔之前, 所述方法还包括: 确定当前的业务应用;
所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 根据所述映射规则, 确定所述 LowMAC层当前状态下与当前的业 务应用相对应的轮询时间间隔。
在第二种可能实现的方式中, 根据第一种可能实现的方式, 若所 述 LowMAC 层当前为首次进入其确定的状态, 则所述映射规则包 括: LowMAC 层的状态与多个不同业务应用所需要的轮询时间间隔相对 应的规则、 以及由多个不同业务应用所需要的轮询时间间隔得到第一 轮询时间间隔的规则; 所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 根据所述映射规则, 确定所述 LowMAC层当前状态所对应的第一 轮询时间间隔。
在第三种可能实现的方式中, 根据第一方面或前两种任一可能实 现的方式, 所述方法还包括: 记录所述 LowMAC层当前状态下查看到数 据包的最小空等轮询次数。 在第四种可能实现的方式中, 根据第一种可能实现的方式, 若所 述 LowMAC 层当前为非首次进入其确定的状态, 所述映射规则包括: LowMAC 层的状态与最小空等轮询次数相对应的规则、 以及最小空等轮 询次数与调节轮询时间间隔算法相对应的规则;
所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括:
根据所述 LowMAC层的状态与最小空等轮询次数相对应的规则, 确 定所述 L 0 wM A C层当前状态所对应的最小空等轮询次数; 根据所述映射规则中最小空等轮询次数与调节轮询时间间隔算法 的相对应的规则, 确定 LowMAC层当前状态所对应的调节轮询时间间隔 算法;
按照 LowMAC层当前状态所对应的调节轮询时间间隔算法, 在所述 LowMAC 层上一次进入该状态的轮询时间间隔的基础上进行调节, 得到 LowMAC层当前状态下的轮询时间间隔。 在第五种可能实现的方式中, 根据第一方面, 所述 LowMAC层的状 态包括以下至少一种: 空闲 I DLE状态、 信道忙 CHBUSY状态、 帧间隔 I FS 状态、 退避 BACKOFF 状态、 发送数据 TXDATA 状态、 等待确认帧 WA I TACK状态、 处理确认 PROCES SACK状态。 在第六种可能实现的方式中, 根据第五种可能实现的方式, 若所 述 LowMAC层当前状态为 I FS状态, 则所述映射规则包括: I FS状态与 D I FS时间相对应的规则; 所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 根据所述映射规则, 将所述 D I FS 时间作为所述 LowMAC层当前 状态下的轮询时间间隔。
在第七种可能实现的方式中, 根据第五种可能实现的方式, 若 LowMAC层当前状态为 I DLE状态、 CHBUSY状态、 退避 BACKOFF状态或 PROCE S SACK 状态, 则所述映射规则包括: LowMAC 层当前状态与所述 LowMAC 层当前状态下待接收数据包解析时间的算法相对应的规则; 其 中所述 LowMAC层当前状态下待接收数据包解析时间的算法为根据所述 LowMAC层当前状态下待接收数据包中的指示信息得到所述 LowMAC层当 前状态下待接收数据包解析时间的算法;
所述方法还包括:
所述 LowMAC层在当前状态下接收所述 LowMAC层当前状态下待接 收数据包的指示信息;
所述根据映射规则, 确定所述 LowMAC层当前状态下的轮询时间间 隔包括:
按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下待接 收数据包解析时间的算法, 由在当前状态下获取的所述 LowMAC层当前 状态下待接收数据包的指示信息, 计算得到的所述 L owMA C层当前状态 下待接收数据包解析时间作为 LowMAC层当前状态下的轮询时间间隔。 在第八种可能实现的方式中, 根据第七种可能实现的方式, 所述 LowMAC层当前状态下待接收数据包的指示信息包括所述 LowMAC层当前 状态下待接收数据包的频偏误差。 在第九种可能实现的方式中, 根据第五种可能实现的方式, 若所 述 LowMAC层当前状态为 TXDATA状态,则所述映射规则包括: 述 LowMAC 层当前状态与述 LowMAC层当前状态下待发送数据包发送时间的算法相 对应的规则; 所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下待 发送数据包发送时间的算法, 计算得到的所述 LowMAC层当前状态下待 发送数据包的发送时间作为所述 LowMAC 层当前状态下的轮询时间间 隔。 在第十种可能实现的方式中, 根据第五种可能实现的方式, 若所 述 LowMAC 层当前状态为 WA I TACK 状态, 则所述映射规则包括: 述 LowMAC层当前状态与所述 LowMAC层当前状态下待接收数据包的包头解 析时间的算法相对应的规则; 所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 按照所述 LowMAC层当前状态所对应的所述 LowMAC层当前状态 下待接收数据包的包头解析时间的算法, 计算得到的所述 LowMAC层当 前状态下待接收数据包的包头解析时间作为所述 LowMAC层当前状态下 的轮询时间间隔。
第二方面, 提供了一种降低 LowMAC层功耗的装置, 应用于芯片, 所述装置包括: 确定状态模块: 用于基本接入功能媒体介入控制 LowMAC层确定当 前其自身的状态;
确定轮询时间间隔模块: 用于根据映射规则确定所述 LowMAC层当 前状态下的轮询时间间隔; 所述映射规则为 LowMAC层的状态映射到轮 询时间间隔的规则; 查看模块: 按照所述 LowMAC层当前状态下的轮询时间间隔, 查看 发送给 LowMAC层的数据包。 在第一种可能实现的方式中, 根据第二方面, 所述映射规则包括: LowMAC 层的状态与多个不同业务应用所需要的轮询时间间隔相对应的 规则; 所述装置还包括确定业务应用模块, 用于确定当前的业务应用; 所述确定轮询时间间隔模块具体用于: 根据所述映射规则, 确定 所述 LowMAC层当前状态下与当前的业务应用相对应的轮询时间间隔。
在第二种可能实现的方式中, 根据第一种可能实现的方式, 所述 确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前为首次进入其确定的状态, 所述映射规则包 括 LowMAC层的状态与多个不同业务应用所需要的轮询时间间隔相对应 的规则、 以及由多个不同业务应用所需要的轮询时间间隔得到第一轮 询时间间隔的规则; 则根据所述映射规则, 确定所述 LowMAC层当前状态所对应的第一 轮询时间间隔。
在第三种可能实现的方式中, 根据第二方面或前两种任一可能实 现的方式, 所述装置还包括:
记录模块: 用于记录所述 LowMAC层当前状态下查看到数据包的最 小空等轮询次数。 在第四种可能实现的方式中, 根据第三种可能实现的方式, 所述 确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前为非首次进入其确定的状态, 所述映射规则 包括 LowMAC层的状态与最小空等轮询次数相对应的规则、 以及最小空 等轮询次数与调节轮询时间间隔算法相对应的规则;
根据所述 LowMAC层的状态与最小空等轮询次数相对应的规则, 确 定所述 L 0 wM A C层当前状态所对应的最小空等轮询次数; 根据所述映射规则中最小空等轮询次数与调节轮询时间间隔算法 的相对应的规则, 确定 LowMAC层当前状态所对应的调节轮询时间间隔 算法;
按照 LowMAC层当前状态所对应的调节轮询时间间隔算法, 在所述 LowMAC 层上一次进入该状态的轮询时间间隔的基础上进行调节, 得到 LowMAC层当前状态下的轮询时间间隔。 在第五种可能实现的方式中, 根据第二方面, 所述 LowMAC层的状 态包括以下至少一种: 空闲 I DLE状态、 信道忙 CHBUSY状态、 帧间隔 I FS 状态、 退避 BACKOFF 状态、 发送数据 TXDATA 状态、 等待确认帧 WA I TACK状态、 处理确认 PROCESSACK状态。 在第六种可能实现的方式中, 根据第五种可能实现的方式, 所述 确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前状态为 I FS状态,则所述映射规则包括: I FS 状态与 D I FS时间相对应的规则;
根据所述映射规则, 将所述 D I FS 时间作为所述 LowMAC层当前状 态下的轮询时间间隔。
在第七种可能实现的方式中, 根据第五种可能实现的方式, 所述 装置还包括接收模块: 所述 LowMAC层在当前状态下接收所述当前状态 下待接收数据包的指示信息和 LowMAC层接收在当前状态下待接收数据 包; 所述确定轮询时间间隔模块具体用于:
若 LowMAC层当前状态为 I DLE状态、 CHBUSY状态、 退避 BACKOFF 状态或 PROCESSACK状态, 则所述映射规则包括: LowMAC层当前状态与 所述 LowMAC 层当前状态下待接收数据包解析时间的算法相对应的规 则; 其中所述 LowMAC层当前状态下待接收数据包解析时间的算法为根 据所述 LowMAC 层当前状态下待接收数据包中的指示信息得到所述 LowMAC层当前状态下待接收数据包解析时间的算法;
按照 LowMAC层当前状态所对应的所述当前状态下待接收数据包解 析时间的算法, 由所述接收模块在当前状态下获取的所述当前状态下 待接收数据包的指示信息, 计算得到的所述当前状态下待接收数据包 解析时间作为 LowMAC层当前状态下的轮询时间间隔。 在第八种可能实现的方式中, 根据第七种可能实现的方式, 所述 LowMAC层当前状态下待接收数据包的指示信息包括所述 LowMAC层当前 状态下待接收数据包的频偏误差。
在第九种可能实现的方式中, 根据第五种可能实现的方式, 所述 装置还包括: 发送模块, 所述发送模块用于所述 LowMAC层发送在当前 状态下待发送数据包; 所述确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前状态为 TXDATA状态, 则所述映射规则包括: 述 LowMAC层当前状态与述 LowMAC层当前状态下待发送数据包发送时 间的算法相对应的规则;
按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下待发 送数据包发送时间的算法, 计算得到的所述 LowMAC层当前状态下待发 送数据包的发送时间作为所述 LowMAC层当前状态下的轮询时间间隔。 在第十种可能实现的方式中, 根据第五种可能实现的方式, 所述 确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前状态为 WA I TACK状态 ,则所述映射规则包括: 述 LowMAC层当前状态与所述 LowMAC层当前状态下待接收数据包的包 头解析时间的算法相对应的规则;
按照所述 LowMAC层当前状态所对应的所述 LowMAC层当前状态下 待接收数据包的包头解析时间的算法, 计算得到的所述 LowMAC层当前 状态下待接收数据包的包头解析时间作为所述 LowMAC层当前状态下的 轮询时间间隔。
第三方面, 提供了一种终端, 包括上述第二方面及其所有可能实 现的方式中的任意一种提供的降低 L 0 wM A C层功耗的装置。
本发明的提供的一种降低 LowMAC层功耗的方法、 装置和终端, 根 据 L owM A C层确定当前其自身的状态和所述状态映射到轮询时间间隔的 规则确定所述 LowMAC层当前状态下的轮询时间间隔, 并按照所述轮询 时间间隔, 查看 LowMAC层接收的数据包。 这样就可以在保证系统性能 的前提下, 调整 LowMAC层查看其接收的数据包的轮询时间间隔, 降低 LowMAC层的功耗。
附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他 的附图。
图 1 为现有技术提供的一种无线通信协议栈应用于多核芯片的架 构图;
图 2 为本发明实施例提供的一种降低 LowMAC 层功耗的方法中 LowMAC层的多个状态之间关系图;
图 3 为本发明实施例提供的一种降低 LowMAC 层功耗的方法示意 图;
图 4为采用本发明实施例提供的一种降低 LowMAC层功耗的方法后 芯片等效平均功耗随数据包长的变化曲线;
图 5 为本发明实施例提供的一种降低 LowMAC 层功耗的装置示意 图;
图 6为本发明实施例提供的另一种降低 LowMAC层功耗的装置示意 图;
图 7为本发明实施例提供的另一种降低 LowMAC层功耗的装置示意 图;
图 8为本发明实施例提供的另一种降低 LowMAC层功耗的装置示意 图;
图 9为本发明实施例提供的另一种降低 LowMAC层功耗的装置示意 图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方 案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部 分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普 通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
在本发明的实施例中, L 0 wM A C层的功能可以由一个芯片单独实现, 也可以由一个多核芯片中的一个核来实现。 其他层的功能, 如物理层, H i ghMAC层的功能, 可以由另一个芯片单独实现 (与实现 LowMAC层的 功能的芯片不是同一芯片 ) , 当然也可以与实现 LowMAC层的功能的芯 片是同一多核芯片的不同核实现。
并且, 需要说明的是, 上述的芯片或多核芯片, 主要应用于终端。 下面结合附图对本发明实施例的一种降低 LowMAC层功耗的方法进 行详细描述。 本发明中的所有实施例中提到的数据包, 若没有特别指出, 则表 示 LowMAC层接收或者发送的任意数据包, 所述任意数据包中可以是包 含有效数据的数据包, 也可以包含指示信息的数据包。
对于 LowMAC层和物理层, 均包括接收机和发送机, 也就是说, 假 设 A 设备和 B 设备进行数据交互, A 设备和 B 设备均包括物理层和 LowMAC层。
本发明实施例提供的一种降低 LowMAC层功耗的方法, 所述方法应 用于芯片, 如图 3所示, 包括以下几个步骤:
S 1 0 LowMAC层确定当前其自身的状态。 所述 LowMAC层的状态包括以下至少一种: 空闲 I DLE状态、 信道 忙 CHBUSY状态、帧间隔 I FS状态、退避 BACKOFF状态、发送数据 TXDATA 状态、 等待确认 WA I TACK状态、 处理确认 PR0CESSACK状态。 具体的, 所述 LowMAC层的状态之间的关系如图 2所示。
示例的,下面对上述 LowMAC层的状态进行详细描述。为描述方便, 假设 A设备的 LowMAC层有一个希望发送给 B设备 LowMAC层的数据包。
A设备的 LowMAC层在 I DLE状态收到上层发送的待发送的数据包
(数据包 1 ) 的命令, 此时检测到信道空闲则会立刻切换到 I FS状态, 此时检测到信道忙则会切换到 CHBUSY状态。
如果 A设备的 LowMAC层在 CHBUSY状态, 此时检测到信道空闲则 会切换到 I DLE状态, A设备的 LowMAC层在 CHBUSY状态可能会接收数 据包并且进行处理 (也有可能已空闲但尚未被检测到信道空闲, 因此 还未切换到 I DLE状态, 但也没有做其他处理) , 所述处理包括:
A设备的 LowMAC层对接收的数据包进行解析, 如果解析结果表明 所述 A设备的 LowMAC层接收到的数据包是发送给 A设备的 LowMAC层 自身的数据包, 则会立刻回复确认接收 ACK , 如果不是发送给 A设备的 LowMAC层自身的数据包, 则立刻丟弃所述接收的数据包。
如果 A设备的 LowMAC层在 I FS状态, 则启动一个 I FS定时器(该 定时器超时的时间由标准定义) , 当 A设备的 LowMAC层在 I F S状态下 检测到信道忙则会立即取消该定时器切换到 CHBUSY , 否则将会等待至 I FS定时器超时,然后 A设备的 LowMAC层切换到 BACKOFF状态或 TXDATA 状态。
如果 A设备的 LowMAC层在 I DLE状态首次发现待发送的所述数据 包 1 , 则 A设备的 LowMAC层在等待 I FS超时时间后进入 TXDATA状态; 如果 A设备的 LowMAC层在 I DLE状态首次发现所述数据包 1后, 因信道忙切换到了 CHBUSY后, 又经过 I DLE状态才进入的 I FS状态, 贝' J A设备的 LowMAC层在等待 I FS超时时间后进入 BACKOFF状态。
若 A设备的 LowMAC层在 BACKOFF状态, 则启动一个 BACKOFF定时 器 (该定时器超时时间由标准定义的退避算法计算得到) , A 设备的 LowMAC 层在该状态检测到信道忙则会立即取消该定时器切换到 CHBUSY , 否则等待至该 BACKOFF定时器超时后, A设备的 LowMAC层进 入 TXDATA状态。
若 A设备的 LowMAC层在 TXDATA; 态, A设备的 LowMAC层向 A设 备的物理层传输所述数据包 1 ,然后 A设备的物理层对所述数据包 1进 行物理层相关处理 (示例的, 所述物理层相关处理可以是物理层封装 等操作 )得到数据包 2 , A设备的物理层将数据包 2在无线信道上发送 给 B 设备的物理层, 发送完成之后 A 设备的 LowMAC 层立刻切换到 WA I TACK状态。
A设备的 LowMAC层进入 WA I TACK状态后, 将启动一个等待确认帧 的定时器 (该定时器的超时时间由标准定义) , 即 A设备的 LowMAC层 等待 B设备的 LowMAC层发送给 LowMAC层的数据包 1是否被 B设备的 LowMAC层正确接收的反馈消息。 B设备的物理层接收所述数据包 2之后,对数据包 2进行物理层相 关逆处理, 示例的, 所述物理层相关你处理包括同步和解析数据包等 操作, 然后向 B设备的 LowMAC层传输所述处理的结果。
B设备的 LowMAC层接收到 B设备的物理层传输过来的所述处理结 果之后, 则希望向 A设备的 LowMAC层发送对数据包 1确认信息, 即如 果所述处理结果是正确的数据包 1 , 则 B的设备的 LowMAC层需要向 A 设备的 LowMAC层反馈数据包 1 已被正确接收, 因此, B设备的 LowMAC 层先将包括所述数据包 1确认信息的数据包 3传输给 B设备的物理层。
B设备的物理层接收到数据包 3后,对所述数据包 3进行物理层相 关处理得到数据包 4,然后 B设备的物理层通过无线信道将数据包 4发 送给 A设备的物理层。 A设备的物理层接收到所述数据包 4后,开始对其进行物理层逆处 理,即先找到数据包 3的包头,得到数据包 3相关指示信息(rxstart ), 然后 A设备的物理层向 A设备的 LowMAC层传输 rxstart, rxstart用 于指示 A设备的 LowMAC层可以准备开始接收数据包 3的解析结果; 然 后, A设备的物理层对数据包 3进行解析得到数据包 4。 如果 A 设备的 LowMAC 层的接收到 rxstart, 则立刻取消其在
WAITACK状态的定时器, 并切换到 PR0CESSACK状态, 然后开始接收 A 设备的物理层向他传输的数据包 4。
如果 A设备的 LowMAC层没有收到 rxstart, 则将一直等待直至 A 设备的 LowMAC层在 WAITACK状态的定时器超时, 然后进行数据包 4的 接收失败处理, 即 A设备的 LowMAC层认定其对数据包 4接收失败, 同 时导致 A设备的 LowMAC层无法收到 B设备的 LowMAC层对数据包 1的 接收反馈结果, 因此 A设备的 LowMAC层切换到 IDLE状态, 准备再次 发送数据包 1, 直到数据包 1发送给 B设备的 LowMAC层成功并接收到 B设备的 LowMAC层向其反馈的指示数据包 1 已被其成功接收消息, 或 者, A设备的 LowMAC层对数据包 1的重传已超过标准定义的数据包重 传次数。
当 A设备的物理层对数据包 3进行解析得到数据包 4后, A设备的 物理层向 A设备的 LowMAC层发送 rxend, 指示数据包 3是否被 A设备 的物理层成功接收。 如果据包 3 已被 A设备的物理层成功接收, 则 A 设备的物理层向 A设备的 LowMAC层传输数据包 4。 如果 A设备的 LowMAC层接收到 rxend, 且 rxend指示数据包 4 已 被 A设备的物理层成功接收, 则继续等待接收数据包 4, 如果数据包 4 指示 B设备的 LowMAC层已成功接收数据包 1, 则表示数据包 1 已发送 成功, A设备的 LowMAC层进入 IDLE 态。 如果 rxend指示数据包 4没有被 A设备的物理层成功接收, 则 A 设备的 LowMAC层认为数据包 1未被成功接收, 将准备再次发送数据包 1 , 直到数据包 1 发送给 B设备的 LowMAC 层成功并接收到 B设备的 LowMAC层向其反馈的指示数据包 1 已被其成功接收消息, 或者, A设 备的 LowMAC层对数据包 1的重传已超过标准定义的数据包重传次数。
S 1 02、 根据映射规则确定所述 LowMAC层当前状态下的轮询时间间 隔。 所述映射规则为 LowMAC层的状态映射到轮询时间间隔的规则, 即 指示如何通过 LowMAC层的的状态得到其对应其轮询时间间隔。具体的 , 所述映射规则可以是表格, 也可以是算法。
S 1 03、 按照所述 LowMAC层当前状态下的轮询时间间隔, 查看发送 给 LowMAC层的数据包。 本发明的实施例提供一种降低 LowMAC层功耗的方法,根据 LowMAC 层确定当前其自身的状态, 并根据所述状态映射到轮询时间间隔的规 则确定所述 LowMAC层当前状态下的轮询时间间隔, 按照所述轮询时间 间隔, 查看 LowMAC层接收的数据包。 这样就可以在保证系统性能的前 提下, 调整 LowMAC层查看其接收的数据包的轮询时间间隔, 从而降低 了 LowMAC层查看数据包的频率, 达到降低 LowMAC层的功耗的目的。
进一步的, 在采用上述方法降低 LowMAC层功耗的基础上, LowMAC 层还可以进一步降低其功耗, 示例的, 假设 LowMAC层在某状态下的轮 询时间间隔为 1 ms,则其中可能有 0. l ms用于查询数据包,剩余的 0. 9ms 等待进入下一次轮询, 在这 0. 9m s的时间内, 实现 LowMAC层功能的芯 片可以不做其他操作, 对于一些特定芯片, 就可以进一步降低 LowMAC 层的功耗, 当然,对于其他芯片, 不做其他操作不能进一步降低 LowMAC 层的功耗, 则可以采用休眠的方式, 或者, 调整芯片频率的方式, 进 一步降低 LowMAC层的功耗。
本发明实施例提供了另一种降低 LowMAC层功耗的方法, 所述方法 的步骤与上述实施例中的步骤相同, 这里不再贅述, 这里对 S 1 02根据 映射规则确定所述 LowMAC 层当前状态下的轮询时间间隔进行详细描 述。
示例的, 可以通过离线性能测试的方式得到 LowMAC层的每种不同 状态以及该状态下对应的多种不同的业务应用下的满足一定的系统性 能阈值的最大轮询时间间隔, 并将之在 LowMAC层保存, 所述业务应用 包括语音应用、 视频应用或者 QQ应用。
首先, 将 LowMAC层处理器划分为 IDLE状态、 CHBUSY状态、 IFS 状态、 BACKOFF状态、 TXDATA状态、 ¥AITACK状态、 PROCESSACK状态, 表示为 (Sl S2, Sn) , 其次, 确定每个状态的最大持续时间 ( , d2, dn) , 示例的, 每个状态的最大持续时间可以根据表 1的方式设置。 然后,通过离线性能测试的方式得到各个不同状态下的业务应用 a (示例的, a可以表示语音业务) 的最大轮询时间间隔 tam: 1.先将相应状态轮询时间间隔分别设置为 tm=A t (m=l, 2, ..., η,
Δ t表示时间调整单元)
2.运行业务应用 a, 测试系统性能, 所述测试系统性能可以是吞吐 量、 误包率、 重传率等。
3.将 ^加上 A t, 执行步骤 2, 直到 ^> 或者达到一定的系统性 能阈值, 保存此时的轮询时间间隔 tam。 将步骤 2 中的应用换成其他应用分别测试, 最后就得到了不同状 态, 不同业务对应的 tm (如表 1所示) 。
Figure imgf000014_0001
Figure imgf000014_0002
具体的, 所述映射规则可以包括: LowMAC 层的状态与多个不同业 务应用所需要的轮询时间间隔相对应的规则。
因此在根据映射规则确定 LowMAC层当前状态下的轮询时间间隔之 前, LowMAC 层还需要确定当前的业务应用, 示例的, 所述业务应用可 以是上层通知 LowMAC层的, 则 LowMAC层根据所述映射规则, 就能确 定所述 LowMAC 层当前状态下与当前的业务应用相对应的轮询时间间 隔。 或者, 具体的, 若 LowMAC层无法确定当前的业务应用, 示例的, 上层没有通知 LowMAC层业务应用, 贝 'J : 若所述 LowMAC层当前为首次进入其确定的状态, 则所述映射规则 包括: LowMAC 层的状态与多个不同业务应用所需要的轮询时间间隔相 对应的规则、 以及由多个不同业务应用所需要的轮询时间间隔得到第 一轮询时间间隔的规则。
也就是说, 按照上述映射规则, 可以确定 LowMAC层当前为首次进 入其确定的状态下的轮询时间间隔, 具体步骤如下:
首先, 通过 LowMAC层当前确定的状态和 LowMAC层的状态与多个 不同业务应用所需要的轮询时间间隔相对应的规则, 得到 LowMAC层当 前确定的状态下对应的多个不同业务应用所需要的轮询时间间隔。 也 就是说, 如表 1所示, 假设 LowMAC层当前确定的状态为 S= l , 则得到 LowMAC 层当前确定的状态下对应的多个不同业务应用所需要的轮询时 间间隔为 t , tbi , tci , · ' · , tpi„
其次, 再通过 LowMAC层当前确定的状态下对应的多个不同业务应 用所需要的轮询时间间隔, 以及所述多个不同业务应用所需要的轮询 时间间隔得到第一轮询时间间隔的规则, 得到第一轮询时间间隔。 所 述第一轮询时间间隔为 LowMAC层当前为首次进入其确定的状态下所确 定的轮询时间间隔。 也就是说, 根据 tai , tbi , tci , tpi , 得到第一轮 询时间间隔。
示例的, 可以从所述的多个不同业务应用所需要的轮询时间间隔 选择一个最小值作为第一轮询时间间隔,也就是说,如果 tai , tbi , tci ,…, tpl中, 如果 tcl最小, 则第一轮询时间间隔为 tcl
示例的, 也可以计算所述多个不同业务应用所需要的轮询时间间 隔的平均值, 将所述平均值作为第一轮询时间间隔, 也就是说, 对 tai , tbi , tci , …, tPl求平均值, 则第一轮询时间间隔为 tal tbi , tci , …, tpi 的平均值。
然后, 记录所述 LowMAC层当前状态下查看到数据包的最小空等轮 询次数。 在 L 0 wM A C层中的每个状态都会以一定时间间隔轮询查看是否 有发送给 LowMAC层的消息, 空等轮询次数表示在某一个状态时, 轮询 查看多少次才会收到发送给 LowMAC层的消息。 示例的, 假设处于 I DLE 状态, 轮询查看 4次收到发送给 LowMAC层的消息, 则最小空等轮询次 数为 4减 1等于 3。 并且, 如表 2所示, LowMAC层可以将每个状态下的最小空等轮询 次数保存, 示例的, 可以存储将之保存在最小空等轮询次数表中, 每 当 LowMAC层从一个状态跳转到其他状态之前, 都会将当前的空等轮询 次数与保存的本状态的最小空等轮询次数表中所述状态的最小轮询次 数的数值相比较, 如果当前的空等轮询次数小于保存的最小空等轮询 次数表中所述状态的最小轮询次数, 则将最小空等轮询次数表中所述 状态下的最小轮询次数更新为当前的空等轮询次数; 否则, 无需做更 新操作。
如果当前为首次进入某状态, 即最小空等轮询次数表中尚未保存 该状态下的最小空等轮询次数, 则将该状态下当前的空等轮询次数保 存在最小空等轮询次数表中该状态对应的最小空等轮询次数的位置。
表 2 LowMAC层个状态对应的最小空等轮询次数表
Figure imgf000016_0001
若所述 LowMAC层当前为非首次进入其确定的状态, 所述映射规则 包括: LowMAC 层的状态与最小空等轮询次数相对应的规则、 以及最小 空等轮询次数与调节轮询时间间隔算法相对应的规则。
也就是说, 按照上述映射规则, 可以确定 LowMAC层当前为非首次 进入其确定的状态下的轮询时间间隔, 具体步骤如下:
首先, 根据所述 LowMAC层的状态, 以及所述 LowMAC层的状态与 最小空等轮询次数相对应的规则, 得到所述 LowMAC层当前状态所对应 的最小空等轮询次数。
示例的,如表 2所示,如果 LowMAC层当前的状态为 S = 3 ,则 LowMAC 层当前状态所对应的最小空等轮询次数为 4次。
然后, 根据所述 LowMAC层当前状态所对应的最小空等轮询次数, 以及所述映射规则中最小空等轮询次数与调节轮询时间间隔算法的相 对应的规则, 在所述 LowMAC层上一次进入该状态的轮询时间间隔的基 础上进行调节, 得到 LowMAC层当前状态下的轮询时间间隔。 示例的, 所述最小空等轮询次数与调节轮询时间间隔算法可以是: 如果所述 LowMAC层当前状态所对应的最小空等轮询次数大于 2 ,则在在 所述 LowMAC层上一次进入该状态的轮询时间间隔的基础上增加△ t; 如果所述 LowMAC层当前状态所对应的最小空等轮询次数 K小于等 于 1 , 则在在所述 LowMAC层上一次进入该状态的轮询时间间隔的基础 上减去△ t。 或者, 示例的, 也可以根据 LowMAC层当前状态对应的映射规则, 或者根据 LowMAC层当前状态对应的映射规则和 LowMAC层当前实时接 收的数据包, 动态的得到满足一定的系统性能阈值的轮询时间间隔。
具体的, 若所述 LowMAC层当前状态为 I FS状态, 则所述映射规则 包括: I FS状态与 D I FS时间相对应的规则。 也就是说, 根据所述映射 规则, 得到 D I FS 时间, 而所述 D I FS 时间, 即为满足一定的系统性能 阈值的所述 LowMAC层当前状态下的轮询时间间隔。
若 LowMAC层的状态为 I DLE状态、 CHBUSY状态、 退避 BACKOFF状 态或 PR0CESSACK状态, 则所述映射规则包括: I DLE状态、 CHBUSY状 态、 退避 BACKOFF状态、 PR0CES SACK状态中的每一种状态与当前状态 下待接收数据包解析时间的算法相对应的规则; 其中所述当前状态下 待接收数据包解析时间的算法为根据所述当前状态下待接收数据包中 的指示信息得到所述当前状态下待接收数据包解析时间的算法。 也就是说, 根据所述映射规则, 得到与 LowMAC层当前状态所对应 的算法, 进一步根据由在当前状态下与 LowMAC层当前状态所对应的算 法和获取的待接收数据包的指示信息, 计算得到的待接收数据包解析 时间, 而所述待接收数据包解析时间, 即为满足一定的系统性能阈值 的所述 LowMAC层当前状态下的轮询时间间隔。 示例的, 通过测试和分析结果可以发现, 物理层解析一个数据包 的时间与这个数据包的偏误差有关, 因此根据这个数据包的频偏误差, 采用对应的算法就可以计算出物理层解析一个数据包所需的时间, 即 LowMAC 层就可以估算出大概需要多久物理层可以将一个数据包解析完 成并发送给 LowMAC层, 这个数据包对于 LowMAC层而言就是待接收数 据包。
因此, 所述算法即为所述 IDLE状态、 CHBUSY状态、 退避 BACKOFF 状态、 PROCESSACK 状态中的每一种状态与待接收数据包解析时间的算 法, 从而也就得到了 LowMAC层当前状态下的轮询时间间隔。 示例的, 在物理层同步到一个数据包的包头后, 需要先解析这个 数据包, 然后再发送给 LowMAC层。 物理层在同步到这个数据包后, 可 以从中获得这个数据包的指示信息, 所述指示信息中包括这个数据包 的频偏误差, 然后物理层会向 LowMAC层传输所述指示信息。
然后, 示例的, LowMAC 层可以采用如下的算法, 通过频偏误差计 算出轮询时间间隔:
如果一个数据包长度为一个正交频分复用 ( OFDM, Orthogonal
Frequency Division Multiplexing ) 符号, 经过测试, 可以得到物理 层解析一个 OFDM符号的时间 7;与频偏误差 f 存在如下关系:
21, 微秒,/£[0, /2]
26, 微秒, /e (; r/2,;r]
28, 微秒, /e (; r,2;r] 示例的, 如果一个 OFDM符号的 f 等于 τ/3, 则对应得到的 7}为 21 微秒, 如果一个 OFDM符号的 f 等于 2 3, 则对应得到的 7>为 26微秒, 如果一个 OFDM符号的 f 等于 4 3, 则对应得到的 7>为 28微秒。
如果一个数据包的长度为 M个 OFDM符号, 假设一个 OFDM符号的 接收间隔固定为 40微秒, 而物理层需要在接收间隔内完成对所述数据 包的解析, 所以除了最后一个 0FDM符号以外, 其余 0FDM符号的接收 时间都为 40us, 而最后一个符号的时间为 OFDM符号的解析时间, 则物 理层解析 M个 0FDM符号的时间 7 与频偏误差 f 存在如下关系:
微秒, /e[0,;r/2]
T 微秒, /e (; τ/2,;τ]
Figure imgf000018_0001
微秒, /e (; τ,2;τ] 采用上述算法和得到的待接收数据包的频偏误差, 就可以得到物 理层解析一个数据包的时间, 从而也就得到了 LowMAC层需要隔多久才 会接收到物理层发送给 LowMAC层的待接收数据包,也就得到了 LowMAC 层在当前状态下的轮询时间间隔。
并且, 进一步的, LowMAC 层还可以在待接收数据包解析时间的基 础上进行调整, 得到 LowMAC层当前状态下的轮询时间间隔。 若所述 LowMAC层当前状态为 TXDATA状态, 则所述映射规则包括:
TXDATA状态与待发送数据包发送时间的算法相对应的规则。也就是说, 所述根据映射规则, 计算得到的待发送数据包的发送时间, 所述待发 送数据包的发送时间, 即为 LowMAC层当前状态下的轮询时间间隔。
具体的, 在 TXDATA状态下, LowMAC层可以知道 TXDATA状态下待 发送数据包长度。 LowMAC层在 TXDATA状态下的轮询时间间隔为 LowMAC 层在 TXDATA状态下的待发送数据包的发送时间, 而通过测试和分析结 果可以发现, LowMAC层在 TXDATA状态下, 数据包的发送时间与该数据 包的长度有一定对应关系, 示例的, 两者成一次函数的关系, 待发送 数据包的长度为函数的输入, 待发送数据包的发送时间为函数的输出, 这个关系即所述待发送数据包发送时间的算法, 从而就可以根据所述 待发送数据包的长度和所述待发送数据包发送时间的算法得到 LowMAC 层当前状态下的待发送数据包的发送时间, 也就得到了 LowMAC层当前 状态下的轮询时间间隔。
若所述 LowMAC层当前状态为 WA I TACK状态 ,则所述映射规则包括: WA I TACK状态与 WA I TACK状态下待接收数据包的包头解析时间的算法相 对应的规则。 也就是说, 按照 LowMAC层当前状态所对应的算法, 计算得到物理 层解析待接收数据包的包头所需的时间, 然后将之作为 LowMAC层当前 状态下的轮询时间间隔。
具体的, 在 WA I TACK状态下, LowMAC层的轮询时间间隔为物理层 对待接收数据包包头的解析时间, 即物理层同步到并解析一个数据包 的包头所需的时间。 通过测试和分析结果可以发现, 物理层解析一个 数据包包头的所需的时间与物理层包头长度以及处理复杂度有关, 由 于每个数据包的物理层包头长度相同, 因此主要和处理复杂度有关, 由于考虑通用性, 可以认为最低复杂度的物理层包头解析时间为 LowMAC层当前状态下的轮询时间间隔。 图 4为采用本发明实施例提供的一种降低 LowMAC层功耗的方法后 芯片的等效平均功耗(图 4中等效平均功耗的单位 mW表示毫瓦, of dm 与上述 OFDM含义相同) 随数据包长的变化曲线, 可见随着数据包长度 的增加, 芯片的等效平均功耗明显降低。
如图 5所示, 本发明实施例还提供了一种降低 LowMAC层功耗的装 置, 其中的各个功能模块可以执行上述相应的步骤, 对各个功能模块 的描述可参考上述的方法实施例, 在此不加贅述。
所述装置 5 0包括: 确定状态模块 5 1 :用于基本接入功能媒体介入控制 LowMAC层确定 当前其自身的状态;
确定轮询时间间隔模块 52 :用于根据映射规则确定所述 LowMAC层 当前状态下的轮询时间间隔; 所述映射规则为 LowMAC层的状态映射到 轮询时间间隔的规则;
查看模块 5 3 : 按照所述 LowMAC层当前状态下的轮询时间间隔, 查 看发送给 LowMAC层的数据包。
可选的, 所述映射规则包括: LowMAC 层的状态与多个不同业务应 用所需要的轮询时间间隔相对应的规则;
如图 6所示, 所述装置还包括: 确定业务应用模块 54 , 用于确定 当前的业务应用;
所述确定轮询时间间隔模块 52具体用于: 根据所述映射规则, 确 定所述 LowMAC 层当前状态下与当前的业务应用相对应的轮询时间间 隔。
或者, 可选的, 所述确定轮询时间间隔模块 5 2具体用于: 若所述 LowMAC层当前为首次进入其确定的状态, 所述映射规则包 括 LowMAC层的状态与多个不同业务应用所需要的轮询时间间隔相对应 的规则、 以及由多个不同业务应用所需要的轮询时间间隔得到第一轮 询时间间隔的规则;
则根据所述映射规则, 确定所述 LowMAC层当前状态所对应的第一 轮询时间间隔。 可选的, 如图 7所示, 所述装置 5 0还可以包括: 记录模块 55 , 用 于记录所述 LowMAC层当前状态下查看到数据包的最小空等轮询次数。 或者, 可选的, 所述确定轮询时间间隔模块 5 2具体用于: 若所述 LowMAC层当前为非首次进入其确定的状态, 所述映射规则 包括 LowMAC层的状态与最小空等轮询次数相对应的规则、 以及最小空 等轮询次数与调节轮询时间间隔算法相对应的规则;
根据所述 LowMAC层的状态与最小空等轮询次数相对应的规则, 确 定所述 L 0 wM A C层当前状态所对应的最小空等轮询次数; 根据所述映射规则中最小空等轮询次数与调节轮询时间间隔算法 的相对应的规则, 确定 LowMAC层当前状态所对应的调节轮询时间间隔 算法;
按照 LowMAC层当前状态所对应的调节轮询时间间隔算法, 在所述 LowMAC 层上一次进入该状态的轮询时间间隔的基础上进行调节, 得到 LowMAC层当前状态下的轮询时间间隔。 具体的, 所述 LowMAC层的状态包括以下至少一种: 空闲 I DLE状 态、 信道忙 CHBUSY状态、 帧间隔 I FS状态、 退避 BACKOFF状态、 发送 数据 TXDATA状态、 等待确认帧 WA I TACK状态、 处理确认 PROCES SACK 状态。
可选的, 所述确定轮询时间间隔模块 52具体用于: 若所述 LowMAC层当前状态为 I F S状态,则所述映射规则包括: I F S 状态与 D I FS 时间相对应的规则; 根据所述映射规则, 将所述 D I FS 时 间作为所述 LowMAC层当前状态下的轮询时间间隔。
可选的, 如图 8 所示, 所述装置还包括接收模块 56 : 用于所述 LowMAC 层在当前状态下接收所述当前状态下待接收数据包的指示信 息;
所述确定轮询时间间隔模块 52具体用于:
若 LowMAC层当前状态为 I DLE状态、 CHBUSY状态、 退避 BACKOFF 状态或 PROCE S SACK状态, 则所述映射规则包括: LowMAC层当前状态与 所述 LowMAC 层当前状态下待接收数据包解析时间的算法相对应的规 则; 其中所述 LowMAC层当前状态下待接收数据包解析时间的算法为根 据所述 LowMAC 层当前状态下待接收数据包中的指示信息得到所述 LowMAC层当前状态下待接收数据包解析时间的算法; 按照 LowMAC层当前状态所对应的所述当前状态下待接收数据包解 析时间的算法, 由所述接收模块 5 6在当前状态下获取的所述当前状态 下待接收数据包的指示信息, 计算得到的所述当前状态下待接收数据 包解析时间作为 LowMAC层当前状态下的轮询时间间隔。
进一步可选的, 所述 LowMAC层当前状态下待接收数据包的指示信 息包括所述 LowMAC层当前状态下待接收数据包的频偏误差。
可选的, 所述确定轮询时间间隔模块 52具体用于: 若所述 LowMAC层当前状态为 TXDATA状态, 则所述映射规则包括: 述 LowMAC层当前状态与述 LowMAC层当前状态下待发送数据包发送时 间的算法相对应的规则;
按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下待发 送数据包发送时间的算法, 计算得到的所述 LowMAC层当前状态下待发 送数据包的发送时间作为所述 LowMAC层当前状态下的轮询时间间隔。
可选的, 所述确定轮询时间间隔模块 52具体用于: 若所述 LowMAC层当前状态为 WA I TACK状态 ,则所述映射规则包括: 述 LowMAC层当前状态与所述 LowMAC层当前状态下待接收数据包的包 头解析时间的算法相对应的规则;
按照所述 LowMAC层当前状态所对应的所述 LowMAC层当前状态下 待接收数据包的包头解析时间的算法, 计算得到的所述 LowMAC层当前 状态下待接收数据包的包头解析时间作为所述 LowMAC层当前状态下的 轮询时间间隔。 本发明实施例提供的一种降低 LowMAC层功耗的装置,根据 LowMAC 层确定当前其自身的状态, 并根据所述状态映射到轮询时间间隔的规 则确定所述 LowMAC层当前状态下的轮询时间间隔, 并按照所述轮询时 间间隔, 查看 LowMAC层接收的数据包。 这样就可以在保证系统性能的 前提下, 调整 LowMAC层查看其接收的数据包的轮询时间间隔, 降低实 现 LowMAC层的功耗。 如图 9所示, 本发明实施例还提供了一种降低 LowMAC层功耗的装 置 9 0。 所述装置 90包括: 存储器 9 1、 处理器 92。 其中, 所述存储器 9 1用于保存映射规则; 所述处理器 92用于确定当前其自身的状态; 根据映射规则确定所 述 LowMAC层当前状态下的轮询时间间隔, 所述映射规则为 LowMAC层 的状态映射到轮询时间间隔的规则; 按照所述 LowMAC层当前状态下的 轮询时间间隔, 查看发送给 LowMAC层的数据包。 具体的, 所述映射规则包括: LowMAC 层的状态与多个不同业务应 用所需要的轮询时间间隔相对应的规则; 在所述根据映射规则确定所 述 LowMAC层当前状态下的轮询时间间隔之前, 所述处理器 92还用于 用于确定当前的业务应用; 所述根据映射规则确定所述 LowMAC层当前 状态下的轮询时间间隔包括: 根据所述映射规则, 确定所述 LowMAC层 当前状态下与当前的业务应用相对应的轮询时间间隔。
若所述 LowMAC层当前为首次进入其确定的状态, 则所述映射规则 包括: LowMAC 层的状态与多个不同业务应用所需要的轮询时间间隔相 对应的规则、 以及由多个不同业务应用所需要的轮询时间间隔得到第 一轮询时间间隔的规则; 所述根据映射规则确定所述 LowMAC层当前状 态下的轮询时间间隔包括: 根据所述映射规则, 确定所述 LowMAC层当 前状态所对应的第一轮询时间间隔。
可选的, 所述存储器 9 1 还可以用于记录所述 LowMAC层当前状态 下查看到数据包的最小空等轮询次数。
则若所述 LowMAC层当前为非首次进入其确定的状态, 所述映射规 则包括: LowMAC 层的状态与最小空等轮询次数相对应的规则、 以及最 小空等轮询次数与调节轮询时间间隔算法相对应的规则; 所述根据映 射规则确定所述 LowMAC层当前状态下的轮询时间间隔包括: 根据所述 LowMAC层的状态与最小空等轮询次数相对应的规则, 确定所述 LowMAC 层当前状态所对应的最小空等轮询次数; 根据所述映射规则中最小空 等轮询次数与调节轮询时间间隔算法的相对应的规则, 确定 LowMAC层 当前状态所对应的调节轮询时间间隔算法; 按照 LowMAC层当前状态所 对应的调节轮询时间间隔算法, 在所述 LowMAC层上一次进入该状态的 轮询时间间隔的基础上进行调节, 得到 LowMAC层当前状态下的轮询时 间间隔。
所述 LowMAC层的状态包括以下至少一种: 空闲 I DLE状态、 信道 忙 CHBUSY状态、帧间隔 I FS状态、退避 BACKOFF状态、发送数据 TXDATA 状态、 等待确认帧 WA I TACK状态、 处理确认 PROCES SACK状态。 若所述 LowMAC层当前状态为 I F S状态,则所述映射规则包括: I F S 状态与 D I FS 时间相对应的规则; 所述根据映射规则确定所述 LowMAC 层当前状态下的轮询时间间隔包括: 根据所述映射规则, 将所述 D I FS 时间作为所述 LowMAC层当前状态下的轮询时间间隔。
进一步可选的, 所述装置 9 0还可以包括:接收器 9 3 , 所述接收器
9 3用于所述 LowMAC层在当前状态下接收所述 LowMAC层当前状态下待 接收数据包的指示信息和 LowMAC层接收在当前状态下待接收数据包; 所述 LowMAC 层当前状态下待接收数据包的指示信息包括所述 LowMAC 层当前状态下待接收数据包的频偏误差。
此时, 若 LowMAC 层当前状态为 I DLE 状态、 CHBUSY 状态、 退避
BACKOFF状态或 PROCES SACK状态, 则所述映射规则包括: LowMAC层当 前状态与所述 LowMAC层当前状态下待接收数据包解析时间的算法相对 应的规则; 其中所述 LowMAC层当前状态下待接收数据包解析时间的算 法为根据所述 LowMAC层当前状态下待接收数据包中的指示信息得到所 述 LowMAC层当前状态下待接收数据包解析时间的算法; 所述根据映射 规则,确定所述 LowMAC层当前状态下的轮询时间间隔包括:按照 LowMAC 层当前状态所对应的所述 LowMAC层当前状态下待接收数据包解析时间 的算法, 由所述接收器 9 3在当前状态下获取的所述 LowMAC层当前状 态下待接收数据包的指示信息, 计算得到的所述 LowMAC层当前状态下 待接收数据包解析时间作为 LowMAC层当前状态下的轮询时间间隔。
进一步可选的, 所述装置 9 0 还可以包括发送器 94 , 所述发送器 94用于所述 LowMAC层发送在当前状态下待发送数据包。
若所述 LowMAC层当前状态为 TXDATA状态, 则所述映射规则包括: 述 LowMAC层当前状态与述 LowMAC层当前状态下待发送数据包发送时 间的算法相对应的规则; 所述根据映射规则确定所述 LowMAC层当前状 态下的轮询时间间隔包括: 按照 LowMAC 层当前状态所对应的所述 LowMAC 层当前状态下待发送数据包发送时间的算法, 计算得到的所述 LowMAC层当前状态下待发送数据包的发送时间作为所述 LowMAC层当前 状态下的轮询时间间隔。
若所述 LowMAC层当前状态为 WA I TACK状态 ,则所述映射规则包括: 述 LowMAC层当前状态与所述 LowMAC层当前状态下待接收数据包的包 头解析时间的算法相对应的规则; 所述根据映射规则确定所述 LowMAC 层当前状态下的轮询时间间隔包括: 按照所述 LowMAC层当前状态所对 应的所述 LowMAC层当前状态下待接收数据包的包头解析时间的算法, 计算得到的所述 L owMAC层当前状态下待接收数据包的包头解析时间作 为所述 LowMAC层当前状态下的轮询时间间隔。 本发明实施例提供的另一种降低 LowMAC 层功耗的装置, 根据 LowMAC 层确定当前其自身的状态, 并根据所述状态映射到轮询时间间 隔的规则确定所述 LowMAC层当前状态下的轮询时间间隔, 并按照所述 轮询时间间隔, 查看 LowMAC层接收的数据包。 这样就可以在保证系统 性能的前提下, 调整 LowMAC层查看其接收的数据包的轮询时间间隔, 降低实现 LowMAC层的功耗。
本发明实施例还提供了一种终端, 示例的, 所述终端可以是笔记 本电脑、 平板电脑或者手机等设备。 所述终端包括上述实施例中提供 的任意一种降低 LowMAC层功耗的装置。 在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装 置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施 例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划 分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以结 合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另 一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是 通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机 械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开 的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位 于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需 要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理 单元中, 也可以是各个单元单独物理包括, 也可以两个或两个以上单 元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个 计算机可读取存储介质中。 上述软件功能单元存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 月良 务器, 或者网络设备等)执行本发明各个实施例所述方法的部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (Read-Only Memory, 简称 ROM ) 、 随机存取存储器 ( Random Access Memory, 简称 RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而 非对其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领 域的普通技术人员应当理解: 其依然可以对前述各实施例所记载的技 术方案进行修改, 或者对其中部分技术特征进行等同替换; 而这些修 改或者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方 案的精神和范围。

Claims

权 利 要 求 书 1、 一种降低 LowMAC 层功耗的方法, 其特征在于, 应用于芯片, 所述方法包括:
基本接入功能媒体介入控制 LowMAC层确定当前其自身的状态; 根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔; 所 述映射规则为 LowMAC层的状态映射到轮询时间间隔的规则;
按照所述 L owMAC 层当前状态下的轮询时间间隔, 查看发送给
LowMAC层的数据包。
2、根据权利要求 1所述的方法, 其特征在于, 所述映射规则包括:
L owMAC层的状态与多个不同业务应用所需要的轮询时间间隔相对 应的规则;
在所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间 隔之前, 所述方法还包括: 确定当前的业务应用;
所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 根据所述映射规则, 确定所述 LowMAC层当前状态下与当前的业 务应用相对应的轮询时间间隔。
3、 根据权利要求 2所述的方法, 其特征在于, 若所述 LowMAC层 当前为首次进入其确定的状态,则所述映射规则包括: LowMAC层的状态 与多个不同业务应用所需要的轮询时间间隔相对应的规则、 以及由多 个不同业务应用所需要的轮询时间间隔得到第一轮询时间间隔的规 则;
所述 #居映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 根据所述映射规则, 确定所述 LowMAC层当前状态所对应的第一 轮询时间间隔。
4、 根据权利要求 1 - 3任一项所述的方法, 其特征在于, 所述方法 还包括: 记录所述 LowMAC层当前状态下查看到数据包的最小空等轮询 次数。
5、 根据权利要求 4述的方法, 其特征在于, 若所述 LowMAC层当 前为非首次进入其确定的状态, 所述映射规则包括: LowMAC 层的状态 与最小空等轮询次数相对应的规则、 以及最小空等轮询次数与调节轮 询时间间隔算法相对应的规则; 所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括:
根据所述 LowMAC层的状态与最小空等轮询次数相对应的规则, 确 定所述 L 0 wM A C层当前状态所对应的最小空等轮询次数; 根据所述映射规则中最小空等轮询次数与调节轮询时间间隔算法 的相对应的规则, 确定 LowMAC层当前状态所对应的调节轮询时间间隔 算法;
按照 LowMAC层当前状态所对应的调节轮询时间间隔算法, 在所述 LowMAC 层上一次进入该状态的轮询时间间隔的基础上进行调节, 得到 LowMAC层当前状态下的轮询时间间隔。
6、 根据权利要求 1 所述的方法, 其特征在于, 所述 LowMAC层的 状态包括以下至少一种: 空闲 I DLE状态、 信道忙 CHBUSY状态、 帧间 隔 I FS状态、 退避 BACKOFF状态、 发送数据 TXDATA状态、 等待确认帧 WA I TACK状态、 处理确认 PR0CESSACK状态。
7、 根据权利要求 6 所述的方法, 其特征在于, 若所述 LowMAC层 当前状态为 I FS状态, 则所述映射规则包括: I FS状态与 D I FS时间相 对应的规则; 所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 根据所述映射规则, 将所述 D I FS 时间作为所述 LowMAC层当前 状态下的轮询时间间隔。
8、 根据权利要求 6 所述的方法, 其特征在于, 若 LowMAC层当前 状态为 I DLE状态、 CHBUSY状态、 退避 BACKOFF状态或 PR0CES SACK状 态, 则所述映射规则包括: LowMAC层当前状态与所述 LowMAC层当前状 态下待接收数据包解析时间的算法相对应的规则; 其中所述 LowMAC层 当前状态下待接收数据包解析时间的算法为根据所述 LowMAC层当前状 态下待接收数据包中的指示信息得到所述 LowMAC层当前状态下待接收 数据包解析时间的算法;
所述方法还包括:所述 LowMAC层在当前状态下接收所述 LowMAC层 当前状态下待接收数据包的指示信息; 所述根据映射规则, 确定所述 LowMAC层当前状态下的轮询时间间 80 隔包括: 按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下 待接收数据包解析时间的算法, 由在当前状态下获取的所述 LowMAC层 当前状态下待接收数据包的指示信息, 计算得到的所述 LowMAC层当前 状态下待接收数据包解析时间作为 LowMAC层当前状态下的轮询时间间 隔。
85 9、 根据权利要求 8所述的方法, 其特征在于, 所述 LowMAC 层当前状态下待接收数据包的指示信息包括所述 LowMAC层当前状态下待接收数据包的频偏误差。
1 0、 根据权利要求 6所述的方法, 其特征在于, 若所述 LowMAC层 当前状态为 TXDATA状态, 则所述映射规则包括: 述 LowMAC层当前状
90 态与述 LowMAC层当前状态下待发送数据包发送时间的算法相对应的规 则;
所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下待 发送数据包发送时间的算法, 计算得到的所述 LowMAC层当前状态下待 95 发送数据包的发送时间作为所述 LowMAC 层当前状态下的轮询时间间 隔。
1 1、 根据权利要求 6所述的方法, 其特征在于, 若所述 LowMAC层当前状态为 WA I TACK状态 ,则所述映射规则包括: 述 LowMAC层当前状态与所述 LowMAC层当前状态下待接收数据包的包00 头解析时间的算法相对应的规则;
所述根据映射规则确定所述 LowMAC层当前状态下的轮询时间间隔 包括: 按照所述 LowMAC层当前状态所对应的所述 LowMAC层当前状态 下待接收数据包的包头解析时间的算法, 计算得到的所述 LowMAC层当 前状态下待接收数据包的包头解析时间作为所述 LowMAC层当前状态下05 的轮询时间间隔。
1 2、 一种降低 LowMAC层功耗的装置, 应用于芯片, 其特征在于, 所述装置包括:
确定状态模块: 用于基本接入功能媒体介入控制 LowMAC层确定当 前其自身的状态;
确定轮询时间间隔模块: 用于根据映射规则确定所述 LowMAC层当 前状态下的轮询时间间隔; 所述映射规则为 LowMAC层的状态映射到轮 询时间间隔的规则;
查看模块: 按照所述 LowMAC层当前状态下的轮询时间间隔, 查看 发送给 LowMAC层的数据包。
1 3、 根据权利要求 1 2所述的装置, 其特征在于, 所述映射规则包括: LowMAC 层的状态与多个不同业务应用所需要 的轮询时间间隔相对应的规则; 所述装置还包括确定业务应用模块, 用于确定当前的业务应用; 所述确定轮询时间间隔模块具体用于: 根据所述映射规则, 确定 所述 LowMAC层当前状态下与当前的业务应用相对应的轮询时间间隔。
1 4、 根据权利要求 1 3所述的装置, 其特征在于, 所述确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前为首次进入其确定的状态, 所述映射规则包 括 LowMAC层的状态与多个不同业务应用所需要的轮询时间间隔相对应 的规则、 以及由多个不同业务应用所需要的轮询时间间隔得到第一轮 询时间间隔的规则; 根据所述映射规则, 确定所述 LowMAC层当前状态所对应的第一轮 询时间间隔。
1 5、 根据权利要求 1 2- 1 4 任一项所述的装置, 其特征在于, 所述 装置还包括:
记录模块: 用于记录所述 LowMAC层当前状态下查看到数据包的最 小空等轮询次数。
1 6、 根据权利要求 1 5所述的装置, 其特征在于, 所述确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前为非首次进入其确定的状态, 所述映射规则 包括 LowMAC层的状态与最小空等轮询次数相对应的规则、 以及最小空 等轮询次数与调节轮询时间间隔算法相对应的规则; 根据所述 LowMAC层的状态与最小空等轮询次数相对应的规则, 确 定所述 L 0 wM A C层当前状态所对应的最小空等轮询次数;
140 根据所述映射规则中最小空等轮询次数与调节轮询时间间隔算法 的相对应的规则, 确定 LowMAC层当前状态所对应的调节轮询时间间隔 算法;
按照 LowMAC层当前状态所对应的调节轮询时间间隔算法, 在所述 LowMAC 层上一次进入该状态的轮询时间间隔的基础上进行调节, 得到 145 LowMAC层当前状态下的轮询时间间隔。
1 7、 根据权利要求 1 2所述的装置, 其特征在于, 所述 LowMAC层的状态包括以下至少一种: 空闲 I DLE状态、 信道 忙 CHBUSY状态、帧间隔 I FS状态、退避 BACKOFF状态、发送数据 TXDATA 状态、 等待确认帧 WA I TACK状态、 处理确认 PR0CES SACK状态。
150 1 8、 根据权利要求 1 7所述的装置, 其特征在于, 所述确定轮询时 间间隔模块具体用于:
若所述 LowMAC层当前状态为 I FS状态,则所述映射规则包括: I FS 状态与 D I FS时间相对应的规则; 根据所述映射规则, 将所述 D I FS 时间作为所述 LowMAC层当前状 155 态下的轮询时间间隔。
1 9、 根据权利要求 1 7所述的装置, 其特征在于, 所述装置还包括 接收模块: 所述接收模块用于 LowMAC层在当前状态下接收所述当前状 态下待接收数据包的指示信息和 LowMAC层接收在当前状态下待接收数 据包;
160 所述确定轮询时间间隔模块具体用于:
若 LowMAC层当前状态为 I DLE状态、 CHBUSY状态、 退避 BACKOFF 状态或 PR0CESSACK状态, 则所述映射规则包括: LowMAC层当前状态与 所述 LowMAC 层当前状态下待接收数据包解析时间的算法相对应的规 贝' J; 其中所述 LowMAC层当前状态下待接收数据包解析时间的算法为根 165 据所述 LowMAC 层当前状态下待接收数据包中的指示信息得到所述 LowMAC层当前状态下待接收数据包解析时间的算法;
按照 LowMAC层当前状态所对应的所述当前状态下待接收数据包解 析时间的算法, 由所述接收模块在当前状态下获取的所述当前状态下 待接收数据包的指示信息, 计算得到的所述当前状态下待接收数据包 解析时间作为 LowMAC层当前状态下的轮询时间间隔。
2 0、 根据权利要求 1 9所述的装置, 其特征在于, 所述 LowMAC 层当前状态下待接收数据包的指示信息包括所述 LowMAC层当前状态下待接收数据包的频偏误差。
2 1、 根据权利要求 1 7所述的装置, 其特征在于, 所述装置还包括: 发送模块, 所述发送模块用于所述 LowMAC层发送在当前状态下待发送 数据包;
所述确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前状态为 TXDATA状态, 则所述映射规则包括: 所述 LowMAC层当前状态与所述 LowMAC层当前状态下待发送数据包发 送时间的算法相对应的规则;
按照 LowMAC层当前状态所对应的所述 LowMAC层当前状态下待发 送数据包发送时间的算法, 计算得到的所述 LowMAC层当前状态下待发 送数据包的发送时间作为所述 L owMA C层当前状态下的轮询时间间隔。
22、 根据权利要求 1 7所述的装置, 其特征在于, 所述确定轮询时间间隔模块具体用于:
若所述 LowMAC层当前状态为 WA I TACK状态 ,则所述映射规则包括: 述 LowMAC层当前状态与所述 LowMAC层当前状态下待接收数据包的包 头解析时间的算法相对应的规则;
按照所述 LowMAC层当前状态所对应的所述 LowMAC层当前状态下 待接收数据包的包头解析时间的算法, 计算得到的所述 LowMAC层当前 状态下待接收数据包的包头解析时间作为所述 LowMAC层当前状态下的 轮询时间间隔。
2 3、 一种终端, 其特征在于, 包括如权利要求 1 2-22 所述的任意 一种降低 LowMAC层功耗的装置。
PCT/CN2014/072409 2013-07-05 2014-02-22 一种降低LowMAC层功耗的方法、装置和终端 WO2015000305A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310282005.3 2013-07-05
CN201310282005.3A CN104284401A (zh) 2013-07-05 2013-07-05 一种降低LowMAC层功耗的方法、装置和终端

Publications (1)

Publication Number Publication Date
WO2015000305A1 true WO2015000305A1 (zh) 2015-01-08

Family

ID=52143067

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072409 WO2015000305A1 (zh) 2013-07-05 2014-02-22 一种降低LowMAC层功耗的方法、装置和终端

Country Status (2)

Country Link
CN (1) CN104284401A (zh)
WO (1) WO2015000305A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060062181A1 (en) * 2004-09-23 2006-03-23 Institute For Information Industry Medium access control methods with quality of service and power management for wireless local area networks
CN101030906A (zh) * 2006-10-30 2007-09-05 蔡水平 一种无线近距离人群识别感应机及网上配套信息交流系统
CN101610399A (zh) * 2009-07-22 2009-12-23 杭州华三通信技术有限公司 计划类业务调度系统和实现计划类业务调度的方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546750B (zh) * 2011-11-22 2015-12-09 大连交通大学 一种无线传感器网络mac协议方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060062181A1 (en) * 2004-09-23 2006-03-23 Institute For Information Industry Medium access control methods with quality of service and power management for wireless local area networks
CN101030906A (zh) * 2006-10-30 2007-09-05 蔡水平 一种无线近距离人群识别感应机及网上配套信息交流系统
CN101610399A (zh) * 2009-07-22 2009-12-23 杭州华三通信技术有限公司 计划类业务调度系统和实现计划类业务调度的方法

Also Published As

Publication number Publication date
CN104284401A (zh) 2015-01-14

Similar Documents

Publication Publication Date Title
WO2018127228A1 (zh) 一种随机接入反馈、处理方法、基站及终端
US8843175B2 (en) Apparatus and methods for mitigating protocol-induced back-offs in a communication network
US20170164231A1 (en) Data transmission method and base station
WO2012163146A1 (zh) 错误恢复方法、接入点设备、站点设备及其系统
TWI358922B (en) Method and apparatus of default timer configuratio
WO2016082647A1 (zh) 一种发射功率的确定方法及装置
US9197373B2 (en) Method, apparatus, and system for retransmitting data packet in quick path interconnect system
CN105101293A (zh) Pdcp发送实体、辅基站、用户设备及其方法
JP2018515020A (ja) ワイヤレスネットワークにおける衝突を低減するためのシステムおよび方法
WO2014134957A1 (zh) 在无线通信系统中进行动态下行配置的方法、基站和终端
US10932159B2 (en) Data transmission method, data receiving device, and data sending device
WO2022067726A1 (zh) 用于资源调度的通信方法及装置
WO2014176889A1 (zh) 一种数据传输方法、装置及系统
WO2014000533A1 (zh) 无线局域网的数据传输方法及设备
Lee et al. A performance analysis of block ACK scheme for IEEE 802.11 e networks
EP2922365A1 (en) Packet transmission method, system, and station
WO2013064101A1 (zh) 确定harq模式的方法、上行数据传输方法及设备
WO2012159580A1 (zh) 一种获取终端通信链路质量的方法、网络接入设备及系统
WO2015113296A1 (zh) 双连接模式下的状态反馈方法及设备
EP3633890A1 (en) Method, device, and system for transmitting data
US20120044797A1 (en) Method and Equipment for Sending Radio Link Layer Status Package
TW202029820A (zh) 通訊裝置、及通訊方法
KR20160052422A (ko) 네트워크에서 플로우 컨트롤 방법
WO2015000305A1 (zh) 一种降低LowMAC层功耗的方法、装置和终端
CN103747479B (zh) 无线通信方法和无线通信设备

Legal Events

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

Ref document number: 14819909

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14819909

Country of ref document: EP

Kind code of ref document: A1