A kind of embedded software developing emulation platform of communicating terminal and application thereof
Technical field
The present invention relates to a kind of embedded software development platform, in particular a kind of embedded software developing emulation platform of communicating terminal and application thereof.
Background technology
Along with widely using of various communicating terminal, the application of embedded software is also more and more extensive.After but the hardware platform of the communicating terminal that the exploitation of the embedded software of existing communication terminal product will be applied at it is shaping, could be designed on this hardware platform by software developer, write, debugging.This serial development scheme also exists following defect: one, product development cycle is long.Because product hardware and software exploitation be serial in time, software developer only in the shaping rear exploitation just carrying out software program of hardware, so its development time must grow relative to the product of other hardware and software synchronous development.Two, the extent for multiplexing of software self is low.Because the software interface that each hardware platform provides is different, so the exploitation of the software of each end product needs accent to start, the software of original exploitation cannot reuse.Be unfavorable for reusing and accumulation of technology like this, development mode can not be unified.Three, the debug difficulties of software program.When application program is debugged, application developer can not depart from hardware platform and remove debugging utility, mistake in debug process may be caused by software, also may be caused by hardware, so program staff must have the debugging that certain hardware grounding in basic skills just can complete program.Four, cost of development is high.Because the exploitation of software must be carried out on a hardware platform, so a set of hardware platform will be equipped with for each software developer, cost of development can be made undoubtedly greatly to increase.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The object of the present invention is to provide a kind of embedded software developing emulation platform and application thereof of communicating terminal, develop that the product development cycle that causes is long, software repeated usage degree is low to solve communicating terminal serial in above-mentioned prior art, the debug difficulties of software program and cost of development high-technology problem.
Technical scheme of the present invention is as follows:
An embedded software developing emulation platform for communicating terminal, wherein, comprises exploitation debugging module, API module, SDK development support module and simulation run module; Described exploitation debugging module is used for exploitation and the debugging of source code; Described API module is used for for exploitation debugging module provides unified software development interface; Described SDK development support module is used for compiling source code into binary code and is linked to described simulation run module; Described binary code for simulating the hardware environment of described communicating terminal on PC, and is loaded in the hardware environment of simulation run module simulation communicating terminal out and runs by described simulation run module, then to described exploitation debugging module back-to-back running parameter.
The embedded software developing emulation platform of described communicating terminal, wherein, described exploitation debugging module is Visual Studio C++ Integrated Development Tool.
The embedded software developing emulation platform of described communicating terminal, wherein, described SDK development support module 1 comprises collector and link module.
An application for the embedded software developing emulation platform of communicating terminal, wherein, comprises the following steps:
S01: the exploitation carrying out source code in exploitation debugging module based on the unified interface in API module;
S02:SDK development support module compiles source code into the binary code that can run under PC environment, and is linked to simulation run module;
S03: simulation run module obtains the hardware revision information of communicating terminal and emulate the hardware environment of communicating terminal on PC, reloads binary code and runs, and to exploitation debugging module back-to-back running parameter;
S04: according to the hardware revision information of communicating terminal, simulation run module judges whether source code meets the demand of communicating terminal:
If do not meet, then perform step S05: according to operational factor, source code education is being changed in exploitation debugging module, and repeating step S02, S03, S04;
If meet, then terminate.
The present invention, by setting up the emulation platform of communicating terminal, makes the exploitation of communicating terminal embedded software depart from hardware platform, and directly runs on this emulation platform, improve the efficiency of software development, reduce cost of development.And the present invention also provides unified interface for the embedded software developing of all communicating terminals, improves the reusability of software.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of the embedded software developing emulation platform of communicating terminal in the present invention.
Fig. 2 is an embedded software developing emulation platform module relation diagram of communicating terminal in the present invention.
Fig. 3 is the applicating flow chart of the embedded software developing emulation platform of communicating terminal in the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.
The embedded software developing emulation platform of communicating terminal of the present invention, as shown in Figure 1, the embedded software developing emulation platform 10 of communicating terminal comprises exploitation debugging module 101, API (Application Programming Interface, application programming interface) module 102, SDK (Software Development Kit, SDK (Software Development Kit)) development support module 103 and simulation run module 104.Wherein API module 102 mainly comprises the control of LCD display module interface, character base module interface, input method module interface, multilingual support module interface, tcp/ip communication module interface, serial communication modular interface, Keysheet module interface, wireless communicaltion module access, battery management module interface, document management module interface, system debug module interface, magnetic card module for reading and writing interface and printer and output interface etc.
Develop debugging module 101 writing and debugging for source code in the present invention, this module can be the SDK (Software Development Kit) such as Visual Studio C++ Integrated Development Tool.API module 102 is for providing unified software development interface, to improve the reusability of software for exploitation debugging module 101.SDK development support module 103 comprises collector and link module, in emulation platform provided by the invention, collector primary responsibility compiles source code into according to optimum configurations the binary code that simulation run module 104 can perform, and when there is actual hardware terminal environment, collector also can compile source code into the binary code that can run on hardware terminal; Link module is mainly used in the link of the hardware terminal environment to simulation run module 104 or reality.Simulation run module 104 for simulating the hardware environment of described communicating terminal on PC, and described binary code is loaded in the hardware environment of simulation run module simulation communicating terminal out and runs, then to described exploitation debugging module 101 back-to-back running parameter.The operational factor that software developer feeds back according to simulation run module 104 is again modified to source code, until source code meets the requirement of hardware terminal in exploitation debugging module 101.Simulation run module 104 mainly comprises the submodule that the corresponding needs of all and simulated terminals such as wireless telephone emulation submodule, serial ports emulation submodule, TPC/IP emulates submodule, file management emulates submodule, PPP emulates submodule, LCD emulates submodule, keyboard simulation submodule, terminal interface emulation submodule emulate.
As shown in an embedded software developing emulation platform module relation diagram of communicating terminal in Fig. 2 the present invention, API module 102 provides unified software development interface for developing debugging module 101, source code in exploitation debugging module 101 is sent to SDK development support module 103 to carry out compiling and linking, simulation run module 104 loads and runs the binary code that compilation of source code and chain take over by SDK development support module 103, and operational factor is fed back to exploitation debugging module 101, source code is modified in exploitation debugging module 101 by software developer, until it meets the requirement of hardware platform.
As shown in the applicating flow chart of the embedded software developing emulation platform of communicating terminal in Fig. 3 the present invention, application of the present invention comprises the following steps:
S01: the exploitation carrying out source code in exploitation debugging module based on the unified interface in API module.As software developer utilizes Visual Studio C++ Integrated Development Tool to carry out the exploitation of source code based on the Software Development interface that API module provides.
S02:SDK development support module compiles source code into the binary code that can run under PC environment, and is linked to simulation run module.SDK development support module compiles the source code that exploitation debugging module transmits, and converts it into the binary code that simulation run module can be run under PC environment.
S03: simulation run module obtains the hardware revision information of communicating terminal and emulate the hardware environment of communicating terminal on PC, reloads binary code and runs, and to exploitation debugging module back-to-back running parameter.
S04: according to the hardware revision information of communicating terminal, simulation run module judges whether source code meets the demand of communicating terminal.If do not meet, perform step S05: according to operational factor, source code is modified in exploitation debugging module, and repeat step S02, S03, S04; If meet, then the end-of-development of source code.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.