CN102455907B - Mobile telephone with multiple cards application software method for designing - Google Patents

Mobile telephone with multiple cards application software method for designing Download PDF

Info

Publication number
CN102455907B
CN102455907B CN201010528690.XA CN201010528690A CN102455907B CN 102455907 B CN102455907 B CN 102455907B CN 201010528690 A CN201010528690 A CN 201010528690A CN 102455907 B CN102455907 B CN 102455907B
Authority
CN
China
Prior art keywords
data
variable
layer
application software
designing
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.)
Expired - Fee Related
Application number
CN201010528690.XA
Other languages
Chinese (zh)
Other versions
CN102455907A (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.)
Shanghai Sunrise Simcom Electronic Technology Co Ltd
Original Assignee
Shanghai Sunrise Simcom Electronic 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 Shanghai Sunrise Simcom Electronic Technology Co Ltd filed Critical Shanghai Sunrise Simcom Electronic Technology Co Ltd
Priority to CN201010528690.XA priority Critical patent/CN102455907B/en
Publication of CN102455907A publication Critical patent/CN102455907A/en
Application granted granted Critical
Publication of CN102455907B publication Critical patent/CN102455907B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of mobile telephone with multiple cards application software method for designing, it comprises the following steps: S1, design one the middle layer software adaptation layer, the data structure of each wireless module is changed into unified data structure; S2, according to the UIM/SIM card number of expansion, operated global variable or the static variable of all not Reentrant functions in expansion intermediate layer and MMI layer; S3, in intermediate layer and MMI layer, unified access described global variable or static variable in the mode of data pointer. The present invention is for supporting the mobile phone application software method for designing of multiple cards (three above Mobile phone cards), with the 3 G mobile communication network environment that meets present domestic multiple network and deposit. It is hard-core adopting the quantity of the mobile phone application software support card of the method design. 2, invent data pointer, with minimum code revision amount, multiplexing original stabilised platform code, designs efficient committed memory little, powerful, stable support mobile telephone with multiple cards application software.

Description

Mobile telephone with multiple cards application software method for designing
Technical field
The present invention relates to a kind of mobile telephone with multiple cards application software method for designing, particularly relate to a kind of for hugeMobile telephone with multiple cards applied software development, can save in a large number the mobile telephone with multiple cards Application Software Program development time,Improve the method for software execution efficiency.
Background technology
3G (Third Generation) Moblie technology is widely applied at present, mainly obtains the mobile radio communication of disposingNetwork has CDMA2000, WCDMA and TD-SCDMA network. Along with 2nd generation or the 2.5th generationGSM network, cdma network and PHS network to the 3rd generation network transition, mobile phone produces as terminalProduct are also in large batch of renewal. In transition period, diverse network is also deposited, and so just makes mobile telephone with multiple cardsDemand increases greatly. Mobile phone application software, by supporting one to snap into multiple cards of support, will meet existing netNetwork demand, large but size of code also becomes naturally, along with the increase of mobile phone size of code, the efficiency that software is carried outLow, code takes up room greatly, and the construction cycle of mobile phone is elongated, has become cell phone software exploitation and handThe bottleneck of machine cost. The execution efficiency that how to improve software is used not affect user; Reduce the generation of softwareCode amount, to save memory, reduces hardware cost; Shorten the mobile phone application software construction cycle to accelerate mobile phoneOccupation rate of market, these Dou Shi mobile phone terminal manufacturers must consider.
Summary of the invention
The technical problem to be solved in the present invention is soft for mobile telephone with multiple cards application in order to overcome in prior artThe defects such as it is large that part development efficiency is low, code takes up room, provide a kind of size of code that reduces software to saveMemory, the mobile telephone with multiple cards application software method for designing of reduction hardware cost.
The present invention solves above-mentioned technical problem by following technical proposals:
A kind of mobile telephone with multiple cards application software method for designing, its feature is, it comprises the following steps:
S1, design one the middle layer software adaptation layer, the data structure of each wireless module is changed into unificationData structure;
S2, according to the UIM/SIM card number of expansion, all in expansion intermediate layer and MMI layer can notThe global variable that reentry function is operated or static variable;
S3, in intermediate layer and MMI layer, unified access described global variable in the mode of data pointerOr static variable;
S4, receive after the data of the unified card of type of data structure when intermediate layer or MMI layer, forAll not Reentrant functions, according to the marking variable in the data structure after the adaptation of expansion, decision dataBe to come from which card, then switch data pointer, becomes the overall situation of corresponding card by switch data pointerAmount or static variable are read and write.
Preferably, described marking variable is a change of adding on the basis of original data data structureAmount, for representing that data are which cards that come from many cards.
Preferably, step S3In, definition array of pointers, makes each member of data point to respectively expansionGlobal variable or static variable, then define data pointer, points to array of pointers first address, just canAccess global variable or the static variable for storing different cards data by data pointer.
Preferably, step S4In, for the code of all Reentrant functions, can carry out multiplexingly, do not needRevise.
Positive progressive effect of the present invention is: the present invention is for supporting multiple card (three above mobile phonesCard) mobile phone application software method for designing, move with the third generation that meets present domestic multiple network and depositCommunication network environment. The quantity that adopts the mobile phone application software support card of the method design is not restriction. 2, invent data pointer, with minimum code revision amount, multiplexing original stabilised platform code,Design efficient committed memory little, powerful, stable support mobile telephone with multiple cards application software.
Brief description of the drawings
Fig. 1 is system architecture schematic diagram of the present invention.
Fig. 2 is software flow pattern of the present invention.
Fig. 3 is that software adaptation layer data of the present invention transforms schematic diagram.
Fig. 4 is the data expansion schematic diagram of the many cards of support of the present invention.
Fig. 5 is data pointer definition schematic diagram of the present invention.
Detailed description of the invention
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
As shown in Figure 1, be the Organization Chart of system of the present invention. The present invention is soft in the application of original ripe projectOn the basis of part, increase software adaptation layer, made the data structure of expansion board, become unified dataStructure, is sent to cell phone software intermediate layer, then extended mobile phone software intermediate layer and MMI (ManMachineInterface, man-machine interface) not global variable or the static variable of Reentrant function in layer, for speciallyDoor is deposited the data of expansion board, then maintenance data pointer flexibly, makes not Reentrant function become and can weighEnter function, to reach code reuse, with minimum code revision, develop rapidly software execution efficiencyHigh, mobile phone application software that committed memory is few, that support many cards. Wherein the modem of expansion is (wirelessModule) layer be and service layer corresponding to wireless module expanding to use technological means well known in the artRealize, therefore not to repeat here.
As shown in Figure 2, after having designed according to method for designing of the present invention, when on mobile phone, many cards are multiplexingConcrete implementation status figure. Concrete steps are as follows.
Step 101, mobile phone drives layer to obtain mobile phone SIM/UIM card data.
Step 102, becomes unified data structure by different SIM/UIM card data transaction, simultaneously markTo come from which Mobile phone card.
Step 103, judgement works as whether pre-treatment function is Reentrant function.
Step 104, if so, passes to the processing of next stage function by data.
Step 105, if not, the Mobile phone card coming from according to data, points to data pointer correspondingStorage area. Wherein, for ease of understanding, now the data of storage area are exemplified below, such as beingShort message, the information of making a phone call or SIM menu etc.
Step 106, utilize the internal storage data of the memory block of data pointer to corresponding card to read, store,Computing or demonstration.
Step by step method for designing of the present invention is described in detail below.
1, for single card mobile phone, single deck tape-recorder module drive layer data, directly send to cell phone software inInterbed, after intermediate layer handles, is sent directly to again MMI layer. When expanding multiple Modem mouldsAfter piece, be that the data of the Modem module of single deck tape-recorder module drive or expansion are all sent to intermediate layerSoftware adaptation layer. The Main Function of adaptation layer is that the data structure of Modem module is transformed to Chengdu unificationData structure, as shown in Figure 3. Type of data structure after conversion is mainly at original CDMA(in figure, CDMA layer, only for for example, can be also GSM isotype to layer, and this communication mode is notProtection domain of the present invention is limited) the basis of data structure on add a static variable, useIndicating these data is which cards that come from many cards. The data of expansion card turn after adaptation againIssue software intermediate layer.
2, for the operated overall buffer of all not Reentrant functions in intermediate layer and MMI layer(be global variable or static variable, buffer is only conventional code name in programming herein), complies withAccording to the UIM/SIM card of having expanded, overall buffer also will do corresponding expansion, just expanded several cardsNeed to expand several buffer, to deposit the data that different cards sends over different buffer. As figureShown in 4.
3,, in intermediate layer and MMI software, all not Reentrant functions, for overall buffer'sAccess, unification makes into access in the mode of data pointer. Define array of pointers, make each member of dataPoint to respectively the buffer of expansion. Then define pointer, be illustrated in fig. 5 shown below, point to the first ground of pointer dataLocation, so just can access by data pointer the buffer of different cards.
4, when software intermediate layer or software MMI receive after the data of the unified card of structure type, rightIn all not Reentrant functions, according to the interior variable of the data structure after the adaptation of expansion, decision dataTo come from which card, then switch data pointer, the buffer by switch data pointer to corresponding cardRead-write. And can be multiplexing for the code of all Reentrant functions, do not need amendment, so just can be realTwo multiplexing same set of code of card of MMI layer of intermediate layer and software now.
Visible, by above-mentioned scheme, the present invention realizes in the design of mobile telephone with multiple cards application software or codeIn process, by the overall situation or the static variable of function in extender, deposit specially the data of expansion board,As SIM menu etc. Making in original stabilised platform code " not Reentrant function " to become " can reentryFunction ". And ingenious use macrodefinition and data pointer, fully use original stabilised platform code,Make, in many card program development process, to reach minimum code revision amount, so just can make engineer, shortIn time, go out to support the cell phone software of many cards by revising original stabilised platform code development.
Although more than described the specific embodiment of the present invention, those skilled in the art should manageSeparate, these only illustrate, and protection scope of the present invention is limited by appended claims. ThisThe technical staff in field is not deviating under the prerequisite of principle of the present invention and essence, can be to these enforcement sidesFormula is made various changes or modifications, but these changes and amendment all fall into protection scope of the present invention.

