CN104703168A - Method and system for running critical codes in mobile terminal - Google Patents

Method and system for running critical codes in mobile terminal Download PDF

Info

Publication number
CN104703168A
CN104703168A CN201310671782.7A CN201310671782A CN104703168A CN 104703168 A CN104703168 A CN 104703168A CN 201310671782 A CN201310671782 A CN 201310671782A CN 104703168 A CN104703168 A CN 104703168A
Authority
CN
China
Prior art keywords
group
functions
sheet
internal memory
code
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
CN201310671782.7A
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.)
Leadcore Technology Co Ltd
Original Assignee
Leadcore 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 Leadcore Technology Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN201310671782.7A priority Critical patent/CN104703168A/en
Publication of CN104703168A publication Critical patent/CN104703168A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Abstract

The invention provides a method and a system for running critical codes in a mobile terminal. When a task with a function group executed in an on-chip memory is in a suspended state and a task with a function group executed in an off-chip memory and requested to be executed in the on-chip memory is in a suspended state, execution memory positions of the two function groups are switched, so that the function group executed in the on-chip memory is changed, and part of function groups requiring the on-chip memory can be executed in the on-chip memory. Therefore, requirements of the critical codes on on-chip memory resources of chips can be met as far as possible to shorten critical code execution time and meet mips cost of high-speed services.

Description

The operation method of key code and operational system in mobile terminal
Technical field
The present invention relates to mobile communication technology field, particularly the operation method of key code and operational system in a kind of mobile terminal.
Background technology
Mobile Communication Development so far, defines the general layout requiring that multiple network standard coexists, as second generation mobile communication system (2G) comprising: global system for mobile communications (GSM), General Packet Radio System (GPRS), enhancing data rate (EDGE); 3-G (Generation Three mobile communication system) (3G) comprising: Wideband Code Division Multiple Access (WCDMA) (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA); Next generation mobile communication system comprises: Long Term Evolution (LTE), Worldwide Interoperability for Microwave mutual connection enter (WIMAX).
Because the communication network networking time of various places is different, the coverage of each mobile network is different, and the service content that each operator provides and rate are not identical yet.Therefore, support the mobile phone of full mould automatically, in product competition, possess absolute advantage.
But the process under different mode is all an independently system, and relevant software process is difficult to multiplexing; The handling processes such as newly-increased standard also adds additional measurement between pattern, search, pattern are switched.Therefore, in the data, protocol processes of wave point, than multiple, the code quantity of multimode terminal only supports that the cell phone software total amount of single mode is also much bigger.In order to good performance can be had under different systems, under the condition that chip processing speed is limited, each standard all wishes the data processing code of key to be kept at internal memory in sheet, and namely each pattern all wishes to seize memory source in the higher sheet for the treatment of effeciency.When chip size is specified, in sheet, the quantity of memory headroom is determined substantially.Therefore, increase internal memory in sheet and will certainly bring the increase of chip cost.
The product form of ubiquity multi-card multi-standby in the market, the DSP code total amount of this multi-card multi-standby product form adds much relative to single deck tape-recorder form, and because in traditional scheme, code deposits with the form of static state.Therefore, after the hardware resource (in clock, sheet internal memory etc.) of chip is determined, the code total amount that can leave in sheet is constant, and the code that part requirement of real-time is high is also forced to extrude memory headroom in sheet.The time of implementation of code is caused to be elongated; Mass data can not get real-time process, and terminal cannot realize high speed business.
Therefore, how neither to increase memory source in chip slapper, the demand of key code for memory source in chip slapper can be met again as far as possible, become those skilled in the art's problem demanding prompt solution.
Summary of the invention
The object of the present invention is to provide operation method and the operational system of key code in a kind of mobile terminal, to solve in prior art, code is deposited with the form of static state, the code that part requirement of real-time is high is forced to extrude memory headroom in sheet, the time of implementation of code is caused to be elongated, mass data can not get real-time process, and terminal cannot realize the problem of high speed business.
For solving the problems of the technologies described above, the invention provides the operation method of key code in a kind of mobile terminal, in described mobile terminal, the operation method of key code comprises:
Two parts of codes are stored in the outer internal memory of sheet, every part of code comprises one or more group of functions, each group of functions belongs to a task, wherein, first part of code is used for performing at the outer internal memory of sheet, second part of code is used for being loaded into internal memory in sheet and performs, and group of functions in first part of code is identical with the function content of the group of functions in second part of code;
When the task belonging to the group of functions that internal memory in sheet performs is in suspended state and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, switches the core position that two group of functions perform.
Optionally, in described mobile terminal key code operation method in, when every part of code comprises multiple group of functions, the communication network pattern belonging to multiple group of functions is identical or completely not identical or incomplete same.
Optionally, in described mobile terminal key code operation method in, in sheet internal memory perform group of functions belong to the main communication network pattern being in connection status.
Optionally, in described mobile terminal key code operation method in, obtain by obtaining " this task whether allow perform semaphore " information whether this task is in suspended state.
Optionally, in described mobile terminal key code operation method in, point to the function entrance that performs of sheet outward by function pointer and realize performing group of functions at the outer internal memory of sheet; Point to by function pointer the function entrance performed in sheet and realize internal memory execution group of functions in sheet.
The present invention also provides the operational system of key code in a kind of mobile terminal, and in described mobile terminal, the operational system of key code comprises:
The outer internal memory of sheet, in order to store two parts of codes, every part of code comprises one or more group of functions, each group of functions belongs to a task, wherein, first part of code is used for performing at the outer internal memory of sheet, and second part of code is used for being loaded into internal memory in sheet and performs, and the group of functions in first part of code is identical with the function content of the group of functions in second part of code, and perform group of functions;
Public control task module, in order to be in suspended state when the task belonging to the group of functions that internal memory in sheet performs and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, to switch the core position that two group of functions perform; And
Internal memory in sheet, in order to perform group of functions.
Optionally, in described mobile terminal key code operational system in, when every part of code comprises multiple group of functions, the communication network pattern belonging to multiple group of functions is identical or completely not identical or incomplete same.
Optionally, in described mobile terminal key code operational system in, in sheet internal memory perform group of functions belong to the main communication network pattern being in connection status.
Optionally, in described mobile terminal key code operational system in, described public control task module obtains by obtaining " this task whether allow perform semaphore " information whether this task is in suspended state.
Optionally, in described mobile terminal key code operational system in, the outer internal memory of sheet points to by function pointer the execution that function entrance that sheet performs carrys out measure for fulfill group outward; In sheet, internal memory points to by function pointer the execution that the function entrance performed in sheet carrys out measure for fulfill group.
In mobile terminal provided by the invention in the operation method of key code and operational system, suspended state is in by the task belonging to the group of functions when internal memory execution in sheet, and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, switch the core position that two group of functions perform, the group of functions that internal memory performs in sheet can be made thus to change, also part is namely made to be able to perform by internal memory in sheet to the group of functions having demand in sheet, thus meet the demand of key code for memory source in chip slapper as far as possible, reduce the time of implementation of key code, meet the mips expense of high speed business.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the operation method of key code in the mobile terminal of the embodiment of the present invention;
Fig. 2 is internal storage state schematic diagram in the operation method of key code in the mobile terminal of the embodiment of the present invention.
Embodiment
In the mobile terminal proposed the present invention below in conjunction with the drawings and specific embodiments, the operation method of key code and operational system are described in further detail.According to the following describes and claims, advantages and features of the invention will be clearer.It should be noted that, accompanying drawing all adopts the form that simplifies very much and all uses non-ratio accurately, only in order to object that is convenient, the aid illustration embodiment of the present invention lucidly.
Present embodiments provide the operation method of key code in a kind of mobile terminal, in described mobile terminal, the operation method of key code comprises:
Two parts of codes are stored in the outer internal memory of sheet, every part of code comprises one or more group of functions, each group of functions belongs to a task, wherein, first part of code is used for performing at the outer internal memory of sheet, second part of code is used for being loaded into internal memory in sheet and performs, and group of functions in first part of code is identical with the function content of the group of functions in second part of code;
When the task belonging to the group of functions that internal memory in sheet performs is in suspended state and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, switches the core position that two group of functions perform.
Accordingly, the present embodiment additionally provides the operational system of key code in a kind of mobile terminal, and in described mobile terminal, the operational system of key code comprises:
The outer internal memory of sheet, in order to store two parts of codes, every part of code comprises one or more group of functions, each group of functions belongs to a task, wherein, first part of code is used for performing at the outer internal memory of sheet, and second part of code is used for being loaded into internal memory in sheet and performs, and the group of functions in first part of code is identical with the function content of the group of functions in second part of code, and perform group of functions;
Public control task module, in order to be in suspended state when the task belonging to the group of functions that internal memory in sheet performs and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, to switch the core position that two group of functions perform; And
Internal memory in sheet, in order to perform group of functions.
Concrete, please refer to Fig. 1 and Fig. 2, wherein, Fig. 1 is the schematic flow sheet of the operation method of key code in the mobile terminal of the embodiment of the present invention; Fig. 2 is internal storage state schematic diagram in the operation method of key code in the mobile terminal of the embodiment of the present invention.
First, perform step S10: in the outer internal memory of sheet, store two parts of codes, every part of code comprises one or more group of functions, and each group of functions belongs to a task.Corresponding reference diagram 2, in the present embodiment, in the outer internal memory of sheet, store two parts of codes, be respectively first part of code and second part of code, wherein, first part of code comprises group of functions A, group of functions B and group of functions C; Second part of code comprises group of functions A ', group of functions B ' and group of functions C '.Wherein, group of functions A, group of functions A ' belong to task A, and group of functions B, group of functions B ' belong to task B, and group of functions C, group of functions C ' belong to task C.
At this, function in first part of code is identical, concrete with the function content of the function in second part of code, and the function content of group of functions A function group A ' is identical, the function content of group of functions B function group B ' is identical, and the function content of group of functions C function group C ' is identical.In the present embodiment, in order to prevent makeing mistakes in function call, running, common, group of functions A function group A ' function name used is not identical, group of functions B function group B ' function name used is not identical, and group of functions C function group C ' function name used is not identical.But the function content in group of functions A function group A ', the function realized are identical, the function content in group of functions B function group B ', the function realized are identical, and the function content in group of functions C function group C ', the function realized are identical.
In the present embodiment, when supposing initial, group of functions A ' internal memory in sheet performs, and now group of functions A just no longer performs at the outer internal memory of sheet, and meanwhile, group of functions B and group of functions C can perform at the outer internal memory of sheet.Thus, can either make partial function group in sheet, in internal memory, perform to improve the execution speed/efficiency of this group of functions, the group of functions that can not obtain in internal memory performing in sheet can be made again also can be performed.
In the process that each group of functions performs, often having group of functions needs to move the situation that in sheet, internal memory performs, and now, this group of functions just can send moves the request that in sheet, internal memory performs.Also namely perform step S11, public control task module receives the request that in sheet, internal memory performs.Such as, group of functions B needs internal memory in sheet to perform, then accordingly, public control task module have received the request that in group of functions B to sheet, internal memory performs.
Then, perform step S12, public control task module obtains the state of inter-related task, namely public control task module obtains the task status (i.e. task A and task B) of group of functions A ' sum functions group B, and judge inter-related task (i.e. task A and task B) accordingly, concrete, judge whether task A and task B is in suspended state.In the present embodiment, public control task module obtains by obtaining " whether this task allows the semaphore performed " information whether this task is in suspended state.That is, whether public control task module allows the semaphore performed to obtain the information whether task A and task B is in suspended state by obtaining task A and task B.
When public control task module get task A and task B be all in suspended state time, just can switch the core position that two group of functions perform, namely perform step S14.Now, group of functions B ' internal memory in sheet performs, and group of functions A just can perform at the outer internal memory of sheet; Meanwhile, group of functions B and group of functions A ' just no longer performs.At this, also can think that group of functions B switches into group of functions B ' and obtains continuation execution, group of functions A ' switches into group of functions A and obtains continuation execution, namely performs step S15: two group of functions after switching are in the continuation execution of new core position.
In the present embodiment, the function entrance performed outward by function pointer sensing sheet realizes performing group of functions at the outer internal memory of sheet; Point to by function pointer the function entrance performed in sheet and realize internal memory execution group of functions in sheet.Concrete, when group of functions performs at the outer internal memory of sheet, the group of functions entrance performed outward by function pointer sensing sheet is achieved; When internal memory performs group of functions in sheet, point to by function pointer the group of functions entrance performed in sheet and be achieved.That is, as group of functions B ' replacement function group B, during group of functions A replacement function group A ', the group of functions A that the group of functions B ' performed in function pointer sensing sheet and sheet perform outward, thus achieves the replacement that function performs inside and outside sheet.
In the present embodiment, when every part of code comprises multiple group of functions, communication network pattern belonging to multiple group of functions is identical or completely not identical or incomplete same, and multiple group of functions belongs to a kind of communication network pattern or multiple communication network pattern in other words.Such as, group of functions A function group A ' belongs to global system for mobile communications (GSM), group of functions B function group B ' belongs to Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), group of functions C function group C ' belongs to Long Term Evolution (LTE), thus, when the group of functions that internal memory in sheet performs changes, also just to meet under difference (communication network) pattern key code for the demand of memory source in chip slapper.In addition, if group of functions A, group of functions A ', group of functions B, group of functions B ', group of functions C and group of functions C ' all belong to same communication network pattern, then by the dynamic replacement of the above-mentioned function that internal memory performs in sheet, business different under can making same pattern is realized efficiently.
Preferably, the group of functions that internal memory performs in sheet belongs to the main communication network pattern being in connection status.Such as, singly treat multi mode terminal, after emergence pattern is switched, current holotype can apply for taking memory source in sheet; Dual-card dual-standby single-pass mobile phone, after present mode enters connection status from idle condition, the holotype entering connection status can apply for taking memory source in sheet.
As fully visible, in the mobile terminal that the embodiment of the present invention provides in the operation method of key code and operational system, suspended state is in by the task belonging to the group of functions when internal memory execution in sheet, and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, switch the core position that two group of functions perform, the group of functions that internal memory performs in sheet can be made thus to change, also part is namely made to be able to perform by internal memory in sheet to the group of functions having demand in sheet, thus meet the demand of key code for memory source in chip slapper as far as possible, reduce the time of implementation of key code, meet the mips expense of high speed business.
Foregoing description is only the description to present pre-ferred embodiments, any restriction not to the scope of the invention, and any change that the those of ordinary skill in field of the present invention does according to above-mentioned disclosure, modification, all belong to the protection range of claims.

