CN102023867B - A kind of terminal secondary development device and secondary developing platform construction method - Google Patents

A kind of terminal secondary development device and secondary developing platform construction method Download PDF

Info

Publication number
CN102023867B
CN102023867B CN201010593919.8A CN201010593919A CN102023867B CN 102023867 B CN102023867 B CN 102023867B CN 201010593919 A CN201010593919 A CN 201010593919A CN 102023867 B CN102023867 B CN 102023867B
Authority
CN
China
Prior art keywords
platform
software
development
industry applications
development interface
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.)
Active
Application number
CN201010593919.8A
Other languages
Chinese (zh)
Other versions
CN102023867A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010593919.8A priority Critical patent/CN102023867B/en
Publication of CN102023867A publication Critical patent/CN102023867A/en
Application granted granted Critical
Publication of CN102023867B publication Critical patent/CN102023867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes a kind of secondary developing platform construction method and secondary terminals development approach, and described method comprises: be separated with industrial application software by platform software; Platform software is compiled into platform executable image, and downloads in communication module group hardware in advance; Platform software determines whether load industry applications executable image according to external command, if will load, then jumps to industry applications reflection entry address and performs; Secondary developing platform provides secondary development software package, comprises second development interface in software package, completes industry applications calling second development interface; Platform software is responsible for the functional realiey of second development interface.Compared with prior art, adopt technical solutions according to the invention, sector application terminal secondary development efficiency can be improved, and the standalone upgrade of implementation platform software and industrial application software can be distinguished, be convenient to safeguard.

Description

