CN101630257B - Embedded system structure control method - Google Patents

Embedded system structure control method Download PDF

Info

Publication number
CN101630257B
CN101630257B CN2009101363162A CN200910136316A CN101630257B CN 101630257 B CN101630257 B CN 101630257B CN 2009101363162 A CN2009101363162 A CN 2009101363162A CN 200910136316 A CN200910136316 A CN 200910136316A CN 101630257 B CN101630257 B CN 101630257B
Authority
CN
China
Prior art keywords
function
controller
shelves
wan
ddns
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.)
Expired - Fee Related
Application number
CN2009101363162A
Other languages
Chinese (zh)
Other versions
CN101630257A (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 a control method of an embedded system structure. The embedded system structure includes at least one function element for providing the function of the 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 function element. The control method includes: the processor connected to the database included by the controller correspondingly substituting the values of the original setting ranges of the function element through accessing the database so as to generate a corresponding setting range; the controller coordinating the running of the function element according to the state values; and the function element running 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

The control method of 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 to particular task; Need be not comprehensive as operating system; Therefore, most ofly adopt a storage element (for example: memory body) store the setting value of this system through corresponding data structure, 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 (coding style) that the developer writes for program; Different people has different styles, and if former developer leaves office, follow-up catcher is safeguarded or the personnel that upgrade must take time understands and adapts to editor Format originally; 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, and this microcontroller must constantly be called out function (function) through program when the operation of this system; Inspect diffusing mixing through 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 through 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 and the time cost that reduces exploitation of general embedded system.
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 one be connected in this data bank processor; This processor corresponding to setting value, state value and the original start shelves of this function element, and with the numerical value of the original start shelves of this this function element of setting value displacement, produces corresponding setting shelves through this data bank access; 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 this settings grade to carry out the running of function.
Therefore; Through above-mentioned embedded system structure; When embedded system had 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 through this data bank of access state value and setting value unification was managed; Therefore embedded system structure of the present invention has the advantage that management is concentrated, and can significantly improve the development efficiency and the time cost that reduces exploitation of embedded system.
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, to produce the synoptic diagram of corresponding setting shelves.
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 the object of the invention and effect, following conjunction with figs. specifies preferred embodiment of the present invention.
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 one be connected in data bank 11 processor 13; Processor 13 is through 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; Producing corresponding setting shelves 102, 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 let 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 received the demand of embedded system 1, controller 12 just can be sent to corresponding function element 10 with the instruction word string of correspondence according to this demand, for example: when carrying out WAN element line; This controller can send " wan start " instruction word string, " wan connect " instruction word string and " wan status " instruction word string in regular turn to this WAN element; In other words, different functions 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 through 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 that supply function element 10 runnings to be followed 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 with the mode of explaining; Processor 13 embeds block institute written program sign indicating number according to this, with the numerical value of this model block of the corresponding replacement of the setting value in the data bank 11, sets shelves 102 to produce.
Thus; Through above-mentioned embedded system structure, the work between each function element is wielded and is become independent clear and definite again, and the embedded system development personnel can be according to the demand of system development; Mode to explain is directly write procedure code on this model block; When new function element will increase newly to this system, only need to import corresponding procedure code and get final product with the setting value of setting corresponding to this new function element, this controller just can supply the required setting shelves of new function element running according to this corresponding original start shelves compiling one; 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 one be connected in data bank 11 processor 13; Processor 13 is through setting value, state value and the original start shelves of data bank 11 accesses corresponding to DDNS element 15 and WAN element 16; And with the numerical value of the original start shelves of this setting value displacement DDNS element 15 and WAN element 16; Producing corresponding setting shelves, 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 through 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 so that 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 through setting value, state value and the original start shelves of data bank 13 access DDNS elements 15;
Step G (46): processor 13 replaces the numerical value in this model block with this setting value accordingly according to the embedding block of the original start shelves of DDNS element 15, supplies the setting shelves of DDNS element 15 uses to produce one;
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.
Through 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 need not 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, does not also 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, and 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, anyly be familiar with the professional and technical personnel, in not breaking away from technical scheme scope of the present invention; When the technology contents of above-mentioned announcement capable of using 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 scheme of the present invention, to any simple modification, equivalent variations and modification that above embodiment did, all still belong to the scope of technical scheme of the present invention according to technical spirit of the present invention.

Claims (4)

1. the control method of an embedded system structure, this 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 is connected in this function element;
This control method comprises:
This controller comprise one be connected in this data bank processor through setting value, state value and the original start shelves of this data bank access corresponding to this function element; And with the numerical value of the original start shelves of this function element of this setting value displacement; 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 this settings grade to carry out the running of function;
Be set with a standard interface between this controller and this function element, send corresponding instruction word string for this controller and control 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;
These original start shelves include:
One model block, for this function element when the factory setting, edit the program shelves that supply the element running to follow by the developer of this element;
One embeds block, and it is directly write on this model block with the mode of explaining when this system development according to the demand of this embedded system.
2. the control method of an embedded system structure, this embedded system structure is a network equipment, 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;
This control method comprises:
This controller comprise one be connected in this data bank processor through setting value, state value and the original start shelves of this data bank access corresponding to this DDNS element and WAN element; And with the numerical value of the original start shelves of this setting value this DDNS element of displacement and WAN element; 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 this settings grade to carry out the running of function.
3. control method as claimed in claim 2, wherein, the original start shelves of this DDNS element include:
One model block, for this DDNS element when the factory setting, edit the program shelves that supply this DDNS element running to follow by the element developer;
One embeds block, and it is directly write on this model block with the mode of explaining when exploitation according to the demand of this network equipment.
4. control method as claimed in claim 2, wherein, the original start shelves of this WAN element include:
One model block, for this WAN element when the factory setting, edit the program shelves that supply this WAN element running to follow by the element developer;
One embeds block, and it is directly write on this model block with 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 CN101630257A (en) 2010-01-20
CN101630257B true 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)

Citations (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
CN1400772A (en) * 2001-08-03 2003-03-05 华为技术有限公司 Method for making data layout in communication equipment and its system
CN1523814A (en) * 2003-02-18 2004-08-25 华为技术有限公司 Equipment and method for managing network apparatus
CN101140520A (en) * 2006-09-04 2008-03-12 中兴通讯股份有限公司 Configuring load application method and system of communication apparatus

Patent Citations (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
CN1400772A (en) * 2001-08-03 2003-03-05 华为技术有限公司 Method for making data layout in communication equipment and its system
CN1523814A (en) * 2003-02-18 2004-08-25 华为技术有限公司 Equipment and method for managing network apparatus
CN101140520A (en) * 2006-09-04 2008-03-12 中兴通讯股份有限公司 Configuring load application method and system of communication apparatus

Also Published As

Publication number Publication date
CN101630257A (en) 2010-01-20

Similar Documents

Publication Publication Date Title
CN100566357C (en) Communication apparatus batch configuration managerial approach and device thereof
US8392602B2 (en) Embedding controllers and devices with data to facilitate up-to-date control and configuration information
CN107291516A (en) A kind of firmware upgrade method and system
CN105704234B (en) The control method and device of smart machine
CN102713774B (en) Programmable controller system and development system
JP3729251B2 (en) Controller and system
CN103777983A (en) Satellite-borne software in-orbit maintaining and upgrading method
CN106502725A (en) The upgrade method of application program, equipment and electronic equipment
CN103092633B (en) A kind of servo control software on-line rewriting method based on 1553B bus
CN102177501A (en) A hardware virtualization system
CN105446725A (en) Method and system for model driven development
CN105740120A (en) Shared memory based real-time monitoring and control method and system for software running process
CN111417907A (en) Method and apparatus for creating and managing intelligent programmable logic controller solutions
CN106843954A (en) Sensor node remote upgrade method
US20060184924A1 (en) Intelligent platform management interface firmware architecture and method of building the same
CN104133706B (en) Firmware modification method and firmware modification device
US7890548B2 (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
CN110515635A (en) Mainboard VR firmware upgrade method, device, server and readable storage medium storing program for executing
CN103077066A (en) Method and system for embedding product key information during compiling
CN101515167A (en) Method for realizing IEC61499 flexible function block by using IEC61131-3 function block
CN109933345B (en) Undisturbed downloading method and related device for controller
US7487227B2 (en) Scripting engine having a sequencer table and a plurality of secondary tables for network communication software
JP6119452B2 (en) Programmable controller system, its support device, programmable controller, program
CN101193223A (en) A TV set and its function control method and system

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