CN102455907A - Method for designing multi-card mobile phone application software - Google Patents

Method for designing multi-card mobile phone application software Download PDF

Info

Publication number
CN102455907A
CN102455907A CN201010528690XA CN201010528690A CN102455907A CN 102455907 A CN102455907 A CN 102455907A CN 201010528690X A CN201010528690X A CN 201010528690XA CN 201010528690 A CN201010528690 A CN 201010528690A CN 102455907 A CN102455907 A CN 102455907A
Authority
CN
China
Prior art keywords
data
application software
mobile phone
variable
cards
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.)
Granted
Application number
CN201010528690XA
Other languages
Chinese (zh)
Other versions
CN102455907B (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

Images

Abstract

The invention discloses a method for designing multi-card mobile phone application software, comprising the following steps of: S1, designing an intermediate-layer software adaption layer and converting the data structure of each wireless module into a uniform data structure; S2, extending all global variables or static variables operated by non-reentrant functions in the intermediate layer and an MMI (Man Machine Interface) layer according to the number of extended UIM/SIM (User Identity Module/Subscriber Identity Module) cards; and S3, accessing the global variables or the static variables in a uniform data pointer manner. The method for designing multi-card mobile phone application software is a method for designing mobile phone application software capable of supporting a plurality of cards (more than three mobile phone cards), thus satisfying the third generation mobile communication network environment in which a plurality of networks coexist in China. The number of cards supported by the mobile phone application software designed by the method is unlimited. The data pointer is invented, and efficient and stable multi-card supporting mobile phone application software which occupies small internal memory and powerful in function is designed at lowest code alternation quantity and by multiplexing previous stable platform codes.

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 ofly, can save the mobile telephone with multiple cards Application Software Program development time in a large number, improve the method for software executing efficient for huge mobile telephone with multiple cards applied software development.
Background technology
The 3G (Third Generation) Moblie technology has obtained widespread use at present, and the mobile communications network that mainly obtains disposing has CDMA2000, WCDMA and TD-SCDMA network.Along with GSM network, cdma network and the PHS network in the 2nd generation or the 2.5th generation to the 3rd generation network transition, mobile phone as end product also in large batch of renewal.Be in transition period, diverse network is also deposited, and so just makes the mobile telephone with multiple cards demand increase greatly.Mobile phone application software is by supporting one to snap into many cards of support; To meet existing network demand, big but size of code also becomes naturally, along with the increase of mobile phone size of code; The efficient of software executing is low; Code takes up room greatly, and the construction cycle of mobile phone is elongated, has become the bottleneck of cell phone software exploitation and mobile phone cost.How improving the execution efficient of software uses not influence the user; The size of code that reduces software reduces hardware cost with conserve memory; Shorten the mobile phone application software construction cycle to accelerate the market share of mobile phone, these all are that mobile phone terminal manufacturer must consider.
Summary of the invention
The technical matters that the present invention will solve is, code low to mobile telephone with multiple cards applied software development efficient in order to overcome in the prior art defective such as big that takes up room; Provide a kind of size of code that reduces software with conserve memory, reduce the mobile telephone with multiple cards application software method for designing of hardware cost.
The present invention solves above-mentioned technical matters through following technical proposals:
A kind of mobile telephone with multiple cards application software method for designing, its characteristics are that it may further comprise the steps:
S 1, the design one the middle layer software adaptation layer, change into the unified data structure to the data structure of each wireless module;
S 2, according to the UIM/SIM card number of expansion, operated global variable or the static variable of all functions of can not reentrying in expansion middle layer and the MMI layer;
S 3, in middle layer and MMI layer, unified visit said global variable or static variable with the mode of data pointer;
S 4, after middle layer or MMI layer are received the data of the card that type of data structure is unified; For all functions of can not reentrying; According to the marking variable in the adapted data structure of expansion; Decision data is which to come from open card, and the switch data pointer is read and write the global variable or the static variable of corresponding card through the switch data pointer then.
Preferably, the variable of said marking variable on the basis of original digital data structure, adding is used for representing that data are which cards that come from many cards.
Preferably, step S 3In; The definition array of pointers makes each members of data point to the global variable or the static variable of expansion, definition of data pointer then respectively; Point to the array of pointers first address, just can be used to store the global variable or the static variable of different cards data through the data pointer visit.
Preferably, step S 4In, for the code of all Reentrant functions, can carry out multiplexingly, do not need to revise.
Positive progressive effect of the present invention is: the present invention is for supporting the mobile phone application software method for designing of many cards (three above mobile phone cards), with the 3G (Third Generation) Moblie network environment that satisfies present domestic multiple network and deposit.It is hard-core adopting the quantity of the mobile phone application software support card of this method design.2, invent out data pointer, with the code revision amount of minimum, multiplexing original stabilised platform code designs that committed memory is little efficiently, powerful, stable support mobile telephone with multiple cards application software.
Description of drawings
Fig. 1 is a system architecture synoptic diagram of the present invention.
Fig. 2 is a software flow pattern of the present invention.
Fig. 3 is that software adaptation layer data of the present invention transforms synoptic diagram.
Fig. 4 is the data expansion synoptic diagram of the many cards of support of the present invention.
Fig. 5 is a data pointer definition synoptic diagram of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to specify technical scheme of the present invention.
As shown in Figure 1, be the Organization Chart of system of the present invention.The present invention has increased the software adaptation layer on the basis of the application software of original ripe project, make the data structure of expansion board; Become the unified data structure, be sent to the cell phone software middle layer, then extended mobile phone software middle layer and MMI (Man MachineInterface; Man-machine interface) can not reentry in the layer global variable or the static variable of function are used for depositing specially the data of expansion board, again maintenance data pointer flexibly; The feasible function of can not reentrying becomes Reentrant function, to reach code reuse, with minimum code revision; Develop apace software executing efficient high, committed memory is few, supports the mobile telephone with multiple cards application software.Wherein the modem (wireless module) of expansion layer is and the corresponding service layer of wireless module of expansion, can use technological means well known in the art to realize, does not give unnecessary details at this.
As shown in Figure 2, after accomplishing according to designing method of the present invention, the concrete implementation status figure when many cards are multiplexing on the mobile phone.Concrete steps are following.
Step 101, the mobile phone Drive Layer obtains mobile phone SIM/UIM card data.
Step 102 becomes the unified data structure with different SIM/UIM card data-switching, and sign is which to come from open the mobile phone card simultaneously.
Step 103 is judged and is worked as whether the pre-treatment function is Reentrant function.
Step 104 is if handle to the next stage function data transfer.
Step 103 is if not, according to the mobile phone card that data come from, make data pointer point to corresponding storage area.Wherein, for ease of understanding, existing data to storage area are exemplified below, such as being short message, the information of making a phone call or SIM menu etc.
Step 104, utilize data pointer to the internal storage data of the memory block of corresponding card read, storage, computing or demonstration.
Step by step method for designing of the present invention is described in detail below.
1, for the single card mobile phone, single deck tape-recorder module drive layer data directly sends to the middle layer of cell phone software, after intermediate layer handles, directly is sent to the MMI layer again.After expanding a plurality of Modem modules, be that the single deck tape-recorder module drive or the data of the Modem module of expansion all are sent to the middle layer software adaptation layer.The main effect of adaptation layer is to transform Chengdu unified data structure to the data structure of Modem module, and is as shown in Figure 3.Type of data structure after the conversion mainly is that (the CDMA layer is merely for example among the figure at original C DMA layer; Also can be the GSM isotype; This communication mode does not limit protection domain of the present invention) the basis of data structure on add a static variable, be used for indicating these data and be and come from many cards which and open card.The data of expansion card are transmitted to the software middle layer again through after adaptive.
2, (be global variable or static variable for the operated overall buffer of all functions of can not reentrying in middle layer and the MMI layer; Buffer is merely code name commonly used in the programming here); According to the UIM/SIM card of having expanded; Overall situation buffer also will do corresponding expansion, and having expanded several cards just needs to expand several buffer, so that deposit the data that different cards sends over different buffer.As shown in Figure 4.
3, in middle layer and MMI software, all functions of can not reentrying, for the visit of overall buffer, unification makes into to visit with the mode of data pointer.The definition array of pointers makes each members of data point to the buffer of expansion respectively.Define pointer then, be illustrated in fig. 5 shown below, point to the pointer data first address, so just can visit the buffer of different cards by data pointer.
4, after software middle layer or software MMI receive the data of the card that structure type is unified; For all functions of can not reentrying; Interior variable according to the adapted data structure of expanding; Decision data is which to come from open card, and switch data pointer then is through the read-write of switch data pointer to the buffer of corresponding card.And can be multiplexing for the code of all Reentrant functions, do not need to revise, so just can be implemented in two multiplexing same set of code of card of MMI layer of middle layer and software.
It is thus clear that through above-mentioned scheme, the present invention through the overall situation or the static variable of function in the extender, deposits the data of expansion board specially in mobile telephone with multiple cards application software design or code implementation procedure, like the SIM menu etc.Make that " function of can not reentrying " becomes " Reentrant function " in the original stabilised platform code.And ingenious use macro definition and data pointer; Fully use original stabilised platform code, make in many card program development process, reach minimum code revision amount; So just can make the slip-stick artist, through revise original stabilised platform code development go out support the cell phone softwares that block in the short time more.
Though more than described embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited appended claims.Those skilled in the art can make numerous variations or modification to these embodiments under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.

Claims (4)

1. mobile telephone with multiple cards application software method for designing is characterized in that it may further comprise the steps:
S 1, the design one the middle layer software adaptation layer, change into the unified data structure to the data structure of each wireless module;
S 2, according to the UIM/SIM card number of expansion, operated global variable or the static variable of all functions of can not reentrying in expansion middle layer and the MMI layer;
S 3, in middle layer and MMI layer, unified visit said global variable or static variable with the mode of data pointer;
S 4, after middle layer or MMI layer are received the data of the card that type of data structure is unified; For all functions of can not reentrying; According to the marking variable in the adapted data structure of expansion; Decision data is which to come from open card, and the switch data pointer is read and write the global variable or the static variable of corresponding card through the switch data pointer then.
2. mobile telephone with multiple cards application software method for designing as claimed in claim 1 is characterized in that, the variable of said marking variable on the basis of original digital data structure, adding is used for representing that data are which cards that come from many cards.
3. mobile telephone with multiple cards application software method for designing as claimed in claim 1 is characterized in that step S 3In; The definition array of pointers makes each members of data point to the global variable or the static variable of expansion, definition of data pointer then respectively; Point to the array of pointers first address, just can visit the global variable or the static variable of the data that are used to deposit different cards through data pointer.
4. mobile telephone with multiple cards application software method for designing as claimed in claim 1 is characterized in that, among the step S4, for the code of all Reentrant functions, can carry out multiplexingly, does not need to revise.
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 true CN102455907A (en) 2012-05-16
CN102455907B 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595867A (en) * 2013-11-14 2014-02-19 北京奇虎科技有限公司 Application program implementation method and device based on multi-card recognition
CN104346150A (en) * 2013-07-30 2015-02-11 华为技术有限公司 Multiple instance business executable file generating method and device
CN105933887A (en) * 2016-04-20 2016-09-07 百度在线网络技术(北京)有限公司 Adaption method and device applied to different dual-card smartphones
CN107708107A (en) * 2017-09-30 2018-02-16 广东欧珀移动通信有限公司 Network service processing method, device, storage medium and terminal

Families Citing this family (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

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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346150A (en) * 2013-07-30 2015-02-11 华为技术有限公司 Multiple instance business executable file generating method and device
CN104346150B (en) * 2013-07-30 2017-10-17 华为技术有限公司 The generation method and device of the executable file of many example traffics
CN103595867A (en) * 2013-11-14 2014-02-19 北京奇虎科技有限公司 Application program implementation method and device based on multi-card recognition
CN105933887A (en) * 2016-04-20 2016-09-07 百度在线网络技术(北京)有限公司 Adaption method and device applied to different dual-card smartphones
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

Also Published As

Publication number Publication date
CN102455907B (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN100378661C (en) System and method for bi-directional communication and execution of dynamic instruction sets
CN102841901B (en) A kind of method and apparatus of web displaying
CN102455907A (en) Method for designing multi-card mobile phone application software
JP6076480B2 (en) Service processing method and apparatus
CN104468148A (en) Nginx server configuration maintenance method and system
CN102790727A (en) Method and system for dynamically pushing personal labels of users
CN102103497A (en) Finite state machine actuating device and method, and method for establishing and using finite state machine
CN101963915A (en) Building method of compilation and system thereof
CN102495797A (en) Smart card testing device and method
CN103051496A (en) Monitoring method and device of monitoring point server
CN1933425A (en) Module and method for realizing equipment access interface, equipment access system and method
CN103425647B (en) A kind of seamless browsing method of webpage and system
CN100378663C (en) Method, system and module for dynamic downloading of applied programe to user identification
CN106304265B (en) A kind of network search method and device
CN101056400A (en) A method for using the USB virtual disk technology to expand the Ethernet connection device
CN101763257B (en) Java preprocessing communication system and java preprocessing method
CN102255687A (en) Rate matching method and device thereof
CN101246440A (en) Java card system rubbish recovering method
CN101335651B (en) Simulated testing system and method for expanding terminal by the same system
CN101667121A (en) Feature phone secondary development method and device
CN101504613B (en) Distributed dynamic binary translation method used for limited system
CN101908028B (en) Method and system for realizing input/output (IO) expansion through standard secure digital (SD) memory interface
CN101784090B (en) Method and terminal for binding a plurality of wireless access links with fixed network links
CN101316414B (en) Standby processing method and device of mobile terminal, two-module and two-standby mobile terminal
CN102752753B (en) A kind of method and mobile radio terminal of control ZigBee-network

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