CN102567070A - Mobile phone software debugging method and simulator for mobile phone software - Google Patents

Mobile phone software debugging method and simulator for mobile phone software Download PDF

Info

Publication number
CN102567070A
CN102567070A CN2010105906103A CN201010590610A CN102567070A CN 102567070 A CN102567070 A CN 102567070A CN 2010105906103 A CN2010105906103 A CN 2010105906103A CN 201010590610 A CN201010590610 A CN 201010590610A CN 102567070 A CN102567070 A CN 102567070A
Authority
CN
China
Prior art keywords
mobile phone
simulator
software
module
card
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
CN2010105906103A
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.)
SHENYANG NEW POSTCOM EQUIPMENT CO Ltd
Original Assignee
SHENYANG NEW POSTCOM EQUIPMENT 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 SHENYANG NEW POSTCOM EQUIPMENT CO Ltd filed Critical SHENYANG NEW POSTCOM EQUIPMENT CO Ltd
Priority to CN2010105906103A priority Critical patent/CN102567070A/en
Publication of CN102567070A publication Critical patent/CN102567070A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a mobile phone software debugging method and a simulator for the mobile phone software. A computer with a mobile phone software development simulator is connected with the existing mobile phone wireless network card via a USB, then, a software transmitting module is programmed, instructions of the mobile phone software development simulator are transmitted to the wireless network card, the wireless network card executes the instructions related to a mobile phone protocol, and simultaneously, a software accepting module is programmed to transmit the running result of the instructions transmitted by the wireless network card and related to a mobile phone communication protocol to a simulator environment of mobile phone software development. In this way, the mobile phone software development simulator running in the computer has the functions exclusive to the mobile phone and related to a mobile communication protocol, developers can efficiently develop the mobile phone application software in the highly simulated mobile phone simulator development environment by making use of the characteristics of being high in efficiency and convenient to debug of the simulator.

Description

Cell phone software adjustment method and simulator thereof
Technical field
The present invention relates to a kind of efficient mobile phone application software adjustment method; It mainly is the debugging that is used for cell phone software; Adopt this technology can save exploitation, the debug time of mobile phone application software in a large number, improve the efficient of software development and debugging, make the cell phone software debugging of original complicacy become simple.
Background technology
Research and development with regard to the mobile phone application software; From present case; The mobile phone application software exploitation is above spending in the debugging of mobile phone application software and safeguarding most of the time; Mobile phone application software developing and debugging or be in general simulator (simulator) environment, to debug, or be the on-line debugging of realizing with on-line debugging debugging acid (In Circuit Debugger).But all there is corresponding shortcoming in these two kinds of methods.The software architecture of general simulator (simulator) is as shown in Figure 1.
Can find the developer for the MMI software of mobile phone and the software debugging in middle layer, all be to be based upon on the dry run environmental basis of computing machine to cell phone apparatus.But because the limitation of computing machine can only provide and the simulation of equipment function associated, like display, keyboard, timer, operation system function simulation etc.And with the protocol-dependent function of mobile communication, all be that mobile phone is distinctive, all can't realize simulation, like short transmission message, the SIM/UIM card of phone of dialing and mobile phone is used.So a lot of cell phone software bug exist on mobile phone; But on simulator, can't reappear; Let alone debugging, the bug that crashes in the process of for example making a phone call just might be that the data of the wireless module received have problem; And do not have the real-time data of receiving wireless module above the simulator, so can't on general mobile phone simulator, solve this bug.2, be exactly to debug the on-line debugging that debugging acid (In Circuit Debugger) is realized except simulator (simulator) debugging is a kind of in addition with line; The shortcoming of this debugging is to need a large amount of target software compiling (building) of cost and (downloading) time of download; The commissioning device price is also very high; Improved the Development of Software cost; And programmer's integration capability had relatively high expectations; And the debug platform stability of in most cases using debugging acid (like Treace32) to build is not fine, some baffled, that the research staff can't be understood problems often occur, so the work efficiency of the on-line debugging on the mobile phone Target Board is very low.
Summary of the invention
The technical matters that the present invention will solve is for the defective that cost of development is high, development efficiency is low that overcomes prior art, and a kind of cell phone software adjustment method and simulator thereof are provided.
The present invention solves above-mentioned technical matters through following technical proposals:
A kind of cell phone software adjustment method; Its characteristics are; The computing machine that cell phone software exploitation simulator is housed is crossed USB with existing surfing Internet with cell phone cartoon link to each other, write the software sending module then, the instruction of cell phone software being developed simulator sends to card of surfing Internet; Card of surfing Internet is carried out and the protocol-dependent instruction of mobile phone, write software simultaneously and accept that module passes over card of surfing Internet and the protocol-dependent instruction operation result of mobile communication sends in the simulator environment of cell phone software exploitation.
A kind of cell phone software debugging simulator; It comprises mobile phone middle layer module, mobile phone operating system and the computing machine dry run environment module to cell phone apparatus; Its characteristics are that this simulator also comprises mobile phone protocol stack digital simulation module, card of surfing Internet data transmission blocks; The card of surfing Internet data are accepted module, and card of surfing Internet module service layer.
Positive progressive effect of the present invention is: the simulator that moves cell phone software exploitation on computers like this; Has distinctive, the relevant function of mobile phone with mobile communication protocol; The developer can utilize the characteristic of the efficient and convenient debugging of simulator; In this " high emulation " mobile phone simulator development environment, high efficiency exploitation mobile phone application software.
Description of drawings
Fig. 1 is existing cell phone software exploitation simulator Organization Chart.
Fig. 2 is a cell phone software exploitation simulator Organization Chart of the present invention.
Fig. 3 is the software flow pattern of interpolation module of the present invention.
Fig. 4 is card of surfing Internet data transmission flow figure of the present invention.
Fig. 5 is a card of surfing Internet Data Receiving process flow 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.
The overall thought of this method is described below:
1, the computing machine of the surfing Internet with cell phone cartoon being crossed USB mouth and cell phone software research and development usefulness links to each other.
2, software module is sent in invention, and this module can be sent the instruction that comes from general mobile phone simulator to the surfing Internet with cell phone card.These instructions be simulator send with the protocol-dependent instruction of mobile communication, as calling, send note etc. to destination number.
3, software module is accepted in invention, and this module can get access to the return results that obtains after the surfing Internet with cell phone card execution command.The result that will return simultaneously feeds back to the mobile phone simulator.
4, invention mobile phone simulator data are to card of surfing Internet instruction transformation module.What this module was unified converts simulator to AT instruction standard, that card of surfing Internet can be discerned to the request action of card of surfing Internet.The AT instruction is can make card of surfing Internet accomplish corresponding function (as to call; Transmission note etc.) instruction; The data layout that adopts is 27007 protocol specification forms of the standard of 3GPP (the 3rd Generation Partner Project) formulation, and the AT instruction that hereinafter is known is all the same with the AT instruction that proposes here.This module also can convert the instruction execution result that card of surfing Internet returns to the data that simulator can use simultaneously.
5, after accomplishing above-mentioned steps, just can in general cell phone software exploitation simulator, realize the efficient debugging of mobile phone software.
Specifically describe the implementation method and the corresponding concrete performing step of efficient cell phone software debugging technique below:
Utilizing the card of surfing Internet of mobile phone can provide with the characteristic of protocol-dependent all services of mobile phone (as calls; Send note etc.); Document of the present invention goes out to propose following method: write software and send and accept module; Obtain the service relevant that card of surfing Internet provides, accomplish some operations relevant (as calling transmission note etc.) with communication protocol with the mobile communication agreement.The return results of simultaneously card of surfing Internet being served; Send in the simulator environment of mobile phone through encoding and decoding; Make the software development simulator just as the mobile phone of reality, can have network service (as make a phone call, send note etc.) also can obtain the return results of network service.On the basis of figure one, add acquisition mobile phone protocol data module for this reason, proposed new cell phone software debugging exploitation simulator framework.As shown in Figure 2.The module of as can beappreciated from fig. 2 being added comprises card of surfing Internet module service layer, card of surfing Internet data transmission blocks, card of surfing Internet data reception module and mobile phone protocol data analog module.
To add the process flow diagram that the software of module realizes as shown in Figure 3.The realization of card of surfing Internet service layer.Card of surfing Internet service layer; AT instruction that can operative norm; While also can be returned the result behind the operating instruction; Generally be to have chip manufacturer to provide, the chip that is adopted is consistent with the chip for cell phone of being developed, and could guarantee that like this protocol data that simulator obtains is consistent with actual mobile phone protocol data.The card of surfing Internet module make progress network card data transmission and what accept that module provides generally is the serial port drive interface.Following description all is to be based upon on the basis of serial communication (usb communication also to be arranged certainly).
The realization of module is sent and accepted to the card of surfing Internet data.The software flow pattern of this module is respectively like Fig. 4, shown in Figure 5.
For Fig. 4; Card of surfing Internet data transmission blocks process flow diagram, data are to send to card of surfing Internet from simulator to drive, and at first simulator calls the sending module interface with data with the form of AT instruction; Instruction is passed to sending module; Be sent to sending module simultaneously owing to have a lot of instructions in the debug process, so the AT instruction that sending module adopts the format management of formation to receive, sending module deposits the AT instruction in the queue heads node.Take out the rear of queue node then serial ports is sent in the AT instruction that deposits in earlier, drive thereby the AT instruction is sent to card of surfing Internet.So successively the AT instruction is sent to the surfing Internet with cell phone card.Sending module sends to the card of surfing Internet service module with instruction successively, is empty up to formation.For figure five, the card of surfing Internet Data Receiving is meant that simulator accepts data from the card of surfing Internet driver module, and at first data reception module reads through serial ports and reads the card of surfing Internet data, carries out the result after data parsing obtains card of surfing Internet module operation AT instruction then.Owing to having a lot of AT instruction operation results, card of surfing Internet is returned data reception module, the result that data reception module also adopts the format management card of surfing Internet of formation to return equally.Just after obtaining AT instruction operation result after data parsing is intact, operation result is put into the first node of formation, take out the AT instruction operation result that the tail node of formation will before return then and turn back to mobile phone protocol data analog module.Receiver module sends to mobile phone protocol data analog module with return results successively, is empty up to formation.
For mobile phone protocol data analog module.This module mainly contains two effects.First becomes the AT of standard to instruct the simulator data-switching sends to the card of surfing Internet module.Otherwise simple simulator data, card of surfing Internet can't be discerned, and card of surfing Internet is the AT order of criterion of identification only.Second result with card of surfing Internet module execution command converts emulation module institute ability recognition data to, then data is sent to simulator so that supply simulator to use.Because what card of surfing Internet returned only is the data of standard AT command form, simulator is directly to use such data, so must pass through this module converts.Look the data structure that the realistic simulation device uses and decide for data-switching, method differs.
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 (2)

