CN104252221B - A kind of data-updating method and processor and system - Google Patents

A kind of data-updating method and processor and system Download PDF

Info

Publication number
CN104252221B
CN104252221B CN201310269912.4A CN201310269912A CN104252221B CN 104252221 B CN104252221 B CN 104252221B CN 201310269912 A CN201310269912 A CN 201310269912A CN 104252221 B CN104252221 B CN 104252221B
Authority
CN
China
Prior art keywords
processor
data
wake
states
down mode
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
CN201310269912.4A
Other languages
Chinese (zh)
Other versions
CN104252221A (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.)
Keen (Chongqing) Microelectronics Technology Co., Ltd.
Original Assignee
Keen (chongqing) Microelectronics Technology Co 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 Keen (chongqing) Microelectronics Technology Co Ltd filed Critical Keen (chongqing) Microelectronics Technology Co Ltd
Priority to CN201310269912.4A priority Critical patent/CN104252221B/en
Publication of CN104252221A publication Critical patent/CN104252221A/en
Application granted granted Critical
Publication of CN104252221B publication Critical patent/CN104252221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of data-updating method and processor and systems to reach the target for saving intelligent mobile terminal power consumption for reducing the number mutually waken up between processor in intelligent mobile terminal.The method comprise the steps that the mapped memory region is the memory space in the dynamic memory of the first processor by the data for needing to update in first processor storage to mapped memory region;Detection second processor is in power down mode or wake-up states;If the second processor is in power down mode, data more new technological process is exited;If the second processor is in wake-up states, the data stored in the mapped memory region are sent to second processor, the data are saved in the static memory of the second processor by the second processor.

Description

