CN101630257A - Embedded system structure - Google Patents

Embedded system structure Download PDF

Info

Publication number
CN101630257A
CN101630257A CN200910136316A CN200910136316A CN101630257A CN 101630257 A CN101630257 A CN 101630257A CN 200910136316 A CN200910136316 A CN 200910136316A CN 200910136316 A CN200910136316 A CN 200910136316A CN 101630257 A CN101630257 A CN 101630257A
Authority
CN
China
Prior art keywords
function
shelves
setting
controller
wan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910136316A
Other languages
Chinese (zh)
Other versions
CN101630257B (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.)
ADVANCE MULTIMEDIA INTERNET TECHNOLOGY Inc
Original Assignee
ADVANCE MULTIMEDIA INTERNET TECHNOLOGY Inc
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 ADVANCE MULTIMEDIA INTERNET TECHNOLOGY Inc filed Critical ADVANCE MULTIMEDIA INTERNET TECHNOLOGY Inc
Priority to CN2009101363162A priority Critical patent/CN101630257B/en
Publication of CN101630257A publication Critical patent/CN101630257A/en
Application granted granted Critical
Publication of CN101630257B publication Critical patent/CN101630257B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an embedded system structure capable of dynamically adjusting, comprising at least a functional element for providing the function of an embedded system, a database for storing a plurality of setting values, state values and original setting ranges corresponding to the functional element and a controller which is connected with the functional element and comprises a processor connected with the database. The processor correspondingly substitutes the values of the original setting ranges of the functional element through accessing the database so as to generate a corresponding setting range; the controller coordinates the running of the functional element according to the state values; and the functional element runs by following the setting range according to the coordination of the controller. In the invention, the state values and the setting values can be uniformly managed through the database so that the development efficiency is greatly improved, and the development time cost of the embedded system is reduced.

Description

Embedded system structure
Technical field
The present invention relates to a kind of embedded system (embedded system) framework, the particularly a kind of embedded system structure that can dynamically adjust.
Background technology
Progress along with science and technology, the exploitation of embedded system begins to be paid attention to by people, the design of product is more and more exquisiter and diversified, to satisfy people's demand, in general, embedded system is made up of at least one microprocessor or microcontroller that comes correspondence to execute the task with the program that writes in advance, reaches the function of correspondence with the running of each element in this microprocessor controls system.
Embedded system is different from the operating system of computer the inside, most embedded system designs at particular task, do not need as operating system comprehensive, therefore, most of adopt a storage element (for example: memory body) store the setting value of this system by the data structure of correspondence, the developer of this system gets final product according to the procedure code that will carrying out of task is write customization (customized) again.
Yet, the procedure code of customization often depends on the style (codingstyle) that the developer writes for program, different people has different styles, if and former developer leaves office, follow-up catcher maintenance or the personnel that upgrade must take time and understand and the editor Format that adapts to script, and need inspect total system and this data structure again, make follow-up maintenance with more increased many unnecessary time costs newly.
In addition, this microcontroller is for each interelement running in the control system effectively, this microcontroller must be when this system moves, constantly call out function (function) by program, inspect diffusing mixing by this function in the state of each element, to guarantee the stable of this system and correctly to execute the task, just increased the burden in the System Operation thus, also increased the complexity of this microcontroller program design.
Therefore, how can dynamically update the state of setting value and each element of monitoring in system documentation's structure by a kind of means that can dynamic access, reach the high stability of system in running, and not take the procedure code that control was rewritten or rewritten to a large amount of mental and physical efforts in the time of need or not safeguarding in future upgrading, be the positive improved direction of research and development of the relevant dealer of embedded system development institute now to solve effect that traditional Embedded System Design fails to reach.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of embedded system structure that can dynamically adjust the element function, so that embedded system can be upgraded or displacement elements fast, improves the development efficiency of general embedded system and reduces the time cost of developing.
For reaching the foregoing invention purpose, embedded system structure of the present invention includes:
At least one function element, the function that is used to provide embedded system (for example: a dynamic net domain system (Dynamic Domain Name System, DDNS) element is responsible for providing the function of upgrading network convention address (Internet Protocol address, IP address));
One data bank stores a plurality of setting values corresponding to this function element, state value and original start shelves;
One controller, be connected in this function element and include a processor that is connected in this data bank, this processor is by setting value, state value and the original start shelves of this data bank access corresponding to this function element, and replace the numerical value of the original start shelves of this function element with this setting value, produce the setting shelves of a correspondence, this controller is coordinated the running of this function element according to this state value, and this function element is then according to the coordination of this controller and follow these setting shelves to carry out the running of function.
Therefore, by above-mentioned embedded system structure, when embedded system has any state or sets change, this controller just can come the corresponding running of adjusting this system according to the change of this state value or this setting value, and state value and setting value unification are managed by this data bank of access, therefore embedded system structure of the present invention has the advantage that management is concentrated, and can significantly improve the development efficiency of embedded system and the time cost of reduction exploitation.
Description of drawings
Fig. 1 is an embedded system structure synoptic diagram of the present invention.
Fig. 2 is that processor of the present invention is with the numerical value in the original start shelves of setting value permutation function element, with the synoptic diagram of the setting shelves that produce a correspondence.
Fig. 3 is the synoptic diagram of embedded system embodiment of the present invention.
Fig. 4 is the flow chart of steps of using in online embodiment illustrated in fig. 3.
Fig. 5 is embodiment illustrated in fig. 3 in the flow chart of steps of upgrading the network convention address.
The main element symbol description
1: embedded system
10: function element
11: data bank
12: controller
13: processor
14: standard interface
The 15:DDNS element
The 16:WAN element
40: steps A
41: step B
42: step C
43: step D
44: step e
45: step F
46: step G
47: step H
48: step I
101: the original start shelves
102: set shelves
Embodiment
For making those skilled in the art understand purpose of the present invention and effect, following conjunction with figs. describes preferred embodiment of the present invention in detail.
Referring to Fig. 1 and Fig. 2, embedded system structure of the present invention includes:
At least one function element 10 is used to provide the function (for example: a dynamic net domain system element, be responsible for providing the function of upgrading the network convention address) of embedded system 1;
One data bank 11 stores setting value, state value and original start shelves 101 corresponding to function element 10;
One controller 12, be connected in function element 10 and include a processor 13 that is connected in data bank 11, processor 13 is by setting value, state value and the original start shelves 101 of data bank 11 accesses corresponding to function element 10, and the numerical value of the original start shelves 101 of this setting value permutation function element 10, to produce the setting shelves 102 of a correspondence, controller 12 is according to the running of this state value coordination function element 10, and 10 of function element are according to the coordination of controller 12 and follow and set shelves 102 and carry out the running of function.
12 of function element 10 and controllers are set with a standard interface 14, standard interface 14 is in order to allow 10 of the function element of identical function reciprocally replace or to replace, send corresponding instruction word string for controller 12 and control this function element 10, can simplify the complexity in controller 12 designs, this instruction word string is made up of a prefix word string (prefix) and an order parameter (command arguments).
This prefix word string is set identical title with the differentiation as each function element, for example with identical function element 10: the prefix word string of DDNS element is ddns, and (Wide Area Network, WAN) the prefix word string of element is wan to Wide Area Network.
The identical instruction (command) of function setting that this order parameter is performed with identical function element 10, for example: the start representative starts, on behalf of line or status, connect represent repayment state etc.
Therefore, when controller 12 receives the demand of embedded system 1, controller 12 just can be sent to the instruction word string of correspondence the function element 10 of correspondence according to this demand, for example: when carrying out WAN element line, this controller can send " wan start " instruction word string in regular turn, " wan connect " instruction word string and " wan status " instruction word string are to this WAN element, in other words, different function element 10 can have different specifications, as long as the function of this function element 10 is identical, just can carry out the replacement of function element 10, controller 12 can directly use corresponding instruction word string to control the function element 10 of new displacement by standard interface 14.
In addition, when controller 12 sent the instruction word string of a repayment state, controller 12 can upgrade the state value of function element 10 repayment and be stored in the data bank 11.
Above-mentioned data bank 11, is avoided producing nonsynchronous situation and is produced to guarantee the stable of system for the processing mode of the access employing sequence of processor 13.
Above-mentioned original start shelves 101, the setting file of being followed when being used to provide function element 10 to carry out functional operation, it includes two blocks:
One model block, for function element 10 when the factory setting, edit the program shelves of being followed for function element 10 runnings by the element developer;
One embeds block, it is according to the demand of embedded system 1, when this system development, directly write on this model block in the mode of explaining, processor 13 embeds block institute written program sign indicating number according to this, with the corresponding numerical value of replacing this model block of the setting value in the data bank 11, set shelves 102 to produce.
Thus, by above-mentioned embedded system structure, work between each function element is wielded and is become independent clear and definite again, the embedded system development personnel can be according to the demand of system development, directly procedure code is write on this model block in the mode of explaining, when new function element will increase newly to this system, the setting value that only needs to import corresponding procedure code and set corresponding to this new function element gets final product, this controller just can be according to this corresponding original start shelves compiling one for the required setting shelves of new function element running, and do not need to revise or rewrite whole procedure code because of the relation of yielding between old function element, except performance history has consistance, for after take on personnel's the follow-up maintenance, can not cause the difficulty in the maintenance because of the difference of original system developer programming style yet.
In addition, because this controller is according to being stored in the running that the setting value in this data bank is come the set-up function element, when system need upgrade or change, only need revise the setting value that is stored in the data bank the inside and just can produce corresponding setting shelves, therefore can realize upgrading fast, and can significantly reduce the probability that mistake (BUG) takes place.
Referring to Fig. 2 and Fig. 3, can reach above-mentioned effect and purpose in the use for confirming embedded system structure of the present invention, a special embodiment with following application embedded system structure of the present invention describes.
This embodiment is a network equipment 2, includes:
One DDNS element 15 is for being responsible for upgrading the element of IP address;
One WAN element 16 is for being responsible for linking to the element of network;
One data bank 11 stores setting value, state value and the original start shelves of corresponding DDNS element 15 and WAN element 16;
One controller 12, be connected in DDNS element 15 and WAN element 16, and include a processor 13 that is connected in data bank 11, processor 13 is by the setting value of data bank 11 accesses corresponding to DDNS element 15 and WAN element 16, state value and original start shelves, and with the numerical value of the original start shelves of this setting value displacement DDNS element 15 and WAN element 16, to produce the setting shelves of a correspondence, controller 12 is coordinated the running of DDNS element 15 and WAN element 16 according to this state value, and 16 of DDNS element 15 and WAN elements are according to the coordination of controller 12 and follow this settings grade to carry out the running of function.
Referring to Fig. 3 and Fig. 4, when the network equipment 2 received the demand of user's desire online line, the network equipment 2 can be carried out following steps:
Steps A (40): processor 13 is by setting value, state value and the original start shelves of data bank 11 access WAN elements 16;
Step B (41): processor 13 is according to the embedding block of the original start shelves of WAN element 16, and is corresponding this setting value is replaced the numerical value in this model block, to produce the setting shelves of a compliance with system demand;
Step C (42): controller 12 sends " wan start " instruction word string, " wan connect " instruction word string and " wan status " instruction word string in regular turn to WAN element 16;
Step D (43): after WAN element 16 carries out the line of network according to the instruction word string of controller 12 and this setting shelves, again with state reporting on line to controller 12;
Step e (44): controller 12 is updated to the state value that is stored in the data bank 11 on line according to the repayment of WAN element 16.
In addition referring to Fig. 3 and Fig. 5, if when the network equipment 2 was dispensed into new IP address because of WAN element 16 lines, controller 12 was after receiving the information that IP address changes, just can carry out following steps:
Step F (45): processor 13 is by setting value, state value and the original start shelves of data bank 13 access DDNS elements 15;
Step G (46): processor 13 replaces this setting value the numerical value in this model block accordingly according to the embedding block of the original start shelves of DDNS element 15, to produce the setting shelves for 15 uses of DDNS element;
Step H (47): controller 12 sends " ddns start " instruct word string to DDNS element 15;
Step I (48): DDNS element 15 upgrades the action of IP address according to the instruction word string of controller 12 and this setting shelves.
By above-mentioned steps A to I (40~48), the network equipment 2 of present embodiment can be responsible for stringing the contact work of WAN element 16 and DDNS element 15 by controller 13,16 need of WAN element carry out the work of line according to the instruction word string of controller 12 with the setting shelves, it does not also know not need to know the existence that DDNS element 15 is arranged yet, and DDNS element 15 also only carries out the action that IP address upgrades according to the instruction word string of controller 12 with the setting shelves, also do not know carry out the change that line action IP address take place of IP address because of WAN element 16, in other words, 16 of DDNS element 15 and WAN elements are mutually independent, when the network equipment 2 need upgrade or change, only need revise the setting value that is stored in data bank 11 the insides and produce corresponding setting shelves and get final product, realize the effect of upgrading fast so can reach, and can significantly reduce the probability that mistake (BUG) takes place.
The above, it is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, any those skilled in the art, in not breaking away from the technical solution of the present invention scope, when the technology contents that can utilize above-mentioned announcement is made a little change or is modified to the equivalent embodiment of equivalent variations, in every case be the content that does not break away from technical solution of the present invention, to any simple modification, equivalent variations and modification that above embodiment did, all still belong to the scope of technical solution of the present invention according to technical spirit of the present invention.

Claims (6)

1, a kind of embedded system structure includes:
At least one function element is used to provide the function of embedded system;
One data bank stores setting value, state value and original start shelves corresponding to this function element;
One controller, be connected in this function element and include a processor that is connected in this data bank, this processor is by setting value, state value and the original start shelves of this data bank access corresponding to this function element, and replace the numerical value of the original start shelves of this function element with this setting value, to produce the setting shelves of a correspondence, this controller is coordinated the running of this function element according to this state value, and this function element is then according to the coordination of this controller and follow these setting shelves to carry out the running of function.
2, embedded system structure as claimed in claim 1 wherein, is set with a standard interface, sends corresponding instruction word string for this controller and control this function element between this controller and this function element, this instruction word string includes:
One prefix word string, its title that identical function components set is identical is with the differentiation as each function element;
One order parameter, the identical instruction of function setting that it is performed with the identical function element.
3, embedded system structure as claimed in claim 1 or 2, wherein, these original start shelves include:
One model block, for this function element when the factory setting, edited the program shelves of following by the developer of this element for the element running;
One embeds block, and it is directly write on this model block in the mode of explaining when this system development according to the demand of this embedded system.
4, a kind of embedded system structure is a network equipment, and it includes:
One DDNS element is for being responsible for upgrading the element of IP address;
One WAN element is for being responsible for linking to the element of network;
One data bank stores should the DDNS element and setting value, state value and the original start shelves of this WAN element;
One controller, it is connected in this DDNS element and WAN element and includes a processor that is connected in this data bank, this processor is by setting value, state value and the original start shelves of this data bank access corresponding to this DDNS element and WAN element, and replace the numerical value of the original start shelves of this DDNS element and WAN element with this setting value, to produce the setting shelves of a correspondence, this controller is coordinated the running of this DDNS element and WAN element according to this state value, and this DDNS element and WAN element are then according to the coordination of this controller and follow these setting shelves to carry out the running of function.
5, embedded system structure as claimed in claim 4, wherein, the original start shelves of this DDNS element include:
One model block, for this DDNS element when the factory setting, edited the program shelves of following for this DDNS element running by the element developer;
One embeds block, and it is directly write on this model block in the mode of explaining when exploitation according to the demand of this network equipment.
6, embedded system structure as claimed in claim 4, wherein, the original start shelves of this WAN element include:
One model block, for this WAN element when the factory setting, edited the program shelves of following for this WAN element running by the element developer;
One embeds block, and it is directly write on this model block in the mode of explaining when exploitation according to the demand of this network equipment.
CN2009101363162A 2009-05-07 2009-05-07 Embedded system structure control method Expired - Fee Related CN101630257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101363162A CN101630257B (en) 2009-05-07 2009-05-07 Embedded system structure control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101363162A CN101630257B (en) 2009-05-07 2009-05-07 Embedded system structure control method