1. cell phone software adjustment method; It is characterized in that; The computing machine that cell phone software exploitation simulator is housed is crossed USB with existing surfing Internet with cell phone cartoon link to each other, write the software sending module then, the instruction of cell phone software being developed simulator sends to card of surfing Internet; Card of surfing Internet is carried out and the protocol-dependent instruction of mobile phone, write software simultaneously and accept that module passes over card of surfing Internet and the protocol-dependent instruction operation result of mobile communication sends in the simulator environment of cell phone software exploitation.
2. a cell phone software is debugged simulator; It comprises mobile phone middle layer module, mobile phone operating system and the computing machine dry run environment module to cell phone apparatus; It is characterized in that this simulator also comprises mobile phone protocol stack digital simulation module, card of surfing Internet data transmission blocks; The card of surfing Internet data are accepted module, and card of surfing Internet module service layer.
CN2010105906103A 2010-12-15 2010-12-15 Mobile phone software debugging method and simulator for mobile phone software Pending CN102567070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105906103A CN102567070A (en) 2010-12-15 2010-12-15 Mobile phone software debugging method and simulator for mobile phone software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105906103A CN102567070A (en) 2010-12-15 2010-12-15 Mobile phone software debugging method and simulator for mobile phone software

Publications (1)

Publication Number Publication Date
CN102567070A true CN102567070A (en) 2012-07-11

