CN101840338B - M2M terminal and realization method of secondary development platform thereof - Google Patents

M2M terminal and realization method of secondary development platform thereof Download PDF

Info

Publication number
CN101840338B
CN101840338B CN201010200758.1A CN201010200758A CN101840338B CN 101840338 B CN101840338 B CN 101840338B CN 201010200758 A CN201010200758 A CN 201010200758A CN 101840338 B CN101840338 B CN 101840338B
Authority
CN
China
Prior art keywords
module
symbol
sector application
terminal
globak
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
CN201010200758.1A
Other languages
Chinese (zh)
Other versions
CN101840338A (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 CN201010200758.1A priority Critical patent/CN101840338B/en
Publication of CN101840338A publication Critical patent/CN101840338A/en
Application granted granted Critical
Publication of CN101840338B publication Critical patent/CN101840338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an M2M terminal which comprises a guidance module, a protocol stack module and a configuration data module, a script construction module, an industry application module and a platform module. Simultaneously, the invention also discloses a realization method of an M2M terminal secondary development platform, which comprises the following steps that: before ex-factory, the provider of an M2M communication module in the M2M terminal records the platform module in an independent area in Flash which is invisible to an industry application integrator; and the industry application integrator records the created industry application module to the other independent area in the Flash. The terminal and the method can reduce the time for code linking and burning during the creation process of the secondary development platform.

Description

The implementation method of a kind of M2M terminal and secondary developing platform thereof
Technical field
The present invention relates to mobile communication technology and M2M field, relate in particular to the implementation method of a kind of M2M terminal and secondary developing platform thereof.
Background technology
Along with the development of the communication technology, traditional internet is just towards the direction evolution of mobile Internet and Internet of Things, and at present, carriers in the world have all given great attention to Internet of Things.M2M refers to communicating by letter between machine and machine, is the principal mode of present stage Internet of Things,, in the relevant criterion of formulating M2M, tries hard to maintain the leading position in following competition in each operation commercial city.
Existing M2M application is generally comprised of two parts, as shown in Figure 1, comprising: M2M terminal and M2M system, and M2M terminal communicates by mobile communications network and M2M system; Wherein, described M2M terminal comprises M2M communication module group and sector application; Described M2M system comprises M2M applied business and M2M platform.M2M industrial chain relates to communication chip provider, M2M communications module provider, operator and sector application integrator.M2M communications module provider provides application programming interface (API) and the AT order of standard; Sector application integrator is used these interface exploitation sector applications, and forms M2M terminal, and M2M terminal has coordinated concrete sector application with the M2M applied business in M2M system.
In prior art, the firmware in M2M terminal is all kept in Flash, for the ease of management, each firmware is carried out to partitioned storage, as shown in table 1, is respectively: Bootloader district is boot section, NV district, HeBIN district, physical layer protocol stack district etc.The platform code of the secondary developing platform that M2M communications module provides and sector application code compilation are a complete BIN file, are burnt to BIN district shown in table 1.For the sake of security, other region beyond ChuBIN district is all relevant to communication, and therefore, the region beyond these BIN districts can not opened to sector application integrator conventionally.
Region Purposes
Bootloader district For guiding the startup of whole terminal, for sector application, integrator is invisible
NV district For calibration data, for physical layer protocol stack, for sector application, integrator is invisible
Physical layer protocol stack district Communication protocol stack program, is placed on independently in region, and for sector application, integrator is invisible
BIN district Sector application and communications module executable code storage area, need this region of burning for sector application integrator
Table 1
At present, secondary developing platform offers sector application integrator with the form of library file and header file, in the building process of secondary developing platform, sector application integrator need be compiled as file destination by independently developed each C file, and each file destination is linked as to library file, all library files are linked as an executable file with the library file of secondary developing platform self again, i.e. described BIN file, finally by this BIN burning file to Flash Zhong BIN district.
From the building process of above-mentioned secondary developing platform, can find out that whole executable file had namely both comprised communications module correlative code in BIN file, that is: the platform code in secondary developing platform; Also comprise sector application correlative code, so executable file is larger, causes the required recordable time of sector application integrator longer; In addition,, due to after all sector application codes all need to link together with platform code, could jointly be burnt to BIN region, so whole code link time is also long.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide the implementation method of a kind of M2M terminal and secondary developing platform thereof, can reduce the time of the link of code in secondary developing platform building process and burning.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of M2M terminal, comprising: bootstrap module, protocol stack module and configuration data module; Also comprise: build script module, sector application module and console module; Wherein,
Described structure script module, for building sector application module;
Described sector application module, comprises that sector application integrator builds the part image file of gained by building script module;
Described console module, for carrying out the basic function of secondary developing platform.
Wherein, described sector application module and console module are respectively by burning in the isolated area in Flash.
Wherein, described structure script module structure sector application module is specially:
Each C file of sector application is compiled as to file destination, and each file destination is linked as to part image file.
Wherein, described console module further comprises: platform basic function submodule, symbol table submodule and dynamic load submodule; Wherein,
Described platform basic function submodule, for carrying out the basic function of secondary developing platform;
Described symbol table submodule, for globak symbol and the address corresponding with globak symbol of storage platform basic function submodule;
Described dynamic load submodule for M2M terminal start-up course, is loaded into sector application module in internal memory from FLASH.
Wherein, described globak symbol comprises: global variable and overall situation function; The described address corresponding with globak symbol comprises: the statement address of global variable and the entry address of overall situation function.
The performed load operation of described dynamic load submodule, is specially:
First identify the symbol of not resolving in sector application module, in symbol table submodule, search with described and do not resolve the globak symbol that symbol is identical, according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory.
The present invention also provides a kind of implementation method of M2M terminal secondary developing platform, and the method comprises:
In M2M terminal, the provider of M2M communications module is before dispatching from the factory, by console module burning in Flash in the sightless isolated area of sector application integrator; Sector application integrator is burnt to the sector application module of establishment in another isolated area in Flash.
Wherein, the method for described establishment sector application module is: each C file of sector application is compiled as to file destination, afterwards the file destination of gained is linked as to part image file.
Wherein, in described M2M terminal start-up course, described console module by described sector application module loading in internal memory.
Wherein, described loading is specially:
Dynamic load submodule in console module is first identified the symbol of not resolving in sector application module, in symbol table submodule, search with described and do not resolve the globak symbol that symbol is identical, according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory.
The implementation method of M2M terminal provided by the invention and secondary developing platform thereof, in M2M terminal the provider of M2M communications module before dispatching from the factory, by console module burning in Flash in the sightless isolated area of sector application integrator; Sector application integrator is burnt to the sector application module of establishment in another isolated area in Flash.The present invention is in the process of secondary developing platform that builds terminal, by console module and sector application module respectively burning in Flash in two different regions, sector application module does not need to link with console module, only each file destination of sector application need be linked as after part image file, can be burnt in Flash, do not need to link with console module, therefore, link time is reduced compared with prior art.
In addition, because of part image file, do not comprise console module in namely sector application module, therefore, part image file is little more a lot of than BIN file of the prior art, thereby has saved the required recordable time of sector application integrator.
Accompanying drawing explanation
Fig. 1 is the composition structural representation of existing M2M application;
Fig. 2 is the inner structure schematic diagram of M2M terminal of the present invention;
Fig. 3 is the implementation method schematic flow sheet of M2M terminal secondary developing platform of the present invention;
Fig. 4 is the starting method realization flow schematic diagram of M2M terminal of the present invention.
Embodiment
Basic thought of the present invention is: in M2M terminal the provider of M2M communications module before dispatching from the factory, by console module burning in Flash in the sightless isolated area of sector application integrator; Sector application integrator is burnt to the sector application module of establishment in another isolated area in Flash.
Here, the method for described establishment sector application module is: each C file of sector application is compiled as to file destination, afterwards the file destination of gained is linked as to part image file.
Wherein, the platform code of described secondary developing platform comprises the executable code of M2M communications module, WeiM2M communications module provider provides, for completing the basic function of secondary developing platform, such as: the processing of the realization of operating system interface, the encapsulation of communication protocol, AT order etc.; In the library file and header file of described secondary developing platform, M2M communications module provider only offers sector application integrator by header file, so that sector application integrator arranges sector application relevant interface.
Below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
Fig. 2 is the inner structure schematic diagram of M2M terminal of the present invention, and as shown in Figure 2, M2M terminal comprises: bootstrap module, protocol stack module, configuration data module, console module, sector application module and structure script module; Here, described bootstrap module, protocol stack module and configuration data module are existing ingredient in existing M2M terminal, and three's function, with existing identical, is first simply introduced the function of three existing modules below.
Described bootstrap module, for carrying out the initial guide operation of whole M2M terminal, in operational process, is loaded into console module in internal memory, and carry out the entry address that jumps to afterwards console module;
Described bootstrap module is stored in first region of Flash conventionally, and in Bootloader district, as shown in table 1, this module can directly be moved in Flash; Bootstrap module only has relation with console module, once console module brings into operation, bootstrap module can not rerun.
Described protocol stack module, for carrying out mutual between M2M terminal and mobile radio communication, such as: the transmission of M2M relevant control signaling and data etc.;
Described protocol stack module is also stored in Flash, that is: be stored in the physical layer protocol stack district shown in table 1.
Described configuration data module, comprises needed configuration parameter in protocol stack module operational process, is generally the parameter of acquiescence, and before M2M terminal is dispatched from the factory, these parameters can be through calibrating indicating instrument, to guarantee that the performance of M2M terminal reaches optimum;
Described configuration data module is stored in Flash equally, that is: be stored in the district of NV shown in table 1.
In the present invention, described structure script module, for building sector application module, that is: is compiled as file destination by each C file of sector application, and each file destination is linked as to part image file, be i.e. industry application module;
Here, described part image file sector application module in other words, is executable file not.Described sector application module, comprises that sector application integrator builds the part image file of gained by building script module; In the isolated area of described sector application module stores in Flash, can be made as APP_BIN district.
Described console module, the basic function module that comprises secondary developing platform, but do not comprise the function of sector application module, compared with prior art, console module of the present invention and sector application module are stored in respectively in two zoness of different of Flash, can be made as: PLAT_BIN district and APP_BIN district; And in prior art, these two modules are jointly stored in the district of BIN shown in table 1 after link.
Described console module, for carrying out the basic function of secondary developing platform; The globak symbol that storage platform basic function is corresponding and the address corresponding with globak symbol; Sector application module is loaded in internal memory from FLASH.
Described console module further comprises: platform basic function submodule, dynamic load submodule and symbol table submodule; Wherein,
Described platform basic function submodule, for carrying out the basic function of secondary developing platform, as: the processing of the realization of operating system interface, the encapsulation of communication protocol and AT order etc., conventionally can realize one group of API, for sector application module, call;
Described symbol table submodule, for globak symbol and the address corresponding with globak symbol of storage platform basic function submodule, so that dynamic load submodule is carried out load operation;
Wherein, described globak symbol comprises: global variable and overall situation function; The described address corresponding with globak symbol comprises: the statement address of global variable and the entry address of overall situation function; Globak symbol and address are mutually corresponding.
Described dynamic load submodule for M2M terminal start-up course, is loaded in internal memory by sector application module from FLASH;
Concrete, first identify the symbol of not resolving in sector application module, in symbol table submodule, search with described and do not resolve the globak symbol that symbol is identical, according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory.
Fig. 3 is the implementation method schematic flow sheet of M2M terminal secondary developing platform of the present invention, and as shown in Figure 3, the method comprises the steps:
Step 301: by console module burning in Flash in the sightless isolated area of sector application integrator;
Be specially: before M2M communications module is dispatched from the factory, M2M communications module provider, by the platform code of secondary developing platform, is about to, in the isolated area of console module burning in Flash, can be made as PLAT_BIN district, and this region is invisible concerning sector application integrator.
M2M communications module provider is distributed in the software package of sector application integrator, only has header file, so that sector application integrator arranges sector application relevant interface.
Step 302: each C file of sector application is compiled as to file destination, and each file destination is linked as to part image file;
Be specially: each C file that first sector application integrator develops oneself by structure script module is compiled as file destination, again each file destination is linked as to part image file afterwards, and described part image file is sector application module.Wherein, described part image file is executable file not.
Step 303: all part image files are burnt in the isolated area in Flash;
Be specially: sector application integrator is burnt to the part image file of all-links gained in the isolated area in Flash, and this region is independent of PLAT_BIN district, can be made as APP_BIN district, and the code in this region is sector application module.In burning process, the whole initialization function of sector application is placed on to the start address place in APP_BIN district.M2M terminal flash structure of the present invention forms table can be as shown in table 2.
Region Purposes
Bootloader district For guiding the startup of whole terminal, for sector application, integrator is invisible
NV district For calibration data, for physical layer protocol stack, for sector application, integrator is invisible
Physical layer protocol stack district Communication protocol stack program, is placed on independently in region, and for sector application, integrator is invisible
PLAT_BIN district M2M communications module executable code storage area, for sector application, integrator is invisible
APP_BIN district Sector application part image file storage area, sector application integrator needs this region of burning
Table 2
Below the start-up course of M2M terminal of the present invention is elaborated.
Fig. 4 is the starting method realization flow schematic diagram of M2M terminal of the present invention, and as shown in Figure 4, the performing step of the method is as follows:
Step 401: system powers on, bootstrap module starts, and console module is loaded in internal memory;
Be specially: after M2M terminal system powers on, the code in the Flash that first brings into operation in Bootloader district, namely bootstrap module starts to start, and bootstrap module can directly move in Flash, does not need to be loaded in internal memory to carry out; After bootstrap module starts, by the code in the PLAT_BIN region of Flash, be about to console module and be loaded in internal memory, jump to afterwards the start address of console module.
Step 402: console module is carried out initialization operation;
Be specially: console module is carried out initialization operation, comprise that triggered protocol stack module carries out initialization, and the initialization of other platform basic function.
Step 403: console module judges in FLASH whether have sector application module, if had, performs step 404; If no, perform step 406;
Be specially: console module completes after initialization, no in the APP_BIN region of judgement Flash have a code, judges in APP_BIN region whether have sector application module, if had, continues execution step 404; If no, perform step 406.
Step 404: console module by sector application module loading in internal memory;
Be specially: first the dynamic load submodule in console module identifies the symbol of not resolving in sector application module, in symbol table submodule, search with described and do not resolve the globak symbol that symbol is identical, according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory.
Wherein, the globak symbol of described console module comprises: global variable and overall situation function; The described address corresponding with globak symbol comprises: the statement address of global variable and the entry address of overall situation function.
Here, for effectively by sector application module loading in internal memory, and do not produce and conflict with console module, the present invention reserves two specific regions in internal memory: APP_BIN code area and APP_BIN data field, be respectively used to load code segment and the data segment of industry application module.Because sector application module is executable program not, so in loading procedure, global variable and the overall situation function that must quote console module position, navigate to the statement address of global variable or the entry address of overall situation function.
Step 405: the initialization function of operation sector application module;
Be specially: in internal memory, move the initialization function of sector application module, this process is existing current techique, no longer describe in detail herein.
The start-up course of step 406:M2M terminal finishes.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.

Claims (4)

1. a M2M terminal, comprising: bootstrap module, protocol stack module and configuration data module; It is characterized in that, also comprise: build script module, sector application module and console module; Wherein,
Described structure script module, for each C file of sector application is compiled as to file destination, and is linked as part image file by each file destination;
Described sector application module, comprises that sector application integrator builds the part image file of gained by building script module;
Described console module, for carrying out the basic function of secondary developing platform, globak symbol in storage platform module and the address corresponding with globak symbol, and the symbol of not resolving identify sector application module in M2M terminal start-up course in, in stored globak symbol, search with described and do not resolve the globak symbol that symbol is identical, according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory;
Described sector application module and console module respectively by burning in Flash independently in region.
2. M2M terminal according to claim 1, is characterized in that, described console module further comprises: platform basic function submodule, symbol table submodule and dynamic load submodule; Wherein,
Described platform basic function submodule, for carrying out the basic function of secondary developing platform;
Described symbol table submodule, for globak symbol and the address corresponding with globak symbol of storage platform basic function submodule;
Described dynamic load submodule, for M2M terminal start-up course, the symbol of not resolving in identification sector application module, in symbol table submodule, search with described and do not resolve the globak symbol that symbol is identical, according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory.
3. M2M terminal according to claim 1 and 2, is characterized in that, described globak symbol comprises: global variable and overall situation function; The described address corresponding with globak symbol comprises: the statement address of global variable and the entry address of overall situation function.
4. an implementation method for M2M terminal secondary developing platform, is characterized in that, the method comprises:
In M2M terminal, the provider of M2M communications module is before dispatching from the factory, by console module burning in Flash in the sightless isolated area of sector application integrator; Sector application integrator is compiled as file destination by each C file of sector application, generates sector application module, and sector application module is burnt in another isolated area in Flash thereby afterwards the file destination of gained is linked as to part image file; In M2M terminal start-up course, the symbol of not resolving in console module identification sector application module, in the globak symbol of storing at console module, search with described and do not resolve the globak symbol that symbol is identical, and according to searching the globak symbol of gained and the mapping relations of address, each code segment in sector application module is copied in internal memory.
CN201010200758.1A 2010-06-11 2010-06-11 M2M terminal and realization method of secondary development platform thereof Active CN101840338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010200758.1A CN101840338B (en) 2010-06-11 2010-06-11 M2M terminal and realization method of secondary development platform thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010200758.1A CN101840338B (en) 2010-06-11 2010-06-11 M2M terminal and realization method of secondary development platform thereof

Publications (2)

Publication Number Publication Date
CN101840338A CN101840338A (en) 2010-09-22
CN101840338B true CN101840338B (en) 2014-04-09

Family

ID=42743725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010200758.1A Active CN101840338B (en) 2010-06-11 2010-06-11 M2M terminal and realization method of secondary development platform thereof

Country Status (1)

Country Link
CN (1) CN101840338B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023867B (en) * 2010-12-17 2015-10-21 中兴通讯股份有限公司 A kind of terminal secondary development device and secondary developing platform construction method
CN102750157A (en) * 2011-04-20 2012-10-24 中兴通讯股份有限公司 Application program loading method and device
CN103500097A (en) * 2013-09-27 2014-01-08 北京航天金盾科技有限公司 Method for developing secondary development platform
CN108304199A (en) * 2018-02-11 2018-07-20 四川虹美智能科技有限公司 A kind of design method and device of household appliance chip

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730136A (en) * 2009-11-26 2010-06-09 中国电信股份有限公司 Processing method and system for M2M terminal call

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI20030943A (en) * 2003-06-25 2004-12-26 Nokia Corp Procedure for configuring parameters for a machine-to-machine module and a machine-to-machine module

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730136A (en) * 2009-11-26 2010-06-09 中国电信股份有限公司 Processing method and system for M2M terminal call

Also Published As

Publication number Publication date
CN101840338A (en) 2010-09-22

Similar Documents

Publication Publication Date Title
CN100378661C (en) System and method for bi-directional communication and execution of dynamic instruction sets
CN107707614B (en) System hop protocol-based app routing implementation method, device and storage medium
CN108376073B (en) Test software package generation method and terminal
CN102023867B (en) A kind of terminal secondary development device and secondary developing platform construction method
CN101963915A (en) Building method of compilation and system thereof
CN101840338B (en) M2M terminal and realization method of secondary development platform thereof
CN105335187A (en) Application processing method and apparatus
CN104636147A (en) Cross-platform mobile application implementation method and cross-platform mobile application implementation system
CN108829477A (en) Interface jump method, device, computer equipment and storage medium
KR20040022451A (en) Embedded software update system
CN104683386A (en) Pile service implementation method and device capable of customizing response
CN101937356B (en) Method for compiling WebKit browser and device thereof
CN103455381A (en) Method and system for de-serializing source object of source software into target software component
CN104866293A (en) Method and device for extending Android application program function
CN105718289A (en) Component relationship establishing method and equipment
CN102799437B (en) A kind of compilation script automatic generation method and automatically generating device
EP4250593A1 (en) Satellite terminal access management method, core network, computer apparatus, and storage medium
CN111045714A (en) Firmware updating method and device, earphone and computer readable storage medium
CN108037933B (en) Method and system for configuring urban service in real estate service application program
CN115658042A (en) Hybrid application component type development method, system, device and storage medium
CN105867862A (en) Application program interface display method and device
CN110209983B (en) Method and device for deploying web project of webpage
CN106502750B (en) OTA upgrade method and Bluetooth chip
US20100153088A1 (en) Sensor node included in sensor network, update server updating the same, and method of updating sensor node
CN112506518B (en) Compiling method and device based on configuration file

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