Claims (10)

1. the operation method of key code in mobile terminal, is characterized in that, comprising:
Two parts of codes are stored in the outer internal memory of sheet, every part of code comprises one or more group of functions, each group of functions belongs to a task, wherein, first part of code is used for performing at the outer internal memory of sheet, second part of code is used for being loaded into internal memory in sheet and performs, and group of functions in first part of code is identical with the function content of the group of functions in second part of code;
When the task belonging to the group of functions that internal memory in sheet performs is in suspended state and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, switches the core position that two group of functions perform.
2. the operation method of key code in mobile terminal as claimed in claim 1, it is characterized in that, when every part of code comprises multiple group of functions, the communication network pattern belonging to multiple group of functions is identical or completely not identical or incomplete same.
3. the operation method of key code in mobile terminal as claimed in claim 2, it is characterized in that, the group of functions that internal memory performs in sheet belongs to the main communication network pattern being in connection status.
4. the operation method of key code in mobile terminal as claimed in claim 1, is characterized in that, obtaining by obtaining " whether this task allows the semaphore performed " information whether this task is in suspended state.
5. in the mobile terminal according to any one of Claims 1 to 4, the operation method of key code, is characterized in that, the function entrance performed outward by function pointer sensing sheet realizes performing group of functions at the outer internal memory of sheet; Point to by function pointer the function entrance performed in sheet and realize internal memory execution group of functions in sheet.
6. the operational system of key code in mobile terminal, is characterized in that, comprising:
The outer internal memory of sheet, in order to store two parts of codes, every part of code comprises one or more group of functions, each group of functions belongs to a task, wherein, first part of code is used for performing at the outer internal memory of sheet, and second part of code is used for being loaded into internal memory in sheet and performs, and the group of functions in first part of code is identical with the function content of the group of functions in second part of code, and perform group of functions;
Public control task module, in order to be in suspended state when the task belonging to the group of functions that internal memory in sheet performs and when the outer internal memory of sheet performs and the task belonging to the group of functions of internal memory execution in sheet of asking is in suspended state, to switch the core position that two group of functions perform; And
Internal memory in sheet, in order to perform group of functions.
7. the operational system of key code in mobile terminal as claimed in claim 6, it is characterized in that, when every part of code comprises multiple group of functions, the communication network pattern belonging to multiple group of functions is identical or completely not identical or incomplete same.
8. the operational system of key code in mobile terminal as claimed in claim 7, it is characterized in that, the group of functions that internal memory performs in sheet belongs to the main communication network pattern being in connection status.
9. the operational system of key code in mobile terminal as claimed in claim 6, it is characterized in that, described public control task module obtains by obtaining " whether this task allows the semaphore performed " information whether this task is in suspended state.
10. in the mobile terminal according to any one of claim 6 ~ 9, the operational system of key code, is characterized in that, the outer internal memory of sheet carrys out the execution of measure for fulfill group by the function entrance that function pointer sensing sheet performs outward; In sheet, internal memory points to by function pointer the execution that the function entrance performed in sheet carrys out measure for fulfill group.
CN201310671782.7A 2013-12-10 2013-12-10 Method and system for running critical codes in mobile terminal Pending CN104703168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310671782.7A CN104703168A (en) 2013-12-10 2013-12-10 Method and system for running critical codes in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310671782.7A CN104703168A (en) 2013-12-10 2013-12-10 Method and system for running critical codes in mobile terminal

Publications (1)

Publication Number Publication Date
CN104703168A true CN104703168A (en) 2015-06-10

Family

ID=53349854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310671782.7A Pending CN104703168A (en) 2013-12-10 2013-12-10 Method and system for running critical codes in mobile terminal

Country Status (1)

Country Link
CN (1) CN104703168A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040260873A1 (en) * 2003-06-17 2004-12-23 Hitachi, Ltd. Method and apparatus for managing replication volumes
CN101266540A (en) * 2008-04-24 2008-09-17 北京中星微电子有限公司 Signal processing algorithm dynamic EMS memory processing operating method and apparatus
CN101303651A (en) * 2007-05-10 2008-11-12 大唐移动通信设备有限公司 Service processing method and user equipment using the method
CN101552840A (en) * 2009-03-09 2009-10-07 北京天碁科技有限公司 A method to reduce the power consumption of mobile terminals and the mobile terminals
CN103369642A (en) * 2012-04-06 2013-10-23 联芯科技有限公司 Processing method and system of mobile terminal in standby state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040260873A1 (en) * 2003-06-17 2004-12-23 Hitachi, Ltd. Method and apparatus for managing replication volumes
CN101303651A (en) * 2007-05-10 2008-11-12 大唐移动通信设备有限公司 Service processing method and user equipment using the method
CN101266540A (en) * 2008-04-24 2008-09-17 北京中星微电子有限公司 Signal processing algorithm dynamic EMS memory processing operating method and apparatus
CN101552840A (en) * 2009-03-09 2009-10-07 北京天碁科技有限公司 A method to reduce the power consumption of mobile terminals and the mobile terminals
CN103369642A (en) * 2012-04-06 2013-10-23 联芯科技有限公司 Processing method and system of mobile terminal in standby state

Similar Documents

Publication Publication Date Title
CN110602806B (en) WIFI network access method and device
CN102711201B (en) A kind of switching method and apparatus of multi-mode wireless access
CN101188818B (en) Base station, processing method for its baseband signal and wireless communication system
CN105306681A (en) Management method and device supporting multiple SIM cards to share RF processor
JP2015511093A (en) Method and terminal for loading operator configuration information
CN102355704B (en) Processing method for task conflict of mobile terminal
CN104581737B (en) Base band frame, base station and method for realizing multi-mode base station by single base band frame
US20120093075A1 (en) Multiple SIM support with single modem software architecture
CN102083200A (en) Method and system for registering multi-mode, multi-standby and multi-card terminal
CN102340843A (en) Terminal mode processing method, network access method and base station thereof
WO2012094987A1 (en) Communication method and terminal
CN106211250B (en) Mobile terminal and self-adaptive switching method and system of card slot of mobile terminal
CN102457587A (en) IP address assignment method and equipment
CN103096496B (en) A kind of methods, devices and systems of support terminal roaming
CN102264161B (en) Base station, base band signal processing method in base station and wireless communication system
CN103313292A (en) Inter-system measuring method based on single-baseband chip and double-connection framework
CN103841617A (en) Communication network switching method and communication network switching device
EP4195734A1 (en) Control method for sharing mode of base station, shared base station, and communication system
CN102595474A (en) Method for establishing communication connection and user equipment
CN112398626A (en) Information transmission method, communication device and system
CN107548121B (en) Method and device for determining access network
CN102625399B (en) Method for quickly switching network system on mobile platform
WO2015154300A1 (en) A method, apparatus and system
CN104703168A (en) Method and system for running critical codes in mobile terminal
WO2019071986A1 (en) Search period determination method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150610

RJ01 Rejection of invention patent application after publication