A kind of terminal secondary development device and secondary developing platform construction method
Technical field
The present invention relates to communication technical field, particularly relate to a kind of terminal secondary development device and secondary developing platform construction method.
Background technology
Internet of Things is on the basis of computer internet, the technology such as fusing wireless data communication, constructs the network that covers world's all things on earth, thus the information realized between article is interconnected and shared.M2M (machineto machine) is all technology and means that connect between machine, along with the development of mobile communication technology, M2M related service becomes explosive growth with product, the various aspects of national economy are penetrated into, in the existing application of the industries such as environmental monitoring, Smart Home, intelligent grid, automatic data logging, promoting the change of social production and a life style new round.
M2M terminal present stage Main Morphology be with the network of communication access mobile operator, final realize the communication with sector application management service platform.The development scheme of a kind of main flow of M2M terminal is on the basis that wireless telecommunications module has software and hardware function, the second development interface utilizing platform software to provide carries out secondary development, and existing secondary developing platform adopts sector application and platform code to be coupled mostly.When causing industrial application software to be developed like this, compile efficiency is lower, and industrial application software and platform software finally generate an overall executable image file, can not implementation platform and sector application standalone upgrade, is unfavorable for the performance maintenance of terminal.
Summary of the invention
For achieving the above object, the present invention proposes a kind of terminal Secondary and device, can improve sector application terminal secondary development efficiency.
A kind of secondary developing platform construction method, it comprises:
Platform software is separated with industrial application software;
Platform software is compiled into platform executable image, and downloads in communication module group hardware in advance;
Platform software determines whether load industry applications executable image according to external command, if will load, then jumps to industry applications reflection entry address and performs;
Secondary developing platform provides secondary development software package, comprises second development interface in software package, completes industry applications calling second development interface;
Platform software is responsible for the functional realiey of second development interface.
Further, before platform software determines whether load industry applications executable image according to external command, platform software realizes second development interface function, when compiling link, the function pointer of second development interface function is fixed on a memory address determined, and for industry applications reflection loading and perform reserved memory headroom.
Further, the second development interface in described secondary development software package, by determining the second development interface function pointer on address in redirect access platform Bootload space, completes calling of second development interface.
Further, the loading of described industry applications executable image comprises:
Platform executable image is loaded in internal memory and runs;
Platform program completes the relevant initialization of platform self, comprises hardware initialization, protocol stack initialization;
Platform code brings into operation, and waits for the instruction loading industry applications;
Platform program receives the instruction effectively loading industry applications, industry applications reflection is loaded on internal memory, and jumps to sector application executable image entry address;
Perform industry applications, industrial application software brings into operation.
Further, the calling of second development interface of described industry applications and platform software comprises alternately:
Industry applications run;
Industry applications call second development interface;
The second development interface of industry applications carries out the second development interface in address redirect access platform software;
Platform software performs second development interface function;
After platform software secondary development function is finished, turns back to industry applications and continue to run.
A kind of terminal secondary development device, it is characterized in that, described secondary development device comprises secondary developing platform, and described secondary developing platform comprises platform software, secondary development software package;
Described secondary developing platform provides second development interface;
Whether described platform software loads industrial application software executable image according to external command decision, if loaded, then loads rear and jumps to the entry address execution of industry applications reflection;
Platform software is compiled into platform executable image, and downloads in communication module group hardware in advance;
Described secondary development software package provides second development interface, so that User Exploitation industrial application software for user.
Further, described platform software and industrial application software independently compiling link generate two independently executable image files.
Further, described secondary development software package is for developing industrial application software, and industrial application software and second development interface storehouse are built by compiling link script, generates independently sector application executable image file.
Further, before platform software determines whether load industry applications executable image according to external command, platform software realizes second development interface function, when compiling link, the function pointer of second development interface function is fixed on a memory address determined, and for industry applications reflection loading and perform reserved memory headroom.
Further, the second development interface in described secondary development software package, by determining the second development interface function pointer on address in redirect access platform Bootload space, completes calling of second development interface.
The invention has the beneficial effects as follows: compared with prior art, adopt technical solutions according to the invention, sector application terminal secondary development efficiency can be improved, and the standalone upgrade of implementation platform software and industrial application software can be distinguished, be convenient to safeguard.
Accompanying drawing explanation
Fig. 1 is the sector application of traditional secondary development platform and platform software architecture schematic diagram;
Fig. 2 is embodiment of the present invention terminal secondary development device composition schematic diagram;
Fig. 3 is platform construction schematic flow sheet in embodiment of the present invention terminal Secondary;
Fig. 4 is the load and execution schematic flow sheet of the industry applications in embodiment of the present invention terminal Secondary;
Fig. 5 is in embodiment of the present invention terminal Secondary, after industry applications run, and the reciprocal process schematic diagram of the second development interface of sector application and platform software.
Embodiment
Main thought of the present invention is: be separated with industrial application software by platform software; Platform software is compiled into platform executable image, and downloads in communication module group hardware in advance; Platform software determines whether load industry applications executable image according to external command, if will load, then jumps to industry applications reflection entry address and performs; Secondary developing platform provides secondary development software package, comprises second development interface in software package, completes industry applications calling second development interface; Platform software is responsible for the functional realiey of second development interface.
Below in conjunction with the drawings and specific embodiments, technical solution of the present invention is described in detail.
As shown in Figure 1, the sector application of traditional secondary development platform and platform software architecture schematic diagram, the sector application of traditional secondary development platform is together with close-coupled with platform software, industry applications cannot standalone upgrade, compiling link together with platform software is needed during structure, length consuming time, efficiency is low.Sector application is separated with platform software by secondary developing platform of the present invention, generates two independently executable images, and is connected with platform software by industrial application software by second development interface.
Please refer to shown in Fig. 2, it is embodiment of the present invention terminal secondary development device composition schematic diagram, it comprises secondary developing platform, and described secondary developing platform comprises: secondary developing platform software, secondary development software package, communication module group hardware and secondary development specification documents.
Platform software and industrial application software independently compiling link generate two independently executable image files.Platform executable image file is burnt in communication module group in advance.Complete the basic hardware initialization of M2M terminal, protocol stack initialization etc., for sector application provides the second development interface of the main professional atility such as other communications protocol comprising note, voice, data transmission and customization, and be responsible for receiving load instructions, carry out the loading of sector application executable image.
Platform software is compiled translator by platform provider or other and is compiled into platform executable image, and downloads in advance in communication module group hardware.
Platform software need not be open to sector application.The platform executable image file generated after platform software compiling is burnt in communication module group in advance, when there is no sector application firmware, firmware in communication module group still can normal independent operating, has common communication function, supports AT order and basic telecommunications business.
Secondary development software package is for developing industrial application software, and industrial application software and second development interface storehouse are built by compiling link script, generates independently sector application executable image file.Secondary development software package comprises second development interface storehouse, function header file, compiling link script module, and user uses this kit to develop specific industry applications.Sector application developer uses secondary development Development of Software Package, and passed through by compiled sector application executable image file after in replication tool programming to communication module group, this communication module group just becomes the M2M terminal with specific industry application function.Sector application image file can download in the file system of terminal by network or preserve in nonvolatile memory by the edition upgrading of SS later, reloads.
Especially, platform software is when carrying out compiling link, and need to load description document by amendment dispersion, the load operating for industrial application software reserves the special region of memory of next block.
In the present embodiment, terminal program running memory space address is 0x2,000 0000 ~ 0x23FF FF00, and wherein platform software is reserved 0x2,150 0000 ~ 0x2,170 0000 this section of memory headroom and used to industry applications.Sector application map program is when compiling link, and being loaded into address is 0x2,150 0000, and entry address is 0x2,150 0000.
Because sector application executable image is separated with platform executable image, need to set up corresponding relation between the second development interface of two executable images, complete actual interface interchange.Secondary developing platform of the present invention, has the realization of second development interface with the software of secondary development bag in platform software.
Wherein, platform software realizes second development interface concrete function.
Especially, platform software needs the address of the function pointer of second development interface in internal memory to fix.
Preferably, the present embodiment defines an array api_array in platform software, second development interface function pointer is left in this array according to certain order, by amendment scatter-loading file, the load address of this array is fixed on memory address 0x20750000.
In secondary development bag, the realization of second development interface is function pointer redirect, jumps to the array of pointers api_array that memory address 0x20750000 place stores, and calls this second development interface by access second development interface function pointer wherein.
Communication module group hardware is used for transmission and the communication of information.
The realization of second development interface is had with the software of secondary development bag, for realizing videoing the interface interchange after being separated in platform software.
Please refer to shown in Fig. 3, be the structure schematic flow sheet of platform in embodiment of the present invention terminal Secondary, it comprises:
S301: secondary developing platform provides a set of second development interface;
S302: platform software realizes second development interface function;
When compiling link, the function pointer of second development interface function is fixed on a memory address determined, and for industry applications reflection loading and perform reserved memory headroom.
S303: platform software determines whether load industry applications executable image according to external command, and jump to the execution of application program image entry address;
S304: the independent compilation of platform software code becomes platform executable image, and download in communication module group hardware in advance;
S305: secondary developing platform provides a secondary development software package, completes calling of real second development interface.
Second development interface in secondary development software package, by determining the second development interface function pointer on address in redirect access platform Bootload space, completes calling of real second development interface.
Please refer to shown in Fig. 4, be the load and execution schematic flow sheet of the industry applications in embodiment of the present invention terminal Secondary, it comprises:
S401: terminal powers on;
S402: platform executable image is loaded in internal memory and runs;
S403: platform program completes the relevant initialization of platform self, comprises hardware initialization, protocol stack initialization etc.;
S404: platform code brings into operation, and wait for the instruction loading industry applications;
This steering order can be handed down to communicating terminal by number of ways such as short message, voice call, local AT orders;
S405: judge whether to load industry applications, if so, then proceed to step S406, if not, then proceed to step S404.
Platform program receives the instruction loading industry applications, judges, if this instruction is not effective instruction, then returns to step S404; If this instruction is effective, then carry out step S406;
S406: industry applications reflection is loaded on internal memory, and jumps to sector application executable image entry address;
The sector application executable image be stored in file system be loaded in reserved memory headroom 0x2,150 0000 ~ x2170 0000, then jump to this memory address 0x2,150 0000, i.e. the program entry address of sector application executable image is gone to run.
S407: perform industry applications, industrial application software brings into operation.
Shown in figure 5, be in embodiment of the present invention terminal Secondary, after industry applications run, the reciprocal process schematic diagram of the second development interface of sector application and platform software, it comprises:
S501: industry applications run user code;
S502: user program calls second development interface;
S503: the second development interface of user program side carries out address redirect access;
The array of pointers api_array that access memory 0x20750000 place stores, calls corresponding function pointer, completes calling platform software second development interface function;
S504: platform side software performs second development interface function;
S505: after secondary development function is finished, turns back to industry applications and continues to run.
In sum, embodiments provide a kind of terminal secondary developing platform supporting industrial application software to be separated with platform software, industrial application software is when compiling, only need to link second development interface storehouse, and do not need to link together with platform software, improve the development efficiency of industrial application software, and support the standalone upgrade of sector application and platform software.
Described above is only preferred embodiments of the present invention; certainly interest field of the present invention can not be limited with this; therefore; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art can make various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (4)

