CN104598007B - A kind of data processing method and electronic equipment - Google Patents

A kind of data processing method and electronic equipment Download PDF

Info

Publication number
CN104598007B
CN104598007B CN201410837624.9A CN201410837624A CN104598007B CN 104598007 B CN104598007 B CN 104598007B CN 201410837624 A CN201410837624 A CN 201410837624A CN 104598007 B CN104598007 B CN 104598007B
Authority
CN
China
Prior art keywords
processing device
synchronous processing
electronic equipment
asynchronous processor
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410837624.9A
Other languages
Chinese (zh)
Other versions
CN104598007A (en
Inventor
石彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410837624.9A priority Critical patent/CN104598007B/en
Publication of CN104598007A publication Critical patent/CN104598007A/en
Application granted granted Critical
Publication of CN104598007B publication Critical patent/CN104598007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Abstract

The invention discloses a kind of data processing method and electronic equipment, the data processing method includes:When synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition, the first control instruction is sent to asynchronous processor, is started with triggering the asynchronous processor, and the synchronous processing device is out of service;Alternatively, when synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor, and the synchronous processing device starts.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to data processing technique more particularly to a kind of data processing method and electronic equipments.
Background technology
Control for multiple sensors, synchronous processing device is because there is unified clock control signal, therefore, no matter sensor In have several working sensors, synchronous processing device gathers the sensing data of all sensors, and power consumption is higher, suitable for big data The sensing data of amount;And for asynchronous processor, the acquisition of sensing data is only carried out to the sensor for changing working condition, without Clock signal is triggered, therefore power consumption is relatively low, suitable for the sensing data of small data quantity.In the prior art, when sensing data occurs During variation, can not be directed to the sensing data of different data amount effectively reduces the power consumption of system.
The content of the invention
In order to solve the above technical problems, an embodiment of the present invention provides a kind of data processing method and electronic equipments, it can It is handled using different processors for the sensing data of different data amount, so as to the power consumption for the system of saving.
In an embodiment of the present invention, data processing method provided in an embodiment of the present invention is applied in electronic equipment, institute Electronic equipment is stated with synchronous processing device, asynchronous processor and at least one sensor, when the synchronous processing device or described different When walking processor and starting, the synchronous processing device or the asynchronous processor can gather the sensing of at least one sensor Data, the data processing method include:
When synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition, the is sent One control instruction is started, and the synchronous processing device is out of service to asynchronous processor with triggering the asynchronous processor;Or Person,
When synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition, the is sent Two control instructions are out of service to trigger the asynchronous processor to asynchronous processor, and the synchronous processing device starts.
In an alternative embodiment of the invention, the embodiment of the present invention provides same data processing method applied to electronic equipment In, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when the synchronous processing device or institute When stating asynchronous processor startup, the synchronous processing device or the asynchronous processor can gather at least one sensor Sensing data, the data processing method include:
Asynchronous processor starts after receiving the first control instruction, by the sensing of at least one sensor collected Data are stored;Alternatively,
Asynchronous processor receives out of service after the second control instruction;
Wherein, first control instruction or the second control instruction send for primary processor or synchronous processing device or controller 's.
In an embodiment of the present invention, electronic equipment provided in an embodiment of the present invention has synchronous processing device, asynchronous process Device and at least one sensor, when the synchronous processing device or asynchronous processor startup, the synchronous processing device or institute The sensing data of at least one sensor can be gathered by stating asynchronous processor;Wherein,
The synchronous processing device, for receiving the first instruction or detecting that the electronic equipment meets the first predetermined condition When, the first control instruction is sent to asynchronous processor, is started with triggering the asynchronous processor, and the synchronous processing device stops Operation;
The synchronous processing device is additionally operable to receive the second instruction or detects that the electronic equipment meets the second predetermined item During part, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor, and the synchronization process Device starts.
In an alternative embodiment of the invention, the electronic equipment has synchronous processing device, asynchronous processor and at least one Sensor, when the synchronous processing device or asynchronous processor startup, the synchronous processing device or the asynchronous processor The sensing data of at least one sensor can be gathered, wherein,
The asynchronous processor, for starting after receiving the first control instruction, at least one biography that will be collected The sensing data of sensor is stored;It is alternatively, out of service after receiving the second control instruction;
Wherein, first control instruction or the second control instruction send for primary processor or synchronous processing device or controller 's.
In the technical solution of the embodiment of the present invention, electronic equipment has at least one sensor, such as motion sensor, connects Nearly sensor, infrared sensor, Hall sensor etc., these sensors can obtain corresponding sensing data;Electronic equipment leads to It crosses synchronous processing device or asynchronous processor these sensing datas are acquired and handled.The embodiment of the present invention can select to close Suitable processor is acquired and handles to sensing data, specifically, when synchronous processing device receives to start asynchronous process When first instruction of device or electronic equipment meet the first predetermined condition, then the first control instruction is sent to asynchronous processor, with It triggers asynchronous processor to start, so as to which sensing data is acquired and be handled by asynchronous processor.When synchronous processing device connects When receiving for the second instruction of asynchronous processor out of service or electronic equipment the second predetermined condition of satisfaction, then second is sent Control instruction is out of service to trigger asynchronous processor to asynchronous processor, and synchronous processing device starts, so as to pass through synchronous place Reason device is acquired and handles to sensing data.Therefore, the embodiment of the present invention realizes the sensing data for different data amount It is handled using different processors, so as to the power consumption for the system of saving.
Description of the drawings
Fig. 1 is the flow diagram of the data processing method of the embodiment of the present invention one;
Fig. 2 is the flow diagram of the data processing method of the embodiment of the present invention two;
Fig. 3 is the flow diagram of the data processing method of the embodiment of the present invention three;
Fig. 4 is the flow diagram of the data processing method of the embodiment of the present invention four;
Fig. 5 is the flow diagram of the data processing method of the embodiment of the present invention five;
Fig. 6 is the structure composition schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, below in conjunction with the accompanying drawings to this hair The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the embodiment of the present invention.
Fig. 1 is the flow diagram of the data processing method of the embodiment of the present invention one, the data processing method in this example Applied in electronic equipment, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when described When synchronous processing device or the asynchronous processor start, the synchronous processing device or the asynchronous processor can gather it is described extremely The sensing data of a few sensor.As shown in Figure 1, the data processing method comprises the following steps:
Step 101:Synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition When, the first control instruction is sent to asynchronous processor, is started with triggering the asynchronous processor, and the synchronous processing device stops Operation.
In the embodiment of the present invention, the electronic equipment can be the arbitrary electronic equipment such as mobile phone, tablet computer.The electronics is set It is standby that there is at least one synchronous processing device, at least one asynchronous processor and at least one sensor.
Specifically, synchronous processing device namely synchronous circuit work there are one clock as control circuit, and can circuit state Change and control triggered by clock, certainly, circuit state can change also need to by input and its logic Lai.The overwhelming majority at present Processor be all synchronous processing device, such as each processor family of Intel (intel) also has the place of each manufacturer on mobile phone It is all synchronous processing device to manage device.Asynchronous processor namely asynchronous circuit, without control circuit of the clock as work, circuit state Change determined by circuit oneself state, also more power saving.
In said program, synchronous processing device has clock as input, clock is inherently no matter whether circuit state changes It is a very big current drain, and if clock energizing circuit works, which may not change, need not Work, therefore waste many power consumptions.But this problem is not present in asynchronous processor, he is ability work when needing change state Make, when need not changing circuit state, circuit itself does not work, even if moreover, it is also the electricity that change to change state Road works, and the constant circuit of state does not work, therefore more power saving.
In the embodiment of the present invention, the sensor in electronic equipment can be motion sensor, proximity sensor, infrared sensing The sensors such as device, Hall sensor, these sensors can obtain sensing data, such as motion sensor can obtain electronics and set Standby speed, acceleration.
In the embodiment of the present invention, asynchronous processor controls multiple sensors, is responsible for the sensing data of acquisition sensor.And work as Real-time is high, when sensing data amount is larger, then directly controls multiple sensors by synchronous processing device and is responsible for acquisition sensor Sensing data.For this purpose, the embodiment of the present invention is by controlling startup asynchronous processor and asynchronous processor out of service and starting same Processor is walked to realize that two different processors are acquired and handle to sensing data respectively at different conditions.
Specifically, in the first condition, synchronous processing device receives the first instruction or detects that the electronic equipment is expired The first predetermined condition of foot;Here, the first instruction can by the primary processor in electronic equipment namely application processor (AP, Application Processor) be sent to synchronous processing device, can also by electronic equipment central processing unit (CPU, Central Processing Unit) synchronous processing device is sent to, can also synchronous processing device be sent to by other controllers, Primary processor, AP, CPU or other controllers mainly send this according to self-operating situation or the running situation monitored First instruction.It, can also be by detecting whether electronic equipment meets the first predetermined condition come definite synchronous in the embodiment of the present invention Whether processor sends the first control instruction to asynchronous processor, and here, the first predetermined condition can be used for limiting sensor Sensing data data volume, when data volume is big, then synchronous processing device receives the first instruction or electronic equipment and is in low During speed operation, such as when electronic equipment is in standby or dormant state, electronic equipment receives the first instruction.Here, data The size of amount can judge that pre-set threshold value can be by user according to the hardware of electronic equipment by pre-set threshold value Parameter is set, such as the process performance of electronics processors is set, when data volume is more than or equal to the threshold value, then data Amount is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the first instruction, the first control instruction is sent to asynchronous Therefore processor, here, the first control instruction, refer to for starting asynchronous processor when asynchronous processor receives the first control Then start when making, at the same time, synchronous processing device is out of service, by asynchronous processor gather sensing data and stored and Processing.First control instruction is that primary processor in electronic equipment or synchronous processing device or controller are sent.
Step 102:Synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition When, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor, and the synchronous processing device Start.
Specifically, step 101 is accepted, under the conditions of second, synchronous processing device receives the second instruction or detects institute It states electronic equipment and meets the second predetermined condition;Here, the second instruction can be by the primary processor in electronic equipment namely at Reason device (AP, Application Processor) is sent to synchronous processing device, can also be by the central processing unit in electronic equipment (CPU, Central Processing Unit) is sent to synchronous processing device, can also be sent to by other controllers synchronous Manage device.In the embodiment of the present invention, whether can also meet the second predetermined condition by detecting electronic equipment and determine synchronization process Whether device sends the second control instruction to asynchronous processor, and here, the second predetermined condition can be used for the biography of limiting sensor Feel the data volume of data, when data volume is small, then synchronous processing device receives the second instruction or electronic equipment is in and transports at a high speed During row, such as when electronic equipment switches to starting state by standby or dormant state, electronic equipment receives the second instruction.This In, the size of data volume can judge that pre-set threshold value can be set by user according to electronics by pre-set threshold value Standby hardware parameter is set, such as the process performance of electronics processors is set, when data volume is more than or equal to the threshold value When, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the second instruction, the second control instruction is sent to asynchronous Processor, here, the second control instruction are used for asynchronous processor out of service, therefore, when asynchronous processor receives the second control Then out of service during system instruction, at the same time, synchronous processing device starts, and is gathered sensing data by synchronous processing device and is carried out Reason.In the embodiment of the present invention, synchronous processing device can also obtain at least one sensor that asynchronous processor is gathered and stored Sensing data is simultaneously handled, and can also directly be gathered sensing data and be handled.Second control instruction sets for electronics What primary processor or synchronous processing device or controller in standby were sent.
The data processing method of the embodiment of the present invention is further described below by exemplified by following scene:Utilize gravity Sensor calculates the mileage of running/stroll.Simply note of running walks, and records the number waved every time and the physical parameter waved, main Processor is without real-time working, as long as secondary processor records data.
The course of work is as follows:
1st, system enters running application, and gravity sensor enters working condition, while application processor enters dormant state.
2nd, at this point, application processor transmission first is instructed to synchronous processing device, after synchronous processing device receives the first instruction, The first control instruction occurs to asynchronous processor to start asynchronous processor, asynchronous processor enters working condition.Gravity sensitive Device working frequency is 10kHz, and with this frequency reported data, asynchronous processor gathers the data that gravity sensor reports and is stored in In register, gravity sensor sends interruption, and asynchronous processor is connected to interruption post processing data, is added and subtracted according to sensing data Method processing, to realize the mileage for calculating running/stroll.
3rd, user presses switch key, and primary processor wakes up, and exits asynchronous processor working condition, synchronous processing device acquisition weight The sensing data of force snesor, then sensing data is directly handled by primary processor;Or without new to gravity sensor requirement Height, such as frequency are not higher than the application of 10kHz, and asynchronous processor still works.
The technical solution of the embodiment of the present invention, electronic equipment sense these by synchronous processing device or asynchronous processor Data are acquired and handle.The embodiment of the present invention can select suitable processor to be acquired and handle sensing data, Specifically, when synchronous processing device receives to start the first instruction of asynchronous processor or electronic equipment to meet first predetermined During condition, then the first control instruction is sent to asynchronous processor, to trigger asynchronous processor startup, so as to pass through asynchronous processor Sensing data is acquired and is handled.When synchronous processing device receive for asynchronous processor out of service second instruction or When person's electronic equipment meets the second predetermined condition, then the second control instruction is sent to asynchronous processor, to trigger asynchronous processor It is out of service, and synchronous processing device starts, so as to which sensing data is acquired and be handled by synchronous processing device.Therefore, originally The sensing data that inventive embodiments realize for different data amount is handled it using different processors, so as to save The power consumption of system.
It is worth noting that, the step 101 and step 102 in the embodiment of the present invention perform step without priority execution sequence When 101, then step 102 need not be performed;When performing step 102, then step 101 need not be performed.
Fig. 2 is the flow diagram of the data processing method of the embodiment of the present invention two, the data processing method in this example Applied in electronic equipment, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when described When synchronous processing device or the asynchronous processor start, the synchronous processing device or the asynchronous processor can gather it is described extremely The sensing data of a few sensor.As shown in Fig. 2, the data processing method comprises the following steps:
Step 201:Synchronous processing device is received to start the first instruction of the asynchronous processor or detected described The data volume of sensing data accessed by sensor is less than or equal to first threshold or detects that the electronic equipment is in first During working condition, the first control instruction is sent to asynchronous processor, to trigger the asynchronous processor startup, and at the synchronization It is out of service to manage device.
In the embodiment of the present invention, the electronic equipment can be the arbitrary electronic equipment such as mobile phone, tablet computer.The electronics is set It is standby that there is at least one synchronous processing device, at least one asynchronous processor and at least one sensor.
Specifically, synchronous processing device namely synchronous circuit work there are one clock as control circuit, and can circuit state Change and control triggered by clock, certainly, circuit state can change also need to by input and its logic Lai.The overwhelming majority at present Processor be all synchronous processing device, such as each processor family of Intel (intel) also has the place of each manufacturer on mobile phone It is all synchronous processing device to manage device.Asynchronous processor namely asynchronous circuit, without control circuit of the clock as work, circuit state Change determined by circuit oneself state, also more power saving.
In said program, synchronous processing device has clock as input, clock is inherently no matter whether circuit state changes It is a very big current drain, and if clock energizing circuit works, which may not change, need not Work, therefore waste many power consumptions.But this problem is not present in asynchronous processor, he is ability work when needing change state Make, when need not changing circuit state, circuit itself does not work, even if moreover, it is also the electricity that change to change state Road works, and the constant circuit of state does not work, therefore more power saving.
In the embodiment of the present invention, the sensor in electronic equipment can be motion sensor, proximity sensor, infrared sensing The sensors such as device, Hall sensor, these sensors can obtain sensing data, such as motion sensor can obtain electronics and set Standby speed, acceleration.
In the embodiment of the present invention, asynchronous processor controls multiple sensors, is responsible for the sensing data of acquisition sensor.And work as Real-time is high, when sensing data amount is larger, then directly controls multiple sensors by synchronous processing device and is responsible for acquisition sensor Sensing data.For this purpose, the embodiment of the present invention is by controlling startup asynchronous processor and asynchronous processor out of service and starting same Processor is walked to realize that two different processors are acquired and handle to sensing data respectively at different conditions.
Specifically, in the first condition, synchronous processing device receives the first instruction or detects that the electronic equipment is expired The first predetermined condition of foot;Here, the first instruction can by the primary processor in electronic equipment namely application processor (AP, Application Processor) be sent to synchronous processing device, can also by electronic equipment central processing unit (CPU, Central Processing Unit) synchronous processing device is sent to, synchronous processing device can also be sent to by other controllers also Synchronous processing device can be sent to by other controllers, primary processor, AP, CPU or other controllers are mainly according to self-operating Situation or the running situation that monitors send first instruction.It, can also be by detecting electronics in the embodiment of the present invention Whether equipment meets the first predetermined condition to determine whether synchronous processing device sends the first control instruction to asynchronous processor, this In, the first predetermined condition can be used for the data volume of the sensing data of limiting sensor, when data volume is big, then synchronization process When device receives the first instruction or electronic equipment is in low speed operation, such as when electronic equipment is in standby or dormant state When, electronic equipment receives the first instruction.Here, the size of data volume can be judged by pre-set threshold value, in advance The threshold value of setting can be set by user according to the hardware parameter of electronic equipment, such as the process performance of electronics processors is come It sets, when data volume is more than or equal to the threshold value, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, first threshold can be by user setting, when data volume is less than or equal to first threshold, then data volume For small data quantity;When data volume is more than first threshold, then data volume is big data quantity.In the embodiment of the present invention, the first work shape State refers to that electronic equipment is in low-power consumption working condition, such as holding state or dormant state etc..
In the embodiment of the present invention, when synchronous processing device receives the first instruction, the first control instruction is sent to asynchronous Therefore processor, here, the first control instruction, refer to for starting asynchronous processor when asynchronous processor receives the first control Then start when making, at the same time, synchronous processing device is out of service, by asynchronous processor gather sensing data and stored and Processing.First control instruction is that primary processor in electronic equipment or synchronous processing device or controller are sent.
Step 202:Synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition When, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor, and the synchronous processing device Start.
Specifically, step 201 is accepted, under the conditions of second, synchronous processing device receives the second instruction or detects institute It states electronic equipment and meets the second predetermined condition;Here, the second instruction can be by the primary processor in electronic equipment namely at Reason device (AP, Application Processor) is sent to synchronous processing device, can also be by the central processing unit in electronic equipment (CPU, Central Processing Unit) is sent to synchronous processing device, can also be sent to by other controllers synchronous Manage device.In the embodiment of the present invention, whether can also meet the second predetermined condition by detecting electronic equipment and determine synchronization process Whether device sends the second control instruction to asynchronous processor, and here, the second predetermined condition can be used for the biography of limiting sensor Feel the data volume of data, when data volume is small, then synchronous processing device receives the second instruction or electronic equipment is in and transports at a high speed During row, such as when electronic equipment switches to starting state by standby or dormant state, electronic equipment receives the second instruction.This In, the size of data volume can judge that pre-set threshold value can be set by user according to electronics by pre-set threshold value Standby hardware parameter is set, such as the process performance of electronics processors is set, when data volume is more than or equal to the threshold value When, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the second instruction, the second control instruction is sent to asynchronous Processor, here, the second control instruction are used for asynchronous processor out of service, therefore, when asynchronous processor receives the second control Then out of service during system instruction, at the same time, synchronous processing device starts, and is gathered sensing data by synchronous processing device and is carried out Reason.In the embodiment of the present invention, synchronous processing device can also obtain at least one sensor that asynchronous processor is gathered and stored Sensing data is simultaneously handled, and can also directly be gathered sensing data and be handled.Second control instruction sets for electronics What primary processor or synchronous processing device or controller in standby were sent.
The data processing method of the embodiment of the present invention is further described below by exemplified by following scene:Utilize gravity Sensor calculates the mileage of running/stroll.Simply note of running walks, and records the number waved every time and the physical parameter waved, main Processor is without real-time working, as long as secondary processor records data.
The course of work is as follows:
1st, system enters running application, and gravity sensor enters working condition, while application processor enters dormant state.
2nd, at this point, application processor transmission first is instructed to synchronous processing device, after synchronous processing device receives the first instruction, The first control instruction occurs to asynchronous processor to start asynchronous processor, asynchronous processor enters working condition.Gravity sensitive Device working frequency is 10kHz, and with this frequency reported data, asynchronous processor gathers the data that gravity sensor reports and is stored in In register, gravity sensor sends interruption, and asynchronous processor is connected to interruption post processing data, is added and subtracted according to sensing data Method processing, to realize the mileage for calculating running/stroll.
3rd, user presses switch key, and primary processor wakes up, and exits asynchronous processor working condition, synchronous processing device acquisition weight The sensing data of force snesor, then sensing data is directly handled by primary processor;Or without new to gravity sensor requirement Height, such as frequency are not higher than the application of 10kHz, and asynchronous processor still works.
The technical solution of the embodiment of the present invention, electronic equipment sense these by synchronous processing device or asynchronous processor Data are acquired and handle.The embodiment of the present invention can select suitable processor to be acquired and handle sensing data, Specifically, when synchronous processing device receives to start the first instruction of asynchronous processor or electronic equipment to meet first predetermined During condition, then the first control instruction is sent to asynchronous processor, to trigger asynchronous processor startup, so as to pass through asynchronous processor Sensing data is acquired and is handled.When synchronous processing device receive for asynchronous processor out of service second instruction or When person's electronic equipment meets the second predetermined condition, then the second control instruction is sent to asynchronous processor, to trigger asynchronous processor It is out of service, and synchronous processing device starts, so as to which sensing data is acquired and be handled by synchronous processing device.Therefore, originally The sensing data that inventive embodiments realize for different data amount is handled it using different processors, so as to save The power consumption of system.
It is worth noting that, the step 201 and step 202 in the embodiment of the present invention perform step without priority execution sequence When 201, then step 202 need not be performed;When performing step 202, then step 201 need not be performed.
Fig. 3 is the flow diagram of the data processing method of the embodiment of the present invention three, the data processing method in this example Applied in electronic equipment, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when described When synchronous processing device or the asynchronous processor start, the synchronous processing device or the asynchronous processor can gather it is described extremely The sensing data of a few sensor.As shown in figure 3, the data processing method comprises the following steps:
Step 301:Synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition When, the first control instruction is sent to asynchronous processor, is started with triggering the asynchronous processor, and the synchronous processing device stops Operation.
In the embodiment of the present invention, the electronic equipment can be the arbitrary electronic equipment such as mobile phone, tablet computer.The electronics is set It is standby that there is at least one synchronous processing device, at least one asynchronous processor and at least one sensor.
Specifically, synchronous processing device namely synchronous circuit work there are one clock as control circuit, and can circuit state Change and control triggered by clock, certainly, circuit state can change also need to by input and its logic Lai.The overwhelming majority at present Processor be all synchronous processing device, such as each processor family of Intel (intel) also has the place of each manufacturer on mobile phone It is all synchronous processing device to manage device.Asynchronous processor namely asynchronous circuit, without control circuit of the clock as work, circuit state Change determined by circuit oneself state, also more power saving.
In said program, synchronous processing device has clock as input, clock is inherently no matter whether circuit state changes It is a very big current drain, and if clock energizing circuit works, which may not change, need not Work, therefore waste many power consumptions.But this problem is not present in asynchronous processor, he is ability work when needing change state Make, when need not changing circuit state, circuit itself does not work, even if moreover, it is also the electricity that change to change state Road works, and the constant circuit of state does not work, therefore more power saving.
In the embodiment of the present invention, the sensor in electronic equipment can be motion sensor, proximity sensor, infrared sensing The sensors such as device, Hall sensor, these sensors can obtain sensing data, such as motion sensor can obtain electronics and set Standby speed, acceleration.
In the embodiment of the present invention, asynchronous processor controls multiple sensors, is responsible for the sensing data of acquisition sensor.And work as Real-time is high, when sensing data amount is larger, then directly controls multiple sensors by synchronous processing device and is responsible for acquisition sensor Sensing data.For this purpose, the embodiment of the present invention is by controlling startup asynchronous processor and asynchronous processor out of service and starting same Processor is walked to realize that two different processors are acquired and handle to sensing data respectively at different conditions.
Specifically, in the first condition, synchronous processing device receives the first instruction or detects that the electronic equipment is expired The first predetermined condition of foot;Here, the first instruction can by the primary processor in electronic equipment namely application processor (AP, Application Processor) be sent to synchronous processing device, can also by electronic equipment central processing unit (CPU, Central Processing Unit) synchronous processing device is sent to, synchronous processing device can also be sent to by other controllers also It can be sent to by other controllers with processor step by step, primary processor, AP, CPU or other controllers are mainly transported according to itself Market condition or the running situation that monitors send first instruction.It, can also be by detecting electricity in the embodiment of the present invention Whether sub- equipment meets the first predetermined condition to determine whether synchronous processing device sends the first control instruction to asynchronous processor, this In, the first predetermined condition can be used for the data volume of the sensing data of limiting sensor, when data volume is big, then synchronization process When device receives the first instruction or electronic equipment is in low speed operation, such as when electronic equipment is in standby or dormant state When, electronic equipment receives the first instruction.Here, the size of data volume can be judged by pre-set threshold value, in advance The threshold value of setting can be set by user according to the hardware parameter of electronic equipment, such as the process performance of electronics processors is come It sets, when data volume is more than or equal to the threshold value, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the first instruction, the first control instruction is sent to asynchronous Therefore processor, here, the first control instruction, refer to for starting asynchronous processor when asynchronous processor receives the first control Then start when making, at the same time, synchronous processing device is out of service, by asynchronous processor gather sensing data and stored and Processing.First control instruction is that primary processor in electronic equipment or synchronous processing device or controller are sent.
Step 302:Synchronous processing device, which receives, to be instructed or detects for the second of the asynchronous processor out of service The data volume of sensing data accessed by the sensor is more than first threshold or detects that the electronic equipment is in second During working condition, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor and described same Processor is walked to start.
Specifically, step 301 is accepted, under the conditions of second, synchronous processing device receives the second instruction or detects institute It states electronic equipment and meets the second predetermined condition;Here, the second instruction can be by the primary processor in electronic equipment namely at Reason device (AP, Application Processor) is sent to synchronous processing device, can also be by the central processing unit in electronic equipment (CPU, Central Processing Unit) is sent to synchronous processing device, can also be sent to by other controllers synchronous Manage device.In the embodiment of the present invention, whether can also meet the second predetermined condition by detecting electronic equipment and determine synchronization process Whether device sends the second control instruction to asynchronous processor, and here, the second predetermined condition can be used for the biography of limiting sensor Feel the data volume of data, when data volume is small, then synchronous processing device receives the second instruction or electronic equipment is in and transports at a high speed During row, such as when electronic equipment switches to starting state by standby or dormant state, electronic equipment receives the second instruction.This In, the size of data volume can judge that pre-set threshold value can be set by user according to electronics by pre-set threshold value Standby hardware parameter is set, such as the process performance of electronics processors is set, when data volume is more than or equal to the threshold value When, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, first threshold can be by user setting, when data volume is less than or equal to first threshold, then data volume For small data quantity;When data volume is more than first threshold, then data volume is big data quantity.In the embodiment of the present invention, the second work shape State refers to that electronic equipment is in high power consumption working condition, such as the starting state switched to by holding state or dormant state.
In the embodiment of the present invention, when synchronous processing device receives the second instruction, the second control instruction is sent to asynchronous Processor, here, the second control instruction are used for asynchronous processor out of service, therefore, when asynchronous processor receives the second control Then out of service during system instruction, at the same time, synchronous processing device starts, and is gathered sensing data by synchronous processing device and is carried out Reason.In the embodiment of the present invention, synchronous processing device can also obtain at least one sensor that asynchronous processor is gathered and stored Sensing data is simultaneously handled, and can also directly be gathered sensing data and be handled.Second control instruction sets for electronics What primary processor or synchronous processing device or controller in standby were sent.
The data processing method of the embodiment of the present invention is further described below by exemplified by following scene:Utilize gravity Sensor calculates the mileage of running/stroll.Simply note of running walks, and records the number waved every time and the physical parameter waved, main Processor is without real-time working, as long as secondary processor records data.
The course of work is as follows:
1st, system enters running application, and gravity sensor enters working condition, while application processor enters dormant state.
2nd, at this point, application processor transmission first is instructed to synchronous processing device, after synchronous processing device receives the first instruction, The first control instruction occurs to asynchronous processor to start asynchronous processor, asynchronous processor enters working condition.Gravity sensitive Device working frequency is 30kHz, and with this frequency reported data, asynchronous processor gathers the data that gravity sensor reports and is stored in In register, gravity sensor sends interruption, and asynchronous processor is connected to interruption post processing data, is added and subtracted according to sensing data Method processing, to realize the mileage for calculating running/stroll.
3rd, user presses switch key, and primary processor wakes up, and exits asynchronous processor working condition, synchronous processing device acquisition weight The sensing data of force snesor, then sensing data is directly handled by primary processor;Or without new to gravity sensor requirement Height, such as frequency are not higher than the application of 30kHz, and asynchronous processor still works.
The technical solution of the embodiment of the present invention, electronic equipment sense these by synchronous processing device or asynchronous processor Data are acquired and handle.The embodiment of the present invention can select suitable processor to be acquired and handle sensing data, Specifically, when synchronous processing device receives to start the first instruction of asynchronous processor or electronic equipment to meet first predetermined During condition, then the first control instruction is sent to asynchronous processor, to trigger asynchronous processor startup, so as to pass through asynchronous processor Sensing data is acquired and is handled.When synchronous processing device receive for asynchronous processor out of service second instruction or When person's electronic equipment meets the second predetermined condition, then the second control instruction is sent to asynchronous processor, to trigger asynchronous processor It is out of service, and synchronous processing device starts, so as to which sensing data is acquired and be handled by synchronous processing device.Therefore, originally The sensing data that inventive embodiments realize for different data amount is handled it using different processors, so as to save The power consumption of system.
It is worth noting that, the step 301 and step 302 in the embodiment of the present invention perform step without priority execution sequence When 301, then step 302 need not be performed;When performing step 302, then step 301 need not be performed.
Fig. 4 is the flow diagram of the data processing method of the embodiment of the present invention four, the data processing method in this example Applied in electronic equipment, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when described When synchronous processing device or the asynchronous processor start, the synchronous processing device or the asynchronous processor can gather it is described extremely The sensing data of a few sensor.As shown in figure 4, the data processing method comprises the following steps:
Step 401:Synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition When, the first control instruction is sent to asynchronous processor, is started with triggering the asynchronous processor, and the synchronous processing device stops Operation.
In the embodiment of the present invention, the electronic equipment can be the arbitrary electronic equipment such as mobile phone, tablet computer.The electronics is set It is standby that there is at least one synchronous processing device, at least one asynchronous processor and at least one sensor.
Specifically, synchronous processing device namely synchronous circuit work there are one clock as control circuit, and can circuit state Change and control triggered by clock, certainly, circuit state can change also need to by input and its logic Lai.The overwhelming majority at present Processor be all synchronous processing device, such as each processor family of Intel (intel) also has the place of each manufacturer on mobile phone It is all synchronous processing device to manage device.Asynchronous processor namely asynchronous circuit, without control circuit of the clock as work, circuit state Change determined by circuit oneself state, also more power saving.
In said program, synchronous processing device has clock as input, clock is inherently no matter whether circuit state changes It is a very big current drain, and if clock energizing circuit works, which may not change, need not Work, therefore waste many power consumptions.But this problem is not present in asynchronous processor, he is ability work when needing change state Make, when need not changing circuit state, circuit itself does not work, even if moreover, it is also the electricity that change to change state Road works, and the constant circuit of state does not work, therefore more power saving.
In the embodiment of the present invention, the sensor in electronic equipment can be motion sensor, proximity sensor, infrared sensing The sensors such as device, Hall sensor, these sensors can obtain sensing data, such as motion sensor can obtain electronics and set Standby speed, acceleration.
In the embodiment of the present invention, asynchronous processor controls multiple sensors, is responsible for the sensing data of acquisition sensor.And work as Real-time is high, when sensing data amount is larger, then directly controls multiple sensors by synchronous processing device and is responsible for acquisition sensor Sensing data.For this purpose, the embodiment of the present invention is by controlling startup asynchronous processor and asynchronous processor out of service and starting same Processor is walked to realize that two different processors are acquired and handle to sensing data respectively at different conditions.
Specifically, in the first condition, synchronous processing device receives the first instruction or detects that the electronic equipment is expired The first predetermined condition of foot;Here, the first instruction can by the primary processor in electronic equipment namely application processor (AP, Application Processor) be sent to synchronous processing device, can also by electronic equipment central processing unit (CPU, Central Processing Unit) synchronous processing device is sent to, synchronous processing device can also be sent to by other controllers also It can be sent to by other controllers with processor step by step, primary processor, AP, CPU or other controllers are mainly transported according to itself Market condition or the running situation that monitors send first instruction.It, can also be by detecting electricity in the embodiment of the present invention Whether sub- equipment meets the first predetermined condition to determine whether synchronous processing device sends the first control instruction to asynchronous processor, this In, the first predetermined condition can be used for the data volume of the sensing data of limiting sensor, when data volume is big, then synchronization process When device receives the first instruction or electronic equipment is in low speed operation, such as when electronic equipment is in standby or dormant state When, electronic equipment receives the first instruction.Here, the size of data volume can be judged by pre-set threshold value, in advance The threshold value of setting can be set by user according to the hardware parameter of electronic equipment, such as the process performance of electronics processors is come It sets, when data volume is more than or equal to the threshold value, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the first instruction, the first control instruction is sent to asynchronous Therefore processor, here, the first control instruction, refer to for starting asynchronous processor when asynchronous processor receives the first control Then start when making, at the same time, synchronous processing device is out of service, by asynchronous processor gather sensing data and stored and Processing.First control instruction is that primary processor in electronic equipment or synchronous processing device or controller are sent.
Step 402:Synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition When, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor, and the synchronous processing device Start.
Specifically, step 401 is accepted, under the conditions of second, synchronous processing device receives the second instruction or detects institute It states electronic equipment and meets the second predetermined condition;Here, the second instruction can be by the primary processor in electronic equipment namely at Reason device (AP, Application Processor) is sent to synchronous processing device, can also be by the central processing unit in electronic equipment (CPU, Central Processing Unit) is sent to synchronous processing device, can also be sent to by other controllers synchronous Manage device.In the embodiment of the present invention, whether can also meet the second predetermined condition by detecting electronic equipment and determine synchronization process Whether device sends the second control instruction to asynchronous processor, and here, the second predetermined condition can be used for the biography of limiting sensor Feel the data volume of data, when data volume is small, then synchronous processing device receives the second instruction or electronic equipment is in and transports at a high speed During row, such as when electronic equipment switches to starting state by standby or dormant state, electronic equipment receives the second instruction.This In, the size of data volume can judge that pre-set threshold value can be set by user according to electronics by pre-set threshold value Standby hardware parameter is set, such as the process performance of electronics processors is set, when data volume is more than or equal to the threshold value When, then data volume is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the second instruction, the second control instruction is sent to asynchronous Processor, here, the second control instruction are used for asynchronous processor out of service, therefore, when asynchronous processor receives the second control Then out of service during system instruction, at the same time, synchronous processing device starts, and is gathered sensing data by synchronous processing device and is carried out Reason.In the embodiment of the present invention, synchronous processing device can also obtain at least one sensor that asynchronous processor is gathered and stored Sensing data is simultaneously handled, and can also directly be gathered sensing data and be handled.Second control instruction sets for electronics What primary processor or synchronous processing device or controller in standby were sent.
Step 403:After synchronous processing device starts, synchronous processing device acquisition asynchronous processor gathers and stores at least one The sensing data of sensor.
The data processing method of the embodiment of the present invention is further described below by exemplified by following scene:Utilize gravity Sensor calculates the mileage of running/stroll.Simply note of running walks, and records the number waved every time and the physical parameter waved, main Processor is without real-time working, as long as secondary processor records data.
The course of work is as follows:
1st, system enters running application, and gravity sensor enters working condition, while application processor enters dormant state.
2nd, at this point, application processor transmission first is instructed to synchronous processing device, after synchronous processing device receives the first instruction, The first control instruction occurs to asynchronous processor to start asynchronous processor, asynchronous processor enters working condition.Gravity sensitive Device working frequency is 40kHz, and with this frequency reported data, asynchronous processor gathers the data that gravity sensor reports and is stored in In register, gravity sensor sends interruption, and asynchronous processor is connected to interruption post processing data, is added and subtracted according to sensing data Method processing, to realize the mileage for calculating running/stroll.
3rd, user presses switch key, and primary processor wakes up, and exits asynchronous processor working condition, synchronous processing device acquisition weight The sensing data of force snesor, then sensing data is directly handled by primary processor;Or without new to gravity sensor requirement Height, such as frequency are not higher than the application of 40kHz, and asynchronous processor still works.
The technical solution of the embodiment of the present invention, electronic equipment sense these by synchronous processing device or asynchronous processor Data are acquired and handle.The embodiment of the present invention can select suitable processor to be acquired and handle sensing data, Specifically, when synchronous processing device receives to start the first instruction of asynchronous processor or electronic equipment to meet first predetermined During condition, then the first control instruction is sent to asynchronous processor, to trigger asynchronous processor startup, so as to pass through asynchronous processor Sensing data is acquired and is handled.When synchronous processing device receive for asynchronous processor out of service second instruction or When person's electronic equipment meets the second predetermined condition, then the second control instruction is sent to asynchronous processor, to trigger asynchronous processor It is out of service, and synchronous processing device starts, so as to which sensing data is acquired and be handled by synchronous processing device.Therefore, originally The sensing data that inventive embodiments realize for different data amount is handled it using different processors, so as to save The power consumption of system.
It is worth noting that, the step 401 and step 402 in the embodiment of the present invention perform step without priority execution sequence When 401, then step 402 need not be performed;When performing step 402, then step 401 need not be performed.
Fig. 5 is the flow diagram of the data processing method of the embodiment of the present invention five, the data processing method in this example Applied in electronic equipment, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when described When synchronous processing device or the asynchronous processor start, the synchronous processing device or the asynchronous processor can gather it is described extremely The sensing data of a few sensor.As shown in figure 5, the data processing method comprises the following steps:
Step 501:Synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition When send the first control instruction to asynchronous processor.
Step 502:Asynchronous processor starts after receiving the first control instruction, at least one sensing that will be collected The sensing data of device is stored.
In the embodiment of the present invention, the electronic equipment can be the arbitrary electronic equipment such as mobile phone, tablet computer.The electronics is set It is standby that there is at least one synchronous processing device, at least one asynchronous processor and at least one sensor.
Specifically, synchronous processing device namely synchronous circuit work there are one clock as control circuit, and can circuit state Change and control triggered by clock, certainly, circuit state can change also need to by input and its logic Lai.The overwhelming majority at present Processor be all synchronous processing device, such as each processor family of Intel (intel) also has the place of each manufacturer on mobile phone It is all synchronous processing device to manage device.Asynchronous processor namely asynchronous circuit, without control circuit of the clock as work, circuit state Change determined by circuit oneself state, also more power saving.
In said program, synchronous processing device has clock as input, clock is inherently no matter whether circuit state changes It is a very big current drain, and if clock energizing circuit works, which may not change, need not Work, therefore waste many power consumptions.But this problem is not present in asynchronous processor, he is ability work when needing change state Make, when need not changing circuit state, circuit itself does not work, even if moreover, it is also the electricity that change to change state Road works, and the constant circuit of state does not work, therefore more power saving.
In the embodiment of the present invention, the sensor in electronic equipment can be motion sensor, proximity sensor, infrared sensing The sensors such as device, Hall sensor, these sensors can obtain sensing data, such as motion sensor can obtain electronics and set Standby speed, acceleration.
In the embodiment of the present invention, asynchronous processor controls multiple sensors, is responsible for the sensing data of acquisition sensor.And work as Real-time is high, when sensing data amount is larger, then directly controls multiple sensors by synchronous processing device and is responsible for acquisition sensor Sensing data.For this purpose, the embodiment of the present invention is by controlling startup asynchronous processor and asynchronous processor out of service and starting same Processor is walked to realize that two different processors are acquired and handle to sensing data respectively at different conditions.
In the embodiment of the present invention, when the first control instruction is sent to asynchronous processor, asynchronous processor by synchronous processing device Start after receiving the first control instruction, the sensing data of at least one sensor collected is stored.
In the embodiment of the present invention, sensing data is stored into caching, and here, caching can be separately provided, can also It is arranged in synchronous processing device or primary processor or controller.
Step 503:Synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition When send the second control instruction to asynchronous processor.
Step 504:Asynchronous processor receives out of service after the second control instruction.
Wherein, first control instruction or the second control instruction send for primary processor or synchronous processing device or controller 's.
In the embodiment of the present invention, asynchronous processor receive it is out of service after the second control instruction, it is synchronous by what is started Manage device processing sensing data.The technical solution of the embodiment of the present invention, electronic equipment pass through synchronous processing device or asynchronous processor These sensing datas are acquired and handled.The embodiment of the present invention can select suitable processor to adopt sensing data Collect and handle, specifically, expire when synchronous processing device receives to start the first instruction of asynchronous processor or electronic equipment During the first predetermined condition of foot, then the first control instruction is sent to asynchronous processor, to trigger asynchronous processor startup, so as to pass through Asynchronous processor is acquired and handles to sensing data.When synchronous processing device is received for asynchronous processor out of service When second instruction or electronic equipment meet the second predetermined condition, then the second control instruction is sent to asynchronous processor, with triggering Asynchronous processor is out of service, and synchronous processing device starts, so as to which sensing data is acquired and be located by synchronous processing device Reason.Therefore, the embodiment of the present invention realizes sensing data for different data amount using different processors at it Reason, so as to the power consumption for the system of saving.
As shown in fig. 6, in an embodiment of the present invention, the electronic equipment of the embodiment of the present invention have synchronous processing device 61, Asynchronous processor 62 and at least one sensor 63, when the synchronous processing device 61 or the startup of the asynchronous processor 62, institute The sensing data of at least one sensor 63 can be gathered by stating synchronous processing device 61 or the asynchronous processor 62;Wherein,
The synchronous processing device 61, for receiving the first instruction or detecting that the electronic equipment meets the first predetermined item During part, the first control instruction is sent to asynchronous processor 62, is started with triggering the asynchronous processor 62, and the synchronization process Device 61 is out of service;
The synchronous processing device 61 is additionally operable to receive the second instruction or detects that the electronic equipment meets second and makes a reservation for During condition, the second control instruction is sent to asynchronous processor 62, it is out of service to trigger the asynchronous processor 62 and described same Step processor 61 starts.
As shown in fig. 6, in an alternative embodiment of the invention, the electronic equipment of the embodiment of the present invention has synchronous processing device 61st, asynchronous processor 62 and at least one sensor 63, when the synchronous processing device 61 or the startup of the asynchronous processor 62, The synchronous processing device 61 or the asynchronous processor 62 can gather the sensing data of at least one sensor 63;Its In,
The synchronous processing device 61, for receiving the first instruction or detecting that the electronic equipment meets the first predetermined item During part, the first control instruction is sent to asynchronous processor 62, is started with triggering the asynchronous processor 62, and the synchronization process Device 61 is out of service;
The synchronous processing device 61 is additionally operable to receive the second instruction or detects that the electronic equipment meets second and makes a reservation for During condition, the second control instruction is sent to asynchronous processor 62, it is out of service to trigger the asynchronous processor 62 and described same Step processor 61 starts.
The synchronous processing device 61, when being additionally operable to receive the start the asynchronous processor 62 first instruction, hair The first control instruction is sent to asynchronous processor 62;
The synchronous processing device 61 is additionally operable to detect that the data volume of the sensing data accessed by the sensor 63 is small In equal to first threshold;Alternatively, when detecting that the electronic equipment is in the first working condition, the first control instruction is sent to different Walk processor 62.
As shown in fig. 6, in an alternative embodiment of the invention, the electronic equipment of the embodiment of the present invention has synchronous processing device 61st, asynchronous processor 62 and at least one sensor 63, when the synchronous processing device 61 or the startup of the asynchronous processor 62, The synchronous processing device 61 or the asynchronous processor 62 can gather the sensing data of at least one sensor 63;Its In,
The synchronous processing device 61, for receiving the first instruction or detecting that the electronic equipment meets the first predetermined item During part, the first control instruction is sent to asynchronous processor 62, is started with triggering the asynchronous processor 62, and the synchronization process Device 61 is out of service;
The synchronous processing device 61 is additionally operable to receive the second instruction or detects that the electronic equipment meets second and makes a reservation for During condition, the second control instruction is sent to asynchronous processor 62, it is out of service to trigger the asynchronous processor 62 and described same Step processor 61 starts.
The synchronous processing device 61 is additionally operable to receive the second instruction for the asynchronous processor 62 out of service When, the second control instruction is sent to asynchronous processor 62;
The synchronous processing device 61 is additionally operable to detect that the data volume of the sensing data accessed by the sensor 63 is big In first threshold;Alternatively, when detecting that the electronic equipment is in the second working condition, the second control instruction is sent to asynchronous place Manage device 62.
As shown in fig. 6, in an alternative embodiment of the invention, the electronic equipment of the embodiment of the present invention has synchronous processing device 61st, asynchronous processor 62 and at least one sensor 63, when the synchronous processing device 61 or the startup of the asynchronous processor 62, The synchronous processing device 61 or the asynchronous processor 62 can gather the sensing data of at least one sensor 63;Its In,
The synchronous processing device 61, for receiving the first instruction or detecting that the electronic equipment meets the first predetermined item During part, the first control instruction is sent to asynchronous processor 62, is started with triggering the asynchronous processor 62, and the synchronization process Device 61 is out of service;
The synchronous processing device 61 is additionally operable to receive the second instruction or detects that the electronic equipment meets second and makes a reservation for During condition, the second control instruction is sent to asynchronous processor 62, it is out of service to trigger the asynchronous processor 62 and described same Step processor 61 starts.
The synchronous processing device 61 after being additionally operable to startup, obtains at least one biography that asynchronous processor 62 is gathered and stored The sensing data of sensor 63.
As shown in fig. 6, in an alternative embodiment of the invention, the electronic equipment has synchronous processing device 61, asynchronous process Device 62 and at least one sensor 63, when the synchronous processing device 61 or the startup of the asynchronous processor 62, at the synchronization Reason device 61 or the asynchronous processor 62 can gather the sensing data of at least one sensor 63, wherein,
The asynchronous processor 62, it is described at least one by what is collected for starting after receiving the first control instruction The sensing data of sensor 63 is stored, and first control instruction receives the first instruction or inspection for the synchronous processing device It measures the electronic equipment and meets what is sent during the first predetermined condition, first control instruction receives for the synchronous processing device It is sent to the first instruction or when detecting that the electronic equipment meets the first predetermined condition.
In the electronic equipment of the embodiment of the present invention, synchronous processing device namely synchronous circuit, there are one clock as control electricity Road works, and can circuit state change by clock to trigger control, certainly, circuit state can change also need to by input and its Logic is come.The processor of the overwhelming majority is all synchronous processing device at present, such as each processor family of Intel (intel), also The processor of each manufacturer on mobile phone is all synchronous processing device.Asynchronous processor namely asynchronous circuit, without clock as work The control circuit of work, the change of circuit state determine by circuit oneself state, also more power saving.
In said program, synchronous processing device has clock as input, clock is inherently no matter whether circuit state changes It is a very big current drain, and if clock energizing circuit works, which may not change, need not Work, therefore waste many power consumptions.But this problem is not present in asynchronous processor, he is ability work when needing change state Make, when need not changing circuit state, circuit itself does not work, even if moreover, it is also the electricity that change to change state Road works, and the constant circuit of state does not work, therefore more power saving.
In the electronic equipment of the embodiment of the present invention, the sensor in electronic equipment can be motion sensor, close sensing The sensors such as device, infrared sensor, Hall sensor, these sensors can obtain sensing data, such as motion sensor energy Enough obtain speed, the acceleration of electronic equipment.
In the embodiment of the present invention, asynchronous processor controls multiple sensors, is responsible for the sensing data of acquisition sensor.And work as Real-time is high, when sensing data amount is larger, then directly controls multiple sensors by synchronous processing device and is responsible for acquisition sensor Sensing data.For this purpose, the embodiment of the present invention is by controlling startup asynchronous processor and asynchronous processor out of service and starting same Processor is walked to realize that two different processors are acquired and handle to sensing data respectively at different conditions.
Specifically, in the first condition, synchronous processing device receives the first instruction or detects that the electronic equipment is expired The first predetermined condition of foot;Here, the first instruction can by the primary processor in electronic equipment namely application processor (AP, Application Processor) be sent to synchronous processing device, can also by electronic equipment central processing unit (CPU, Central Processing Unit) synchronous processing device is sent to, can also synchronous processing device be sent to by other controllers, Primary processor, AP, CPU or other controllers mainly send this according to self-operating situation or the running situation monitored First instruction.It, can also be by detecting whether electronic equipment meets the first predetermined condition come definite synchronous in the embodiment of the present invention Whether processor sends the first control instruction to asynchronous processor, and here, the first predetermined condition can be used for limiting sensor Sensing data data volume, when data volume is big, then synchronous processing device receives the first instruction or electronic equipment and is in low During speed operation, such as when electronic equipment is in standby or dormant state, electronic equipment receives the first instruction.Here, data The size of amount can judge that pre-set threshold value can be by user according to the hardware of electronic equipment by pre-set threshold value Parameter is set, such as the process performance of electronics processors is set, when data volume is more than or equal to the threshold value, then data Amount is big, and when data volume is less than the threshold value, then data volume is small.
In the embodiment of the present invention, when synchronous processing device receives the first instruction, the first control instruction is sent to asynchronous Therefore processor, here, the first control instruction, refer to for starting asynchronous processor when asynchronous processor receives the first control Then start when making, at the same time, synchronous processing device is out of service, by asynchronous processor gather sensing data and stored and Processing.First control instruction is that primary processor in electronic equipment or synchronous processing device or controller are sent.
Under the conditions of second, synchronous processing device receives the second instruction or detects that the electronic equipment meets second in advance Fixed condition;Here, the second instruction can be by the primary processor in electronic equipment namely application processor (AP, Application Processor synchronous processing device) is sent to, it can also be by central processing unit (CPU, the Central in electronic equipment Processing Unit) synchronous processing device is sent to, can also synchronous processing device be sent to by other controllers.It is of the invention real It applies in example, whether can also meet the second predetermined condition by detecting electronic equipment and determine whether synchronous processing device sends second Control instruction is to asynchronous processor, and here, the second predetermined condition can be used for the data volume of the sensing data of limiting sensor, When data volume is small, then synchronous processing device receives the second instruction or when electronic equipment is in high-speed cruising, such as works as electronics When equipment switches to starting state by standby or dormant state, electronic equipment receives the second instruction.
In the embodiment of the present invention, when synchronous processing device receives the second instruction, the second control instruction is sent to asynchronous Processor, here, the second control instruction are used for asynchronous processor out of service, therefore, when asynchronous processor receives the second control Then out of service during system instruction, at the same time, synchronous processing device starts, and is gathered sensing data by synchronous processing device and is carried out Reason.In the embodiment of the present invention, synchronous processing device can also obtain at least one sensor that asynchronous processor is gathered and stored Sensing data is simultaneously handled, and can also directly be gathered sensing data and be handled.Second control instruction sets for electronics What primary processor or synchronous processing device or controller in standby were sent.
It, in the case where there is no conflict, can be in any combination between technical solution recorded in the embodiment of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong Other modes are crossed to realize.Apparatus embodiments described above are only schematical, for example, the division of the unit, only Only a kind of division of logic function, can have other dividing mode, such as in actual implementation:Multiple units or component can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.In addition, shown or discussed each group Into the mutual coupling in part or direct-coupling or communication connection can be by some interfaces, equipment or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, be shown as unit The component shown can be or may not be physical location, you can be located at a place, can also be distributed to multiple network lists In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing unit, Can also be each unit individually as a unit, can also two or more units integrate in a unit; The form that hardware had both may be employed in above-mentioned integrated unit is realized, the form that hardware adds SFU software functional unit can also be used real It is existing.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain Lid is within protection scope of the present invention.

Claims (10)

1. a kind of data processing method, applied in electronic equipment, which is characterized in that the electronic equipment has synchronization process Device, asynchronous processor and at least one sensor, when the synchronous processing device or asynchronous processor startup, the synchronization Processor or the asynchronous processor can gather the sensing data of at least one sensor, and synchronous processing device is regardless of circuit Whether state changes, and has clock as input;Asynchronous processor needs just to work when change state;The data processing Method includes:
When synchronous processing device receives the first instruction or detects that the electronic equipment meets the first predetermined condition, the first control is sent System instruction is started, and the synchronous processing device is out of service to asynchronous processor with triggering the asynchronous processor;Alternatively,
When synchronous processing device receives the second instruction or detects that the electronic equipment meets the second predetermined condition, the second control is sent System instruction is out of service to trigger the asynchronous processor to asynchronous processor, and the synchronous processing device starts.
2. data processing method according to claim 1, which is characterized in that the first finger that the synchronous processing device receives It makes starting the asynchronous processor;
It is described to detect that the electronic equipment meets the first predetermined condition, be:Detect the sensing accessed by the sensor The data volume of data is less than or equal to first threshold;Alternatively, detect that the electronic equipment is in the first working condition.
3. data processing method according to claim 1, which is characterized in that the synchronous processing device receives the second instruction For the asynchronous processor out of service;
It is described to detect that the electronic equipment meets the second predetermined condition, be:Detect the sensing accessed by the sensor The data volume of data is more than first threshold;Alternatively, detect that the electronic equipment is in the second working condition.
4. data processing method according to any one of claims 1 to 3, which is characterized in that after synchronous processing device starts, also Including:
Synchronous processing device obtains the sensing data at least one sensor that asynchronous processor is gathered and stored.
5. a kind of data processing method, applied in electronic equipment, which is characterized in that the electronic equipment has synchronization process Device, asynchronous processor and at least one sensor, when the synchronous processing device or asynchronous processor startup, the synchronization Processor or the asynchronous processor can gather the sensing data of at least one sensor, and synchronous processing device is regardless of circuit Whether state changes, and has clock as input;Asynchronous processor needs just to work when change state;The data processing Method includes:
Asynchronous processor starts after receiving the first control instruction, by the sensing data of at least one sensor collected It is stored, first control instruction receives the first instruction or detect that the electronic equipment is expired for the synchronous processing device It is sent during the first predetermined condition of foot;Alternatively,
Asynchronous processor receives out of service after the second control instruction, and second control instruction connects for the synchronous processing device It receives the second instruction or detects that the electronic equipment meets what is sent during the second predetermined condition.
6. a kind of electronic equipment, which is characterized in that the electronic equipment has synchronous processing device, asynchronous processor and at least one Sensor, when the synchronous processing device or asynchronous processor startup, the synchronous processing device or the asynchronous processor The sensing data of at least one sensor can be gathered;Synchronous processing device has clock no matter whether circuit state changes As input;Asynchronous processor needs just to work when change state;Wherein,
The synchronous processing device, during for receiving the first instruction or detect that the electronic equipment meets the first predetermined condition, The first control instruction is sent to asynchronous processor, is started with triggering the asynchronous processor, and the synchronous processing device stops fortune Row;
The synchronous processing device is additionally operable to receive the second instruction or detects that the electronic equipment meets the second predetermined condition When, the second control instruction is sent to asynchronous processor, it is out of service to trigger the asynchronous processor, and the synchronous processing device Start.
7. electronic equipment according to claim 6, which is characterized in that the synchronous processing device is additionally operable to receive and is used for When starting the first instruction of the asynchronous processor, the first control instruction is sent to asynchronous processor;
The synchronous processing device is additionally operable to detect that the data volume of the sensing data accessed by the sensor is less than or equal to the During one threshold value, alternatively, when detecting that the electronic equipment is in the first working condition, the first control instruction is sent to asynchronous process Device.
8. electronic equipment according to claim 6, which is characterized in that the synchronous processing device is additionally operable to receive and is used for During the second instruction of the asynchronous processor out of service, the second control instruction is sent to asynchronous processor;
The synchronous processing device is additionally operable to detect that the data volume of the sensing data accessed by the sensor is more than the first threshold During value, alternatively, when detecting that the electronic equipment is in the second working condition, the second control instruction is sent to asynchronous processor.
9. according to claim 6 to 8 any one of them electronic equipment, which is characterized in that the synchronous processing device is additionally operable to open After dynamic, the sensing data at least one sensor that asynchronous processor is gathered and stored is obtained.
10. a kind of electronic equipment, the electronic equipment has synchronous processing device, asynchronous processor and at least one sensor, when When the synchronous processing device or the asynchronous processor start, the synchronous processing device or the asynchronous processor can gather institute The sensing data of at least one sensor is stated, synchronous processing device has clock as input no matter whether circuit state changes;It is different Step processor needs just to work when change state;Wherein,
The asynchronous processor, for starting after receiving the first control instruction, at least one sensor that will be collected Sensing data stored, first control instruction receives the first instruction for the synchronous processing device or detects described Electronic equipment meets what is sent during the first predetermined condition;Alternatively, out of service after receiving the second control instruction, second control System instruction receives the second instruction for the synchronous processing device or is sent out when detecting that the electronic equipment meets the second predetermined condition It send.
CN201410837624.9A 2014-12-29 2014-12-29 A kind of data processing method and electronic equipment Active CN104598007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410837624.9A CN104598007B (en) 2014-12-29 2014-12-29 A kind of data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410837624.9A CN104598007B (en) 2014-12-29 2014-12-29 A kind of data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104598007A CN104598007A (en) 2015-05-06
CN104598007B true CN104598007B (en) 2018-06-01

Family

ID=53123854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410837624.9A Active CN104598007B (en) 2014-12-29 2014-12-29 A kind of data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104598007B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116577451B (en) * 2023-05-31 2023-10-17 华谱科仪(北京)科技有限公司 Large chromatograph data management system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004130525A (en) * 2002-10-08 2004-04-30 Canon Inc Image forming apparatus
CN1499770A (en) * 2002-11-05 2004-05-26 ��ʽ���綫֥ Communication facilities and communication method thereof
CN101320362A (en) * 2008-06-27 2008-12-10 北京大学深圳研究生院 Array processing system supporting asynchronous transmission and its clock management method
CN101937420A (en) * 2009-06-29 2011-01-05 龙迅半导体科技(合肥)有限公司 Low power consumption design for chip configuration register module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004130525A (en) * 2002-10-08 2004-04-30 Canon Inc Image forming apparatus
CN1499770A (en) * 2002-11-05 2004-05-26 ��ʽ���綫֥ Communication facilities and communication method thereof
CN101320362A (en) * 2008-06-27 2008-12-10 北京大学深圳研究生院 Array processing system supporting asynchronous transmission and its clock management method
CN101937420A (en) * 2009-06-29 2011-01-05 龙迅半导体科技(合肥)有限公司 Low power consumption design for chip configuration register module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《异步片上网络研究综述》;宋威等;《计算机辅助设计与图形学学报》;20120630;第24卷(第6期);第699-709页 *

Also Published As

Publication number Publication date
CN104598007A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104391561B (en) Wearable carries out the method and the Wearable of pattern switching
CN101668351B (en) Portable electronic device and mode switching method thereof
CN104298335B (en) Application program process cleaning method and device of mobile terminal and mobile terminal
CN103581443A (en) Intelligent terminal automatic awakening method and system based on sensors
CN105607843B (en) Method and device based on gesture control terminal
CN103713829B (en) System switching method, device and electronic equipment
CN100365544C (en) Energy-saving switching method for waiting overtime judge of flush type system outer apparatus
CN104978303A (en) Sensor hub, mobile apparatus and multi-sensor management method for mobile apparatus
CN103576836A (en) Touch mobile terminal and power saving control method thereof
CN201854336U (en) Handheld electronic device with shake unlocking function
EP3151085B1 (en) Method, apparatus and computer program product for controlling central processing unit
CN105807965B (en) A kind of method and device for preventing from accidentally touching
CN104850214A (en) Method for shortening wakeup time of mobile terminal through prediction of user wakeup intention
CN105530377B (en) It is a kind of to wake up the processing method locked, apparatus and system
CN102830790A (en) Mobile electronic equipment and automatic sleeping method thereof
CN103514039B (en) Method of controlling operation thereof and electronic equipment
CN108491115A (en) Household appliance control method and household electrical appliance
EP3319375A1 (en) Terminal management method and device
CN103034317A (en) Method and device for handling standby
CN103713731A (en) Electronic device and method for controlling same
CN103092480A (en) Method for quickly returning to list home page and mobile terminal
CN103207655A (en) Mobile terminal with reset function and reset method
CN109803360A (en) WiFi dormancy control method, device, electronic equipment and storage medium
CN110347439A (en) Processor awakening method, device, terminal and storage medium
CN104598007B (en) A kind of data processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant