WO2015081700A1 - 一种上报传感器数据的方法和终端 - Google Patents

一种上报传感器数据的方法和终端 Download PDF

Info

Publication number
WO2015081700A1
WO2015081700A1 PCT/CN2014/082151 CN2014082151W WO2015081700A1 WO 2015081700 A1 WO2015081700 A1 WO 2015081700A1 CN 2014082151 W CN2014082151 W CN 2014082151W WO 2015081700 A1 WO2015081700 A1 WO 2015081700A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
sensor
sensor data
time
working state
Prior art date
Application number
PCT/CN2014/082151
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 华为终端有限公司
Priority to EP14867152.2A priority Critical patent/EP2999276B1/en
Priority to US14/902,107 priority patent/US9877283B2/en
Publication of WO2015081700A1 publication Critical patent/WO2015081700A1/zh

Links

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
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0235Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a power saving command
    • 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/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0287Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
    • H04W52/0293Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment having a sub-controller with a low clock frequency switching on and off a main controller with a high clock frequency
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/10Technologies improving the efficiency by using switched-mode power supplies [SMPS], i.e. efficient power electronics conversion e.g. power factor correction or reduction of losses in power supplies or efficient standby modes
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • 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

  • Embodiments of the present invention relate to the field of electronic technologies, and in particular, to a method and a terminal for reporting sensor data.
  • a plurality of sensors are installed in the smart terminal, such as a gravity sensor, a gyroscope, an infrared proximity sensor, a compass, a pressure sensing sensor, etc., and as the terminal intelligence is further developed, the number of sensors is further increased.
  • the data collected by these sensors is used by different applications to implement specific functions, such as the pedometer needs to call the data of the vibration sensor.
  • the event information is reported to the driver layer of the processor, and the driver layer sends the event information to the application, and the application completes the corresponding processing.
  • FIG. 1 is a flow chart of real-time reporting of sensor data in the prior art. When the event occurs, perform the following steps:
  • the sensor collects sensor data and reports it
  • the processor receives the sensor data and processes it. - - In the flow of Figure 1, since the processor only needs to receive the sensor data, and the sensor data needs to be processed, the processor needs to be awake all the time, and the power consumption is too large. Summary of the invention
  • a method for reporting sensor data including:
  • the processor determines that only the sensor data of the sensor set needs to be processed, the processor sends an indication to enter a sleep state, and enters a sleep state; after receiving the indication that the processor enters a sleep state, the sensor hub receives and temporarily stores the sensor set and Reported sensor data;
  • the transmitting processor returns to an indication of an operational state when the processor returns to an operational state, and the sensor hub reports the sensor data to the processor upon receiving an indication that the processor is restored to an operational state.
  • the receiving, and temporarily storing, the sensor data of the sensor set includes: receiving and temporarily storing sensor data collected by the sensor into an event information table, and recording the sensor Collecting time corresponding to the sensor data, and temporarily storing the time in the event information table;
  • the reporting of the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • the determining, by the processor, that only the sensor data of the sensor set needs to be processed specifically includes: interacting with the processor The identification information of the party is identified.
  • the processor determines that only the sensor data currently collected by the sensor needs to be processed.
  • the processor entering a sleep state includes: disconnecting a clock and a power of the processor.
  • the restoring the processor to the working state comprises: customizing the sensor hub to wake up the The condition of the processor, when the sensor hub determines that the wake condition is satisfied, waking up the processor.
  • condition includes at least one of the following:
  • the amount of data in the event information table exceeds a certain value
  • the time when the processor enters a sleep state exceeds a certain value.
  • the method further includes: the processor receiving and parsing the report reported by the sensor hub
  • the event information table obtains a time set corresponding to the sensor data and the sensor collection sensor data.
  • the processor receives and parses the event information table reported by the sensor hub, Acquiring the sensor data, and recording a time for acquiring the sensor data, where the time is an acquisition time;
  • the manner of the time mapping includes:
  • the working state of the processor includes a compressed working state, in which the processor acquires sensing temporarily stored by the sensor hub during a sleep state and a compressed working state. – data;
  • the processor calculates a length of sleep time from when the processor enters a sleep state to when it enters a compressed operational state, wherein a start time of the processor to enter a sleep state is . ;
  • the processor calculates a length of time from the processor entering the compressed working state to the end of the compressed working state as ⁇ 2 , wherein the starting time of the processor entering the compressed working state is ⁇ 2 .
  • the processor adjusts the system time interface such that the processor acquires time ⁇ 2 . + ⁇
  • the time corresponding to the sensor data collected by the system time interface is ⁇ 10 + ⁇ * ( l+L ) /T 2 , where ⁇ represents a slave compression operation
  • the length of time at which the state begins, when ⁇ is maximum, the compression state ends (0 ⁇ ⁇ 2 ).
  • a method for reporting sensor data comprising:
  • the processor determines that only the sensor data of the sensor set needs to be processed, the processor sends the indication information that enters the sleep state, and enters a sleep state, where the indication information for entering the sleep state is used to make a sensor data temporary storage unit Receiving and temporarily storing sensor data collected by the sensor after receiving the indication information of entering the sleep state;
  • the receiving, and temporarily storing, the sensor data of the sensor set includes: receiving and temporarily storing sensor data collected by the sensor into an event information table, and recording the sensor Collecting time corresponding to the sensor data, and temporarily storing the time in the event information table;
  • the reporting of the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • a third aspect provides a terminal, including: a sensor, a processor, and a sensor hub; and the sensor is configured to collect sensor data;
  • the processor is configured to determine, when only the sensor data collected by the sensor needs to be processed, send the indication information that enters the sleep state, and enter a sleep state; when the working state is restored, the sending processor returns to the working state indication information, And receiving sensor data reported by the sensor hub; the sensor hub is connected between the sensor and the processor, and receives and temporarily stores the sensor after receiving an indication that the processor enters a sleep state. Sensor data, and upon receiving an indication that the processor is restored to an operational state, the sensor data is sent to the processor.
  • the receiving, and temporarily storing, the sensor data of the sensor set includes: receiving and temporarily storing sensor data collected by the sensor into an event information table, and recording the sensor Collecting time corresponding to the sensor data, and temporarily storing the time in the event information table;
  • the reporting of the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • the sensor hub further includes:
  • the determining unit is configured to check whether the processor wake-up condition is satisfied, and if the wake-up condition is met, wake up the processor to restore the processor from the sleep state to the working state.
  • a third possible implementation manner is that the wakeup condition includes at least one of the following:
  • the amount of data temporarily stored in the event information table exceeds a certain value
  • the time when the processor enters a sleep state exceeds a certain value.
  • the fourth possible implementation manner is: the processor includes: - receiving unit: for receiving an event information table reported by the sensor hub;
  • Processing unit configured to parse an event information table received by the receiving unit.
  • the processing unit parses the time set corresponding to the sensor data and the sensor collection sensor data, and processes the sensor data .
  • the sixth possible implementation manner is: the processing unit parses the sensor data and records a time for acquiring the sensor data, where the time is an acquisition time; The time corresponding to the sensor collection sensor data is derived from the acquisition time by way of time mapping.
  • the seventh possible implementation manner is: when the event information table is an event queue, the time mapping manner includes:
  • the working state includes a compressed working state, in which the processor acquires sensor data temporarily stored by the sensor hub when in a sleep state and a compressed working state; the processor calculates from the processing enters the sleep state to enter sleep time length between the compressed working state, wherein the processor sleep time for starting ⁇ 10,
  • the processor calculates a length of time from the processor entering the compressed working state to the end of the compressed working state as ⁇ 2 , wherein the starting time of the processor entering the compressed working state is ⁇ 2 .
  • the processor adjusts a system time interface such that the processor acquires time ⁇ 2 . + When the sensor data is acquired at time ⁇ , the time corresponding to the sensor data collected by the system time interface is L. + T * ( L+L ) / ⁇ 2 , where ⁇ represents a time length variable from the compression working state, and when ⁇ is maximum, the compression working state ends (0 ⁇ ⁇ 2 ).
  • a processor configured to determine, when only sensor data collected by the sensor needs to be processed, send indication information to enter a sleep state, and enter a sleep state, where the indication of entering the sleep state Information is used to enable a sensor data temporary storage unit to receive the entry Receiving and temporarily storing sensor data of the sensor set after the indication information of the sleep state; when the processor returns to the working state, the sending processor returns to the working state indication information, and the indication information for returning to the working state is used for making
  • the sensor data temporary storage unit reports the temporarily stored sensor data to the processor after receiving the indication information that the processor is restored to the working state.
  • the receiving, and temporarily storing, the sensor data of the sensor set includes: receiving and temporarily storing sensor data collected by the sensor into an event information table, and recording the sensor Collecting time corresponding to the sensor data, and temporarily storing the time in the event information table;
  • the reporting of the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • the processor when the processor only needs to process the sensor data collected by the sensor, the processor can enter a sleep state, and the data collected by the sensor is temporarily stored in the sensor hub by the low-power sensor hub, and the processor resumes working. After the status, the sensor hub reports the data of the temporarily stored sensor, and then the sensor processes the sensor data. In this way, the high-power processor does not have to be active even when the sensor is operating, thus reducing power consumption.
  • FIG. 1 is a schematic flowchart of real-time reporting of sensor data in the prior art
  • FIG. 2 is a schematic flowchart of reporting sensor data according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of processing a sensor data by a processor according to an embodiment of the present invention
  • 4 is a schematic flowchart of another process for processing a sensor data by a processor according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of establishing a correspondence between an acquisition time and a collection time by using a time mapping manner according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • Figure ⁇ is a schematic block diagram of the internal structure of a sensor hub provided by an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a connection relationship between a sensor hub and an internal unit of a processor according to an embodiment of the present invention. detailed description
  • the technical solution of the present invention can be applied to various mobile or fixed terminals that require sensors, such as mobile phones, tablet computers, and the like.
  • FIG. 2 is a flow chart showing the reporting of sensor data according to an embodiment of the present invention.
  • the processor determines that only the sensor data of the sensor set needs to be processed, the processor sends an indication to enter a sleep state, and enters a sleep state;
  • the senor includes a gravity sensing sensor, a gyroscope, a photosensitive sensor, an acoustic sensor, a gas sensor, a chemical sensor, a pressure sensitive sensor, etc., and the sensor may be a special sensor or a sensor. Other devices of the function are not limited in the present invention.
  • the processor will determine if only sensor data collected by the sensor needs to be processed.
  • the processor determines that only the sensor data currently collected by the sensor needs to be processed, including:
  • the identification information of the interacting party of the processor interaction is identified.
  • the processor considers that only the sensor data collected by the sensor needs to be processed.
  • the interaction here includes any data interaction or signaling communication with the processor, such as any unit, module or application.
  • the interaction party here includes any unit, module or application mentioned above.
  • the identification information (ID information) of the interaction party is included, and according to the identifier, the processor can identify the identity of the interaction party according to the ID information.
  • the processor thinks that only the sensor data collected by the sensor needs to be processed, then the processor enters a sleep state; when the interacting party comes from a unit, module or application other than the sensor, the processor can keep working. status.
  • the processor goes to sleep and can be disconnected from the processor's power and clock. It is understandable that if the processor includes a power management module, the module does not need to be powered down to facilitate the processor's warm start.
  • the processor saves the configuration of the processor and the registers of each unit, module, application, etc., and the recovery state function that interact with the processor into the memory, and restores the entry address of the state function.
  • the power management module remains active when the processor enters the sleep state.
  • the recovery state function can be accurately found from the entry address of the recovery state function.
  • the configuration of the register includes the configuration of the clock and the pointer of the task. information.
  • the recovery state function's entry address is called to obtain the recovery state function, thereby restoring the processor and the units, modules, and applications that interact with the processor before the processor goes to sleep.
  • the processor can enter the sleep state only when the sensor collects the sensor data, and the corresponding power consumption can be saved naturally.
  • the indication that the processor sends a sleep state may specifically be:
  • the processor sends an instruction that instructs the processor to enter a sleep state.
  • the instruction sent by the processor can be all the orders for its control. — — The unit, so these units can receive the instruction sent by the processor.
  • the sensor hub After receiving the indication that the sensor enters a sleep state, the sensor hub (also called the sensor hub) receives and temporarily stores the sensor data collected and reported by the sensor;
  • the sensor data received and temporarily stored by the sensor hub and reported by the sensor hub includes: receiving and temporarily storing the sensor data collected by the sensor into the event information table, and recording the time corresponding to the sensor data collected by the sensor, and the time is also Temporarily stored in the event information table.
  • the above sensor hub is connected between the sensor and the processor, that is, the sensor data is first collected by the sensor, then reported to the sensor hub, and then reported to the processor by the sensor hub.
  • the sensor hub is connected to one or more of the same or different sensors, and the connection may be wired or wireless.
  • the sensor hub is comparable to a processor and is equivalent to a low power processor.
  • the sensor hub is commercially available.
  • the sensor hub When the processor is working, the sensor hub reports the received sensor data to the processor in real time; but when the processor is in a sleep state, the sensor hub temporarily stores the received sensor data, and records the time of receiving the sensor data, because The sensor always reports the collected sensor data to the sensor hub in real time, so the time when the sensor hub receives the sensor data is the collection time.
  • the sensor data received and temporarily stored by the sensor hub and reported by the sensor hub includes: after the sensor hub receives the instruction that the processor enters the sleep state, returns a response message to the processor, and starts Store received sensor data.
  • the sensor hub temporarily stores the sensor data and the collection time into the event information table of the sensor hub, and the event information table includes at least two operations of inserting and popping, sensor data and The collection time is sequentially inserted into the event information table in chronological order.
  • the event information table is in the form of a queue, the "first in, first out” is followed.
  • a field may be created in the event information table as da ta , the field corresponding to storing sensor data, the format and length of the field are not limited, and another field is created as ime, and the corresponding storage set of the field Time, because the sensor data and the collection time have a corresponding relationship, the da ta field and the meth field can establish the corresponding association by creating the same stylus section, or by extending the content of the ime field after the da ta field. , to have a corresponding association between sensor data and collection time.
  • the form of the data structure, the manner of the algorithm, and the like can be determined by the technician, and the present invention does not impose any limitation.
  • the sending processor returns to the working state
  • the sensor hub reports the sensor data to the processor after receiving the indication that the processor returns to the working state
  • the reporting of the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • the indication that the sending processor returns to the working state when the processor is restored to the working state specifically includes: when the processor returns to the working state, sending an instruction to notify the processor that the working state has been restored.
  • the instruction sent by the processor can be all units for which it is controlled, so that these units can receive the instruction sent by the processor.
  • the sensor hub After receiving the indication that the processor is restored to the working state, the sensor hub determines that the processor has returned to the working state, and reports the event information table to the processor.
  • factors that trigger the processor to return to an operational state include a sensor hub wake-up processor, or other unit, module, application, etc., waking up the processor (e.g., the time the user wants to see the terminal while the processor is in sleep state).
  • the processor resumes the working state, first the processor sends a message to the sensor hub, and the sensor hub reports the event information table to the processor.
  • the sensor hub can also wake up the processor when appropriate (e.g., the event information table of the sensor hub is full) when there are no other factors that trigger the processor to return to an active state.
  • condition that the sensor hub wakes up the processor may be customized, and the foregoing wakeup condition includes one or more of the following: the amount of data in the event information table exceeds a certain value, or the processor enters a sleep state for more than a certain value.
  • the wake-up condition is met, the sensor hub wakes up the processor.
  • step 204 may also be performed (the step is not shown in the figure):
  • the processor parses the event information table.
  • the sensor data and the collection time are included in the event information table.
  • processing sensor data and collection time processing sensor data and collection time.
  • the current processor may not be able to parse the collection time from the event information table. Therefore, in the following embodiments of the present invention, how to calculate by other means is described. The time is set so that the processor completes the corresponding processing.
  • the method provided by the embodiment of the present invention can enable a high-energy-consuming processor to enter a sleep state when only a sensor works, and replace the processor to temporarily store sensor data by a low-power sensor hub, after the processor resumes working state.
  • the sensor hub reports the data to the processor, so that the energy-intensive processor does not need to keep working while the sensor is working, saving power.
  • FIG. 4 provides a schematic diagram of another processor processing the reported sensor data.
  • the processor records a time for acquiring sensor data from the event information table, where the time is acquired. It can be understood that the acquisition time is different from the collection time in the foregoing.
  • the collection time is the time corresponding to the time when the sensor collects the sensor data, and is the time when the event actually occurs, and the acquisition time is only the processor from There is no correspondence between the time when the sensor data is parsed and acquired in the event information table and the collection time.
  • the acquisition time is only the time at which the processor parses the sensor data from the event information table.
  • the event information table cannot be directly obtained after parsing the event information table, one method is to establish a correspondence between the acquisition time and the collection time, thereby calculating the collection time by obtaining the time.
  • the method provided by the embodiment of the present invention can analyze and process the sensor data by using the collection time calculated from the acquisition time when the processor only parses and acquires the sensor data.
  • FIG. 5 is a schematic diagram of a method for deriving a collection time from an acquisition time.
  • the time mapping manner provided by the embodiment of the present invention may be used to obtain the time from the acquisition time. Set time.
  • the processor After the processor resumes the working state, the sensor data that occurs when the processor is in the sleep state is processed for a period of time, and the processor is in a compressed working state during the period.
  • the sensor hub In the compressed working state, the sensor hub should temporarily store the sensor data generated in the compressed working state on the one hand, and report the sensor data temporarily stored in the previous processor sleep to the processor on the other hand, when the sensor hub sleeps the processor.
  • the event information table temporarily stored in the compressed working state is reported to the processor.
  • the processor receives all the event information tables temporarily stored by the sensor hub when it is in the sleep state and in the compressed working state, the processor ends the compression working state, returns to the normal working state, and processes the sensor data reported by the sensor in real time. This will be explained below with reference to Figure 5:
  • the processor calculates a sleep time length T1 between when the processor enters a sleep state and when it enters a compressed working state, wherein the start time of the processor entering the sleep state is T10,
  • the processor calculates a time length from the processor entering the compression working state to the end of the compression working state as T2, wherein the starting time of the processor entering the compression working state is T20,
  • the sensor hub reports the event information table in the T1+T2 time to the processor in the compressed working state T2, and the processor obtains the sensor data by parsing the event information table. Understandably, the processing speed of the current processor is very fast, and almost the data can be quickly parsed as soon as it is reported. Therefore, it can be considered that the sensor hub reports the event information table in the T2 time, and the processor can parse the time in the T2 time. All data in the event information table.
  • the processor adjusts the system time interface, so that when the processor acquires the sensor data when the acquisition time is ⁇ 20+ ⁇ , the time read by the system time interface is ⁇ 10+ ⁇ *(T1+T2)/ ⁇ 2, where ⁇ represents a time length variable from the compression working state, and when ⁇ is maximum, the compression working state ends (0 ⁇ ⁇ 2).
  • the processor can be caused to calculate the collection time from the acquisition time by the time compression method, that is, although the processor acquires the sensor data when ⁇ 20+ ⁇ , the time is considered to be ⁇ 10. + ⁇ *( ⁇ 1+ ⁇ 2 )/ ⁇ 2, which is the real time of the sensor data set, so that the processor can process the sensor data and the derived set of time collections with only sensor data and acquisition time.
  • a method for reporting sensor data includes: when the processor determines that only sensor data of the sensor set needs to be processed, the processor sends the indication information of entering the sleep state, and enters a sleep state.
  • the instruction information for entering the sleep state is used to enable a sensor data temporary storage unit to receive and temporarily store sensor data collected by the sensor when receiving the indication information of entering the sleep state; when the processor returns to the working state And transmitting, to the processor, indication information that is restored to an active state, the indication information being restored to the working state is used to make the sensor
  • the data temporary storage unit reports the temporarily stored sensor data to the processor when receiving the indication information that the processor is restored to the working state.
  • the receiving and temporarily storing the sensor data of the sensor includes: receiving and temporarily storing the sensor data collected by the sensor into the event information table, and recording the time corresponding to the sensor data of the sensor, and temporarily storing the time
  • the reporting of the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • the sensor data temporary storage unit may be a sensor hub. After receiving the indication that the sensor enters a sleep state, the sensor hub receives and temporarily stores sensor data collected by the sensor.
  • the indication that the processor sends a sleep state may specifically be:
  • the processor sends an instruction, the instruction instructing the processor to enter a sleep state.
  • the instruction sent by the processor can be all of the units for which it is controlled, so that these units can receive the instruction sent by the processor.
  • the indication that the sending processor returns to the working state when the processor is restored to the working state specifically includes: when the processor returns to the working state, sending an instruction to notify the processor that the working state has been restored.
  • the instruction sent by the processor can be all units for which it is controlled, so that these units can receive the instruction sent by the processor.
  • the sensor hub After receiving the indication that the processor is restored to the working state, the sensor hub determines that the processor has returned to the working state, and reports the event information table to the processor.
  • FIG. 6 is a schematic structural diagram of a terminal capable of reporting sensor data according to an embodiment of the present invention.
  • the terminal 601 includes: a sensor 602, configured to collect sensor data; and a processor 603, determining that when only the sensor data collected by the sensor 602 needs to be processed, sending an instruction to enter a sleep state, and entering a sleep state;
  • the sending processor returns to the indication of the working state and receives the event information table reported by the sensor hub 604; the sensor hub 604 is connected between the sensor 602 and the processor 603 and receives the indication after receiving the processor entering the sleep state.
  • the senor may be a gravity sensing sensor, a gyro sensor, an infrared sensor, a chemical sensor, a pressure sensitive sensor, etc., and may be a special sensor or other device with a sensor function, and the present invention does not have any Limited.
  • the processor using the current interface protocol standard may not be able to parse the collection time from the received event information table;
  • the standard for driving the inter-layer interface protocol enables the processor to parse out the sensor data and the collection time after receiving the event information table to improve the efficiency of the processor.
  • the terminal provided according to the embodiment of the present invention can enter a sleep state when the processor only needs to process the sensor data, and the sensor temporarily stores the sensor data by the low-power sensor hub. After the processor resumes the working state, the event is detected by the sensor hub. The information table is reported to the processor so that the energy-intensive processor does not have to remain active while the sensor is operating, saving power.
  • the sensor hub 701 includes:
  • the determining unit 702 is configured to check whether the processor wake-up condition is satisfied, and if the wake-up condition is met, wake up the processor to restore the processor from the sleep state to the working state, and if not, the processor keeps sleeping status.
  • the waking condition includes one or more of the following: the amount of data temporarily stored in the event information table exceeds a certain value, or the time when the processor enters a sleep state exceeds a certain value.
  • the processor 801 includes:
  • the receiving unit 802 is configured to receive an event information table reported by the sensor hub 804.
  • - Processing unit 803 for parsing the event information table received by the receiving unit 802.
  • the processing unit 803 is further configured to parse the sensor data and the collection time set corresponding to the sensor data and process the sensor data.
  • processing unit 803 is further configured to parse the sensor data, and acquire, by using a time mapping manner, a time corresponding to the sensor collection sensor data.
  • the manner of the time mapping includes: after the processor resumes the working state, first enters a compressed working state.
  • the sensor hub should temporarily store the event information table generated in the compressed working state, and on the other hand, report the event information table temporarily stored in the previous processor sleep to the processor, when the sensor hub puts the processor.
  • the event information table temporarily stored in the sleep state is reported, and the event information table temporarily stored in the compressed working state is reported to the processor, which is parsed and processed by the processor.
  • the specific calculation method can refer to the process of the method embodiment, and the process is not repeated. Description.
  • the terminal can enter a sleep state when the processor only needs to process the sensor data, and the sensor temporarily stores the sensor data by the low-power sensor hub. After the processor resumes the working state, the sensor hub reports the data to the processing. Therefore, the energy-intensive processor does not have to keep working while the sensor is operating, reducing power consumption.
  • a processor configured to determine that only sensor data of the sensor set needs to be processed, send indication information to enter a sleep state, and enter a sleep state, where the indication information for entering the sleep state is used to enable a sensor data temporary storage unit to receive Receiving and temporarily storing the sensor data collected by the sensor when the instruction information enters the sleep state; when the processor returns to the working state, the sending processor returns the indication information of the working state, the indication of returning to the working state
  • the information is used to cause the sensor data temporary storage unit to report the temporarily stored sensor data to the processor when receiving the indication information that the processor is restored to the working state.
  • the receiving and temporarily storing the sensor data of the sensor includes: receiving and temporarily storing the sensor data of the sensor to the event information table, and recording the time corresponding to the sensor data of the sensor, and the time is also Pre-storing to the event information table; reporting the sensor data to the processor specifically includes: reporting the event information table to the processor.
  • the sensor data temporary storage unit may be a sensor hub. After receiving the indication that the sensor enters a sleep state, the sensor hub receives and temporarily stores sensor data collected by the sensor.
  • the indication that the processor sends a sleep state may specifically be:
  • the processor sends an instruction, the instruction instructing the processor to enter a sleep state.
  • the instruction sent by the processor can be all of the units for which it is controlled, so that these units can receive the instruction sent by the processor.
  • the indication that the sending processor returns to the working state when the processor is restored to the working state specifically includes: when the processor returns to the working state, sending an instruction to notify the processor that the working state has been restored.
  • the instruction sent by the processor can be all units for which it is controlled, so that these units can receive the instruction sent by the processor.
  • the sensor hub After receiving the indication that the processor is restored to the working state, the sensor hub determines that the processor has returned to the working state, and reports the event information table to the processor.