1. a secondary developing platform construction method, it comprises:
Platform software is separated with industrial application software;
Platform software is compiled into platform executable image, and downloads in communication module group hardware in advance;
Platform software realizes second development interface function, and when compiling link, the function pointer of second development interface function is fixed on a memory address determined, and for industry applications reflection loading and perform reserved memory headroom;
Platform software determines whether load industry applications executable image according to external command, if will load, then jumps to industry applications reflection entry address and performs;
Secondary developing platform provides secondary development software package, second development interface storehouse is comprised in secondary development software package, complete industry applications calling second development interface, described secondary development software package is for developing industrial application software, industrial application software and second development interface storehouse are built by compiling link script, generate industry applications executable image, set up corresponding relation between the second development interface of described sector application executable image and platform executable image, complete calling of second development interface;
Platform software is responsible for the functional realiey of second development interface.
2. the method for claim 1, is characterized in that, the second development interface in described secondary development software package, by determining the second development interface function pointer on address in redirect access platform Bootload space, completes calling of second development interface.
3. the method for claim 1, is characterized in that, the loading of described industry applications executable image comprises:
Platform executable image is loaded in internal memory and runs;
Platform program completes the relevant initialization of platform self, comprises hardware initialization, protocol stack initialization;
Platform code brings into operation, and waits for the instruction loading industry applications;
Platform program receives the instruction effectively loading industry applications, industry applications reflection is loaded on internal memory, and jumps to sector application executable image entry address;
Perform industry applications, industrial application software brings into operation.
4. the method for claim 1, is characterized in that, the calling of second development interface of described industry applications and platform software comprises alternately:
Industry applications run;
Industry applications call second development interface;
The second development interface of industry applications carries out the second development interface in address redirect access platform software;
Platform software performs second development interface function;
After platform software secondary development function is finished, turns back to industry applications and continue to run.
CN201010593919.8A 2010-12-17 2010-12-17 A kind of terminal secondary development device and secondary developing platform construction method Active CN102023867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010593919.8A CN102023867B (en) 2010-12-17 2010-12-17 A kind of terminal secondary development device and secondary developing platform construction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010593919.8A CN102023867B (en) 2010-12-17 2010-12-17 A kind of terminal secondary development device and secondary developing platform construction method

Publications (2)

Publication Number Publication Date
CN102023867A CN102023867A (en) 2011-04-20
CN102023867B true CN102023867B (en) 2015-10-21

Family

ID=43865189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010593919.8A Active CN102023867B (en) 2010-12-17 2010-12-17 A kind of terminal secondary development device and secondary developing platform construction method

Country Status (1)

Country Link
CN (1) CN102023867B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577172A (en) * 2012-07-30 2014-02-12 无锡梵天信息技术股份有限公司 Graphic processing engine system
CN103500097A (en) * 2013-09-27 2014-01-08 北京航天金盾科技有限公司 Method for developing secondary development platform
CN103617044B (en) * 2013-12-10 2017-02-15 北京市计算中心 Control method for secondary development program execution
CN105938337B (en) * 2016-01-18 2020-04-17 中山市巨创电子科技有限公司 Secondary development cloud platform of microcomputer controller and use method
CN107357605A (en) * 2017-06-01 2017-11-17 北京趣拿软件科技有限公司 The method and apparatus for running installation file
CN108804085B (en) * 2018-06-04 2021-11-05 厦门夏新移动通讯有限公司 Low-cost high-integration programmable mobile code scanning system and generation method thereof
CN111488139B (en) * 2019-01-25 2023-01-31 成都鼎桥通信技术有限公司 Cluster service secondary development method based on private network terminal
CN111209008A (en) * 2020-04-17 2020-05-29 北京全路通信信号研究设计院集团有限公司 Software separation design method and system
CN114461187A (en) * 2021-12-29 2022-05-10 深圳市正运动技术有限公司 Programming method and system of motion controller, terminal device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329627A (en) * 2008-07-29 2008-12-24 上海众恒信息产业有限公司 Secondary developing platform based on data model
CN101582029A (en) * 2009-06-05 2009-11-18 中兴通讯股份有限公司 System and method for realizing embedded application
CN101840338A (en) * 2010-06-11 2010-09-22 中兴通讯股份有限公司 M2M terminal and realization method of secondary development platform thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329627A (en) * 2008-07-29 2008-12-24 上海众恒信息产业有限公司 Secondary developing platform based on data model
CN101582029A (en) * 2009-06-05 2009-11-18 中兴通讯股份有限公司 System and method for realizing embedded application
CN101840338A (en) * 2010-06-11 2010-09-22 中兴通讯股份有限公司 M2M terminal and realization method of secondary development platform thereof