Claims (4)

1. a mobile telephone with multiple cards application software method for designing, is characterized in that, it comprises the following steps:
S1, design one the middle layer software adaptation layer, the data structure of each wireless module is changed into unificationData structure;
S2, according to the UIM/SIM card number of expansion, all in expansion intermediate layer and MMI layer can notThe global variable that reentry function is operated or static variable;
S3, in intermediate layer and MMI layer, unified access described global variable in the mode of data pointerOr static variable;
S4, receive after the data of the unified card of type of data structure when intermediate layer or MMI layer, forAll not Reentrant functions, according to the marking variable in the data structure after the adaptation of expansion, decision dataBe to come from which card, then switch data pointer, becomes the overall situation of corresponding card by switch data pointerAmount or static variable are read and write.
2. mobile telephone with multiple cards application software method for designing as claimed in claim 1, is characterized in that instituteStating marking variable is the variable adding on the basis of original data data structure, for representing numberAccording to being which card coming from many cards.
3. mobile telephone with multiple cards application software method for designing as claimed in claim 1, is characterized in that, stepRapid S3In, definition array of pointers, makes each member of data point to respectively the global variable of expansion or quietState variable, then defines data pointer, points to array of pointers first address, just can visit by data pointerAsk global variable or the static variable of the data for depositing different cards.
4. mobile telephone with multiple cards application software method for designing as claimed in claim 1, is characterized in that, stepIn rapid S4, for the code of all Reentrant functions, can carry out multiplexingly, not need amendment.
CN201010528690.XA 2010-11-02 2010-11-02 Mobile telephone with multiple cards application software method for designing Expired - Fee Related CN102455907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010528690.XA CN102455907B (en) 2010-11-02 2010-11-02 Mobile telephone with multiple cards application software method for designing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010528690.XA CN102455907B (en) 2010-11-02 2010-11-02 Mobile telephone with multiple cards application software method for designing

Publications (2)