Abstract

本发明实施例公开了一种上报传感器数据的方法和终端。一种上报传感器数据的方法,该方法包括:当处理器只需要处理传感器采集的传感器数据时,处理器发送进入睡眠状态的指令并进入睡眠状态;处理器进入睡眠状态后,传感器集线器接收并暂存传感器采集并上报的传感器数据到事件信息表中,传感器集线器记录传感器采集传感器数据对应的时间,将该时间也暂存到事件信息表中;当处理器恢复成工作状态后,传感器集线器将事件信息表上报给处理器,由处理器解析事件信息表,完成相应的处理。本发明实施例中在只有传感器工作时,处理器一直处于睡眠状态,由低功耗的传感器集线器暂存数据,从而能节省整体功耗。

Description

一 一
一种上报传感器数据的方法和终端
本申请要求于 2013 年 12 月 2 日提交中国专利局、 申请号为 201310634969.X, 发明名称为 "一种上报传感器数据的方法和终端"的中国专 利申请的优先权, 其全部内容通过引用包含于本申请中。
技术领域
本发明实施例涉及电子技术领域,尤其涉及一种上报传感器数据的方法和 终端。
背景技术
如今, 智能手机、 平板电脑等智能终端发展迅速。 智能终端中安装了多个 传感器, 例如重力传感器、 陀螺仪、 红外接近感应传感器、 指南针、 压力感应 传感器等等,而且随着终端智能化的进一步发展,传感器的数量会进一步增加。 这些传感器釆集的数据会被不同的应用程序来实现特定的功能,例如计步器需 要调用震动传感器的数据。 在这过程中,传感器一旦侦测到事件发生, 就会将事件信息上报给处理器 的驱动层, 驱动层再将事件信息发送给应用程序, 应用程序完成相应的处理。 为了保持发送给应用程序的传感器信息不丟失,处理器会一直保持唤醒(wake ) 状态, 但这样就会非常耗电。 图 1是现有技术中实时上报传感器数据的流程图。 当事件发生时,执行如 下步骤:
101 , 传感器釆集传感器数据, 并上报;
102 , 处理器接收传感器数据, 并处理。 - - 在图 1 的流程下, 由于处理器只要有传感器数据就要接收, 并且接收到传感 器数据就需要进行处理, 因此处理器需要一直处于唤醒状态, 从而功耗过大。 发明内容
有鉴于此, 本发明实施例提供了一种上报传感器数据的方法和终端,解决 处理器需要一直处于唤醒状态, 从而功耗过大的问题。 第一方面, 提供一种上报传感器数据的方法, 包括:
处理器判断当前只有传感器釆集的传感器数据需要处理时,处理器发送进 入睡眠状态的指示, 并进入睡眠状态; 接收到处理器进入睡眠状态的指示后,传感器集线器接收并暂存传感器釆 集并上报的传感器数据;
当所述处理器恢复成工作状态时发送处理器恢复成工作状态的指示,所述 传感器集线器接收到该处理器恢复成工作状态的指示后将所述传感器数据上 报给所述处理器。
在第一方面的第一种可能的实现方式中,所述接收并暂存传感器釆集的传 感器数据具体包括: 接收并暂存传感器釆集的传感器数据到事件信息表中, 并 记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述事件信息 表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。 结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中, 所 述处理器判断当前只有传感器釆集的传感器数据需要处理具体包括:对与所述 处理器交互的交互方的身份识别信息进行识别,当识别到的身份识别信息仅包 含传感器的身份识别信息时,所述处理器判断当前只有传感器釆集的传感器数 据需要处理。 — — 结合第一方面的第一或第二种可能的实现方式,在第三种可能的实现方式 中, 所述处理器进入睡眠状态包括: 断开所述处理器的时钟和电源。
结合第一方面的第一至第三种中任一一种可能的实现方式,在第四种可能 的实现方式中,所述处理器恢复成工作状态包括: 自定义所述传感器集线器唤 醒所述处理器的条件, 当所述传感器集线器判断所述唤醒条件满足时, 唤醒所 述处理器。
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中, 所 述条件包括以下至少一个:
所述事件信息表中的数据量超过一定值;
所述处理器进入睡眠状态的时间超过一定值。
结合第一方面的第一至第五种中任一一种可能的实现方式,在第六种可能 的实现方式中, 所述方法进一步包括:所述处理器接收并解析所述传感器集线 器上报的所述事件信息表,得到所述传感器数据以及所述传感器釆集传感器数 据对应的时间集合。
结合第一方面的第一至第五种中任一一种可能的实现方式,在第七种可能 的实现方式中 ,所述处理器接收并解析所述传感器集线器上报的所述事件信息 表,获取所述传感器数据, 记录获取所述传感器数据的时间, 该时间为获取时 间;
并通过时间映射的方式从所述获取时间推算出所述传感器釆集传感器数 据对应的时间。
结合第一方面的第七种可能的实现方式, 在第八种可能的实现方式中, 当所述事件信息表是事件队列时, 所述时间映射的方式包括:
所述处理器的工作状态包括压缩工作状态,在所述压缩工作状态, 所述处 理器要获取其在睡眠状态和压缩工作状态时由所述传感器集线器暂存的传感 — — 器数据;
所述处理器计算从该处理器进入睡眠状态到进入压缩工作状态之间的睡 眠时间长度 , 其中所述处理器进入睡眠状态的起始时刻为 。;
所述处理器计算从该处理器进入压缩工作状态到压缩工作状态结束的时 间长度为 τ2, 其中所述处理器进入压缩工作状态的起始时刻为 τ2。; 所述处理 器调整系统时间接口, 使所述处理器在获取时间是 Τ2。+ τ时刻获取到传感器数 据时, 所述系统时间接口读取的所述传感器釆集传感器数据对应的时间为 Τ10+ τ * ( l+L ) /T2, 其中, τ表示一个从压缩工作状态开始的时间长度变量, τ 最大的时候, 压缩工作状态结束(0 τ Τ2 )。
第二方面, 提供一种上报传感器数据的方法, 该方法包括:
处理器判断当前只有传感器釆集的传感器数据需要处理时,所述处理器发 送进入睡眠状态的指示信息, 并进入睡眠状态, 所述进入睡眠状态的指示信息 用于使一传感器数据暂存单元在收到所述进入睡眠状态的指示信息后接收并 暂存传感器釆集的传感器数据;
当所述处理器恢复成工作状态时发送处理器恢复成工作状态的指示信息, 所述恢复成工作状态的指示信息用于使所述传感器数据暂存单元在收到所述 处理器恢复成工作状态的指示信息后将暂存的所述传感器数据上报给所述处 理器。
在第二方面的第一种可能的实现方式中,所述接收并暂存传感器釆集的传 感器数据具体包括: 接收并暂存传感器釆集的传感器数据到事件信息表中, 并 记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述事件信息 表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。 第三方面, 提供一种终端, 包括: 传感器、 处理器、 传感器集线器; 所述传感器, 用于釆集传感器数据;
所述处理器, 用于判断当其只有传感器釆集的传感器数据需要处理时,发 送进入睡眠状态的指示信息, 并进入睡眠状态; 在恢复工作状态时发送处理器 恢复成工作状态的指示信息, 并接收所述传感器集线器上报的传感器数据; 所述传感器集线器, 连接在所述传感器和所述处理器之间,在接收到处理 器进入睡眠状态的指示后接收并暂存所述传感器釆集的传感器数据,并在接收 到处理器恢复成工作状态的指示后将所述传感器数据上 ^艮给所述处理器。
在第三方面的第一种可能的实现方式中,所述接收并暂存传感器釆集的传 感器数据具体包括: 接收并暂存传感器釆集的传感器数据到事件信息表中, 并 记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述事件信息 表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
结合第三方面或第三方面的第一种可能的实现方式,第二种可能实现的方 式是, 所述传感器集线器还包括:
判断单元: 用于检查所述处理器唤醒条件是否满足, 若满足唤醒条件, 则 唤醒所述处理器, 使所述处理器从睡眠状态恢复到工作状态。
结合第三方面的第二种可能的实现方式, 第三种可能的实现方式是, 所述 唤醒条件包括以下至少一个:
所述事件信息表暂存的数据量超过一定值;
所述处理器进入睡眠状态的时间超过一定值。
结合第二方面第一至第三种中任一一种可能的实现方式,第四种可能的实 现方式是: 所述处理器包括: — — 接收单元: 用于接收所述传感器集线器上报的事件信息表;
处理单元: 用于解析所述接收单元收到的事件信息表。
结合第二方面第四种可能的实现方式, 第五种可能的实现方式是: 所述处 理单元解析出所述传感器数据和所述传感器釆集传感器数据对应的时间集合, 并处理所述传感器数据。
结合第二方面第四种可能的实现方式, 第六种可能的实现方式是: 所述处 理单元解析出所述传感器数据并记录获取所述传感器数据的时间 ,该时间为获 取时间;所述处理器通过时间映射的方式从所述获取时间推算出所述传感器釆 集传感器数据对应的时间。
结合第二方面第六种可能的实现方式, 第七种可能的实现方式是: 当所述 事件信息表是事件队列时, 所述时间映射的方式包括:
所述工作状态包括压缩工作状态,在所述压缩工作状态, 所述处理器要获 取其在睡眠状态和压缩工作状态时由所述传感器集线器暂存的传感器数据; 所述处理器计算从该处理器进入睡眠状态到进入压缩工作状态之间的睡 眠时间长度 , 其中所述处理器进入睡眠状态的起始时刻为 τ10,
所述处理器计算从该处理器进入压缩工作状态到压缩工作状态结束的时 间长度为 τ2, 其中所述处理器进入压缩工作状态的起始时刻为 τ2。,
所述处理器调整系统时间接口, 使所述处理器在获取时间是 Τ2。+ τ时刻获 取到传感器数据时,所述系统时间接口读取的所述传感器釆集传感器数据对应 的时间为 L。+ T * ( L+L ) /Τ2, 其中, τ表示一个从压缩工作状态开始的时间 长度变量, τ最大的时候, 压缩工作状态结束(0 τ Τ2 )。
第四方面, 提供一种处理器, 所述处理器, 用于判断当前只有传感器釆集 的传感器数据需要处理时, 发送进入睡眠状态的指示信息, 并进入睡眠状态, 所述进入睡眠状态的指示信息用于使一传感器数据暂存单元在收到所述进入 睡眠状态的指示信息后接收并暂存传感器釆集的传感器数据;当所述处理器恢 复成工作状态时发送处理器恢复成工作状态的指示信息,所述恢复成工作状态 的指示信息用于使所述传感器数据暂存单元在收到所述处理器恢复成工作状 态的指示信息后将暂存的所述传感器数据上报给所述处理器。
在第四方面的第一种可能的实现方式中,所述接收并暂存传感器釆集的传 感器数据具体包括: 接收并暂存传感器釆集的传感器数据到事件信息表中, 并 记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述事件信息 表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
通过上述方案,在处理器只需要处理传感器釆集的传感器数据时, 处理器 能够进入睡眠状态,由低功耗的传感器集线器将传感器釆集的数据暂存到传感 器集线器中,在处理器恢复工作状态后,传感器集线器将暂存的传感器釆集的 数据上报, 然后由处理器处理传感器数据。 这样一来, 高功耗的处理器就不用 在只有传感器工作的时候也一直保持工作状态, 从而可以降低功耗。 附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1 为现有技术中实时上报传感器数据的流程示意图;
图 2为本发明实施例提供的上报传感器数据的流程示意图;
图 3为本发明实施例提供的处理器处理传感器数据的流程示意图; — — 图 4为本发明实施例提供的处理器处理传感器数据的另一流程示意图; 图 5 为本发明实施例提供的通过时间映射方式建立获取时间与釆集时间 对应关系的示意图;
图 6为本发明实施例提供的终端结构示意图;
图 Ί为本发明实施例提供的传感器集线器内部结构示意框图;
图 8 为本发明实施例提供的传感器集线器与处理器内部单元连接关系的 示意图。 具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例 ,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
本发明的技术方案可以应用于各种需要用到传感器的移动或固定终端,例 如手机, 平板电脑等。
图 2 是根据本发明的一个实施例提供的一种上报传感器数据的流程示意 图。
201 , 处理器判断当前只有传感器釆集的传感器数据需要处理时, 处理器 发送进入睡眠状态的指示, 并进入睡眠状态;
具体的, 所述的传感器包括重力感应传感器、 陀螺仪、 光敏传感器、 声敏 传感器、 气敏传感器、 化学传感器、 压敏传感器等, 所述的传感器可以是专门 的传感器,也可以是带有传感器功能的其它设备,本发明对此没有任何的限定。
应理解, 处理器会判断是否只有传感器釆集的传感器数据需要处理。可选 的, 处理器判断当前只有传感器釆集的传感器数据需要处理包括: 对与所述处 — — 理器交互的交互方的身份识别信息进行识别,当识别到的身份识别信息仅包含 传感器的身份识别信息时,所述处理器认为其只有传感器釆集的传感器数据需 要处理。这里的交互包括第任意单元、模块或者应用等与处理器发生的数据交 互或信令通信等, 这里的交互方包括上面说到的任意单元、模块或者应用, 在 交互过程中,交互信息中至少包含了交互方的身份识别信息( ID信息),据此, 处理器可以根据该 ID信息,识别出交互方的身份。当交互方只包括传感器时, 处理器认为这时只有传感器釆集的传感器数据需要处理,那么处理器就进入睡 眠状态; 当交互方来自传感器以外的单元、模块或者应用时, 处理器可以保持 工作状态。
处理器进入睡眠状态, 可以指断开处理器的电源和时钟, 可以理解的, 如 果处理器中包含电源管理模块, 该模块不需要断电, 以便于处理器热启动。 可 选的, 当处理器从工作状态到睡眠状态, 处理器保存处理器以及与处理器交互 的各单元、模块、 应用等的寄存器的配置和恢复状态函数到存储器中, 恢复状 态函数的入口地址保存在电源管理模块中,电源管理模块在处理器进入睡眠状 态时依然保持工作,从恢复状态函数的入口地址可以准确的找到恢复状态函数, 另外, 寄存器的配置包括时钟的配置和任务的指针等信息。 当处理器从睡眠状 态到工作状态, 则会调用恢复状态函数的入口地址获取恢复状态函数,从而恢 复处理器以及与处理器交互的各单元、模块、应用在处理器进入睡眠状态前的 配置。 由于在现有技术中,传感器在工作时会将釆集的传感器数据实时上报给 处理器, 这样一来, 即使只有传感器在工作, 处理器也要一直保持工作状态。 而在本发明实施例提供的技术方案中,处理器在只有传感器釆集传感器数据的 情况下, 可以进入到睡眠状态, 自然可以节约相应的功耗。
处理器发送进入睡眠状态的指示具体可以为: 处理器发送一个指令, 该指 令指示处理器进入睡眠状态。处理器发送的该指令可以是面向其控制的所有单 — — 元的, 因此这些单元都能收到处理器发送的该指令。
202 ,接收到传感器进入睡眠状态的指示后,传感器集线器(Sensor Hub , 也叫传感器中枢 )接收并暂存传感器釆集并上报的传感器数据;
传感器集线器接收并暂存传感器釆集并上报的传感器数据具体包括:接收 并暂存传感器釆集的传感器数据到事件信息表中 ,并记录所述传感器釆集传感 器数据对应的时间, 将该时间也暂存到所述事件信息表中。
应理解, 上述传感器集线器连接在在所述传感器和处理器之间, 即: 先由 传感器釆集传感器数据, 然后上报给传感器集线器,再由传感器集线器上报给 处理器。传感器集线器和一个或者多个相同或者不同的传感器连接, 所述的连 接方式可以是有线的, 也可以是无线的。 上述传感器集线器和处理器相比, 相 当于一个低功耗的处理器, 传感器集线器可以从市场上获得。
传感器集线器在处理器工作时, 将收到的传感器数据实时上报给处理器; 但在处理器处于睡眠状态时, 由传感器集线器暂存收到的传感器数据, 并记录 收到传感器数据的时间,由于传感器始终将釆集的传感器数据实时上报给传感 器集线器, 所以该传感器集线器收到传感器数据的时间也就是釆集时间。
接收到传感器进入睡眠状态的指示后传感器集线器接收并暂存传感器釆 集并上报的传感器数据具体包括:传感器器集线器收到处理器进入睡眠状态的 指令后, 向处理器返回一个响应消息, 并开始存储收到的传感器数据。
需要说明的是,上述传感器集线器将传感器数据和釆集时间暂存到该传感 器集线器的事件信息表中,所述事件信息表至少包括插入( push )和提取( pop ) 两种操作,传感器数据和釆集时间按照时间顺序依次插入事件信息表中, 当提 取数据时, 根据事件信息表的性质, 会有不同的提取顺序, 比如事件信息表釆 用队列 (queue )形式时, 遵循 "先进先出" 的顺序、 而当事件信息表釆用栈 ( s tack ) 的形式时, 遵循 "先进后出" 的顺序, 当然, 事件信息表也可以釆 — — 用链表 (L inked Li s t)或者其它数据结构。 示例性的, 可以在事件信息表中创 设一个字段为 da ta , 该字段对应存储传感器数据, 字段的格式和长度等都不 加限制, 创设另一个字段为 t ime , 该字段对应的存储釆集时间, 由于传感器 数据和釆集时间间具有对应关系,所以 da ta字段和 t ime字段间可以通过创设 相同的头针节来建立对应的关联,或通过在 da ta字段后扩展 t ime字段的内容, 使传感器数据和釆集时间间具有对应的关联。具体在实现中 ,数据结构的形式、 算法的方式等都可以由技术人员自行确定, 对此本发明不做任何限制。
203 ,当所述处理器恢复成工作状态时发送处理器恢复成工作状态的指示, 所述传感器集线器接收到该处理器恢复成工作状态的指示后将所述传感器数 据上报给所述处理器;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
当处理器恢复成工作状态时发送处理器恢复成工作状态的指示具体包括: 所述处理器恢复成工作状态时,发送一个指令告知处理器已经恢复成工作状态。 处理器发送的该指令可以是面向其控制的所有单元的,因此这些单元都能收到 处理器发送的该指令。
传感器集线器接收到该处理器恢复成工作状态的指示后确定处理器已恢 复成工作状态, 并将所述事件信息表上报给所述处理器。
应理解,触发所述处理器恢复成工作状态的因素包括传感器集线器唤醒处 理器、 或其它单元、 模块、 应用等唤醒处理器情况(例如用户在处理器睡眠状 态时想看下终端的时间)。
在其它单元、模块、应用等唤醒处理器的情况下,处理器恢复了工作状态, 先由处理器向传感器集线器发出一个信息,再由传感器集线器将事件信息表上 报给所述处理器。 — — 应理解,在没有其它触发所述处理器恢复成工作状态的因素时, 上述传感 器集线器也可以在适当的时候唤醒处理器(例如传感器集线器的事件信息表已 满的情况)。
可选的, 可以自定义传感器集线器唤醒处理器的条件, 上述唤醒条件包括 以下一个或多个: 上述事件信息表中的数据量超过一定值, 或处理器进入睡眠 状态的时间超过一定值。 当唤醒条件满足时, 传感器集线器唤醒处理器。
进一步的, 所述事件信息表上报之后, 还可以执行步骤 204 (图中未示出 该步骤): 处理器解析事件信息表。
需要说明的是, 在事件信息表中包含了传感器数据和釆集时间。
如果处理器能够解析出传感器数据和釆集时间, 处理器处理(参见图 3 ) 的步骤为:
301 , 解析事件信息表, 获得传感器数据和釆集时间;
302 , 处理传感器数据和釆集时间。
但是, 由于应用程序与驱动层间接口协议标准的原因, 目前的处理器未必 能从事件信息表中解析出釆集时间, 所以, 本发明后面的实施例中会介绍如何 通过其他方式推算出釆集时间, 从而处理器完成对应的处理。
釆用本发明实施例提供的方法可以让高耗能的处理器在只有传感器工作 的情况下进入睡眠状态,由低功耗的传感器集线器替代处理器暂存传感器数据, 在处理器恢复工作状态后, 由传感器集线器将数据上报给处理器,从而高耗能 的处理器不用在只有传感器工作的时候一直保持工作状态, 节省了功耗。
当处理器解析事件信息表只能获得传感器数据, 无法获得釆集时间时, 图 4提供了另一种处理器处理上报的传感器数据的流程示意图。
本发明实施例中和上述实施例中相同的部分不再赘述,区别点在于处理器 要通过时间映射的方式获取釆集时间。 — — 具体的, 包括步骤:
401 , 处理器记录从事件信息表中获取传感器数据的时间, 该时间为获取 时间。 可以理解的, 该获取时间和前文中的釆集时间是不同的, 釆集时间是与 传感器釆集传感器数据的时间一一对应的时间,是事件实际发生的时间, 而获 取时间只是处理器从事件信息表中解析、获取传感器数据的时间, 与釆集时间 间没有对应关系。
402 , 从获取时间推算出釆集时间;
如上所述,获取时间只是处理器从事件信息表中解析出传感器数据的时间。 当解析事件信息表后无法直接获得釆集时间时,一种方法就是建立获取时间与 釆集时间间的对应关系, 从而通过获取时间推算出釆集时间。
403 , 处理传感器数据与推算出的釆集时间。
釆用本发明实施例提供的方法可以在处理器只解析获取出传感器数据的 情况下, 通过从获取时间推算出的釆集时间, 分析和处理传感器数据。
可选的, 图 5提供了一种从获取时间推算出釆集时间的方法的示意图, 当 事件信息表釆用队列的形式时,可以通过本发明实施例提供的时间映射方式从 获取时间获取釆集时间。
具体的,在处理器恢复工作状态后,先用一段时间处理处理器在睡眠状态 时发生的传感器数据, 定义这段时间处理器处于压缩工作状态。在压缩工作状 态内,传感器集线器一方面要暂存压缩工作状态内发生的传感器数据, 另一方 面要把之前处理器睡眠时暂存的传感器数据上报给处理器,当传感器集线器把 处理器睡眠时暂存的事件信息表上报完,再把压缩工作状态内暂存的事件信息 表上报给处理器。当处理器收到了其处于睡眠状态时和处于压缩工作状态时传 感器集线器暂存的全部事件信息表, 则处理器结束压缩工作状态, 恢复到普通 的工作状态, 实时处理传感器上报的传感器数据。 下面结合图 5予以说明: — — 处理器计算从该处理器进入睡眠状态到进入压缩工作状态之间的睡眠时 间长度 T1, 其中处理器进入睡眠状态的起始时刻为 T10,
处理器计算从该处理器进入压缩工作状态到压缩工作状态结束的时间长 度为 T2, 其中处理器进入压缩工作状态的起始时刻为 T20,
传感器集线器在压缩工作状态 T2内将 T1+ T2时间内的事件信息表都上报 给处理器, 并由处理器通过解析事件信息表获取传感器数据。 可以理解的, 目 前处理器的处理速度非常快, 几乎数据一上报, 就能够迅速得到解析, 所以, 可以认为传感器集线器在 T2时间内上报完事件信息表,处理器就能在 T2时间 内解析完事件信息表中的所有数据。
在 T2内, 处理器调整系统时间接口, 使处理器在获取时间是 Τ20+τ时刻 获取到传感器数据时, 系统时间接口读取的时刻为 Τ10+τ * (T1+T2 ) /Τ2 , 其中, τ表示一个从压缩工作状态开始的时间长度变量, τ最大的时候, 压缩 工作状态结束(0 τ Τ2)。
根据本发明的实施例, 能够使得处理器通过时间压缩方式,从获取时间推 算出釆集时间, 即: 虽然处理器是在 Τ20+τ的时候获取到传感器数据, 但却 会认为这个时间是 Τ10+τ *(Τ1+Τ2 )/Τ2,也就是传感器数据釆集的真实时间, 从而处理器能在只获得传感器数据和获取时间的情况下处理传感器数据和推 算出的釆集时间集合。
根据本发明的一个实施例提供的一种上报传感器数据的方法, 包括: 处理器判断当前只有传感器釆集的传感器数据需要处理时,所述处理器发 送进入睡眠状态的指示信息, 并进入睡眠状态,所述进入睡眠状态的指示信息 用于使一传感器数据暂存单元在收到所述进入睡眠状态的指示信息时接收并 暂存传感器釆集的传感器数据;当所述处理器恢复成工作状态时发送处理器恢 复成工作状态的指示信息,所述恢复成工作状态的指示信息用于使所述传感器 — — 数据暂存单元在收到所述处理器恢复成工作状态的指示信息时将暂存的所述 传感器数据上报给所述处理器。
所述接收并暂存传感器釆集的传感器数据具体包括:接收并暂存传感器釆 集的传感器数据到事件信息表中,并记录所述传感器釆集传感器数据对应的时 间,将该时间也暂存到所述事件信息表中; 将所述传感器数据上报给所述处理 器具体包括: 将所述事件信息表上报给所述处理器。
所述传感器数据暂存单元可以是传感器集线器,接收到传感器进入睡眠状 态的指示后, 传感器集线器接收并暂存传感器釆集的传感器数据。
处理器发送进入睡眠状态的指示具体可以为: 处理器发送一个指令, 该指 令指示处理器进入睡眠状态。处理器发送的该指令可以是面向其控制的所有单 元的, 因此这些单元都能收到处理器发送的该指令。
当处理器恢复成工作状态时发送处理器恢复成工作状态的指示具体包括: 所述处理器恢复成工作状态时,发送一个指令告知处理器已经恢复成工作状态。 处理器发送的该指令可以是面向其控制的所有单元的,因此这些单元都能收到 处理器发送的该指令。
传感器集线器接收到该处理器恢复成工作状态的指示后确定处理器已恢 复成工作状态, 并将所述事件信息表上报给所述处理器。
图 6是根据本发明实施例提供的能够上报传感器数据的终端结构示意图。 该终端 601包括: 传感器 602 , 用于釆集传感器数据; 处理器 603 , 判断 当其只有传感器 602釆集的传感器数据需要处理时发送进入睡眠状态的指示, 并进入睡眠状态; 在恢复工作状态时发送处理器恢复成工作状态的指示, 并接 收传感器集线器 604上报的事件信息表 ; 传感器集线器 604 , 连接在所述传 感器 602和处理器 603之间 ,在接收到处理器进入睡眠状态的指示后接收并暂 存所述传感器 602釆集的传感器数据到事件信息表中, 并记录所述传感器 602 — — 釆集传感器数据的时间, 将该时间暂存到所述事件信息表中, 并在接收到处理 器 603恢复成工作状态的指示后将所述事件信息表上报给所述处理器 603。
具体的, 上述传感器可以是重力感应传感器、 陀螺仪传感器、 红外感应传 感器、 化学传感器、 压敏传感器等, 可以是专门的传感器, 也可以是带有传感 器功能的其它设备, 本发明对此没有任何的限定。
应理解,触发所述处理器 603恢复工作状态的因素很多, 包括传感器集线 器 604唤醒处理器、 或其它单元、 模块、 应用等唤醒处理器情况(例如用户在 处理器睡眠状态时想看下终端的时间)。
需要说明的是, 由于应用程序与驱动层间接口协议标准的原因, 釆用当前 接口协议标准的处理器可能无法从收到的事件信息表中解析出釆集时间;而今 后通过修改应用程序与驱动层间接口协议的标准,使得处理器能够在收到事件 信息表后解析出传感器数据与釆集时间, 以提高处理器的效率。
根据本发明实施例提供的终端可以在处理器只有传感器数据需要处理时 进入睡眠状态, 由低功耗的传感器集线器代替处理器暂存传感器数据, 在处理 器恢复工作状态后, 由传感器集线器将事件信息表上报给处理器,从而高耗能 的处理器不用在传感器工作的时候一直保持工作状态, 节省了功耗。 可选的, 作为另一实施例 (参见图 7 ), 传感器集线器 701包括:
判断单元 702 : 用于检查处理器唤醒条件是否满足, 若满足唤醒条件, 则 唤醒所述处理器, 使所述处理器从睡眠状态恢复到工作状态, 若不满足, 则所 述处理器保持睡眠状态。
可选的, 所述唤醒条件包括以下一个或多个: 所述事件信息表暂存的数据 量超过一定值, 或者所述处理器进入睡眠状态的时间超过一定值。
可选的, 作为另一实施例 (参见图 8 ), 所述处理器 801包括:
接收单元 802 : 用于接收所述传感器集线器 804上报的事件信息表。 — — 处理单元 803: 用于解析所述接收单元 802接收的事件信息表。
所述处理单元 803 进一步用于解析出所述传感器数据以及所述传感器数 据对应的釆集时间集合并处理所述传感器数据。
或者所述处理单元 803进一步用于解析所述传感器数据,并通过时间映射 的方式获取所述传感器釆集传感器数据对应的时间。
示例性的, 当事件信息表釆用队列形式时, 所述时间映射的方式包括: 在 处理器恢复工作状态后, 先进入一段压缩工作状态。 在压缩工作状态内, 传感 器集线器一方面要暂存压缩工作状态内发生的事件信息表,另一方面要把之前 处理器睡眠时暂存的事件信息表上报给处理器,当传感器集线器把处理器睡眠 时暂存的事件信息表上报完,再把压缩工作状态内暂存的事件信息表上报给处 理器, 由处理器解析和处理, 具体的计算方法可以参考方法实施例的过程, 不 再重复说明。
通过上述方案,终端可以在处理器只需要处理传感器数据时进入睡眠状态, 由低功耗的传感器集线器替代处理器暂存传感器数据,在处理器恢复工作状态 后, 由传感器集线器将数据上报给处理器,从而高耗能的处理器不用在传感器 工作的时候一直保持工作状态, 降低了功耗。
根据本发明的一个实施例提供的一种处理器, 包括:
处理器, 用于判断当前只有传感器釆集的传感器数据需要处理时,发送进 入睡眠状态的指示信息, 并进入睡眠状态,所述进入睡眠状态的指示信息用于 使一传感器数据暂存单元在收到所述进入睡眠状态的指示信息时接收并暂存 传感器釆集的传感器数据;当所述处理器恢复成工作状态时发送处理器恢复成 工作状态的指示信息,所述恢复成工作状态的指示信息用于使所述传感器数据 暂存单元在收到所述处理器恢复成工作状态的指示信息时将暂存的所述传感 器数据上报给所述处理器。 — — 所述接收并暂存传感器釆集的传感器数据具体包括:接收并暂存传感器釆 集的传感器数据到事件信息表中,并记录所述传感器釆集传感器数据对应的时 间,将该时间也暂存到所述事件信息表中; 将所述传感器数据上报给所述处理 器具体包括: 将所述事件信息表上报给所述处理器。
所述传感器数据暂存单元可以是传感器集线器,接收到传感器进入睡眠状 态的指示后, 传感器集线器接收并暂存传感器釆集的传感器数据。
处理器发送进入睡眠状态的指示具体可以为: 处理器发送一个指令, 该指 令指示处理器进入睡眠状态。处理器发送的该指令可以是面向其控制的所有单 元的, 因此这些单元都能收到处理器发送的该指令。
当处理器恢复成工作状态时发送处理器恢复成工作状态的指示具体包括: 所述处理器恢复成工作状态时,发送一个指令告知处理器已经恢复成工作状态。 处理器发送的该指令可以是面向其控制的所有单元的,因此这些单元都能收到 处理器发送的该指令。
传感器集线器接收到该处理器恢复成工作状态的指示后确定处理器已恢 复成工作状态, 并将所述事件信息表上报给所述处理器。
在上述实施例中,对各个实施例的描述都各有侧重, 某个实施例中没有详 述的部分, 可以参见其他实施例的相关描述。 最后应说明的是: 以上实施例仅 用以说明本发明的技术方案, 而非对其限制; 尽管参照前述实施例对本发明进 行了详细的说明, 本领域的普通技术人员应当理解: 其依然可以对前述实施例 所记载的技术方案进行修改, 或者对其中部分技术特征进行等同替换; 而这些 修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神 和范围。