A kind of data-updating method and processor and system
Technical field
The present invention relates to field of communication technology more particularly to a kind of data-updating method and processor and systems.
Background technique
With the development of mobile communication, the function of intelligent mobile terminal is more and more, while bringing convenient The power consumption of intelligent mobile terminal is caused to increase therewith, therefore the power consumption of intelligent mobile terminal will be a key for measuring terminal capabilities How index reduces the power consumption of intelligent mobile terminal, is the inevitable technical problems to be solved of industry.
Usual intelligent mobile terminal mainly includes application processor, baseband processor, various peripheral apparatus, is application processing The dynamic memory and static memory that device and baseband processor are disposed respectively.In common Terminal Design, entire intelligent sliding The electricity-saving system of dynamic terminal is made of two big electricity-saving system, i.e. application processor electricity-saving system and baseband processor power saving system System.This two big electricity-saving system has entrance battery saving mode and wake-up mechanism independent, and in application processor and base band There are power-saving control interfaces between processor.
In actual application, application processor is in sleep state, but baseband processor is not necessarily in sleep shape State, conversely, base band is in sleep state, application processor is not necessarily in sleep state.If needed at base band using processing It manages device and participates in task completion, then wake up baseband processor first.If instead the task of baseband processor triggering needs at application It manages device to assist to complete, then wakes up application processor first.
In the development of intelligent mobile terminal, in order to save cost, static storage is individually no longer disposed for baseband processor All parameters that baseband processor needs all are saved in static memory used in application processor, Base-Band Processing by device The operation of all about static memory of device requires application processor and assists to complete.
According to application processor electricity-saving system and baseband processor electricity-saving system that foregoing teachings describe, inventor Find in the implementation of the present invention: only for application processor dispose a static memory and baseband processor do not dispose it is quiet State processor, this mode is when baseband processor needs to update static memory content, if application processor is in Sleep pattern, then baseband processor first has to wake up application processor, then the content that baseband processor is needed to update is transmitted To application processor, the content that baseband processor updates is written in static memory by application processor, is increased in this way The wake-up times of application processor in intelligent mobile terminal also increase the power consumption of intelligent mobile terminal.Therefore only Application processor disposes a static memory and baseband processor and does not dispose under the application scenarios of static processor how to realize The update of data also needs to propose other technical solutions to solve the increase to application processor power consumption.
Summary of the invention
The embodiment of the invention provides a kind of data-updating method and processor and systems, for reducing intelligent mobile terminal The number mutually waken up between middle processor reaches the target for saving intelligent mobile terminal power consumption.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
In a first aspect, the embodiment of the present invention provides a kind of data-updating method, comprising:
By the data for needing to update in first processor storage to mapped memory region, the mapped memory region is described first Memory space in the dynamic memory of processor;
Detection second processor is in power down mode or wake-up states;
If the second processor is in power down mode, data more new technological process is exited;
If the second processor is in wake-up states, the data stored in the mapped memory region are sent at second Device is managed, the data are saved in the static memory of the second processor by the second processor.
Second aspect, the embodiment of the present invention provide a kind of processor, specially first processor, comprising:
Mapping memory module, it is described to reflect for storing the data for needing to update in first processor to mapped memory region Penetrate the memory space in the dynamic memory that memory block is the first processor;
State detection module is in power down mode or wake-up states for detecting second processor;
Module is exited, if being in power down mode for the second processor, exits data more new technological process;
Sending module, if being in wake-up states, the number that will be stored in the mapped memory region for the second processor According to second processor is sent to, the data are saved in the static memory of the second processor by the second processor In.
The third aspect, the embodiment of the present invention provide a kind of data update system, comprising:
First processor and second processor as described in second aspect, wherein the second processor includes:
Receiving module receives first processor if sending data to the second processor for the first processor The data of transmission, the data are got from mapped memory region by the first processor, and the mapped memory region is described Memory space in the dynamic memory of first processor;
Memory module, for the data to be saved in the static memory of the second processor.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In embodiments of the present invention, one section of memory space conduct is marked in the dynamic memory used in first processor Mapped memory region will need to update in first processor when intelligent mobile terminal carries out event handling using first processor Data storage to mapped memory region, then check that second processor is in power down mode or wake-up states, in second processing When device is in wake-up states, the data stored in mapped memory region are sent to second processor by first processor, by second Reason device stores data into static memory used in second processor, when second processor is in power down mode, moves back Data more new technological process out.Only have second processor side to be deployed with static memory in the embodiment of the present invention, and first processor Static memory is not disposed in side, can save the cost of intelligent mobile terminal, and need to update in first processor Data are stored in the dynamic memory of first processor, only when second processor is in wake-up states, first processor Data are extracted from mapped memory region is sent to second processor, the first processor when second processor is in power down mode Middle to need the data updated that mapped memory region is still stored in, first processor exits data more new technological process.The embodiment of the present invention Middle first processor will not wake up second processor and carry out data update, therefore can reduce in intelligent mobile terminal between processor The number mutually waken up reaches the target for saving intelligent mobile terminal power consumption.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of process blocks schematic diagram of data-updating method provided in an embodiment of the present invention;
Fig. 2-a is the schematic diagram of deployment dual processor in a kind of intelligent mobile terminal provided in an embodiment of the present invention;
Fig. 2-b is that the implementation of division mapped memory region in a kind of intelligent mobile terminal provided in an embodiment of the present invention shows It is intended to;
Fig. 3 is the process blocks schematic diagram of another data-updating method provided in an embodiment of the present invention;
Fig. 4 is a kind of system architecture schematic diagram of intelligent mobile terminal provided in an embodiment of the present invention;
Fig. 5-a is the schematic diagram of the data updating process of mapped memory region provided in an embodiment of the present invention;
Fig. 5-b is that application processor provided in an embodiment of the present invention updates mapped memory region when waking up communication processor The schematic diagram of process;
Fig. 5-c is that communication processor provided in an embodiment of the present invention updates mapped memory region when waking up application processor The schematic diagram of process;
Fig. 6-a is a kind of composed structure schematic diagram of processor provided in an embodiment of the present invention;
Fig. 6-b is the composed structure schematic diagram of another processor provided in an embodiment of the present invention;
Fig. 6-c is the composed structure schematic diagram of another processor provided in an embodiment of the present invention;
Fig. 7-a is a kind of composed structure schematic diagram of data update system provided in an embodiment of the present invention;
Fig. 7-b is the composed structure schematic diagram of another data update system provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of data-updating method and processor and systems, for reducing intelligent mobile terminal The number mutually waken up between middle processor reaches the target for saving intelligent mobile terminal power consumption.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, this field Technical staff's every other embodiment obtained, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Similar object, without being used to describe a particular order or precedence order.It should be understood that the term used in this way is in appropriate feelings It can be interchanged under condition, this is only to describe the used differentiation in description to the object of same alike result in the embodiment of the present invention Mode.In addition, term " includes " and " having " and their any deformation, it is intended that cover it is non-exclusive include, so as to A series of process, method, system, product or equipment comprising units are not necessarily limited to those units, but may include unclear Other units that ground is listed or intrinsic for these process, methods, product or equipment.
It is described in detail separately below.
One embodiment of data-updating method of the present invention may include: the data that will need to update in first processor It stores to mapped memory region, above-mentioned mapped memory region is the memory space in the dynamic memory of above-mentioned first processor;Detection Second processor is in power down mode or wake-up states;If above-mentioned second processor is in power down mode, data update is exited Process;If above-mentioned second processor is in wake-up states, the data stored in above-mentioned mapped memory region are sent to second processing Above-mentioned data are saved in the static memory of above-mentioned second processor by device by above-mentioned second processor.
Refering to Figure 1, data-updating method provided by one embodiment of the present invention, may include steps of:
101, the data for needing to update in first processor are stored to mapped memory region.
Wherein, above-mentioned mapped memory region is the memory space in the dynamic memory of above-mentioned first processor.
In embodiments of the present invention, intelligent mobile terminal is to save cost, can will dispose in intelligent mobile terminal The static memory that multiple processors use respectively merges into a static memory, and (wherein static memory can also be referred to as Nonvolatile storage), the static memory after merging is only by some processor access control in multiple processors.Such as figure Shown in 2-a, to be deployed in intelligent mobile terminal dual processor (specifically by taking first processor and second processor as an example), intelligence The terminal peripheral apparatus of mobile terminal connects second processor, mutual by communication interface between first processor and second processor Even, first processor side is only deployed with a dynamic memory without disposing static memory, one side of second processor There are a dynamic memory and a static memory in administration.It is understood that in embodiments of the present invention, it can also be second Processor side is only deployed with a dynamic memory without disposing static memory, and first processor side is deployed with one Dynamic memory and a static memory.In some embodiments of the invention, at first disposed in intelligent mobile terminal Reason device and second processing implement body also refer to: first processor is baseband processor (BP, Baseband Processor) Or communication processor (CP, Communicate Processor), second processor are application processor (AP, Application Processor).
In embodiments of the present invention, static memory is not disposed in first processor side, in the dynamic of first processor It can open up one section of memory space in memory, it in the embodiment of the present invention for ease of description, can will be in first processor The one section of memory space marked in dynamic memory is referred to as mapped memory region.The memory space marked off from dynamic memory Effect be exactly for temporarily store first processor need to be saved in the data information in static memory, retouch for convenience It states, is defined as mapped memory region, naturally it is also possible to be named as other names, such as map storage, mapping static storage Device etc..
In embodiments of the present invention, it when the data of update in need in first processor, does not need according to the prior art Second processor is equally waken up, but the temporary data that first will need to update are stored to mapped memory region, without waking up Second processor carries out data update, since it is desired that the data updated are stored on mapped memory region, therefore need to update Data will not lead to the loss of data because second processor progress data update is not waken up.
It please refers to as shown in Fig. 2-b, is the implementation schematic diagram for dividing mapped memory region in intelligent mobile terminal, with intelligence Dual processor (specifically by taking first processor and second processor as an example), the end of intelligent mobile terminal can be deployed in mobile terminal It holds peripheral apparatus to connect second processor, is interconnected between first processor and second processor by communication interface, the first processing Device side is only deployed with a dynamic memory without disposing static memory, and second processor side is deployed with a dynamic Memory and a static memory.One section of memory space is marked off in the dynamic memory of first processor side deployment, It is defined as mapped memory region, the mapped memory region is arrived into the data for needing to update in first processor storage.
In some embodiments of the invention, step 101 stores the data for needing to update in first processor to mapping It, can be comprising steps of mapped memory region is arranged in above-mentioned first processor updates mark after memory block.Wherein, it maps Memory block updates mark and is used to indicate the data that first processor stores update in need in mapped memory region, then the first processing Device by the mapped memory region update mark can know stored in mapped memory region in the first processor it is in need more New data.
102, detection second processor is in power down mode or wake-up states.
In embodiments of the present invention, after the data storage to mapped memory region for needing to update in first processor, first The state of the available second processor of processor detects that second processor is in power down mode or wake-up states, wherein Power down mode can also be referred to as sleep state, and power down mode refers to that processor enters sleep pattern, it is whole to save intelligent mobile The electricity at end, wake-up states can be referred to as non-power down mode, and wake-up states refer to what processor can be worked normally Mode can consume the electricity of intelligent mobile terminal.
In embodiments of the present invention, an electricity-saving system can be all disposed respectively in first processor and second processor, Two electricity-saving systems have entrance battery saving mode and wake-up mechanism independent, and in first processor and second processor Between there are power-saving control interfaces.Second processor is in wake-up states when there is event to need to handle, when event handling finishes When the second processor free time, second processor electricity-saving system control second processor enters power down mode, to save intelligent mobile The electricity of terminal.First processor can be waken up in time in saving when the data of update in need in first processor in the prior art The second processor of electricity condition executes data more new technological process, and the data for otherwise needing to update in first processor will lose, Affect the normal work of first processor.
In some embodiments of the invention, first processor detection second processor is in power down mode and still wakes up shape State can specifically obtain in the following way: be set by the signal level or above-mentioned second processor that obtain power-saving control interface The power saving flag bit set judges that above-mentioned second processor is in power down mode or wake-up states, wherein above-mentioned power-saving control connects Mouth is the interface being arranged between above-mentioned first processor and above-mentioned second processor.Specifically, power-saving control interface connection the One processor and second processor, second processor can indicate power down mode by the low level of power-saving control interface, pass through The high level of power-saving control interface indicates wake-up states, then gets low electricity by obtaining power-saving control interface when first processor Usually indicate that second processor is in power down mode, when first processor gets high level by obtaining power-saving control interface Indicate that second processor is in wake-up states.It is understood that second processor can also pass through the height of power-saving control interface Level indicating power down mode, details are not described herein again.Power saving flag bit can be set also to indicate second processor in second processor In power down mode or wake-up states.
If 103, above-mentioned second processor is in power down mode, data more new technological process is exited.
In embodiments of the present invention, after first processor detects second processor status, if second processor In power down mode, then first processor exits this data more new technological process, no longer by the data storage for needing to update to the In the static memory of two processors, therefore the sleep pattern of second processor will not be bothered, first processor will not wake up Two processors, it is possible to reduce the number that second processor is waken up saves intelligent mobile terminal power consumption.
If 104, above-mentioned second processor is in wake-up states, the data stored in above-mentioned mapped memory region are sent to Two processors.
Wherein, after the data stored in mapped memory region are sent to second processor by first processor, second processing Above-mentioned data can be saved in the static memory of above-mentioned second processor by device.
In embodiments of the present invention, after first processor detects second processor status, if second processor In wake-up states, then the data stored in above-mentioned mapped memory region are sent to second processor by first processor, by second The data that processor sends first processor are stored into the static memory of second processor, since second processor is original Wake-up states are at, therefore data more new technological process can be initiated by first processor when second processor is in wake-up states, therefore It is in the case where second processor is in the mode worked normally therefore that first processor, which initiates data more new technological process to second processor, One processor additionally will not cause second processor to be waken up from battery saving mode by second processor more new data, therefore not There is the additional number for increasing second processor and being waken up, saves intelligent mobile terminal power consumption.
In some embodiments of the invention, if the data updated will be needed to be stored in after mapped memory region also first It is provided with mapped memory region in processor and updates mark, then is sent to the data stored in mapped memory region in first processor After second processor, first processor can also remove mapped memory region update mark so that first processor by whether It is provided with mapped memory region and updates mark knows the data for whether storing update in need in mapped memory region.
In some embodiments of the invention, the data stored in above-mentioned mapped memory region are sent to second by step 104 It after processor, can also include the following steps: that the number of above-mentioned second processor will be had transmitted in above-mentioned mapped memory region According to removing.That is the data dump that will send in mapped memory region of first processor, can save first processor The memory space of dynamic memory improves the space efficiency utilization of mapped memory region.
In some embodiments of the invention, if above-mentioned second processor is in power down mode, step 103 exits data more After new technological process, it can also include the following steps:
If A1, above-mentioned second processor are in power down mode, when first event triggers above-mentioned first processor from power saving shape After state enters wake-up states, above-mentioned second processor is notified to enter wake-up states;
A2, the data stored in above-mentioned mapped memory region are sent to second processor, it will be upper by above-mentioned second processor Data are stated to be saved in the static memory of above-mentioned second processor.
It should be noted that first processor executes step 101 and first processor is in wake-up states when 102, when the One processor knows that second processor is in after power down mode, in order to save the power consumption of intelligent mobile terminal, first processor Power down mode can also be entered, to save the electricity of intelligent mobile terminal.
For step A1, when have in intelligent mobile terminal event (in order to distinguish another event occurred in subsequent embodiment, Event is defined as first event herein) triggering first processor from power down mode enters wake-up states, since first event exists Need the co-operation of first processor and second processor that could complete in implementation procedure, therefore first processor is entering wake-up After state, first processor also triggers second processor and also enters wake-up states, when first processor and second processor After wake-up states, first processor and second processor handle first event.It should be noted that of the invention The first event generated in intelligent mobile terminal in embodiment needs the co-operation of first processor and second processor ability It has been processed into, therefore first processor enters wake-up shape to guarantee that the normal processing of first event needs to trigger second processor State.The first event generated in intelligent mobile terminal in practical applications be specifically as follows it is a variety of, such as first processor be base Provided with processor, second processor are application processor, then first event can specifically include: intelligent mobile terminal, which receives, to be come from Paging message, the intelligent mobile terminal of network receive the short message for carrying out automatic network or intelligent mobile terminal receives and carrys out automatic network Downstream data traffic.First processor when i.e. intelligent mobile terminal needs receive calls or receive short message or receive business data packet Second processor can be waken up because in intelligent mobile terminal first event triggering, first processor and second processor into Enter wake-up states and be the normal work in order to guarantee intelligent mobile terminal, not can avoid and be waken up.
For step A2, the data stored in mapped memory region are sent to second processor by first processor.
By as described above it is found that being triggered in first processor and second processor by first event in intelligent mobile terminal It, can be after having executed to the processing of first event into wake-up states, first processor just initiates data more new technological process, Data more new technological process can be first initiated by first processor and updates data, then execute the processing to first event;Due to second Processor is because the triggering of first event inevitably enters wake-up states, therefore can be in and wake up in second processor When state first processor initiate data more new technological process, therefore first processor to second processor initiate data more new technological process be Second processor is under the mode worked normally, therefore first processor will not additionally be led by second processor more new data Second processor is caused to be waken up from battery saving mode, therefore there is no the additional number for increasing second processor and being waken up, save intelligence It can mobile terminal power consumption.
In other embodiments of the invention, if above-mentioned second processor is in power down mode, step 103 exits data After more new technological process, it can also include the following steps:
If A3, second processor are in power down mode, when second event trigger above-mentioned second processor from power down mode into Enter wake-up states and when above-mentioned second processor notifies above-mentioned first processor to enter wake-up states, it will be in above-mentioned mapped memory region The data of storage are sent to second processor, and above-mentioned data are saved in the quiet of above-mentioned second processor by above-mentioned second processor In state memory.
First processor executes step 101 and first processor is in wake-up states when 102, when first processor knows the Two processors are in after power down mode, and in order to save the power consumption of intelligent mobile terminal, first processor can also enter power saving State, to save the electricity of intelligent mobile terminal.
For step A3, when there is second event (first in the second event and previous embodiment in intelligent mobile terminal Event distinguishes) the above-mentioned second processor of triggering from power down mode enters wake-up states and above-mentioned second processor notifies above-mentioned the When one processor enters wake-up states, first processor can also cooperate above-mentioned second processor to complete to above-mentioned second event Processing.Since second event needs the co-operation of first processor and second processor that could complete in the process of implementation, therefore After entering wake-up states, second processor also triggers first processor and also enters wake-up states second processor, when the After one processor and second processor are all in wake-up states, first processor and second processor to second event at Reason.It should be noted that the second event generated in intelligent mobile terminal in the embodiment of the present invention needs first processor and The co-operation of two processors can just have been processed into, thus second processor in order to guarantee second event it is normal processing need to touch Hair first processor enters wake-up states.The second event generated in intelligent mobile terminal in practical applications is specifically as follows more Kind, such as first processor is baseband processor, second processor is application processor, then second event can specifically include: Above-mentioned intelligent mobile terminal needs to initiate audio call, above-mentioned intelligent mobile terminal needs to send short message or above-mentioned intelligent mobile is whole End needs to initiate upstream data service.When i.e. intelligent mobile terminal needs are made a phone call or are sent short message or send business data packet Second processor can wake up first processor because in intelligent mobile terminal second event triggering, first processor and It is the normal work in order to guarantee intelligent mobile terminal that two processors, which enter wake-up states, is unavoidably waken up, and the present invention is real It applies in example and enters wake-up states by means of second event triggering second processor, therefore there is no the additional second processors that increases to be called out Awake number saves intelligent mobile terminal power consumption.
By as described above it is found that being triggered in first processor and second processor by second event in intelligent mobile terminal It, can be after having executed to the processing of second event into wake-up states, first processor just initiates data more new technological process, Data more new technological process can be first initiated by first processor and updates data, then execute the processing to second event;Due to second Processor is because the triggering of second event inevitably enters wake-up states, therefore can be in and wake up in second processor When state first processor initiate data more new technological process, therefore first processor to second processor initiate data more new technological process be Second processor is under the mode worked normally, therefore first processor will not additionally be led by second processor more new data Second processor is caused to be waken up from battery saving mode, therefore there is no the additional number for increasing second processor and being waken up, save intelligence It can mobile terminal power consumption.
In some embodiments of the invention, step 103 first processor exits after the more new technological process of data, can be with Include the following steps:
It is periodically detected the data for whether being stored in above-mentioned mapped memory region and need to being saved in static memory;
If being stored with the data that need to be saved in static memory in above-mentioned mapped memory region, detection second processor, which is in, to be saved Electricity condition or wake-up states;
If above-mentioned second processor is in power down mode, data more new technological process is exited;
If above-mentioned second processor is in wake-up states, the need stored in above-mentioned mapped memory region are saved in static storage The data of device are sent to second processor, are saved in the above-mentioned data that need to be saved in static memory by above-mentioned second processor In the static memory of above-mentioned second processor.
That is, in the embodiment of the present invention, when first processor is after exiting data more new technological process, first processor The data for whether being stored in mapped memory region and need to being saved in static memory can also be periodically detected, for example, at first A mapped memory region update mark can be arranged in mapped memory region by managing device after storing data, first processor is periodic Detect whether that mapped memory region updates mark, if there is the mark, static state need to be saved in by illustrating to be stored in mapped memory region The data of memory, the mark, then illustrate the data for not having that static memory need to be saved in mapped memory region if it does not exist.When First processor detects when being stored with the data that need to be saved in static memory in mapped memory region, can trigger step 102 The more new technological process for executing data again to 104.Whether stored in the embodiment of the present invention by periodically detection mapped memory region There are the data that need to be saved in static memory then to trigger the state of periodically detection second processor, to improve data more New efficiency.
It should be noted that above-mentioned be periodically detected can just execute when the first processor is in wake-up states;When When the first processor is in power down mode, the execution being periodically detected can't be triggered, therefore, above-mentioned steps are not It will cause the extra wake-up of the first processor and additionally increase the power consumption of intelligent mobile terminal.
It is deposited as the embodiment of the present invention of upper description it is found that marking one section in the dynamic memory used in first processor Space is stored up as mapped memory region, when intelligent mobile terminal carries out event handling using first processor, by first processor Then the middle data storage for needing to update checks that second processor is in power down mode or wake-up states to mapped memory region, When second processor is in wake-up states, the data stored in mapped memory region are sent to second processing by first processor Device is stored data into static memory used in second processor as second processor, is in and is saved in second processor When electricity condition, data more new technological process is exited.Only have second processor side to be deployed with static memory in the embodiment of the present invention, and Static memory is not disposed in first processor side, can save the cost of intelligent mobile terminal, and in first processor The data for needing to update are stored in the dynamic memory of first processor, only when second processor is in wake-up states, First processor extracts data from mapped memory region and is sent to second processor, when second processor is in power down mode Mapped memory region is still stored in the data for needing to update in first processor, and first processor exits data more new technological process.This First processor will not wake up second processor and carry out data update in inventive embodiments, therefore can reduce in intelligent mobile terminal The number mutually waken up between processor reaches the target for saving intelligent mobile terminal power consumption.
Another embodiment of data-updating method of the present invention may include: that detection second processor is in power down mode Or wake-up states;If above-mentioned second processor is in wake-up states, receive the data that first processor is sent, above-mentioned data by Above-mentioned first processor is got from mapped memory region, and above-mentioned mapped memory region is the dynamic memory of above-mentioned first processor In memory space;Above-mentioned data are saved in the static memory of above-mentioned second processor.
First processor is described in previous embodiment, and data are updated into the data to the static memory of second processor Update method, next introduces how second processor interacts with first processor, and first processor is stored in mapping storage Data in area are updated into the static memory of second processor.It please refers to shown in Fig. 3, another embodiment of the present invention provides Data-updating method, may include:
301, the data that first processor is sent are received.
In embodiments of the present invention, when first processor sends data to second processor, due to first processor Detected that second processor is in wake-up states, therefore second processor receives first processor hair when being in wake-up states The data sent.
In embodiments of the present invention, second processor is before the data for receiving first processor transmission, second processing Device can also obtain second processor itself state in which, detect that second processor is in power down mode and still wakes up shape State, wherein power down mode can also be referred to as sleep state, and power down mode refers to that processor enters sleep pattern, saves intelligence The electricity of mobile terminal, wake-up states can be referred to as non-power down mode, and wake-up states refer to that processor can carry out normally The mode of work can consume the electricity of intelligent mobile terminal.
In embodiments of the present invention, an electricity-saving system can be all disposed respectively in first processor and second processor, Two electricity-saving systems have entrance battery saving mode and wake-up mechanism independent, and in first processor and second processor Between there are power-saving control interfaces.Second processor is in wake-up states when there is event to need to handle, when event handling finishes When the second processor free time, second processor electricity-saving system control second processor enters power down mode, to save intelligent mobile The electricity of terminal.First processor can be waken up in time in saving when the data of update in need in first processor in the prior art The second processor of electricity condition executes data more new technological process, and the data for otherwise needing to update in first processor will lose, Affect the normal work of first processor.
In some embodiments of the invention, second processor acquisition second processor is in power down mode and still wakes up shape State can specifically obtain in the following way: be set by the signal level or above-mentioned second processor that obtain power-saving control interface The power saving flag bit set gets above-mentioned second processor and is in power down mode or wake-up states, wherein above-mentioned power-saving control Interface is the interface being arranged between above-mentioned first processor and above-mentioned second processor.Specifically, power-saving control interface connects First processor and second processor, second processor can indicate power down mode by the low level of power-saving control interface, lead to The high level instruction wake-up states of power-saving control interface are crossed, then are got when second processor by acquisition power-saving control interface low Indicate that second processor is in power down mode when level, when second processor gets high level by obtaining power-saving control interface When indicate second processor be in wake-up states.It is understood that second processor can also pass through power-saving control interface High level indicates power down mode, and details are not described herein again.Power saving flag bit can be set also to indicate second processing in second processor Device is in power down mode, indicates that second processor is in wake-up states when second processor is not provided with power saving flag bit.
In embodiments of the present invention, when second processor detects that second processor is in wake-up states, at first Reason device may also detect that second processor be in wake-up states, and first processor is to second processor transmission data, at second It manages device and receives the data that first processor is sent when being in wake-up states, first processor and second processor are all based on the Two processors are in the transmitting-receiving that wake-up states carry out data, without because first processor initiate data update and by second Processor wakes up, to avoid increasing the wake-up times to second processor, therefore can save the power consumption of intelligent mobile terminal.
302, above-mentioned data are saved in the static memory of above-mentioned second processor.
In embodiments of the present invention, when second processor is in wake-up states, second processor receives the first processing The data received, are then stored in the static memory of second processor by the data that device is sent.
In embodiments of the present invention, intelligent mobile terminal is to save cost, can will dispose in intelligent mobile terminal The static memory that multiple processors use respectively merges into a static memory, and (wherein static memory can also be referred to as Nonvolatile storage), the static memory after merging is only by some processor access control in multiple processors.Example Such as, static memory is not disposed in first processor side, is only deployed with a static memory in second processor side, the For two processors after the data that first processor receives that needs update, second processor will need the data storage updated to arrive In above-mentioned static memory.Due to second processor be updated in the data carried out under the wake-up states, rather than in order into Row data are updated and are waken up, thus compared with the prior art in first processor wake up second processor carry out that data update can be with The number that second processor is waken up is reduced, to save the power consumption of intelligent mobile terminal.
In some embodiments of the invention, if getting second processor is in power down mode, the embodiment of the present invention is also It may include steps of:
If B1, above-mentioned second processor are in power down mode, when first event triggers above-mentioned first processor from power saving shape State enters wake-up states and after above-mentioned first processor notifies the second processor to enter wake-up states, receives at above-mentioned first Manage the data that device is sent;
B2, above-mentioned data are saved in the static memory of above-mentioned second processor.
For step B1, since first event needs the common work of first processor and second processor in the process of implementation Work could be completed, therefore first processor, after entering wake-up states, first processor also triggers second processor and also enters Wake-up states, after first processor and second processor are all in wake-up states, first processor and second processor may be used also To handle first event.It should be noted that the first event generated in intelligent mobile terminal in the embodiment of the present invention Needing the co-operation of first processor and second processor can just have been processed into, therefore first processor is in order to guarantee the first thing The normal processing of part needs to trigger second processor and enters wake-up states.Generated in intelligent mobile terminal in practical applications One event is specifically as follows a variety of, such as first processor is baseband processor, and second processor is application processor, then and first Event can specifically include: intelligent mobile terminal receives the paging message for carrying out automatic network, intelligent mobile terminal is received and come from The short message or intelligent mobile terminal of network receive the downstream data traffic for carrying out automatic network.I.e. intelligent mobile terminal needs to answer electricity First processor can wake up second processor when words or reception short message or reception business data packet, because in intelligent mobile terminal It is to guarantee the normal of intelligent mobile terminal that the triggering of first event, first processor and second processor, which enter wake-up states, Work, is inevitably waken up.
By as described above it is found that being triggered in first processor and second processor by first event in intelligent mobile terminal It, can be after having executed to the processing of first event into wake-up states, first processor just initiates data more new technological process, Data more new technological process can be first initiated by first processor, then execute the processing of first event;Due to second processor be because Wake-up states are inevitably entered for the triggering of first event, therefore can be when second processor is in wake-up states first Processor initiates data more new technological process, therefore it is in second processor that first processor, which initiates data more new technological process to second processor, Under mode in normal work, therefore first processor will not additionally lead to second processing by second processor more new data Device is waken up from battery saving mode, therefore there is no the additional number for increasing second processor and being waken up, save intelligent mobile terminal Power consumption.
In other embodiments of the invention, if getting second processor is in power down mode, the embodiment of the present invention It can also include the following steps:
If B3, above-mentioned second processor are in power down mode, when second event triggers above-mentioned second processor from power saving shape After state enters wake-up states, above-mentioned first processor is notified to enter wake-up states;
B4, the data that above-mentioned first processor is sent are received;
B5, above-mentioned data are saved in the static memory of above-mentioned second processor.
For step B3, enter when there is second event to trigger above-mentioned second processor in intelligent mobile terminal from power down mode When wake-up states, second processor notifies above-mentioned first processor to enter wake-up states, and first processor cooperates at above-mentioned second Manage processing of the device completion to above-mentioned second event.Since second event needs first processor and second processing in the process of implementation The co-operation of device could be completed, therefore second processor, after entering wake-up states, second processor also triggers at first Reason device also enters wake-up states, after first processor and second processor are all in wake-up states, first processor and second Processor handles first event.It should be noted that generated in intelligent mobile terminal in the embodiment of the present invention second Event needs the co-operation of first processor and second processor that can just have been processed into, therefore second processor is in order to guarantee The normal processing of two events needs to trigger first processor and enters wake-up states.It is generated in intelligent mobile terminal in practical applications Second event be specifically as follows it is a variety of, such as first processor be baseband processor, second processor is application processor, then Second event can specifically include: above-mentioned intelligent mobile terminal needs to initiate audio call, above-mentioned intelligent mobile terminal needs to send out Short message or above-mentioned intelligent mobile terminal is sent to need to initiate upstream data service.That is intelligent mobile terminal needs are made a phone call or are sent Second processor can wake up first processor when short message or transmission business data packet, because of second event in intelligent mobile terminal Triggering, it is the normal work in order to guarantee intelligent mobile terminal, nothing that first processor and second processor, which enter wake-up states, Method avoids being waken up.
By as described above it is found that being triggered in first processor and second processor by second event in intelligent mobile terminal It, can be after having executed to the processing of second event into wake-up states, first processor just initiates data more new technological process, Data more new technological process can be first initiated by first processor, then execute the processing to second event again;Due to second processor Be because the triggering of second event inevitably enters wake-up states, therefore can be when second processor be in wake-up states First processor initiates data more new technological process, therefore it is at second that first processor, which initiates data more new technological process to second processor, It manages device to be under the mode worked normally, therefore first processor will not additionally lead to second by second processor more new data Processor is waken up from battery saving mode, therefore there is no the additional number for increasing second processor and being waken up, save intelligent mobile Power consumption of terminal.
Shape is still waken up it is found that first checking for second processor and being in power down mode by the embodiment of the present invention of upper description State, when second processor is in wake-up states, the data stored in mapped memory region are sent at second by first processor Device is managed, second processor receives the data of first processor transmission, then stores data into used in second processor In static memory.Only have second processor side to be deployed with static memory in the embodiment of the present invention, and first processor one Static memory is not disposed in side, the number that can be saved the cost of intelligent mobile terminal, and need to update in first processor According in the dynamic memory for being stored in first processor, only when second processor is in wake-up states, first processor from Data are extracted in mapped memory region and are sent to second processor, when second processor is in power down mode in first processor Mapped memory region is still stored in the data for needing to update, and first processor exits data more new technological process.In the embodiment of the present invention First processor will not wake up second processor and carry out data update, therefore can reduce in intelligent mobile terminal phase between processor The number mutually waken up reaches the target for saving intelligent mobile terminal power consumption.
In order to facilitate a better understanding and implementation of the above scheme of the embodiment of the present invention, corresponding application scenarios of illustrating below come It is specifically described.
In order to more clearly illustrate application scenarios of the embodiment of the present invention in actual intelligent mobile terminal, below with One processor is specially that communication processor (abbreviation CP), second processor are specially to be said for application processor (abbreviation AP) It is bright, data-updating method in the intelligent mobile terminal that application processor and communication processor (abbreviation CP) are combined into of illustrating.
As shown in figure 4, for the system architecture schematic diagram of one of embodiment of the present invention intelligent mobile terminal, wherein applying Processor is made of ARM Cortex A9, and communication processor is then by Baseband protocol processor ARM7 and base-band physical layer processor ZSP800 is constituted, and a speech subsystem is connected between application processor and communication processor, for realizing intelligent mobile end The call function at end.
Plug-in screen, assisted global positioning system (AGPS, Assist Global Position on application processor ) and WLAN (WiFi, Wireless Fidelity) System.Wherein, screen mainly completes the letter of intelligent mobile terminal Breath input and information display function, AGPS complete the positioning function of intelligent mobile terminal, and WiFi then completes intelligent mobile terminal Wireless access function.Application processor has dedicated dynamic memory and static memory, and wherein dynamic memory is main The running code of application processor and data are saved, static memory saves terminal key parameter, such as automatic frequency control (AFC, Automatic Frequency Control) calibrates table, automated power control (APC, Automatic Power Control) calibrate table, application processor program, communication processing program, international mobile equipment identity (IMEI, International Mobile Equipment Identity) code, Location Area Code (LAC, Location Area Code), Route Area code (RAC, Route Area Code) etc..
Communication processor is made of two processors, i.e. Baseband protocol processor (ARM7) and base-band physical layer processor (ZSP800).ARM7 is mainly responsible for the protocol integrated test system process in air interface (referred to as: Uu), and ZSP800 is mainly responsible on Uu interface The transmitting-receiving of wireless signal.Communication processor has dedicated dynamic memory, is mainly used for storing the operation generation of ARM7 and ZSP800 Code and running environment data.One section of memory space is also opened on dynamic memory, for mapping static memory space, Referred to as " mapped memory region " mainly includes LAC code, RAC code locating for terminal.
After dynamic memory in intelligent mobile terminal only powers on, the content in dynamic memory will not just be lost It loses, then no matter whether terminal powers on static memory, and the content saved above will not be all lost.
As shown in figure 4, one is for application processor there are two interface between application processor and communication processor The communication interface for carrying out data interaction is believed with communication process, can use universal serial bus structural in embodiments of the present invention (USB, Universal Serial Bus) interface mode, and USB interface can be mapped to the universal asynchronous receipts of two logics The port (UART, Universal Asynchronous Receiver/Transmitter) is sent out, one is to be used for command interaction, One is for service data interaction.Province's electronic system is deployed in application processor and communication processor respectively, is applied It there is also an interface is power-saving control interface between processor and communication processor.
Wherein, in the embodiment of the present invention, power-saving control interface can be made of 4 control lines, shown in table 1 specific as follows:
Table 1 is 4 control lines of power-saving control interface
In order to illustrate the implementation procedure of data-updating method in the embodiment of the present invention, communication process is specifically described below The data more new technological process of device progress mapped memory region.In actual application scenarios, the data update for triggering mapped memory region can With there are three types of scene, specifically: the data of mapped memory region more new scene, application processor wake up communication processor scene, logical Believe that processor wakes up application processor scene.These three processing modes are just specifically introduced below.
Illustrate the data updating process of mapped memory region first:
Intelligent mobile terminal is after generating the data for needing to update, by the data storage for needing to update to communication processor Mapped memory region in, then check application processor whether be in wake-up states, if it is, by the number in mapped memory region According to updating into the static memory of application processor, when otherwise waiting for application processor and communication processor all in wake-up It updates again.Detailed process is please referred to as shown in Fig. 5-a, is mainly included the following steps:
501A, intelligent mobile terminal idle mode are in power down mode;
502A, when idle timers time-out, triggering wake up communication processor carry out periodic ranging interpret and cell survey Amount;
503A, when cell measurement complete after, then intelligent mobile terminal will carry out cell reselection process, intelligent mobile terminal It is carried out in cell reselection process according to measurement cell information, due to the movement of terminal, intelligent mobile terminal may select other small Area.If not choosing other cells, this process is directly terminated.In embodiment here, it is assumed that intelligent mobile is whole End has selected a new cell, and the position area of this cell is different with the position area of original serving cell;
504A, due to the position area of new cell and old residential area it is different, according to 3GPP protocol requirement, intelligent mobile terminal is initiated Location area updating process;
After 505A, intelligent mobile terminal carry out position area with being updated successfully, then the location area information of new cell is saved Into the mapped memory region of communication processor (location area information that the data for needing to update herein are exactly new cell), and it is arranged Mapped memory region updates mark;
Whether 506A, communication processor detection CP_AP_SLEEP are high level, if it is low level, are then directly exited whole A data update process, no to then follow the steps 507A;
507A, communication processor initiate the data updating process of mapped memory region to application processor, by mapped memory region In location area information be sent to application processor, be stored in the static memory of application processor by application processor;
After 508A, step 507A execution update finish, then removes mapped memory region and update mark, be then log out entire number According to more new technological process.
The process that mapped memory region is updated when application processor wakes up communication processor will be illustrated next:
In use, user has initiated voice call to intelligent mobile terminal, then application processor wakes up communication first Processor carries out voice call process, and after end of conversation, communication processor checks the need for carrying out the number of mapped memory region According to update, if the data for not needing to update, are directly exited, otherwise starts the data more new technological process of mapped memory region, ask Refering to as shown in Fig. 5-b, mainly may include steps of:
501B, user initiate a voice call process;
502B, intelligent mobile terminal wake up application processor first, then by checking CP_AP_SLEEP state, know Whether the power down mode signal of communication processor is in high level, and if it is low level, then application processor passes through CP_AP_ AWKEAN signal wire wakes up communication processor;
503B, application processor activation communication processor carry out voice call process, application processor and communication processor Joint carries out voice call process, carries out normal voice conversation business;
After 504B, voice conversation terminate, communication processor actively checks that mapped memory region updates whether mark is arranged, such as Fruit is not provided with, then directly exits entire data more new technological process;
505B, communication processor check that mapped memory region updates whether mark has been set, if the Status Flag is Setting, thens follow the steps 506B, if being not provided with, directly exits entire data more new technological process;
506B, communication processor initiate the data more new technological process of mapped memory region, and the data in mapped memory region are sent To application processor, it is stored in the static memory of application processor by application processor;
507B, communication processor then remove mapped memory region and update mark, be then log out whole after executing update and finishing A data update process.
Finally illustrate the process that mapped memory region is updated when communication processor wakes up application processor:
In use, user receives the paging for carrying out automatic network to intelligent mobile terminal, and the paging is to page this end End, then communication processor wakes up application processor first, carries out voice page response process, after end of conversation, communication process The data that device checks the need for carrying out mapped memory region update, if the data for not needing to update, directly exit entire Otherwise data more new technological process starts the data more new technological process of mapped memory region, please refers to as shown in Fig. 5-c, mainly may include Following steps:
501C, user receive a paging message for carrying out automatic network, and the paging is to page this terminal;
502C, communication processor pass through the power down mode signal for checking that AP_CP_SLEEP knows application processor first It is no to be in high level, if it is high level, then direct notice application processor progress page response process, if it is low level, Then communication processor wakes up application processor by AP_CP_AWAKEN signal wire;
503C, application processor and communication processor joint carry out page response process, carry out normal voice conversation industry Business, completes speech called function;
After 504C, voice conversation terminate, communication processor actively checks that mapped memory region updates whether mark is arranged;
505C, communication processor check that mapped memory region updates whether mark has been set, if the Status Flag is Setting, thens follow the steps 506C, if being not provided with, directly exits entire data more new technological process;
506C, communication processor initiate the data more new technological process of mapped memory region, and the data in mapped memory region are sent To application processor, it is stored in the static memory of application processor by application processor;
507C, communication processor then remove mapped memory region and update mark, be then log out whole after executing update and finishing A data update process.
By applications described above scene example it is found that marking one section in the dynamic memory used in first processor Memory space is as mapped memory region, when intelligent mobile terminal carries out event handling using first processor, by the first processing Then the data storage for needing to update in device checks that second processor is in power down mode and still wakes up shape to mapped memory region State, when second processor is in wake-up states, the data stored in mapped memory region are sent at second by first processor Device is managed, is stored data into static memory used in second processor as second processor, is in second processor When power down mode, data more new technological process is exited.Only have second processor side to be deployed with static memory in the embodiment of the present invention, And static memory is not disposed in first processor side, can save the cost of intelligent mobile terminal, and first processor It is middle that the data updated is needed to be stored in the dynamic memory of first processor, only when second processor is in wake-up states When, first processor extracts data from mapped memory region and is sent to second processor, is in power saving shape in second processor Mapped memory region is still stored in the data for needing to update in first processor when state, and first processor exits data and updates stream Journey.First processor will not wake up second processor and carry out data update in the embodiment of the present invention, therefore can reduce intelligent mobile The number mutually waken up between processor in terminal reaches the target for saving intelligent mobile terminal power consumption.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
For the above scheme convenient for the better implementation embodiment of the present invention, phase for implementing the above scheme is also provided below Close device.
It please refers to shown in Fig. 6-a, a kind of processor 600 provided in an embodiment of the present invention, processor 600 is specifically as follows One processor, comprising: mapping memory module 601, exits module 603 and sending module 604 at state detection module 602, wherein
Mapping memory module 601, it is described for storing the data for needing to update in first processor to mapped memory region Mapped memory region is the memory space in the dynamic memory of the first processor;
State detection module 602 is in power down mode or wake-up states for detecting second processor;
Module 603 is exited, if being in power down mode for the second processor, exits data more new technological process;
Sending module 604, if wake-up states are in for the second processor, by what is stored in the mapped memory region Data are sent to second processor, and the data are saved in the static storage of the second processor by the second processor In device.
In some embodiments of the invention, the state detection module 602, specifically for being connect by obtaining power-saving control The signal level of mouth or the power saving flag bit of second processor setting judge that the second processor is in power down mode also It is wake-up states, the power-saving control interface is the interface being arranged between the first processor and the second processor.
It please refers to as shown in Fig. 6-b and Fig. 6-c, in some embodiments of the invention, processor 600 can also include:
Sign module 605 is updated, deposits the data for needing to update in first processor for the mapping memory module 601 It stores up to after mapped memory region, mapped memory region is set in the first processor and updates mark;
The data stored in the mapped memory region are sent to by clear flag module 606 for the sending module 604 After second processor, removes the mapped memory region and update mark.
In some embodiments of the invention, as shown in Fig. 6-b, processor 600 can also include: notification module 607, In,
The notification module 607, if be in power down mode for the second processor, when first event triggers described the After one processor enters wake-up states from power down mode, the second processor is notified to enter wake-up states;
The sending module 604 is also used to after notification module 607 notifies the second processor to enter wake-up states, The data stored in the mapped memory region are sent to second processor, are saved in the data by the second processor In the static memory of the second processor.
In some embodiments of the invention, as shown in Fig. 6-c, processor 600 can also include: data detection module 608, the data that need to be saved in static memory whether are stored in the mapped memory region for being periodically detected;
The state detection module 602, if static memory need to be saved in for being stored in the mapped memory region Data, detection second processor are in power down mode or wake-up states.
In some embodiments of the invention, sending module 604 are also used to trigger the second processor when second event Enter wake-up states from power down mode and after the second processor notifies the first processor to enter wake-up states, it will be described The data stored in mapped memory region are sent to second processor, and the data are saved in described by the second processor In the static memory of two processors.
Please refer to shown in Fig. 7-a, a kind of data update system 700 provided in an embodiment of the present invention, comprising: such as Fig. 6-a or First processor 600 and second processor 701 shown in 6-b or 6-c, wherein second processor 701, comprising: receiving module 7011 and memory module 7012, wherein
Receiving module 7011 receives at first if sending data to the second processor for the first processor The data that device is sent are managed, the data are got from mapped memory region by the first processor, and the mapped memory region is Memory space in the dynamic memory of the first processor;
Memory module 7012, for the data to be saved in the static memory of the second processor.
In some embodiments of the invention, receiving module 7012 are also used to when first event triggering first processing Device enters wake-up states from power down mode and when the first processor notifies the second processor to enter wake-up states, receives The data that the first processor is sent.
It please refers to as shown in Fig. 7-b, in some embodiments of the invention, second processor 701 can also include: logical Know module 7013, wherein
Notification module 7013, for entering wake-up states from power down mode when second event triggers the second processor When, notify the first processor to enter wake-up states;
The receiving module 7011, for notifying the second processor to enter wake-up states when the notification module 7013 Afterwards, the data that the first processor is sent are received.
It should be noted that the contents such as information exchange, implementation procedure between each module/unit of above-mentioned apparatus, due to Embodiment of the present invention method is based on same design, and bring technical effect is identical as embodiment of the present invention method, particular content Reference can be made to the narration in embodiment of the method shown in the present invention is aforementioned, details are not described herein again.
The comprehensive device as shown in Fig. 6 to 7 and system in the dynamic memory used in first processor it is found that draw One section of memory space is as mapped memory region out, when intelligent mobile terminal carries out event handling using first processor, by the Then the data storage for needing to update in one processor checks that second processor is in power down mode and still calls out to mapped memory region The state of waking up, when second processor is in wake-up states, the data stored in mapped memory region are sent to the by first processor Two processors, are stored data into static memory used in second processor as second processor, in second processor When in power down mode, data more new technological process is exited.Only have second processor side to be deployed with static state in the embodiment of the present invention to deposit Reservoir, and static memory is not disposed in first processor side, can save the cost of intelligent mobile terminal, and at first The data for needing to update in reason device are stored in the dynamic memory of first processor, only wake up shape when second processor is in When state, first processor extracts data from mapped memory region and is sent to second processor, is in power saving in second processor Mapped memory region is still stored in the data for needing to update in first processor when state, and first processor exits data and updates stream Journey.First processor will not wake up second processor and carry out data update in the embodiment of the present invention, therefore can reduce intelligent mobile The number mutually waken up between processor in terminal reaches the target for saving intelligent mobile terminal power consumption.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can store in a kind of computer readable storage medium, on Stating the storage medium mentioned can be read-only memory, disk or CD etc..
A kind of data-updating method provided by the present invention and processor and system are described in detail above, for Those of ordinary skill in the art, thought according to an embodiment of the present invention, have in specific embodiments and applications Change place, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (15)

1. a kind of data-updating method characterized by comprising
By the data for needing to update in first processor storage to mapped memory region, the mapped memory region is first processing Memory space in the dynamic memory of device, the first processor does not dispose static memory, and is deployed with dynamic memory Device;
Detection second processor is in power down mode or wake-up states, and the second processor is deployed with static memory and moves State memory;
If the second processor is in power down mode, data more new technological process is exited, when the first processor is known at second Reason device is in after power down mode, and the first processor enters power down mode;
If the second processor is in wake-up states, the data stored in the mapped memory region are sent to second processing The data are saved in the static memory of the second processor by device by the second processor.
2. still being called out the method according to claim 1, wherein the detection second processor is in power down mode Awake state includes: the power saving flag bit judgement of the signal level or second processor setting by obtaining power-saving control interface The second processor is in power down mode or wake-up states, and the power-saving control interface is to be arranged in the first processor Interface between the second processor.
3. the method according to claim 1, wherein described store the data for needing to update in first processor To after mapped memory region further include:
Mapped memory region is set in the first processor and updates mark;
It is described that the data stored in the mapped memory region are sent to after second processor further include:
It removes the mapped memory region and updates mark.
4. the method according to claim 1, wherein the method also includes:
If the second processor is in power down mode, called out when the first event triggering first processor enters from power down mode After the state of waking up, the second processor is notified to enter wake-up states;
The data stored in the mapped memory region are sent to second processor, are protected the data by the second processor It is stored in the static memory of the second processor.
5. the method according to claim 1, wherein described exit after data more new technological process further include:
It is periodically detected the data for whether being stored in the mapped memory region and need to being saved in static memory;
If being stored with the data that need to be saved in static memory in the mapped memory region, detection second processor is in power saving shape State or wake-up states;
If the second processor is in power down mode, data more new technological process is exited;
If the second processor is in wake-up states, the need stored in the mapped memory region are saved in static memory Data are sent to second processor, are saved in the data that need to be saved in static memory by the second processor described In the static memory of second processor.
6. the method according to claim 1, wherein the method also includes:
If the second processor is in power down mode, called out when the second event triggering second processor enters from power down mode After the state of waking up and the second processor notify the first processor to enter wake-up states, it will be stored in the mapped memory region Data be sent to second processor, the static state that the data are saved in the second processor is deposited by the second processor In reservoir.
7. a kind of processor, which is characterized in that the processor is specially first processor, comprising:
Mapping memory module, for by the data for needing to update in first processor storage to mapped memory region, the mapping to be deposited Storage area is the memory space in the dynamic memory of the first processor, and the first processor does not dispose static storage Device, and it is deployed with dynamic memory;
State detection module is in power down mode or wake-up states, the second processor portion for detecting second processor There are static memory and dynamic memory in administration;
Module is exited, if being in power down mode for the second processor, exits data more new technological process, when first processing Device knows that second processor is in after power down mode, and the first processor enters power down mode;
Sending module sends out the data stored in the mapped memory region if being in wake-up states for the second processor Second processor is given, the data are saved in the static memory of the second processor by the second processor.
8. processor according to claim 7, which is characterized in that the state detection module is obtained specifically for passing through The signal level of power-saving control interface or the power saving flag bit of second processor setting judge that the second processor is in Power down mode or wake-up states, the power-saving control interface be setting the first processor and the second processor it Between interface.
9. processor according to claim 7, which is characterized in that the processor further include:
Sign module is updated, the data for needing to update in first processor are stored to mapping for the mapping memory module and are deposited After storage area, mapped memory region is set in the first processor and updates mark;
The data stored in the mapped memory region are sent to second processor for the sending module by clear flag module Later, it removes the mapped memory region and updates mark.
10. processor according to claim 7, which is characterized in that the processor further include: notification module, wherein
The notification module, if being in power down mode for the second processor, when first event triggering first processing After device enters wake-up states from power down mode, the second processor is notified to enter wake-up states;
The sending module is also used to after the notification module notifies the second processor to enter wake-up states, will be described The data stored in mapped memory region are sent to second processor, and the data are saved in described by the second processor In the static memory of two processors.
11. processor according to claim 7, which is characterized in that the processor further include: data detection module, In,
Whether the data detection module stores the static state in need that is saved in and deposits for being periodically detected in the mapped memory region The data of reservoir;
The state detection module, if being also used to be stored with the data that need to be saved in static memory in the mapped memory region, Detection second processor is in power down mode or wake-up states.
12. processor according to claim 7, which is characterized in that the sending module is also used to trigger when second event The second processor enters wake-up states from power down mode and the second processor notifies the first processor enters to call out After the state of waking up, the data stored in the mapped memory region are sent to second processor, it will be described by the second processor Data are saved in the static memory of the second processor.
13. a kind of data update system characterized by comprising the first processing as described in any one of claim 7 to 12 Device and second processor, wherein the second processor, comprising:
Receiving module receives first processor and sends if sending data to the second processor for the first processor Data, the data get from mapped memory region by the first processor, and the mapped memory region is described first Memory space in the dynamic memory of processor, the first processor do not dispose static memory, and are deployed with dynamic Memory, the second processor are deployed with static memory and dynamic memory;
Memory module, for the data to be saved in the static memory of the second processor.
14. system according to claim 13, which is characterized in that the receiving module is also used to trigger when first event The first processor enters wake-up states from power down mode and the first processor notifies the second processor enters to call out After the state of waking up, the data that the first processor is sent are received.
15. system according to claim 13, which is characterized in that the second processor further include: notification module, In,
The notification module, for leading to after second event triggers the second processor and enters wake-up states from power down mode Know that the first processor enters wake-up states;
The receiving module is also used to after the notification module notifies the second processor to enter wake-up states, receives institute State the data of first processor transmission.
CN201310269912.4A 2013-06-28 2013-06-28 A kind of data-updating method and processor and system Active CN104252221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310269912.4A CN104252221B (en) 2013-06-28 2013-06-28 A kind of data-updating method and processor and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310269912.4A CN104252221B (en) 2013-06-28 2013-06-28 A kind of data-updating method and processor and system

Publications (2)

Publication Number Publication Date
CN104252221A CN104252221A (en) 2014-12-31
CN104252221B true CN104252221B (en) 2019-02-22

Family

ID=52187215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310269912.4A Active CN104252221B (en) 2013-06-28 2013-06-28 A kind of data-updating method and processor and system

Country Status (1)

Country Link
CN (1) CN104252221B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120511B (en) * 2015-08-31 2020-01-03 深圳市金立通信设备有限公司 Processor control method and terminal
CN108235410B (en) * 2016-12-15 2021-03-19 展讯通信(上海)有限公司 Subframe interruption control method and device
CN106877966A (en) * 2017-03-16 2017-06-20 珠海市魅族科技有限公司 A kind of time synchronization control method and device
CN109561487B (en) * 2017-09-25 2022-03-04 中兴通讯股份有限公司 Method and device for reducing energy consumption of mobile terminal and mobile terminal
CN110764713B (en) * 2019-10-31 2023-11-07 上海移远通信技术股份有限公司 Writing method and system of flash memory, electronic equipment, medium and communication module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101059778A (en) * 2007-03-16 2007-10-24 北京天天宽广网络科技有限公司 General series bus interface mobile memory method and its device
CN101137967A (en) * 2005-03-05 2008-03-05 英特尔公司 System and method of coherent data transfer during processor idle states
CN101242447A (en) * 2008-03-12 2008-08-13 上海闻泰电子科技有限公司 An intelligent mobile phone based on dual-CPU architecture and communication control method
US7962775B1 (en) * 2007-01-10 2011-06-14 Marvell International Ltd. Methods and apparatus for power mode control for PDA with separate communications and applications processors
CN103176506A (en) * 2011-12-21 2013-06-26 富士通株式会社 Mobile terminal device, medium and control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137967A (en) * 2005-03-05 2008-03-05 英特尔公司 System and method of coherent data transfer during processor idle states
US7962775B1 (en) * 2007-01-10 2011-06-14 Marvell International Ltd. Methods and apparatus for power mode control for PDA with separate communications and applications processors
CN101059778A (en) * 2007-03-16 2007-10-24 北京天天宽广网络科技有限公司 General series bus interface mobile memory method and its device
CN101242447A (en) * 2008-03-12 2008-08-13 上海闻泰电子科技有限公司 An intelligent mobile phone based on dual-CPU architecture and communication control method
CN103176506A (en) * 2011-12-21 2013-06-26 富士通株式会社 Mobile terminal device, medium and control method