Publication Number Publication Date
CN102455907A CN102455907A (en) 2012-05-16
CN102455907B true CN102455907B (en) 2016-05-04

Family

ID=46039126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010528690.XA Expired - Fee Related CN102455907B (en) 2010-11-02 2010-11-02 Mobile telephone with multiple cards application software method for designing

Country Status (1)

Country Link
CN (1) CN102455907B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320776A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Method and system for achieving matching of double cards of smart phone

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346150B (en) * 2013-07-30 2017-10-17 华为技术有限公司 The generation method and device of the executable file of many example traffics
CN103595867B (en) * 2013-11-14 2015-09-23 北京奇虎科技有限公司 The application program implementation method identified based on many cards and device
CN105933887B (en) * 2016-04-20 2019-04-26 百度在线网络技术(北京)有限公司 Apply the adaptation method and device between different dual-card intelligent mobile phones
CN107708107A (en) * 2017-09-30 2018-02-16 广东欧珀移动通信有限公司 Network service processing method, device, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070048991A (en) * 2005-11-07 2007-05-10 엘지전자 주식회사 Software management method for mobile phone
CN101068416A (en) * 2007-06-08 2007-11-07 北京恒宝信息技术有限公司 Method and device used for multi-mode smart card operating system
CN101815129A (en) * 2010-04-22 2010-08-25 中兴通讯股份有限公司 Display method and system of multi-card mobile phone book integration
CN102118719A (en) * 2009-12-30 2011-07-06 北京邮电大学 Mobile intelligent information service system, adaptation converting device and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070048991A (en) * 2005-11-07 2007-05-10 엘지전자 주식회사 Software management method for mobile phone
CN101068416A (en) * 2007-06-08 2007-11-07 北京恒宝信息技术有限公司 Method and device used for multi-mode smart card operating system
CN102118719A (en) * 2009-12-30 2011-07-06 北京邮电大学 Mobile intelligent information service system, adaptation converting device and method
CN101815129A (en) * 2010-04-22 2010-08-25 中兴通讯股份有限公司 Display method and system of multi-card mobile phone book integration

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320776A (en) * 2014-10-31 2015-01-28 北京思特奇信息技术股份有限公司 Method and system for achieving matching of double cards of smart phone

Also Published As

Publication number Publication date
CN102455907A (en) 2012-05-16

Similar Documents

Publication Publication Date Title
CN102455907B (en) Mobile telephone with multiple cards application software method for designing
CN106326134B (en) The method and device of FTL address of cache
CN103034617B (en) For realizing buffer structure and the management method of the storage of reconfigurable system configuration information
CN102103497B (en) Finite state machine actuating device and method, and method for establishing and using finite state machine
CN102023973A (en) Method, device and system for synchronizing database with application cache server
CN107885666A (en) A kind of EMS memory management process and device
CN101694512A (en) Test circuit and on-chip system
CN106557436A (en) The memory compression function enabled method of terminal and device
CN102790727A (en) Method and system for dynamically pushing personal labels of users
CN106997351A (en) A kind of caching resource management method and system and device
CN101661429B (en) Storage method of statistical information and device thereof
CN102236530A (en) System for realizing mobile phone buffer memory mechanism and method for loading mobile phone operation system
CN101335651B (en) Simulated testing system and method for expanding terminal by the same system
CN103106101A (en) Associated method, electronic device and associated system
CN103136343A (en) Shared resource real-time interaction method
CN102752753B (en) A kind of method and mobile radio terminal of control ZigBee-network
CN105992278A (en) Flow control method and mobile terminal
CN101582040B (en) Application program loading system and loading method based on ARM system
CN101667462B (en) Repair module for memory, repair device using same and method thereof
CN103124309B (en) Method and terminal for read-write control of mobile phone files
CN110286985A (en) A kind of method for displaying user interface, system and associated component
CN103377073B (en) Processing data information device and method
CN101826002B (en) Hardware realization method of recording branch predictor
CN102122269B (en) Writing timeout control method of flash memory and memory device thereof
CN101741574A (en) Data card with flow statistics, data card using system and realizing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160504

Termination date: 20191102