Also Published As

Publication number Publication date
CN102023867A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN102023867B (en) A kind of terminal secondary development device and secondary developing platform construction method
KR101882426B1 (en) Software updating method, system, and device
US8898662B2 (en) Method and device for generating software installation packet
CN101937356B (en) Method for compiling WebKit browser and device thereof
US9710288B2 (en) Method and device for loading application program
CN111045714B (en) Firmware updating method and device, earphone and computer readable storage medium
CN102404395A (en) Method for switching multiple operation systems for mobile terminal based on cloud compute
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
CN104063239A (en) Application program update method of mobile terminal, server and client
CN101706725A (en) Method and system for loading and debugging relocatable program
CN101931603A (en) Method for realizing remote call on hand-held intelligent terminal
CN103177104A (en) Searching method and device of application program
CN102681893A (en) Cross-platform implementation method for executable programs and mobile terminal
CN103716346A (en) Management method and device of application on android handset client
CN104572054A (en) Capability calling method and capability calling equipment
CN103377079A (en) Terminal, device and method for terminal application running and application program running method
CN102404149A (en) Management system and method of service characteristics
CN100441012C (en) A method for update of mobile terminal subscriber interface
CN102760075A (en) Method and system for realizing application configuration of intelligent card
CN106201588A (en) The method for upgrading software of terminal and terminal
CN104793998B (en) Terminal system resource management method and device
CN107562499A (en) Using the method, apparatus and computer-readable recording medium of loading
CN102591684A (en) Software updating method
CN101840338B (en) M2M terminal and realization method of secondary development platform thereof
CN100568178C (en) A kind of control adding 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