Claims

权 利 要 求
1. 一种上 传感器数据的方法, 其特征在于, 该方法包括:
处理器判断当前只有传感器釆集的传感器数据需要处理时,所述处理器发 送进入睡眠状态的指示, 并进入睡眠状态;
接收到处理器进入睡眠状态的指示后,传感器集线器接收并暂存传感器釆 集并上报的传感器数据;
当所述处理器恢复成工作状态时发送处理器恢复成工作状态的指示,所述 传感器集线器接收到该处理器恢复成工作状态的指示后将所述传感器数据上 报给所述处理器。
2. 根据权利要求 1所述的方法, 其特征在于, 所述接收并暂存传感器釆 集的传感器数据具体包括:接收并暂存传感器釆集的传感器数据到事件信息表 中, 并记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述事 件信息表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
3. 根据权利要求 2所述的方法, 其特征在于, 所述处理器判断当前只有 传感器釆集的传感器数据需要处理具体包括:对与所述处理器交互的交互方的 身份识别信息进行识别,当识别到的身份识别信息仅包含传感器的身份识别信 息时, 所述处理器判断当前只有传感器釆集的传感器数据需要处理。
4. 根据权利要求 2或 3所述的方法, 其特征在于, 所述处理器进入睡眠 状态包括: 断开所述处理器的时钟和电源。
5. 根据权利要求 2~4任一所述的方法, 其特征在于, 所述处理器恢复成 工作状态包括: 自定义所述传感器集线器唤醒所述处理器的条件,当所述传感 器集线器判断所述唤醒条件满足时, 唤醒所述处理器。
6. 根据权利要求 5所述的方法, 其特征在于, 所述条件包括以下至少一 个:
所述事件信息表中的数据量超过一定值;
所述处理器进入睡眠状态的时间超过一定值。
7. 根据权利要求 2~6任一所述的方法, 其特征在于, 所述方法进一步包 括:所述处理器接收并解析所述传感器集线器上报的所述事件信息表, 得到所 述传感器数据以及所述传感器釆集传感器数据对应的时间集合。
8. 根据权利要求 2~6任一所述的方法, 其特征在于, 所述处理器接收并 解析所述传感器集线器上报的所述事件信息表,获取所述传感器数据, 记录获 取所述传感器数据的时间, 该时间为获取时间;
并通过时间映射的方式从所述获取时间推算出所述传感器釆集传感器数 据对应的时间。
9. 根据权利要求 8所述的方法, 其特征在于, 当所述事件信息表是事件 队列时, 所述时间映射的方式包括:
所述处理器的工作状态包括压缩工作状态,在所述压缩工作状态, 所述处 理器要获取其在睡眠状态和压缩工作状态时由所述传感器集线器暂存的传感 器数据;
所述处理器计算从该处理器进入睡眠状态到进入压缩工作状态之间的睡 眠时间长度 , 其中所述处理器进入睡眠状态的起始时刻为 。;
所述处理器计算从该处理器进入压缩工作状态到压缩工作状态结束的时 间长度为 τ2, 其中所述处理器进入压缩工作状态的起始时刻为 τ2。; 所述处理 器调整系统时间接口, 使所述处理器在获取时间是 Τ2。+ τ时刻获取到传感器数 据时, 所述系统时间接口读取的所述传感器釆集传感器数据对应的时间为 Τ10+ τ * ( l+L ) /T2, 其中, τ表示一个从压缩工作状态开始的时间长度变量, τ 最大的时候, 压缩工作状态结束(0 τ Τ2 )。
10. 一种上报传感器数据的方法, 其特征在于, 该方法包括:
处理器判断当前只有传感器釆集的传感器数据需要处理时,所述处理器发 送进入睡眠状态的指示信息, 并进入睡眠状态, 所述进入睡眠状态的指示信息 用于使一传感器数据暂存单元在收到所述进入睡眠状态的指示信息后接收并 暂存传感器釆集的传感器数据;
当所述处理器恢复成工作状态时发送处理器恢复成工作状态的指示信息, 所述恢复成工作状态的指示信息用于使所述传感器数据暂存单元在收到所述 处理器恢复成工作状态的指示信息后将暂存的所述传感器数据上报给所述处 理器。
11. 根据权利要求 10所述的方法, 其特征在于, 所述接收并暂存传感器 釆集的传感器数据具体包括:接收并暂存传感器釆集的传感器数据到事件信息 表中, 并记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述 事件信息表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
12.—种终端, 其特征在于, 包括: 传感器、 处理器、 传感器集线器; 所述传感器, 用于釆集传感器数据;
所述处理器, 用于判断当其只有传感器釆集的传感器数据需要处理时,发 送进入睡眠状态的指示信息, 并进入睡眠状态; 在恢复工作状态时发送处理器 恢复成工作状态的指示信息, 并接收所述传感器集线器上报的传感器数据; 所述传感器集线器, 连接在所述传感器和所述处理器之间,在接收到处理 器进入睡眠状态的指示后接收并暂存所述传感器釆集的传感器数据,并在接收 到处理器恢复成工作状态的指示后将所述传感器数据上 ^艮给所述处理器。
1 3. 根据权利要求 12所述的终端, 其特征在于, 所述接收并暂存传感器 釆集的传感器数据具体包括:接收并暂存传感器釆集的传感器数据到事件信息 表中, 并记录所述传感器釆集传感器数据对应的时间,将该时间也暂存到所述 事件信息表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
14. 根据权利要求 1 3所述的终端, 其特征在于, 所述传感器集线器还包 括:
判断单元: 用于检查唤醒所述处理器的唤醒条件是否满足, 若满足唤醒条 件, 则唤醒所述处理器, 使所述处理器从睡眠状态恢复到工作状态。
15. 根据权利要求 14所述的终端, 其特征在于: 所述唤醒条件包括以下 至少一个:
所述事件信息表暂存的数据量超过一定值;
所述处理器进入睡眠状态的时间超过一定值。
16. 根据权利要求 1 3~15任一所述的终端,其特征在于,所述处理器包括: 接收单元: 用于接收所述传感器集线器上报的传感器数据;
处理单元: 用于解析所述接收单元收到的传感器数据。
17. 根据权利要求 16所述的终端, 其特征在于, 所述处理单元解析出所 述传感器数据和所述传感器釆集传感器数据对应的时间集合,并处理所述传感 器数据。
18. 根据权利要求 16所述的终端, 其特征在于, 所述处理单元解析出所 述传感器数据并记录获取所述传感器数据的时间, 该时间为获取时间; 所述处 理器通过时间映射的方式从所述获取时间推算出所述传感器釆集传感器数据 对应的时间。
19. 根据权利要求 18所述的终端, 其特征在于, 当所述事件信息表是事 件队列时, 所述时间映射的方式包括:
所述工作状态包括压缩工作状态,在所述压缩工作状态, 所述处理器要获 取其在睡眠状态和压缩工作状态时由所述传感器集线器暂存的传感器数据; 所述处理器计算从该处理器进入睡眠状态到进入压缩工作状态之间的睡 眠时间长度 , 其中所述处理器进入睡眠状态的起始时刻为 τ10,
所述处理器计算从该处理器进入压缩工作状态到压缩工作状态结束的时 间长度为 τ2, 其中所述处理器进入压缩工作状态的起始时刻为 τ2。,
所述处理器调整系统时间接口, 使所述处理器在获取时间是 Τ2。+ τ时刻获 取到传感器数据时,所述系统时间接口读取的所述传感器釆集传感器数据对应 的时间为 L。+ T * ( L+L ) /Τ2, 其中, τ表示一个从压缩工作状态开始的时间 长度变量, τ最大的时候, 压缩工作状态结束(0 τ Τ2 )。
20. 一种处理器, 其特征在于:
所述处理器, 用于判断当前只有传感器釆集的传感器数据需要处理时,发 送进入睡眠状态的指示信息, 并进入睡眠状态,所述进入睡眠状态的指示信息 用于使一传感器数据暂存单元在收到所述进入睡眠状态的指示信息后接收并 暂存传感器釆集的传感器数据;当所述处理器恢复成工作状态时发送处理器恢 复成工作状态的指示信息,所述恢复成工作状态的指示信息用于使所述传感器 数据暂存单元在收到所述处理器恢复成工作状态的指示信息后将暂存的所述 传感器数据上报给所述处理器。
21. 根据权利要求 20所述的处理器, 其特征在于, 所述接收并暂存传感 器釆集的传感器数据具体包括:接收并暂存传感器釆集的传感器数据到事件信 息表中, 并记录所述传感器釆集传感器数据对应的时间, 将该时间也暂存到所 述事件信息表中;
将所述传感器数据上报给所述处理器具体包括:将所述事件信息表上报给 所述处理器。
PCT/CN2014/082151 2013-12-02 2014-07-14 一种上报传感器数据的方法和终端 WO2015081700A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14867152.2A EP2999276B1 (en) 2013-12-02 2014-07-14 Method and terminal for reporting sensor data
US14/902,107 US9877283B2 (en) 2013-12-02 2014-07-14 Method and terminal for reporting sensor data and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310634969.X 2013-12-02
CN201310634969.XA CN103619056B (zh) 2013-12-02 2013-12-02 一种上报传感器数据的方法和终端