Publications (2)

Publication Number Publication Date
CN101630257A true CN101630257A (en) 2010-01-20
CN101630257B CN101630257B (en) 2012-08-22

Family

ID=41575376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101363162A Expired - Fee Related CN101630257B (en) 2009-05-07 2009-05-07 Embedded system structure control method

Country Status (1)

Country Link
CN (1) CN101630257B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5778368A (en) * 1996-05-03 1998-07-07 Telogy Networks, Inc. Real-time embedded software respository with attribute searching apparatus and method
CN1155201C (en) * 2001-08-03 2004-06-23 华为技术有限公司 Method for making data layout in communication equipment and its system
CN1299467C (en) * 2003-02-18 2007-02-07 华为技术有限公司 Equipment and method for managing network apparatus
CN100472445C (en) * 2006-09-04 2009-03-25 中兴通讯股份有限公司 Configuring load application method and system of communication apparatus

Also Published As

Publication number Publication date
CN101630257B (en) 2012-08-22

Similar Documents

Publication Publication Date Title
CN100566357C (en) Communication apparatus batch configuration managerial approach and device thereof
CN107291516B (en) A kind of firmware upgrade method and system
US8996721B2 (en) Embedding controllers and devices with data to facilitate up-to-date control and configuration information
CN105704234B (en) The control method and device of smart machine
US9489189B2 (en) Dynamically generate and execute a context-specific patch installation procedure on a computing system
CN103092633B (en) A kind of servo control software on-line rewriting method based on 1553B bus
CN109634686A (en) A kind of method and system by BMC remote configuration server state
CN103577201B (en) The update method and system of Embedded Double system
CN106020837A (en) Method and system for loading set top box drive
CN104407863A (en) Abstract control model programming device and method
CN105446725A (en) Method and system for model driven development
WO2019109108A2 (en) Method and apparatus for creating and managing smart programmable logic controller (plc) solutions
CN106843954A (en) Sensor node remote upgrade method
CN104699503A (en) Method and device for replacing function execution logic in Android system
US20060184924A1 (en) Intelligent platform management interface firmware architecture and method of building the same
CN104133706B (en) Firmware modification method and firmware modification device
CN103077066B (en) A kind of method and system of embedded product key message when compiling
CN101257494A (en) Method and system for accessing a resource implemented in a computer network
CN110515635A (en) Mainboard VR firmware upgrade method, device, server and readable storage medium storing program for executing
US20090187601A1 (en) Automation process system and method to upgrade from non-unicode transformation support to unicode data transformation support
CN101630257B (en) Embedded system structure control method
CN109933345B (en) Undisturbed downloading method and related device for controller
CN101515167A (en) Method for realizing IEC61499 flexible function block by using IEC61131-3 function block
CN106126211A (en) A kind of MCU In-circuit programming system supporting debugging interface
US7487227B2 (en) Scripting engine having a sequencer table and a plurality of secondary tables for network communication software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120822

Termination date: 20160507

CF01 Termination of patent right due to non-payment of annual fee