Family

ID=46412570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105906103A Pending CN102567070A (en) 2010-12-15 2010-12-15 Mobile phone software debugging method and simulator for mobile phone software

Country Status (1)

Country Link
CN (1) CN102567070A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819450A (en) * 2012-08-21 2012-12-12 惠州Tcl移动通信有限公司 Simulator for simulation of hardware device in mobile terminal and implementation method of simulator
CN106294181A (en) * 2016-08-24 2017-01-04 成都三零嘉微电子有限公司 Smart card software method of testing in service life
CN113535487A (en) * 2020-04-16 2021-10-22 杭州中天微系统有限公司 Test system and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819450A (en) * 2012-08-21 2012-12-12 惠州Tcl移动通信有限公司 Simulator for simulation of hardware device in mobile terminal and implementation method of simulator
CN102819450B (en) * 2012-08-21 2016-08-17 惠州Tcl移动通信有限公司 The simulator of a kind of equipment of analog hardware in the terminal and its implementation
CN106294181A (en) * 2016-08-24 2017-01-04 成都三零嘉微电子有限公司 Smart card software method of testing in service life
CN106294181B (en) * 2016-08-24 2019-02-01 成都三零嘉微电子有限公司 Smart card software service life test method
CN113535487A (en) * 2020-04-16 2021-10-22 杭州中天微系统有限公司 Test system and method

Similar Documents

Publication Publication Date Title
CN102902618B (en) The method of mobile device application development debugging and device
US20150227449A1 (en) Method and device for developing, compiling and debugging
CN103092581A (en) Method and device for setting up Web front-end local development environment
CN102917095A (en) Method and device for testing terminal based on Android
CN103577320A (en) Testing method and system of remote terminals
CN103268288A (en) Remote real machine debugging method and system of mobile terminal application software
CN103747074B (en) mobile monitoring system based on Web server
CN110837466B (en) Embedded software dynamic test method based on source code piling
CN101155174B (en) Remote subscriber interface service implementing method based on common protocol
WO2011088644A1 (en) Simulation system, pc side simulator and agent client at mobile terminal side
CN107948009B (en) Method and model for constructing data interaction channel for PLC protocol test
CN102567070A (en) Mobile phone software debugging method and simulator for mobile phone software
CN101364200B (en) Breakpoint implementing method for embedded MIDlet debugging software
CN101409731A (en) Remote control method for household electrical equipment through IE
CN105682016A (en) Information service and intelligent media system and management method thereof
CN112256615A (en) USB conversion interface device
CN102541727A (en) Program debugging method and system
CN106569972A (en) USB interface-based JTAG one-chip microcomputer wireless emulator and method
CN101577599B (en) Embedded two-computer synchronizing method
CN1320842C (en) Real-time simulation developing method and system for SIM toolkit
CN109460280B (en) Method and terminal for running program
CN103678244A (en) Intelligent device without application processor
CN113704032A (en) Embedded heterogeneous multi-core processor architecture parallel debugging system and method
CN102004667A (en) SOPC (system on programmable chip) software and hardware cooperative system based on Linux
CN101349991A (en) Cooperated design implementing method of embedded type debugging proxy and connecting manager

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120711