Publications (1)

Publication Number Publication Date
WO2015081700A1 true WO2015081700A1 (zh) 2015-06-11

Family

ID=50169759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082151 WO2015081700A1 (zh) 2013-12-02 2014-07-14 一种上报传感器数据的方法和终端

Country Status (4)

Country Link
US (1) US9877283B2 (zh)
EP (1) EP2999276B1 (zh)
CN (1) CN103619056B (zh)
WO (1) WO2015081700A1 (zh)

Families Citing this family (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10079019B2 (en) 2013-11-12 2018-09-18 Apple Inc. Always-on audio control for mobile device
CN103619056B (zh) 2013-12-02 2018-01-12 华为终端(东莞)有限公司 一种上报传感器数据的方法和终端
US9665157B2 (en) * 2014-04-15 2017-05-30 Qualcomm Incorporated System and method for deferring power consumption by post-processing sensor data
CN104010076A (zh) * 2014-05-12 2014-08-27 联想(北京)有限公司 一种信息处理方法、电子设备及系统
US9778728B2 (en) 2014-05-29 2017-10-03 Apple Inc. System on a chip with fast wake from sleep
US10031000B2 (en) * 2014-05-29 2018-07-24 Apple Inc. System on a chip with always-on processor
US9619377B2 (en) 2014-05-29 2017-04-11 Apple Inc. System on a chip with always-on processor which reconfigures SOC and supports memory-only communication mode
US10085211B2 (en) * 2014-09-02 2018-09-25 Apple Inc. Communication of processor state information
US20180107728A1 (en) * 2014-12-31 2018-04-19 International Business Machines Corporation Using tombstone objects to synchronize deletes
US20180101434A1 (en) * 2014-12-31 2018-04-12 International Business Machines Corporation Listing types in a distributed storage system
CN106292991A (zh) * 2015-06-01 2017-01-04 中兴通讯股份有限公司 一种降低终端设备功耗的方法及装置
CN104950775A (zh) * 2015-06-29 2015-09-30 小米科技有限责任公司 唤醒主mcu微控制单元的电路、方法及装置
US20180196491A1 (en) * 2015-07-08 2018-07-12 Nec Corporation Information processing apparatus, device, information processing system, information processing method, and information processing program
CN105242770B (zh) * 2015-11-03 2019-07-19 上海斐讯数据通信技术有限公司 一种安卓设备开合盖的实现方法和系统
US10575157B2 (en) 2016-02-25 2020-02-25 Comcast Cable Communications, Llc Resource control for network devices
CN106197468B (zh) * 2016-06-24 2018-02-02 广东欧珀移动通信有限公司 计步器步数更新的方法及系统
CN106060274B (zh) * 2016-07-14 2019-08-30 Oppo广东移动通信有限公司 一种环境光传感器数据的上报方法、装置和移动终端
CN106445715B (zh) * 2016-09-13 2019-10-25 Oppo广东移动通信有限公司 计步器消息的上报方法及装置
CN106370186B (zh) * 2016-09-18 2019-12-20 时瑞科技(深圳)有限公司 传感器的快速低功耗融合系统及方法
JP6443428B2 (ja) * 2016-11-09 2018-12-26 マツダ株式会社 無線式送受信装置及び車両
CN108601559B (zh) * 2016-12-23 2021-01-29 华为技术有限公司 一种数据同步方法、装置以及终端设备
US10394468B2 (en) * 2017-02-23 2019-08-27 International Business Machines Corporation Handling data slice revisions in a dispersed storage network
EP3432648B1 (en) * 2017-07-18 2020-04-29 Deutsche Telekom AG A communication device for communicating over a communication network
CN107544659B (zh) * 2017-09-28 2021-09-14 惠州Tcl移动通信有限公司 移动终端及传感器与显示屏共电源控制方法、及存储介质
LU100947B1 (en) * 2018-09-27 2020-03-27 Nanopower As Device connection system and method of operation
CN109581984A (zh) * 2018-12-07 2019-04-05 华强方特文化科技集团股份有限公司 载人设备运行状态监测系统及方法
CN109586753B (zh) * 2019-01-15 2023-10-20 法施达(大连)实业集团有限公司 信息采集方法、传感器、信息采集系统及相应的存储介质
CN110058671A (zh) * 2019-03-27 2019-07-26 努比亚技术有限公司 一种基于hub层缓存的省电方法、可穿戴设备及存储介质
CN112135035B (zh) 2019-06-24 2022-03-25 北京小米移动软件有限公司 一种图像采集组件的控制方法、装置及存储介质
CN112433595B (zh) * 2019-08-25 2024-04-30 深圳市君海达科技有限公司 一种计算机系统的能耗监管方法
CN113490191A (zh) * 2020-01-14 2021-10-08 荣耀终端有限公司 蓝牙通信方法及其介质和电子设备
US11593026B2 (en) 2020-03-06 2023-02-28 International Business Machines Corporation Zone storage optimization using predictive protocol patterns
CN111858464B (zh) * 2020-07-31 2023-06-02 展讯通信(上海)有限公司 智能终端及其传感数据处理装置
US11589195B2 (en) 2020-08-20 2023-02-21 Ip Co, Llc Asset tracking systems and methods
CN114257996A (zh) * 2020-09-21 2022-03-29 华为技术有限公司 一种设备的发现方法和装置
CN113127086A (zh) * 2021-05-17 2021-07-16 东莞市小精灵教育软件有限公司 一种数据处理方法、系统、可穿戴设备及存储介质
CN113934130A (zh) * 2021-09-07 2022-01-14 捷开通讯(深圳)有限公司 一种低功耗监测电路、控制方法、智能手表以及电子设备
JP2023047973A (ja) * 2021-09-27 2023-04-06 日立Astemo株式会社 通信装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023353A1 (en) * 2010-07-21 2012-01-26 Mstar Semiconductor, Inc. Automatic mode switch portable electronic device
CN103007534A (zh) * 2012-11-28 2013-04-03 深圳Tcl新技术有限公司 无线操控体感游戏的方法和系统
CN103176506A (zh) * 2011-12-21 2013-06-26 富士通株式会社 移动终端装置、介质和控制方法
CN103619056A (zh) * 2013-12-02 2014-03-05 华为终端有限公司 一种上报传感器数据的方法和终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8626902B2 (en) * 2010-12-03 2014-01-07 International Business Machines Corporation Modeling and reducing power consumption in large IT systems
US20120254878A1 (en) 2011-04-01 2012-10-04 Lama Nachman Mechanism for outsourcing context-aware application-related functionalities to a sensor hub
US9128180B2 (en) * 2012-03-16 2015-09-08 Microsoft Technology Licensing, Llc Efficient power usage in position tracking operations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120023353A1 (en) * 2010-07-21 2012-01-26 Mstar Semiconductor, Inc. Automatic mode switch portable electronic device
CN103176506A (zh) * 2011-12-21 2013-06-26 富士通株式会社 移动终端装置、介质和控制方法
CN103007534A (zh) * 2012-11-28 2013-04-03 深圳Tcl新技术有限公司 无线操控体感游戏的方法和系统
CN103619056A (zh) * 2013-12-02 2014-03-05 华为终端有限公司 一种上报传感器数据的方法和终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2999276A4 *

Also Published As

Publication number Publication date
CN103619056A (zh) 2014-03-05
US20160278014A1 (en) 2016-09-22
EP2999276B1 (en) 2018-03-14
EP2999276A4 (en) 2016-07-27
CN103619056B (zh) 2018-01-12
EP2999276A1 (en) 2016-03-23
US9877283B2 (en) 2018-01-23

Similar Documents

Publication Publication Date Title
WO2015081700A1 (zh) 一种上报传感器数据的方法和终端
US20180129263A1 (en) Method and Apparatus for Wake-Up Control of Intelligent Terminal
EP2713662B1 (en) Low energy short range communication function operation method and apparatus of mobile terminal
WO2017063604A1 (zh) 消息推送方法及移动终端和消息推送服务器
US9609600B2 (en) Wireless communication system with enhanced power management
JP6020092B2 (ja) データ処理装置、データ処理方法、及び、プログラム
CN112703714B (zh) 应用程序处理方法和装置、计算机设备、计算机可读存储介质
CN109144232B (zh) 进程处理方法和装置、电子设备、计算机可读存储介质
US9706493B2 (en) Bluetooth low energy devices, systems, and associated methods
CN110018901B (zh) 内存回收方法、装置、计算机设备和计算机可读存储介质
CN104239079A (zh) 电子装置操作系统自动唤醒方法及系统
WO2015085796A1 (zh) 一种终端节能方法及终端、系统
US20140334364A1 (en) Remote wake-up system and method
CN104698824A (zh) 一种低功耗计步的智能穿戴装置
EP2835717A2 (en) User device and method to process sensor output using a plurality of processors
CN104243683B (zh) 一种处理数据的方法、终端、用户识别卡及系统
CN110543259A (zh) 一种显示设备的指纹解锁方法及显示设备
WO2019128586A1 (zh) 应用程序处理方法、电子设备、计算机可读存储介质
CN107872367B (zh) 黑屏检测方法、移动终端及计算机可读存储介质
CN107818036B (zh) 黑屏检测方法、移动终端及计算机可读存储介质
CN116320147B (zh) 一种唤醒方法及电子设备
CN108646909B (zh) 信息处理方法、装置、移动终端和计算机可读存储介质
WO2015007028A1 (zh) 传感器控制方法及装置
CN113271646B (zh) 解码、解码配置方法、终端及网络侧设备
WO2013182053A1 (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: 14867152

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2014867152

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14902107

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE