CN100585559C - System and method for embedded system - Google Patents

System and method for embedded system Download PDF

Info

Publication number
CN100585559C
CN100585559C CN200610144824A CN200610144824A CN100585559C CN 100585559 C CN100585559 C CN 100585559C CN 200610144824 A CN200610144824 A CN 200610144824A CN 200610144824 A CN200610144824 A CN 200610144824A CN 100585559 C CN100585559 C CN 100585559C
Authority
CN
China
Prior art keywords
embedded system
description document
external memory
memory storage
service module
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
CN200610144824A
Other languages
Chinese (zh)
Other versions
CN101192159A (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.)
BEIJING SUNPLUS-EHUE TECHNOLOGY CO., LTD.
Sunplus Technology Co Ltd
Original Assignee
BEIJING BEIYANG ELECTRONIC TECHNOLOGY Co Ltd
Sunplus Technology Co Ltd
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 BEIJING BEIYANG ELECTRONIC TECHNOLOGY Co Ltd, Sunplus Technology Co Ltd filed Critical BEIJING BEIYANG ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN200610144824A priority Critical patent/CN100585559C/en
Publication of CN101192159A publication Critical patent/CN101192159A/en
Application granted granted Critical
Publication of CN100585559C publication Critical patent/CN100585559C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a system of managing an embedded system and a method; the system comprises an external memory and an embedded system with a service module. The method is to: insert the external memory to the embedded system; an operating system makes the service module work; according to the external memory and /or description file stored in the embedded system, the service module is managed. The technique proposal of the present invention can avoid dismantling hardware; under the condition of not interfering the normal operation of the system, the management of the embedded system can be completed to make the management rapider and save the time; the invention has simple operation, only needs to plug or pull equipment to complete the operation, is suitable for mass repeatability operation, can have multifunction of bidirectional and interactive software update, system detection, system maintenance, etc. The integrated operation is automatically completed by the embedded system; operators need not professional knowledge and professional tools, thereby providing a simple, flexible, and high-efficient system and a method for the management of the embedded field.

Description

A kind of system and method that embedded system is managed
Technical field
The present invention relates to embedded system, particularly the management of embedded system.
Background technology
Embedded system exists volume little, and system CPU resource and memory source are limited, and external memory storage closely is connected with system, system communication method and interface features of limited.No matter embedded system is in the performance history or after the commercialization, in case software is stored in embedded system, rethink add, operation such as deletion, renewal, detection all is cumbersome problem.
If upgrade the operating system of embedded device, increase systemic-function, the optimization system performance is carried out system status and is detected, and uses following 3 kinds of methods usually:
1. take embedded device apart, replace original memory device in the embedded system with a memory device that has baked and be equipped with new operating system;
2. by network or serial ports the memory device in the embedded system is upgraded.
3. by writing specific program, use the External memory equipment of CF card, SD card, USB device interface that special software is upgraded.
In these 3 kinds of methods,, therefore, adopt the 1st kind of method that various memory devices is installed, dismantled and all compare difficulty, need the equipment installation, maintenance and the maintainer of specialty to realize because the embedded system inner structure is very tight; And cause the damage of related hardware for the easy disassembling of embedded device.
The 2nd kind of method often used in the process of system development and system debug in embedded system.But also need operating personnel to grasp professional domain knowledge for this method, the exploitation and the commissioning experience of embedded system arranged; Operating relatively, it is many to relate to equipment, connects complexity, operates loaded down with trivial details; Can only be applied to exploitation, debugging, the maintenance process of fraction inline object.
The 3rd kind of method, at CF card, SD card class, the inner card reader that needs of embedded system, increase embedded system difficulty and cost, need the reset system that cuts off the power supply simultaneously, upgrade under off-mode, each operation all needs human intervention, can only carry out designated software and upgrade, can't reach management (as: system performance is tested automatically and reported) more flexibly.At USB device (USB DEVICE) interface, need be articulated on the PC of usb host interface (USB HOST), USB device type and the USB device storage format that must use PC to discern, making all brings very big workload for hardware and software.
The method of China's Mainland patented claim CN01100389.8[embedded structure with software capable of being updated fast and its software updating] disclosed and in the storer of embedded system, deposited one section in advance and open the beginning loader, and can plug Storage Media with one and deposit the software of preparing to be updated to this storage arrangement, and after this embedded system is reset, it is to carry out earlier to open the beginning loader that central authorities handle, with after the initialization embedded system, whether interpretation can plug has predetermined setting to describe the archives existence in the Storage Media, in this way, just duplicate according to setting the content of describing archives to be preset in and to plug the interior specific software of Storage Media to system memory device, to reach the renewal of built-in system software.This method can only be under the situation of system cut-off, the update system designated software, and need manual operation, and can only finish folk prescription to (upgrading to embedded system) from external unit, can't finish other management function.
Exactly because existing method has easy initiation hardware damage, operate loaded down with trivial details complexity, be unsuitable for a large amount of repeatable operation, can only carry out folk prescription to software upgrading, need operating personnel that professional knowledge is arranged, need shortcoming such as professional tool.
Summary of the invention
At above deficiency, the invention provides a kind of system and method that embedded system is managed, this method is quick, and is easy, do not need professional tool, can finish management automatically by embedded system.
The technical solution used in the present invention is:
A kind of system that embedded system is managed is characterized in that, comprising: embedded system and external memory storage; Described external memory storage is used to store description document and resource or one of them;
Described embedded system comprises the functional module and the operating system of service module, one or above realization difference in functionality;
Described operating system is used to find when external memory storage inserts service module is started working
Described service module is called by operating system, and external memory storage is read and write in the support of passing through operating system, be used for after external memory storage inserts embedded system, according in the mode of operation reading external memory of setting and/or be stored in description document in the embedded system, and according to the description document content directly by operating system or call corresponding functional modules and embedded system is managed according to one of following manner:
Utilize that stored resource manages embedded system in all or part of described external memory storage;
No matter storage resources whether in the external memory storage manages embedded system, does not need to utilize described resource.
Further, described embedded system also comprises makes the hot plug server that external memory storage can the hot plug embedded system, connects described operating system and external memory storage, is used for the various operational orders of interpreter operation system to external memory storage; The interface of described external memory storage and described hot plug server coupling.
Further, described service module comprises a kind of or its combination in the following situation to the management of embedded system: upgrade the data of additions and deletions embedded system;
Upgrade the functional module of additions and deletions embedded system;
Test the embedded system situation and the result is write external memory storage or embedded system data district assigned address;
The catalogue of management and browser document system.
Further, in described mode of operation, set the description document that will read, and set the conditioned disjunction setting of reading this description document and unconditionally read this description document; When the description document that will read surpasses one, set the order that reads each description document; Described service module reads corresponding description document according to described setting and according to its content operation.
Further, service module manages embedded system according to a kind of in the following situation:
Read this description document when in the external memory storage description document being arranged and according to its content operation, read the description document that is stored in the embedded system when not having description document and according to its content operation;
The description document that no matter whether has description document all to read in the external memory storage to be stored in the embedded system and according to its content operation;
Elder generation in the reading external memory description document and according to its content operation, read the description document that is stored in the embedded system then and according to its content operation; Or
Read the description document that is stored in the embedded system earlier and according to its content operation; Description document in the reading external memory and according to its content operation then.
Further, stored resource comprises in the described external memory storage: be used to replace former functional module or as the command file of what's new module, and be used to replace former data or as the data of newly-increased data, or one of them.
Further, described functional module is included in the multi-functional module in the file system; Functional module in the multi-functional module can increase, deletes, replaces or revise.
Technical scheme of the present invention also comprises a kind of method that embedded system is managed, and it is characterized in that, comprising:
(a) when operation for embedded system, insert embedded system with storing description document and resource or the external memory storage of one of them;
(b) operating system is found when external memory storage inserts service module to be started working;
(c) service module is according in the mode of operation reading external memory of setting and/or be stored in description document in the embedded system, and according to its content directly by operating system or call corresponding functional modules and embedded system is managed according to one of following manner:
Utilize that stored resource manages embedded system in all or part of described external memory storage;
No matter storage resources whether in the external memory storage manages embedded system, does not need to utilize described resource;
Manage the system that finishes and continue operation.
Further, service module described in the step (c) comprises a kind of or its combination in the following situation to the management of embedded system:
Upgrade the data of additions and deletions embedded system;
Upgrade the functional module of additions and deletions embedded system;
Test the embedded system situation and the result is write external memory storage or embedded system data district assigned address;
The catalogue of management and browser document system.
Further, in described mode of operation, set the description document that will read, and set the conditioned disjunction setting of reading this description document and unconditionally read this description document; When the description document that will read surpasses one, set the order that reads each description document; Described service module reads corresponding description document according to the mode of operation of setting and successively according to its content operation.
Further, service module manages embedded system according to a kind of in the following situation in the step (c):
Read this description document when in the external memory storage description document being arranged and according to its content operation, read the description document that is stored in the embedded system when not having description document and according to its content operation;
The description document that no matter whether has description document all to read in the external memory storage to be stored in the embedded system and according to its content operation;
Elder generation in the reading external memory description document and according to its content operation, read the description document that is stored in the embedded system then and according to its content operation; Or
Read the description document that is stored in the embedded system earlier and according to its content operation; Description document in the reading external memory and according to its content operation then.
Further, described resource comprises: be used to replace former functional module or as the command file of what's new module, and be used to replace former data or as the data of newly-increased data, or one of them.
Technical scheme of the present invention can be exempted the hardware dismounting, thereby is difficult for causing hardware damage; Simultaneously, under the situation of the not normal operation of EVAC (Evacuation Network Computer Model), can finish management, make management more quick, save time embedded system; The present invention is simple to operate, but only need equipment pull out complete operation once inserting one; Since simple to operate, a large amount of repetitive operations be applicable to; And can carry out multiple functions such as twocouese, interactive software renewal, system's detection, system maintenance; Integrated operation is finished automatically by embedded system, does not need operating personnel that professional knowledge is arranged, and does not need professional tool; For the management of built-in field provide a kind of simply, flexibly, system and method efficiently.
Description of drawings
Fig. 1 is the block diagram of the system that embedded system is managed of the present invention;
Fig. 2 is the structured flowchart of the file system of embedded system of the present invention;
Fig. 3 is the process flow diagram of the method that embedded system is managed of the present invention;
Fig. 4 is another process flow diagram of the method that embedded system is managed of the present invention.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
A kind of system that embedded system is managed as shown in Figure 1, is characterized in that, comprising: embedded system and external memory storage;
Store description document and resource in the described external memory storage, or one of them;
Described embedded system comprises the data field, random access memory ram, and operating system, hot plug server, file system, file system comprise service module and multi-functional module.In embedded system, can also store description document.
Wherein, the data field is generally the not loss storage of cutting off the power supply, and as hard disk, SD card etc. are used for storing data files.
Random access memory ram is used for providing the internal memory support for operating system.
Operating system is used for each unit or device calls and control etc., also is used in the present invention find external memory storage and service module is started working.
The hot plug server connects external memory storage and operating system; Be used for the various operational orders of interpreter operation system to external memory storage; Thereby make embedded system under the situation of normal operation, can the peripherals that comprise external memory storage directly be plugged.The interface of described external memory storage and described hot plug server coupling, such as when the hot plug server adopts USB (Universal Serial Bus USB (universal serial bus)) main frame (USB HOST), external memory storage just must have USB interface.
Described file system comprises multi-functional module and service module, as shown in Figure 2.
Multi-functional module is made up of one or more functional modules that realize the different operating function; Functional module in the multi-functional module can comprise with in the lower module one or more:
Update module is used for the content update of external memory storage appointment under the embedded system assigned address, for example the data in the module of multi-functional module, the renewal data field in the updating file system.By update module, the software after the renewal has identical attribute with the software that is updated.
Removing module is used for deleting the multi-functional module module under the embedded system assigned address or the data content of data field.
Increase module, be used for the content of external memory storage appointment is added under the embedded system assigned address, for example add new functional module in multi-functional module, add new data in the embedded system data district.
Test module is used to test the embedded system situation, and test result is stored in the External memory equipment.The particular content and the test duration of test are set up on their own by the user.
The catalogue browsing module is used for the directory scenario that the user browses assigned address.
The directory management module is used for the catalogue of user management file system.
The system resource monitoring modular is used for monitoring the resource behaviour in service of embedded system hardware and software.
These functional modules can not only realize the management to the data file in the embedded system data district, can also manage multi-functional module itself and whole embedded system etc.Functional module in the multi-functional module can design according to user's demand; User or developer can design some functional modules according to demand and put into multi-functional module when exploitation, can also be after the embedded system commercialization, as required, adopt the system and method among the present invention, increase, deletion, replacement or modify feature module.
Described service module sets in advance in file system, combines closely with operating system, is called by operating system, and service module is read and write external memory storage by the support of operating system; Operating system can just be called service module when embedded system starts, service module is introduced into sleep state; When hot-plug equipment---when being connected to the hot-plug interface of embedded system such as external memory storage, operating system call service module; In the time of also can having hot-plug equipment to insert, operating system is called service module again.
After service module is waken up or calls, can judge whether the hot-plug equipment that inserts is external memory storage, if words then set up external memory storage to the contact between the file system, and according in the mode of operation reading external memory of setting and/or be stored in the embedded system description document and according to its content, directly, optionally utilize the respective resources in the external memory storage to manage by operating system or calling functional modules.Service module reads the description document that is stored in the embedded system and operates according to its content and is called default action or built-in function; Description document in the service module reading external memory also is called according to the operation that its content is carried out and describes operation or peripheral operation.
The mode of operation of service module can be set in the file of service module, also can set in the file outside service module, reads when service module needs.Set being operated in when developing of mode of operation and carry out, also can change afterwards; If change does not relate to service module, then when inserting external memory storage, change next time and come into force; If relate to service module, then when calling service module, change next time and come into force.
Service module reads after the description document according to its content operation, is by the mode of operation decision of setting and read which description document.In described mode of operation, set the description document that will read, and set the conditioned disjunction setting of reading this description document and unconditionally read this description document; When the description document that will read surpasses one, set the order that reads each description document; Described service module reads corresponding description document according to the mode of operation of setting and successively according to its content operation.Such as the condition that can set the description document in the reading external memory be: " description document is arranged in the external memory storage "; And the condition that reads the description document that is stored in embedded system is " not having description document in the external memory storage ", and then service module is according to whether corresponding operation or the default action of being described of description document is arranged in the external memory storage.Also can set and unconditionally read certain description document.When having set the order that reads each description document in the mode of operation, service module reads corresponding description document successively and according to its content operation, the implication of " successively " is here: service module can only read a description document and at one time by its content operation.After the content of having operated a description document, just can go to read next description document.
In sum, after external memory storage inserted embedded system, service module can only once be had ready conditions or unconditional description operation or default action; Also can carry out once above similar and different operation in proper order, be described operation again, be described operation for another example earlier and carry out default action again such as carrying out default action earlier by setting; Equally, acquiescence of carrying out or description operation can be with good conditionsi at every turn, also can be unconditional; In a word, mode of operation can be set flexibly according to actual conditions.
In the process of operation, if service module finds that the description document or the resource that will read are not the structures that service module can correctly be discerned, or does not exist, or occurs other mistake in operating process, then service module withdraws from or changes over to sleep state, and system is to the user report error message.
Certainly, can also set the third mode of operation, be exactly that service module is not done any operation when inserting external memory storage, just just can't manage embedded system like this.But also being not precluded within the user thinks that system has improved or sets this kind mode of operation when needing protection.
Described description document is script file or other computerese written program file; Described script file is the file of writing according to prescribed form.Wherein, be stored in description document in the embedded system and can be set in the file in the service module, also can be set in the file outside the service module.Call when needed by service module.
Described resource comprises: be used to replace former functional module or as the command file of what's new module, and be used to replace former data or as the data of newly-increased data or one of them.These command files or data can be write by user oneself and be finished, and also can upload fixed mode command file and/or data.
Service module is carried out default action or is described and operate the management of carrying out embedded system; The content of management comprises following a kind of or its combination at least:
One, the functional module of calling in the multi-functional module increases, deletes or upgrade specific data, is used to increase or data updated comes from external memory storage or embedded system itself;
Two, the functional module of calling in the multi-functional module increases, deletes or upgrade the appointed function module, is used for increasing or the functional module upgraded comes from the command file or the embedded system itself of external memory storage;
Three, call functional module in the multi-functional module and realize assigned operation embedded system, as monitoring or test macro and with the result write external memory storage, managing file system catalogue, browse the directory scenario of specified location in user etc.
Four, specify next description document, promptly allow service module carry out another time again and describe operation or default action according to operation; For example: after external memory storage inserts embedded system, service module at first is described operation according to the current mode of operation of having set, and is to carry out default action and describe the content of operating, then in this management, service module can be carried out earlier and describe operation, carries out default action then again.That is to say that behind the insertion external memory storage, the work of service module might comprise once or indefinite description operation and/or the default action of once above order.From above as can be known, if desired after inserting external memory storage, allow service module carry out default action or description operation in certain sequence, two kinds of methods can be arranged, the one, in mode of operation, set; The 2nd, realize by the nesting allocation of description document.
Five, directly realize corresponding function by operating system.
Preamble described " optionally utilizing the respective resources in the external memory storage " just is meant in the process according to the description document content operation, may use command file and data or wherein a kind of in the external memory storage, may use their all or part of contents, also may what all use less than.
Service module manages embedded system according to the content operation of description document.For example the content of description document is data to be carried out in the data field in the embedded system increase, then service module reads this description document, call the module that increases in the file system according to the description document content, the data that are kept in the external memory storage are copied in the data field.Again for example, the content of description document is that the functional module to multi-functional module in the embedded system file system increases, then service module reads this description document, call the module that increases in the file system according to the description document content, being kept at newer command file copy in the external memory storage in file system, as a new functional module.Again for example, the content of described description document is that the specific data in embedded system data district is deleted, then service module reads this description document, calls removing module in the file system automatically according to the description document content, the data file in deletion specific data district.Again for example, the content of described description document is that the module of multi-functional module in the embedded system file system is upgraded or increased, then service module reads this description document, call the module that increases in the file system according to the description document content, upgrade or be added to command file in the file system being stored in being about in the external memory storage in advance, the former module in the substitute files system or download to and become a new functional module in the file system.Again for example, the content that is stored in the description document in the embedded system is that the operation for embedded system situation is tested, and be kept at the data field assigned address, the content of description document is from embedded system data district assigned address data download in the external memory storage, if the Working mode set of current service module is to carry out default action earlier, the default action operation finishes to carry out again and describes operation, then service module can read the description document that is stored in the embedded system earlier, call the test module that has been kept in advance in the file system according to the description document content, the data field assigned address is tested and be kept to the operation for embedded system situation, after the default action operation finishes, service module is description document in the reading external memory again, according to this description document content, carry out corresponding operating.
A kind of method that embedded system is managed is characterized in that, comprising:
(a) when operation for embedded system, external memory storage is inserted embedded system; Store description document and resource in the external memory storage, or one of them; The content preamble of described resource, description document is mentioned, repeats no more here.
(b) if operating system when embedded system starts with regard to the modulated service module of using, service module is to be introduced into sleep state, the module of operating system call service at this moment; If service module also is not called, then this moment, operating system was called service module.Service module is started working.
In actual applications, the equipment of insertion may not be external memory storage, so can judge to the equipment that inserts earlier after the service module work that if insertion is not memory device, service module just withdraws from or change over to sleep state.If then set up being connected of external memory storage and file system; After successful connection, carry out (c); Unsuccessful also is to withdraw from or change over to sleep state.
(c) service module according to the mode of operation of setting according in the external memory storage and/or be stored in description document in the embedded system, directly by operating system or call corresponding functional modules, optionally utilize the resource in the external memory storage that embedded system is managed; Manage the system that finishes and continue operation.
Here the implication front of " mode of operation ", " management " and " optionally utilizing the respective resources in the external memory storage " is existing explains, repeats no more.
In step (c), if service module finds that the description document or the resource that will read are not the structures that service module can correctly be discerned, or does not exist, or occurs other mistake in operating process, then service module withdraws from or changes over to sleep state, and system is to the user report error message.
If in management, system is upgraded---comprise additions and deletions and modification, system was according to software or data run after upgrading after then management finished.When having equipment to insert again, begin to carry out from (a).
In management, each step can use modes such as literal, sound, image, light to point out the user to manage the state that carries out automatically.
Shown in Figure 3 is in the operation for embedded system process, a kind of flow process that service module manages embedded system under the sleep state situation, in this flow process, the mode of operation of having set service module is when external memory storage inserts, whether detect wherein has description document, if have, then read this description document and, promptly carry out the description operation according to its content operation; Otherwise execution default action; This flow process may further comprise the steps:
301, embedded system os starting, the operating system of embedded system is called service module;
302, service module enters sleep state, thus few occupying system resources;
Whether 303A, operating system monitor has hot-plug equipment to insert embedded system, to have and then carry out 303B, does not have and then continues to monitor;
303B, operating system send wake-up signal to service module;
304, service module receives wake-up signal, and service module is waken up.Whether the equipment that the service module inspection is inserted is memory device---be external memory storage, if, enter step 305, if not, turn back to step 302;
305, the external memory storage of service module foundation insertion makes service module to operate the content of storing in the external memory storage to the connection between the file system of embedded system.If successful connection enters step 306, if connection failure turns back to step 302;
306, in the external memory storage that the service module inspection is inserted whether description document is arranged; If description document is arranged, enter step 308; If do not enter step 307;
307, service module reads the description document that is stored in the embedded system, enters step 309A;
308, description document in the service module reading external memory enters step 308A;
308A, judge whether the description document in the external memory storage is the discernible structure of service module, if then enter step 309A; Otherwise turn back to step 302;
If the resource that 309A uses in the external memory storage enters step 309B; Otherwise enter step 309C;
Whether the resource in the external memory storage that 309B, judgement will be used exists and is the discernible structure of service module, can discern if exist also, then enters step 309C; Otherwise turn back to step 302;
309C, service module manage embedded system according to the content operation of the description document that is read; Enter step 309;
309, file system operation finishes, and promptly manages embedded system and finishes;
310, embedded system operating system continues operation; And return step 302.
Shown in Figure 4 is in the operation for embedded system process, the another kind of flow process that under the situation of service module plug and play embedded system is managed, in this flow process, the mode of operation of having set service module is when external memory storage inserts, whether detect wherein has description document, if have, then read this description document and, promptly carry out the description operation according to its content operation; Otherwise execution default action; May further comprise the steps:
401, starting of embedded operation system operation;
Whether 402A, supervision have hot-plug equipment to insert embedded system, have and then carry out 402B, do not have and then continue to monitor;
402B, hot-plug equipment insert embedded system, and operating system is called service module;
403, whether the equipment of service module inspection insertion is memory device---be external memory storage, if, enter step 404, if not, step 409 entered;
404, the step 305 in the same flow process; If successful connection enters step 405, if connection failure enters step 409;
405, the step 306 in the same flow process; If description document is arranged, enter step 407; If do not enter step 406;
406, the step 307 in the same flow process; Enter step 408A;
407, the step 308 in the same flow process; Enter step 407A;
407A, judge whether the description document in the external memory storage is the discernible structure of service module, if then enter step 408A; Otherwise enter step 409;
If the resource that 408A uses in the external memory storage enters step 408B; Otherwise enter step 409;
408B, judge the whether existence in the external memory storage that to use and be the discernible structure of service module, can discern, then enter step 408C if exist also; Otherwise enter step 409;
408C, service module manage embedded system according to the content operation of the description document that is read; Enter step 408;
408, file system operation finishes, and promptly embedded system is managed automatically and finished, and enters step 409;
409, service module withdraws from;
410, the step 310 in the same flow process is returned step 402A.
Step 307 to step 309C and step 406 in step 408C, service module is carried out default action, promptly reads the description document that is stored in the embedded system and according to its content operation.Step 308 to step 309C and step 407 in step 408C, service module is carried out and is described operation, i.e. description document in the reading external memory and according to its content operation.
Further be illustrated technical scheme of the present invention with several examples of application of the present invention more below.
Application example 1: deletion in embedded system, interpolation file;
The purpose of this example is the data file A under the assigned catalogue of data field in the deletion embedded system, and data file B under the assigned catalogue in the external memory storage is added under the assigned catalogue of the data field in the embedded system.
Suppose current embedded system and external memory storage state: the functional module in the embedded system file system has update module, lacks removing module, and data file A is arranged under the assigned catalogue of data field in the embedded system; External memory storage has been preserved script file, delete command file, data file B.It is delete command file in the service module reading external memory that script file is described content, and duplicates delete command file file system in the embedded system, becomes removing module; And call removing module, data file A under the assigned catalogue of data field in the deletion embedded system; And call and increase module, under the assigned catalogue with the data field of data file B file copy under the assigned catalogue in the external memory storage in the embedded system; Should be when external memory storage inserts with the mode of operation of having set service module in the example, detect whether description document is wherein arranged,, then read this description document and, promptly carry out peripheral operation according to its content operation if having; Otherwise execution built-in function.
Should be with the description document in the example reading external memory, being embodied as in the 309C of above-mentioned flow process or step 408C afterwards:
Step 1: service module is according to the script file in the external memory storage, call and increase module, delete command file in the reading external memory, and duplicate delete command file file system in the embedded system, become removing module, service module calls removing module, the data file A under the assigned catalogue in deleted data district;
Step 2: service module calls the interpolation module according to the script file in the external memory storage, and under the assigned catalogue with the data field of the data file B file copy under the assigned catalogue in the external memory storage in the embedded system, operation finishes.
Wherein, step 1 and step 2 are write according to script file, set up sequencing on their own, also can carry out simultaneously.
This application example is an one-way only operation, and embedded system is from the external memory storage reading of data.
Application example 2: test operation for embedded system situation also forms the test data preservation;
Should be test operation for embedded system situation with the purpose of example, and preserve external memory storage preserving test data.
Suppose current embedded system and external memory storage state: the functional module in the embedded system file system has test module.External memory storage has been preserved script file.Script file is described content for calling test module, within a certain period of time operation for embedded system is carried out tracking and testing, and end of test (EOT) saves as document form with test result, downloads in the external memory storage under the assigned catalogue.Should be when external memory storage inserts with the mode of operation of having set service module in the example, detect whether description document is wherein arranged,, then read this description document and, promptly carry out peripheral operation according to its content operation if having; Otherwise execution built-in function.
Should be with the description document in the example reading external memory, being embodied as in the 309C of above-mentioned flow process or step 408C afterwards:
Step 1: service module calls test module according to the script file in the external memory storage, within a certain period of time operation for embedded system is carried out tracking and testing according to the regulation in the script;
Step 2: end of test (EOT), test result saves as document form, downloads in the external memory storage under the assigned catalogue, and operation finishes.
Should be bidirectional operation with example, embedded system be from the external memory storage reading of data and write data in external memory storage.
Application example 3: externally in the storer under the situation of no description document, embedded system is carried out default action;
Should be that externally storer does not have under the script file situation with the purpose of example, embedded system increases functional module according to the description document that is stored in the embedded system in embedded system.
Suppose current embedded system and external memory storage state: in the embedded system file system, have the module of increasing.Should be when external memory storage inserts with the mode of operation of having set service module in the example, detect whether description document is wherein arranged,, then read this description document and, promptly carry out peripheral operation according to its content operation if having; Otherwise execution built-in function.The content that is stored in the description document in the embedded system is: call and increase module, the file under the reading external memory assigned catalogue copies in the embedded system file system, as a new functional module.External memory storage hold-over command file under assigned catalogue.
Should not have description document in the external memory storage with in the example, therefore read the description document that is stored in the embedded system, in 309C or step 408C, be embodied as afterwards:
Step 1: service module is according to operation: call automatically and increase module, the command file under the reading external memory assigned catalogue copies in the embedded system file system, and as a new functional module, operation finishes.
Should be one-way only operation with example, embedded system be from the external memory storage reading of data.
By top description and example as can be known, when needs manage embedded system, the user only need be written as the operation that needs are carried out description document or download fixing description document and be stored in external memory storage or the embedded system, and when needed, command file that will be used for increasing or upgrade and data storage be storer externally, it is just passable then external memory storage to be inserted operating embedded system, remaining spontaneous the carrying out of operation meeting, and do not need manual intervention, thus, system and method for the present invention has been realized a kind of automatic management to embedded system to a certain extent.

Claims (12)

1, a kind of system that embedded system is managed is characterized in that, comprising: embedded system and external memory storage; Described external memory storage is used to store description document and resource or one of them;
Described embedded system comprises the functional module and the operating system of service module, one or above realization difference in functionality;
Described operating system is used to find when external memory storage inserts service module is started working;
Described service module is called by operating system, and external memory storage is read and write in the support of passing through operating system, be used for after external memory storage inserts embedded system, according in the mode of operation reading external memory of setting and/or be stored in description document in the embedded system, and according to the description document content directly by operating system or call corresponding functional modules and embedded system is managed according to one of following manner:
Utilize that stored resource manages embedded system in all or part of described external memory storage;
No matter storage resources whether in the external memory storage manages embedded system, does not need to utilize described resource.
2, the system as claimed in claim 1, it is characterized in that: described embedded system also comprises makes the hot plug server that external memory storage can the hot plug embedded system, connect described operating system and external memory storage, be used for the various operational orders of interpreter operation system external memory storage; The interface of described external memory storage and described hot plug server coupling.
3, the system as claimed in claim 1 is characterized in that, described service module comprises a kind of or its combination in the following situation to the management of embedded system:
Upgrade the data of additions and deletions embedded system;
Upgrade the functional module of additions and deletions embedded system;
Test the embedded system situation and the result is write external memory storage or embedded system data district assigned address;
The catalogue of management and browser document system.
4, the system as claimed in claim 1 is characterized in that: in described mode of operation, set the description document that will read, and set the conditioned disjunction setting of reading this description document and unconditionally read this description document; When the description document that will read surpasses one, set the order that reads each description document; Described service module reads corresponding description document according to described setting and according to its content operation.
5, the system as claimed in claim 1 is characterized in that, service module manages embedded system according to a kind of in the following situation:
Read this description document when in the external memory storage description document being arranged and according to its content operation, read the description document that is stored in the embedded system when not having description document and according to its content operation;
The description document that no matter whether has description document all to read in the external memory storage to be stored in the embedded system and according to its content operation;
Elder generation in the reading external memory description document and according to its content operation, read the description document that is stored in the embedded system then and according to its content operation; Or
Read the description document that is stored in the embedded system earlier and according to its content operation; Description document in the reading external memory and according to its content operation then.
6, the system as claimed in claim 1, it is characterized in that, stored resource comprises in the described external memory storage: be used to replace former functional module or as the command file of what's new module, and be used to replace former data or as the data of newly-increased data, or one of them.
7, the system as claimed in claim 1 is characterized in that, described functional module is included in the multi-functional module in the file system; Functional module in the multi-functional module can increase, deletes, replaces or revise.
8, a kind of method that embedded system is managed is characterized in that, comprising:
(a) when operation for embedded system, insert embedded system with storing description document and resource or the external memory storage of one of them;
(b) operating system is found when external memory storage inserts service module to be started working;
(c) service module is according in the mode of operation reading external memory of setting and/or be stored in description document in the embedded system, and according to its content directly by described operating system or call corresponding functional modules and embedded system is managed according to one of following manner:
Utilize that stored resource manages embedded system in all or part of described external memory storage;
No matter storage resources whether in the external memory storage manages embedded system, does not need to utilize described resource;
Manage the system that finishes and continue operation.
9, method as claimed in claim 8 is characterized in that, service module described in the step (c) comprises a kind of or its combination in the following situation to the management of embedded system:
Upgrade the data of additions and deletions embedded system;
Upgrade the functional module of additions and deletions embedded system;
Test the embedded system situation and the result is write external memory storage or embedded system data district assigned address;
The catalogue of management and browser document system.
10, method as claimed in claim 8 is characterized in that: in described mode of operation, set the description document that will read, and set the conditioned disjunction setting of reading this description document and unconditionally read this description document; When the description document that will read surpasses one, set the order that reads each description document; Described service module reads corresponding description document according to described setting and according to its content operation.
11, method as claimed in claim 8 is characterized in that, in the step (c), service module manages embedded system according to a kind of in the following situation:
Read this description document when in the external memory storage description document being arranged and according to its content operation, read the description document that is stored in the embedded system when not having description document and according to its content operation;
The description document that no matter whether has description document all to read in the external memory storage to be stored in the embedded system and according to its content operation;
Elder generation in the reading external memory description document and according to its content operation, read the description document that is stored in the embedded system then and according to its content operation; Or
Read the description document that is stored in the embedded system earlier and according to its content operation; Description document in the reading external memory and according to its content operation then.
12, method as claimed in claim 8 is characterized in that, described resource comprises: be used to replace former functional module or as the command file of what's new module, and be used to replace former data or as the data of newly-increased data, or one of them.
CN200610144824A 2006-11-21 2006-11-21 System and method for embedded system Expired - Fee Related CN100585559C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610144824A CN100585559C (en) 2006-11-21 2006-11-21 System and method for embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610144824A CN100585559C (en) 2006-11-21 2006-11-21 System and method for embedded system

Publications (2)

Publication Number Publication Date
CN101192159A CN101192159A (en) 2008-06-04
CN100585559C true CN100585559C (en) 2010-01-27

Family

ID=39487168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610144824A Expired - Fee Related CN100585559C (en) 2006-11-21 2006-11-21 System and method for embedded system

Country Status (1)

Country Link
CN (1) CN100585559C (en)

Also Published As

Publication number Publication date
CN101192159A (en) 2008-06-04

Similar Documents

Publication Publication Date Title
CN102023881B (en) Method and device for upgrading software as well as embedded device
AU756274B2 (en) Software installation and testing for a build-to-order computer system
US8286154B2 (en) Apparatus and method for live loading of version upgrades in a process control environment
TWI575362B (en) Backup method, pre-testing method for enviornment updating and system thereof
CN102053831B (en) Linux operating system customizing method and system
CN101853172A (en) Device and method for dynamically upgrading complex programmable logic device (CPLD)
CN101317381A (en) Ability management object maintenance, ability management method, system and terminal
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN103049405B (en) Android device file management method and system
CN103530150A (en) Remote updating method for Linux operating system
CN106681956A (en) Method and device for operating large-scale computer cluster
CN101268443A (en) Boot performance optimization for hard drive for personal internet communicator
CN107992407A (en) System and method using USB flash disk to android terminal equipment debugging
CN103916449A (en) Remote backup system and remote backup method thereof
CN101268620A (en) Device management system and method for managing device management object
CN111857777B (en) System updating method and device based on double-core intelligent ammeter and computer equipment
CN111596930B (en) Root file system mirror image manufacturing method and device, storage medium and embedded device
CN101169729A (en) Embedded type system and method for renewing application program
US8140475B1 (en) Dynamic configuration archival and retrieval
CN106951593B (en) Method and device for generating configuration file of protection measurement and control device
RU2294015C2 (en) Method for automatic modeling of system for controlling process and system for controlling process
CN102054041A (en) Method and system for upgrading metadata
CN103995717A (en) Method for upgrading software in embedded device
JP6442131B2 (en) Control system and control device
JP4110557B2 (en) Inspection apparatus and programming system provided with program execution 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
ASS Succession or assignment of patent right

Owner name: BEIJING SUNPLUS EHUE TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING BEIYANG ELECTRONIC TECHNOLOGY CO., LTD.

Effective date: 20140318

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20140318

Address after: Science and Industry Park, Taiwan, Hsinchu, China, No. 19

Patentee after: Lingyang Science and Technology Co., Ltd.

Patentee after: BEIJING SUNPLUS-EHUE TECHNOLOGY CO., LTD.

Address before: Science and Industry Park, Taiwan, Hsinchu, China, No. 19

Patentee before: Lingyang Science and Technology Co., Ltd.

Patentee before: Beijing Beiyang Electronic Technology Co., Ltd.

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

Granted publication date: 20100127

Termination date: 20161121

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