Also Published As

Publication number Publication date
CN104252221A (en) 2014-12-31

Similar Documents

Publication Publication Date Title
CN104252221B (en) A kind of data-updating method and processor and system
CN106879038A (en) Work state switching method and device
CN104822133B (en) A kind of control method and device of the station-keeping mode of intelligent terminal
CN105934976B (en) The method, apparatus and master-slave network electricity-saving system of master-slave network suspend mode and wake-up
CN107396432A (en) Position control method and device
AU2015400550B2 (en) Method for interaction between terminal and network device, and terminal
CN107491160A (en) A kind of application method of dual operating systems, storage device and intelligent terminal
CN107509240B (en) Subscriber Identity Module control method, mobile terminal and computer readable storage medium
WO2013091561A1 (en) Energy-saving method, device and communication terminal
CN102238595A (en) Method and equipment for processing cell outage
CN102821207A (en) Implementation method for alarm clock under shutdown state and mobile terminal
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN102231780B (en) Terminal mobile and control method
CN101360146A (en) Positioning method and system of mobile communication apparatus
CN103974391A (en) Device wake-up method and device
CN106557407A (en) A kind of monitoring method and device of apparatus of load
CN106775685B (en) Awakening lock release method and device and mobile terminal
CN1991683B (en) Notebook computer
CN110290574A (en) A kind of data transmission method, device, equipment, system and storage medium
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN101360290A (en) Method and terminal implementing timed startup of terminal
CN106598193B (en) Power consumption control method and device
CN105517025A (en) Terminal state processing method and terminal state processing device
CN106034037B (en) A kind of disaster tolerance switching method and device based on virtual machine
CN103888933A (en) Information transmission method and system based on terminal power, and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170302

Address after: 401336 Chongqing Nan'an District Tea Garden Road, No. 8, software Incubation Park, building 1

Applicant after: Keen (Chongqing) Microelectronics Technology Co., Ltd.

Address before: 400065 Chongqing Nan'an District huangjuezhen pass Fort Park No. 1

Applicant before: Chongqing City Communication & Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant