CN102082872A - Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone - Google Patents

Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone Download PDF

Info

Publication number
CN102082872A
CN102082872A CN2011100062837A CN201110006283A CN102082872A CN 102082872 A CN102082872 A CN 102082872A CN 2011100062837 A CN2011100062837 A CN 2011100062837A CN 201110006283 A CN201110006283 A CN 201110006283A CN 102082872 A CN102082872 A CN 102082872A
Authority
CN
China
Prior art keywords
pin
sleep
mobile phone
processor
rts
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.)
Pending
Application number
CN2011100062837A
Other languages
Chinese (zh)
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.)
HUNAN CHAOSHI WULIAN INTELLIGENT NETWORK TECHNOLOGY Co Ltd
Original Assignee
HUNAN CHAOSHI WULIAN INTELLIGENT NETWORK 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 HUNAN CHAOSHI WULIAN INTELLIGENT NETWORK TECHNOLOGY Co Ltd filed Critical HUNAN CHAOSHI WULIAN INTELLIGENT NETWORK TECHNOLOGY Co Ltd
Priority to CN2011100062837A priority Critical patent/CN102082872A/en
Publication of CN102082872A publication Critical patent/CN102082872A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention relates to a sleep and wakeup mechanism between an AP (Application Processor) and a CP (Multimedia Co-processor) of a mobile phone, which is characterized in that the four-wire connection means is generally used to achieve the mutual sleep and wakeup; a UART (Universal Asynchronous Receiver/Transmitter) applies full flow control AT commands; an RXD (Receiver Divider) and a TXD (Transmitter Divider) are generally used to receive and transmit data; a CTS (Common Type System) and an RTS (Remote Terminal System) (a DSR (Digital Shift Register) and a DTR (Data Transfer Register) can be selected instead of the CTS and the RTS if necessary) are used to perform four-wire hardware flow control; and the operation is completed by utilizing the connection of two PINs, wherein one PIN serves as a PIN in an indicating status and the other PIN serves as an enabling-closed trigger PIN . The sleep and wakeup mechanism between the AP and the CP of the mobile phone, provided by the invention, has the advantages of stability and reliability, simplicity of the whole operation process, and capability of effectively improving the stability and the controllability of a system.

Description

Sleep awakening mechanism between a kind of mobile phone A P and CP
Technical field
The present invention relates to mechanics of communication, relate in particular in the dual-mode handset stable mutual sleep awakening mechanism between the application processor and Communication processor.
Background technology
The development of mobile phone is maked rapid progress, requirement to power consumption is also more and more higher, cause sleep awakening mechanism more to highlight importance, and it is also more and more with the come mobile phone of design of Communication processor and two module branches of application processor, can reduce the degree of coupling between each system module like this, this design has become a common representative of smart mobile phone.And the Communication processor type that numerous manufacturers occur is various, basically all by the assistance work of several common interfaces and application processor is provided.Numerous mobile phones research and development company does not all have the complete system's solution of a cover when AP wakes up mutually with CP handling, and causes that to wake sleep up unsuccessful, and wake actions is not thorough, and AP is waken up research and development problems such as instability after the sleep by CP.Different vendor hardware and software design inconsistent makes the comparatively standardized design of generally acknowledgedization of mutual exchange and cooperation neither one has strengthened the difficulty of developing cooperatively.Improve development efficiency so need to sum up the scheme of creating the sleep awakening mechanism between the complete hardware and software bimodulus of a cover, improve the reliability and stability of system.
Summary of the invention
Technical problem solved by the invention is to provide sleep awakening mechanism between a kind of mobile phone A P and CP, to solve the shortcoming in the above-mentioned background technology.
Technical problem solved by the invention realizes by the following technical solutions:
Sleep awakening mechanism between a kind of mobile phone A P and CP generally uses 4 line connected modes to realize mutual sleep awakening.In general, sleep awakening can use several PIN pin of UART as example, in fact uses the GPIO of any controlled high-low level to accomplish.And in designing usually, UART uses full Flow Control transmission AT order, generally uses RXD, and TXD comes transceive data, the also optional in case of necessity DSR of CTS, RTS(, DTR comes replaced C TS, RTS) carry out 4 line hard ware Flow Controls, DSR at this moment, DTR just can bring the design of doing sleep awakening.
In the present invention, also can replace these PIN pin with GPIO.
Utilize the connection of 2 PIN, a PIN who serves as indicating status, one is served as the triggering PIN that enables to close, can finish this task.
In the present invention, need confirm on the cell phone platform of correspondence that whether global design is two different module assistance work of application processor and Communication processor.
The concrete steps of realization of the present invention are:
(1) confirms that the current cell phone platform that is using is dual processor framework (AP and CP);
(2) according to this platform character, design the UART interface of AT order communication, and the circuit of sleep awakening control PIN;
(3) according to this platform character, write test driver, each all should be able to draw high the PIN pin that drags down in the control hardware circuit, and guaranteeing has correct driving force;
(4) Driver Design main points:
A has a PIN mainly to play the control triggering in unidirectional control;
B has a PIN mainly to play the state indication in unidirectional control;
C guarantees to trigger and interrupts and correct handling interrupt, meets the main points of chatting on this paper;
(5) design according to this paper example, and in practical operation, verify the relevant PIN pin of following function successively with oscilloscope or universal instrument:
The A checking makes CP enter sleep within a certain period of time;
The B checking wakes CP within a certain period of time up;
C verifies after the AP sleep, the state of CP; (the preparation code of AP sleep need be carried out processing, and preamble is stated)
D checking after the AP sleep, the incoming call of CP or come note to wake AP up.
(6) finish.
After confirming this scheme on the whole, need drive the designer with communication module on the hardware line, application processor drives the designer and confers hardware line strategy.
Beneficial effect:
The present invention is for common bimodulus (having AP separately, the system of CP) mobile phone, and process auxiliary drive engineer or PCB hardware designs engineer design various different vendors platform fast, and be reliable and stable, the sleep awakening scheme of dual mode system.Workload/the time of the design that alleviates/shorten the research staff of degree that can be very big, the stability and the controllability of raising system.
Embodiment
To be divided into several sections explanation below, each part is all with these actions of detailed explanation and details.
The sleep of common design a: CP of agreement earlier need obtain the permission of AP, and AP allows the CP sleep, and CP just can enter sleep.The DSR of CP keeps low expression AP not allow CP to enter sleep.The DSR of CP keeps high expression AP to allow CP to enter sleep.These are that general CP side software need design consideration.
Among the embodiment one, in the CP sleep, AP wakes CP up:
Waken AP when move in the external world up, if this moment, AP need use CP, the DSR of needs use MODEM side wakes the CP in the sleep up.
The dsr that action 1:AP is provided with the modem side from high to low.At this time will trigger an internal interrupt in the CP side.
The action 2:modem detect edge level saltus step in have no progeny, will carry out the break in service function: stop the sleep of modem.Open communication ports such as uart.If AP can allow CP to reenter sleep, then begin new timer detecting and whether can enter sleep once more.DTR(or GPIO are set) from low to high.In the AP side, when AP goes to carry out action 1, the dsr that also needs to be provided with oneself from high to low, at this time AP can not send data to CP at once, whether AP need detect CP really is the state of waking up, at this time can detect the dtr of CP, if be high, expression CP is an active state, and can send data this moment.
 
Among the embodiment two, AP makes CP sleep (when CP is waken up, AP allows CP to enter sleep once more):
After carrying out at order or other actions, if temporarily do not need to use CP, AP can allow CP enter sleep once more.
The dsr that action 1:AP is provided with CP will produce an interruption in the CP side from low to high like this.
Action 2:CP responds this interruption, and opens a timer and count.
Action 3: timer will be detected the DSR of oneself once more to back CP, if also be high, the uart that CP will close oneself goes forward side by side into sleep.
 
Among the embodiment three, CP wakes AP up:
If AP sleeps, CP needs notice (waking up) AP, such as calling this moment, comes note, and CP need call out AP..
Action 1: if AP has entered sleep, then can carry out making CP also can enter dormant action, the DSR of CP is drawn high, CP needs to notify AP under situations such as incoming call like this, if the software detection of CP side is drawn high by AP really to self DSR, then at first carry out the action that wakes AP up.
Action 2: in this example, directly draw high GPIO and come interruption, make AP be waken up to AP.
Action 3: whether really be waken up, also need to detect.After CP uses the saltus step (height or height are high) of DTR (GPIO) to carry out wake actions, can trigger the interruption of an AP, but AP can not be awake state at once, detect AP in this way in the CP side and whether be waken up, must not repeat self-defining wake actions several times if wake up.Concrete action is: the time-delay reasonable time; Detect the DSR of CP, if AP is waken up, AP can make the DSR of CP produce the saltus step of (can be low height) again.For this interruption of this moment, CP ignores and does not handle.
In embodiment four, CP makes AP sleep:
AP is than CP, and AP is the leading of system, the management that has moved application operating system above and carried out each other application modules.So the design of CP does not have initiatively to make necessity of AP sleep, whether the power management module of software and hardware of AP inside should design automatic measurement needs sleep.
More than show and described basic principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; that describes in the foregoing description and the specification just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof
Figure 255673DEST_PATH_IMAGE001

Claims (3)

1. sleep awakening mechanism between mobile phone A P and CP is characterized in that, generally uses 4 line connected modes to realize mutual sleep awakening; UART uses full Flow Control transmission AT order, the general RXD that uses, TXD comes transceive data, use CTS, the also optional in case of necessity DSR of RTS(, DTR comes replaced C TS, RTS) carry out 4 line hard ware Flow Controls, utilize the connection of 2 PIN, a PIN who serves as indicating status, one is served as the triggering PIN that enables to close and comes complete operation.
2. sleep awakening mechanism between a kind of mobile phone A P according to claim 1 and CP is characterized in that, the concrete steps of realization of the present invention are:
(1) confirms that the current cell phone platform that is using is dual processor framework (AP and CP);
(2) according to this platform character, design the UART interface of AT order communication, and the circuit of sleep awakening control PIN;
(3) according to this platform character, write test driver, each all should be able to draw high the PIN pin that drags down in the control hardware circuit, and guaranteeing has correct driving force;
(4) Driver Design main points:
A has a PIN mainly to play the control triggering in unidirectional control;
B has a PIN mainly to play the state indication in unidirectional control;
C guarantees to trigger and interrupts and correct handling interrupt, meets the main points of chatting on this paper;
(5) design according to this paper example, and in practical operation, verify the relevant PIN pin of following function successively with oscilloscope or universal instrument:
The A checking makes CP enter sleep within a certain period of time;
The B checking wakes CP within a certain period of time up;
C verifies after the AP sleep, the state of CP; (the preparation code of AP sleep need be carried out processing, and preamble is stated)
D checking after the AP sleep, the incoming call of CP or come note to wake AP up;
(6) finish.
3. sleep awakening mechanism between a kind of mobile phone A P according to claim 1 and CP is characterized in that, in the present invention, also can replace described PIN pin with GPIO.
CN2011100062837A 2011-01-13 2011-01-13 Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone Pending CN102082872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100062837A CN102082872A (en) 2011-01-13 2011-01-13 Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100062837A CN102082872A (en) 2011-01-13 2011-01-13 Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone

Publications (1)

Publication Number Publication Date
CN102082872A true CN102082872A (en) 2011-06-01

Family

ID=44088621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100062837A Pending CN102082872A (en) 2011-01-13 2011-01-13 Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone

Country Status (1)

Country Link
CN (1) CN102082872A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013167025A3 (en) * 2012-11-08 2014-01-03 中兴通讯股份有限公司 Power saving method for intelligent mobile terminal and intelligent mobile terminal
CN103516870A (en) * 2012-06-18 2014-01-15 联想(北京)有限公司 Information processing method and electronic equipment
CN103856457A (en) * 2012-12-04 2014-06-11 中山大学深圳研究院 Method and device for identity safety verification
WO2016078053A1 (en) * 2014-11-20 2016-05-26 华为技术有限公司 Task processing device, intelligent apparatus, task processing method and baseband processor
CN111338856A (en) * 2020-02-21 2020-06-26 深圳震有科技股份有限公司 Serial port hardware flow control implementation method, intelligent terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242447A (en) * 2008-03-12 2008-08-13 上海闻泰电子科技有限公司 A dual-CPU architecture smart phone and its communication control method
CN101287244A (en) * 2008-05-29 2008-10-15 德信无线通讯科技(北京)有限公司 Method and system for mutual waking up between double processors by global functional serial port

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242447A (en) * 2008-03-12 2008-08-13 上海闻泰电子科技有限公司 A dual-CPU architecture smart phone and its communication control method
CN101287244A (en) * 2008-05-29 2008-10-15 德信无线通讯科技(北京)有限公司 Method and system for mutual waking up between double processors by global functional serial port

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516870A (en) * 2012-06-18 2014-01-15 联想(北京)有限公司 Information processing method and electronic equipment
CN103516870B (en) * 2012-06-18 2016-10-05 联想(北京)有限公司 A kind of information processing method and a kind of electronic equipment
WO2013167025A3 (en) * 2012-11-08 2014-01-03 中兴通讯股份有限公司 Power saving method for intelligent mobile terminal and intelligent mobile terminal
CN103856457A (en) * 2012-12-04 2014-06-11 中山大学深圳研究院 Method and device for identity safety verification
WO2016078053A1 (en) * 2014-11-20 2016-05-26 华为技术有限公司 Task processing device, intelligent apparatus, task processing method and baseband processor
US10740142B2 (en) 2014-11-20 2020-08-11 Huawei Technologies Co., Ltd. System and method for obtaining task trigger information by a baseband processor of an intelligent device and triggering a hosting task
CN111338856A (en) * 2020-02-21 2020-06-26 深圳震有科技股份有限公司 Serial port hardware flow control implementation method, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
US20180292885A1 (en) Methods and apparatus for managing power with an inter-processor communication link between independently operable processors
CN101242447B (en) A dual-CPU architecture smart phone and its communication control method
CN102082872A (en) Sleep and wakeup mechanism between AP (Application Processor) and CP (Multimedia Co-processor) of mobile phone
JP5095718B2 (en) Platform and processor power management
WO2011113349A1 (en) Power management method and apparatus of a network access module
CN101504565A (en) Method for awakening chip module
WO2011017879A1 (en) Detecting circuit for electric quantity, processing device and method for state detection of mobile telephone in standby
CN108132621B (en) Intelligent management platform based on domestic software and hardware
TW201631440A (en) System for power management
CN201208174Y (en) Water-lack alarming device in water drinking device
JP2014026648A (en) Wake-up method, hot swap method, and device based on high speed inter-chip hsic interface
CN201707802U (en) Intelligence electronic abacus system
CN101350995B (en) Awakening method between mobile terminal modules and multi-mode terminal using the same
CN101997963B (en) Power management method and system for portable communication device
CN101287244B (en) Method and system for mutual waking up between double processors by global functional serial port
CN205826852U (en) A kind of electric energy meter data intelligence read-write equipment based on bluetooth communication
CN103106757B (en) A kind of bluetooth is waken the method for pos machine up
CN106102139A (en) A kind of method for realizing low power consumption of NFC pre-payment instrument
CN101242607A (en) An intelligent mobile phone based on dual-CPU architecture and communication control method
WO2012106853A1 (en) Method, system and device for a usb data card with u disk function to enter sleep state
CN103488270A (en) Power saving method and electronic device thereof
TW201222233A (en) Management method for hard disk
CN201527607U (en) On-off control card based on PCI-E slot
CN213579477U (en) A water quality and quantity ecological compensation monitoring system and unmanned ship
CN103777973A (en) Computer device and arousing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110601