[go: up one dir, main page]

CN104461594B - The upgrade method and device of embedded OS - Google Patents

The upgrade method and device of embedded OS Download PDF

Info

Publication number
CN104461594B
CN104461594B CN201310433674.6A CN201310433674A CN104461594B CN 104461594 B CN104461594 B CN 104461594B CN 201310433674 A CN201310433674 A CN 201310433674A CN 104461594 B CN104461594 B CN 104461594B
Authority
CN
China
Prior art keywords
upgrade
upgrade file
embedded
main program
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310433674.6A
Other languages
Chinese (zh)
Other versions
CN104461594A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201310433674.6A priority Critical patent/CN104461594B/en
Publication of CN104461594A publication Critical patent/CN104461594A/en
Application granted granted Critical
Publication of CN104461594B publication Critical patent/CN104461594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of upgrade method of embedded OS and devices, in the above-mentioned methods, receive the upgrade file packet from server, and upgrade file packet is stored to default storage region;Embedded OS is restarted, upgrade file packet is obtained from default storage region and integrality and accuracy verification are carried out to upgrade file packet;If verified successfully, updating operation is carried out using upgrade file packet, and shielded disk is written into the data modified during updating operation using the pre-set commands in EWF after the completion of updating operation.The technical solution provided according to the present invention realizes and carries out remote upgrade to embedded device, and updating operation is highly reliable, highly-safe.

Description

The upgrade method and device of embedded OS
Technical field
The present invention relates to built-in fields, in particular to the upgrade method and device of a kind of embedded OS.
Background technique
Currently, the function of remote upgrade is most important for embedded device in the related technology, which can To significantly simplify the remote maintenance and management difficulty of embedded device.Such as: when embedded device occur software fault (bug) or When person needs to increase new function, can by network to embedded device program carry out remote upgrade come complete maintenance and it is more newly appointed Business.
Windows XP Embedded operating system is a kind of embedded OS of Microsoft's research and development, can be by adopting The function that Windows operating system is customized with the form of modularization, so that embedded development personnel can only select those Abundant customization characteristic needed for the embedded device of small coverage area.Currently used Windows XP Embedded structure The embedded device for building operating system increases increasingly, such as: safety monitoring equipment, retail sales point terminal, thin client and Advanced set-top box etc..
In remote upgrade procedure, Windows XP Embedded behaviour is still either based on based on (SuSE) Linux OS Make the embedded device of system, the reliability and safety processing in escalation process are both needed to be fully considered, while by The difference existing for different types of operating system itself, reliability and safety processing of the two in escalation process are also deposited In biggish difference, however, lacking in the related technology how for the insertion based on Windows XP Embedded operating system The technical solution of formula equipment progress remote upgrade.
Summary of the invention
The present invention provides a kind of upgrade method of embedded OS and devices, at least to solve to lack in the related technology Aiming at the problem that the weary technical solution for carrying out remote upgrade the embedded device based on embedded OS.
According to an aspect of the invention, there is provided a kind of upgrade method of embedded OS.
The upgrade method of embedded OS according to the present invention includes: the upgrade file received from server Packet, and upgrade file packet is stored to default storage region;Embedded OS is restarted, from default memory block Upgrade file packet is obtained in domain and integrality and accuracy verification are carried out to upgrade file packet;If verified successfully, using liter Grade file packet carries out updating operation, and using the pre-set commands in enhanced write-in filter (EWF) after the completion of updating operation Shielded disk is written into the data modified during updating operation.
Preferably, embedded OS is restarted, obtains upgrade file packet simultaneously from default storage region Carrying out integrality and accuracy verification to upgrade file packet includes: to start remote upgrade while starting embedded OS Service routine, wherein remote upgrade service routine is preconfigured to be with operation when starting of embedded operation system;Using long-range Upgrade service Programmable detection whether there is upgrade file packet in default storage region;If it is present to upgrade file packet into Row integrality and accuracy verification.
Preferably, carrying out updating operation using upgrade file packet includes: using remote upgrade service routine to process list It is detected, judges whether the embedded main program in embedded OS is currently currently running;If it is, closing insertion Formula main program;Embedded main program is updated using upgrade file packet.
Preferably, being updated using upgrade file packet to embedded main program includes: to split to upgrade file packet Processing obtains the first upgrade file set and the second upgrade file set, wherein the first upgrade file set is used for embedded New data is added in main program, the second upgrade file set is for replacing already existing data in embedded main program It changes;Embedded main program is updated using the first upgrade file set and the second upgrade file set.
Preferably, above-mentioned embedded OS is Windows XP Embedded operating system.
According to another aspect of the present invention, a kind of update device of embedded OS is provided.
The update device of embedded OS according to the present invention includes: receiving module, for receiving from service The upgrade file packet of device, and upgrade file packet is stored to default storage region;Correction verification module, for embedded OS It is restarted, upgrade file packet is obtained from default storage region and integrality and accuracy school is carried out to upgrade file packet It tests;Upgraded module, if carrying out updating operation using upgrade file packet, and adopt after the completion of updating operation for verifying successfully Shielded disk is written into the data modified during updating operation with the pre-set commands in EWF.
Preferably, correction verification module includes: start unit, for starting long-range rise while starting embedded OS Grade service routine, wherein remote upgrade service routine is preconfigured to be with operation when starting of embedded operation system;First inspection Unit is surveyed, for whether there is upgrade file packet in default storage region using the detection of remote upgrade service routine;Verification is single Member, for when first detection unit output is is, then carrying out integrality to upgrade file packet and accuracy verifying.
Preferably, upgraded module includes: second detection unit, for using remote upgrade service routine to process list into Row detection, judges whether the embedded main program in embedded OS is currently currently running;Closing unit, for second Detection unit output is when being, then to close embedded main program;Updating unit, for using upgrade file packet to embedded main journey Sequence is updated.
Preferably, updating unit includes: acquisition subelement, for carrying out deconsolidation process to upgrade file packet, obtains first Upgrade file set and the second upgrade file set, wherein the first upgrade file set into embedded main program for adding New data, the second upgrade file set is for being replaced already existing data in embedded main program;Subelement is updated, For being updated using the first upgrade file set and the second upgrade file set to embedded main program.
Preferably, above-mentioned embedded OS is Windows XP Embedded operating system.
Through the invention, using the upgrade file packet received from server, and upgrade file packet is stored to default Storage region;Embedded OS is restarted, upgrade file packet is obtained from default storage region and to upgrading File packet carries out integrality and accuracy verification;If verified successfully, updating operation is carried out using upgrade file packet, and rising Shielded disk is written into the data modified during updating operation using the pre-set commands in EWF after the completion of grade operation, A reboot operation is executed to protected to embedded system terminal i.e. after receiving the upgrade file packet from server Disk restored, and the data modified in escalation process are written to being protected by using the pre-set commands of EWF technology Thus the disk of shield solves the relevant technologies so that it is guaranteed that shielded disk will not be infected by virus in escalation process It is middle to lack aiming at the problem that embedded device based on embedded OS carries out the technical solution of remote upgrade, and then realize Remote upgrade is carried out to embedded device, and updating operation is highly reliable, highly-safe.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the upgrade method of embedded OS according to an embodiment of the present invention;
Fig. 2 is that remote upgrade controller according to the preferred embodiment of the invention carries out upgrading control to embedded system terminal Schematic diagram;
Fig. 3 is inside embedded system terminal according to the preferred embodiment of the invention according to the remote upgrade file received Packet executes the flow chart of updating operation;
Fig. 4 is the structural block diagram of the update device of embedded OS according to an embodiment of the present invention;
Fig. 5 is the structural block diagram of the update device of embedded OS according to the preferred embodiment of the invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
In the following description, unless otherwise specified, by with reference to the movement and behaviour executed by one or more computers The symbol of work indicates to describe present embodiments.Wherein, computer includes personal computer, server, mobile terminal Etc. various products, used central processing unit (CPU), single-chip microcontroller, digital signal processor (DSP) etc. that there is processing chip to set It is standby to be properly termed as computer.As such, it will be understood that this kind of movement and operation of sometimes referred to as computer execution include calculating Manipulation of the processing unit of machine to the electric signal for indicating data with structured form.This manipulation transforms data or in computer Storage system in position on safeguard it, in terms of this reconfigures or changes in such a way that those skilled in the art understands The operation of calculation machine.The data structure for safeguarding data is that have the physical bit of the memory of particular community defined in the format of data It sets.However, although it does not mean restrictive, such as those skilled in the art in the above-mentioned described in the text present invention up and down What member was understood, the various aspects of movement and operation described below can also be realized with hardware.
Attached drawing is turned to, wherein identical reference label refers to identical element, the principle of the application is illustrated as closing at one It is realized in suitable calculating environment.It is described below based on the embodiments herein, and is not considered as about herein not The alternative embodiment that is expressly recited and limit the application.
Following embodiment can be applied in computer, such as: it is applied in personal computer (PC), also can be applied to It uses in the mobile terminal in intelligent operating system, and is not limited to this at present.For the behaviour of computer or mobile terminal Making system, there is no particular/special requirements, if it is able to detect contact, determines whether the contact is consistent with pre-defined rule, and according to The attribute of the contact realizes corresponding function.
Fig. 1 is the flow chart of the upgrade method of embedded OS according to an embodiment of the present invention.As shown in Figure 1, should Method may include following processing step:
Step S102: the upgrade file packet from server is received, and upgrade file packet is stored to default memory block Domain;
Step S104: restarting embedded OS, and upgrade file packet is obtained from default storage region And integrality and accuracy verification are carried out to upgrade file packet;
Step S106: if verified successfully, updating operation is carried out using upgrade file packet, and after the completion of updating operation Shielded disk is written into the data modified during updating operation using the pre-set commands in EWF.
In the related technology, lack the technical side that remote upgrade is carried out for the embedded device based on embedded OS Case.Using method as shown in Figure 1, the upgrade file packet from server is received, and upgrade file packet is stored to default Storage region;Embedded OS is restarted, upgrade file packet is obtained from default storage region and to upgrading File packet carries out integrality and accuracy verification;If verified successfully, updating operation is carried out using upgrade file packet, and rising Shielded disk is written into the data modified during updating operation using the pre-set commands in EWF after the completion of grade operation, A reboot operation is executed to protected to embedded system terminal i.e. after receiving the upgrade file packet from server Disk restored, and the data modified in escalation process are written to being protected by using the pre-set commands of EWF technology Thus the disk of shield solves the relevant technologies so that it is guaranteed that shielded disk will not be infected by virus in escalation process It is middle to lack aiming at the problem that embedded device based on embedded OS carries out the technical solution of remote upgrade, and then realize Remote upgrade is carried out to embedded device, and updating operation is highly reliable, highly-safe.
Enhanced write-in filter (Enhanced Write Filter, referred to as EWF) protection technique provides a kind of guarantor Shield disk with prevent write-in means, make operating system (OS) can from read-only media (such as: CD ROM, write-protect are hard Disk or flash memory) in starting.The write-in all carried out to the disk protected by EWF is all redirected to covering.These write-in quilts It is buffered in a part in covering and as disk to provide, thus generates the writeable presentation of the disk.Covering is likely to be present in In disk or random-access memory (RAM), if it is desired, the data that stored in covering can also be submitted to shielded magnetic Disk.
In a preferred implementation process, above-mentioned embedded OS is Windows XP Embedded operating system.
Windows XP Embedded operating system is the modularization of Windows XP Professional operating system Windows XP Professional operating system function collection abundant is introduced into embedded device by version.Pass through group Part function, Windows XP Embedded operating system can be constructed easily only comprising necessary to embedded device The runtime images of Windows component.In brief, Windows XP Embedded operating system is equivalent to Windows XP One simple version of Professional operating system.
As a preferred embodiment of the present invention, Fig. 2 is remote upgrade controller according to the preferred embodiment of the invention The schematic diagram of upgrading control is carried out to embedded system terminal.As shown in Fig. 2, remote upgrade is by remote upgrade controller (phase When in above-mentioned server) initiate, below by the information exchange between remote upgrade controller and embedded system terminal into Row detailed description:
Step S202: when remote upgrade controller, which determines, to be needed to carry out remote upgrade to embedded system terminal, firstly, Upgrade file packet can be sent to embedded system terminal by network by remote upgrade controller;Then, embedded system terminal The upgrade file packet received is stored into glue file catalogue (i.e. above-mentioned default storage region).
It should be noted that reception and storage to upgrade file packet are by embedded system end in above-mentioned steps The main program at end is completed.
Step S204: after upgrade file packet is sent embedded system terminal by remote upgrade controller, and then Can also reset command be sent so that embedded system terminal executes restarting operation.
In the preferred embodiment, the step is primarily to enhance the safety of remote upgrade procedure.It is well known that Windows operating system existing defects in terms of anti-virus, and Windows XP Embedded operating system is self-contained has EWF protection technique, and EWF provides a kind of means for protecting disk to prevent from being written, so as to be effectively prevented viral sense Dye.Under normal conditions, the operating system of embedded device and master program file can all be protected by EWF, and remote upgrade procedure Meeting carries out file copy to the main program of embedded device and covering operates, and these modified data are utilized EWF technology Pre-set commands (such as: commit order) submit to shielded disk.If embedded before remote upgrade procedure starts Equipment virus infection, although virus can't generate any influence to shielded disk due to the protection of EWF technology, But modified data are submitted to the same of shielded disk by the commit command operation executed in remote upgrade procedure When also viral data can be submitted to shielded disk.Therefore, to embedded system terminal after receiving upgrade file packet Executing a reboot operation can be effectively avoided above situation because system reset operation can to shielded disk into Row restoring operation, to guarantee that shielded disk will not be infected by virus in escalation process.
Preferably, in step S104, embedded OS is restarted, is obtained from default storage region Upgrade file packet and to upgrade file packet carry out integrality and accuracy verification may include following operation:
Step S1: start remote upgrade service routine while starting embedded OS, wherein remote upgrade clothes Business program is preconfigured to be with operation when starting of embedded operation system;
Step S2: upgrade file packet whether there is in default storage region using the detection of remote upgrade service routine;
Step S3: if it is present carrying out integrality and accuracy verification to upgrade file packet.
In a preferred embodiment, when embedded system terminal is after receiving upgrade file packet, it will restarting is embedding Enter formula operating system.Therefore, in order to effectively detect upgrade file packet, to enhance the reliability of remote upgrade operation, Remote upgrade service routine can be arranged to system service program and register booting self-starting type, be added to starting up , to start remote upgrade service routine while starting embedded OS.In addition, it is contemplated that in escalation process Power-off may occur for embedded system terminal or network is disconnected because being abnormal, so as to cause upgrading text is received There is mistake in part packet, if being verified by integrality and accuracy, discovery check results show upgrade file packet be it is invalid, then can Upgrade file packet is deleted, without updating operation.
Preferably, in step s 106, carrying out updating operation using upgrade file packet may comprise steps of:
Step S4: process list is detected using remote upgrade service routine, is judged in embedded OS Whether embedded main program is currently currently running;
Step S5: if it is, closing embedded main program;
Step S6: embedded main program is updated using upgrade file packet.
In a preferred embodiment, due to needing to be updated the embedded main program in embedded OS, however If embedded main program is currently running, will be unable to execute updating operation to embedded main program.For this purpose, executing Before updating operation, first process list is detected using remote upgrade service routine, be judged in embedded OS Embedded main program currently whether be currently running, if it is, closing embedded main program;If it is not, then can directly into Row updating operation.
Preferably, in step s 6, being updated using upgrade file packet to embedded main program may include following behaviour Make:
Step S61: deconsolidation process is carried out to upgrade file packet, obtains the first upgrade file set and the second upgrade file collection Close, wherein the first upgrade file set for adding new data into embedded main program, the second upgrade file set for pair Already existing data are replaced in embedded main program;
Step S62: embedded main program is carried out more using the first upgrade file set and the second upgrade file set Newly.
In a preferred embodiment, the data modified in escalation process may include two parts:
First part, the already existing data in current embedded main program, therefore, it is necessary to hold to the partial data Row covering operation, using the corresponding data split out in upgrade file packet, by data already existing in embedded main program into Row replacement;
Second part, the not existing data in current embedded main program, therefore, it is necessary to execute to the partial data Copy function, by the new data direct copying split out in upgrade file packet to embedded main program.
Above-mentioned preferred implementation process is further described below in conjunction with preferred embodiment shown in Fig. 3.
Fig. 3 is inside embedded system terminal according to the preferred embodiment of the invention according to the remote upgrade file received Packet executes the flow chart of updating operation.As shown in figure 3, the process may include following processing step:
Step S302: embedded system terminal starts embedded OS.
Step S304: embedded system terminal starts remote upgrade service routine.
In the preferred embodiment, according to embedded system terminal above-mentioned after receiving upgrade file packet, Embedded OS will be restarted.Therefore, in order to effectively detect upgrade file packet, to enhance remote upgrade Remote upgrade service routine can be arranged to system service program and register booting self-starting type by the reliability of operation, It is added to starting up.
Step S306: when the operating system starts up, remote upgrade service routine will also start embedded system terminal, remotely It can be detected after the starting of upgrade service program under glue file catalogue with the presence or absence of upgrade file packet;If it does not exist, then remote upgrade Service routine stops detection;If it exists, then can integrality to remote upgrade file packet and accuracy verify, risen with determining The validity of grade file packet, continues to execute step S308.
In the preferred embodiment, validity check mainly considers that embedded system terminal may in escalation process Power-off can occur or network is disconnected because being abnormal, mistake occur so as to cause upgrade file packet is received, if school Test upgrade file packet as the result is shown be it is invalid, then will be deleted upgrade file packet, without updating operation.
Step S308: remote upgrade service routine by process list detected with the embedded main program of determination whether It has been started up, if embedded main program has been started up, continues to execute step S310;Otherwise, according to the preset time interval into The detection of row duration.
Step S310: embedded system terminal closes embedded main program.
Step S312: for embedded system terminal after closing embedded main program, remote upgrade service routine will be into Row upgrade file packet fractured operation, and file copy and covering operation are carried out to embedded main program again after the completion of fractionation.
Step S314: embedded system terminal is completed to carry out embedded main program file copy and is covering operation Afterwards, upgrade file packet is deleted.
Step S316: for embedded system terminal after the replacement operation for completing embedded main program, remote upgrade services journey Sequence can execute commit command operation using EWF technology and the data modified in escalation process are submitted to shielded disk, from And data are veritably written in disk, embedded OS is then restarted, what is executed in this step opens again Dynamic operation mainly in view of the personal preference or personal habits of user, restarting be in order to ensure upgrading after it is embedded Main program can operate normally, and certainly, user, which also can choose, restarts again after a period of time or use always at present Embedded main program is without restarting.
It should be noted that due to remote upgrade controller by upgrade file packet be sent to embedded system terminal it Afterwards, and then can also reset command be sent so that embedded system terminal execution restarting operation, therefore, holds in this step Viral data will not be written in capable commit command operation, and whole flow process is safe.
Step S318: after the restarting for completing embedded OS, so far, entire remote upgrade procedure is all complete At.
Fig. 4 is the structural block diagram of the update device of embedded OS according to an embodiment of the present invention.As shown in figure 4, The update device of the embedded OS may include: receiving module 10, for receiving the upgrade file from server Packet, and upgrade file packet is stored to default storage region;Correction verification module 20, for being opened again embedded OS It is dynamic, upgrade file packet is obtained from default storage region and integrality and accuracy verification are carried out to upgrade file packet;Upgrade mould Block 30, if carrying out updating operation using upgrade file packet, and using in EWF after the completion of updating operation for verifying successfully Pre-set commands shielded disk is written into the data modified during updating operation.
Using device as shown in Figure 4, solves and lack in the related technology for the insertion based on embedded OS Formula equipment carries out the problem of technical solution of remote upgrade, and then realizes and carry out remote upgrade to embedded device, and upgrade Operating reliability is strong, highly-safe.
In a preferred implementation process, above-mentioned embedded OS is Windows XP Embedded operating system.
Preferably, as shown in figure 5, correction verification module 20 may include: start unit 200, in starting embedded operation Start remote upgrade service routine while system, wherein remote upgrade service routine is preconfigured to be with embedded operation System is run when starting;First detection unit 202, for being in default storage region using the detection of remote upgrade service routine It is no that there are upgrade file packets;Verification unit 204, for when first detection unit output is is, then being carried out to upgrade file packet Integrality and accuracy verification.
Preferably, as shown in figure 5, upgraded module 30 may include: second detection unit 300, for using remote upgrade Service routine detects process list, judges whether the embedded main program in embedded OS is currently being transported Row;Closing unit 302, for when second detection unit output is is, then closing embedded main program;Updating unit 304 is used Embedded main program is updated in using upgrade file packet.
Preferably, updating unit 304 may include: obtain subelement (not shown), for upgrade file packet into Row deconsolidation process obtains the first upgrade file set and the second upgrade file set, wherein the first upgrade file set be used for Add new data in embedded main program, the second upgrade file set be used for already existing data in embedded main program into Row replacement;Subelement (not shown) is updated, for using the first upgrade file set and the second upgrade file set pair Embedded main program is updated.
It can be seen from the above description that above example implements following technical effect (it should be noted that these Effect is the effect that certain preferred embodiments can achieve): the present invention provides one kind to grasp for Windows XP Embedded Make the technical solution of the embedded device remote upgrade of system, entire remote upgrade procedure is simple and effective.It is provided by the present invention Technical solution take full advantage of the EWF protection technique of Windows XP Embedded operating system, to the number in escalation process It is strictly controlled according to write-in, to effectively prevent for viral data being written in shielded disk, is enhanced The safety of remote upgrade.In addition, technical solution provided by the present invention is only from embedded main program by remote upgrade function It is vertical to come out, be arranged to system service program and register booting self-starting type, can active control upgrading process simultaneously Handle wherein various abnormal conditions;Remote upgrade service routine also integrality can be carried out to upgrade file packet and accuracy verifies, To be effectively prevented from since power-off or network may occur for embedded system terminal because being abnormal in escalation process And caused by disconnecting the problem of receiving invalid upgrade file packet.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (8)

1.一种嵌入式操作系统的升级方法,其特征在于,包括:1. an upgrade method of an embedded operating system, is characterized in that, comprises: 接收来自于服务器的升级文件包,并将所述升级文件包存储至预设存储区域;Receive the upgrade file package from the server, and store the upgrade file package in a preset storage area; 对嵌入式操作系统进行重新启动,并在启动所述嵌入式操作系统的同时启动远程升级服务程序,其中,所述远程升级服务程序被预先配置为随所述嵌入式操作系统启动时运行;Restarting the embedded operating system, and starting the remote upgrade service program while starting the embedded operating system, wherein the remote upgrade service program is preconfigured to run when the embedded operating system is started; 采用所述远程升级服务程序检测在所述预设存储区域中是否存在所述升级文件包;Using the remote upgrade service program to detect whether the upgrade file package exists in the preset storage area; 如果存在,则对所述升级文件包进行完整性和准确性校验;If it exists, perform integrity and accuracy check on the upgrade file package; 如果校验成功,则采用所述升级文件包进行升级操作,并在所述升级操作完成后采用增强型写入过滤器EWF中的预设命令将在升级操作过程中修改的数据写入受保护的磁盘。If the verification is successful, use the upgrade file package to perform the upgrade operation, and after the upgrade operation is completed, use the preset command in the enhanced write filter EWF to write the data modified during the upgrade operation into protected data disk. 2.根据权利要求1所述的方法,其特征在于,采用所述升级文件包进行升级操作包括:2. The method according to claim 1, wherein, using the upgrade file package to perform an upgrade operation comprises: 采用所述远程升级服务程序对进程列表进行检测,判断所述嵌入式操作系统中的嵌入式主程序当前是否正在运行;Use the remote upgrade service program to detect the process list, and determine whether the embedded main program in the embedded operating system is currently running; 如果是,则关闭所述嵌入式主程序;If so, close the embedded main program; 采用所述升级文件包对所述嵌入式主程序进行更新。The embedded main program is updated by using the upgrade file package. 3.根据权利要求2所述的方法,其特征在于,采用所述升级文件包对所述嵌入式主程序进行更新包括:3. The method according to claim 2, wherein using the upgrade file package to update the embedded main program comprises: 对所述升级文件包进行拆分处理,获取第一升级文件集合和第二升级文件集合,其中,所述第一升级文件集合用于向所述嵌入式主程序中添加新数据,所述第二升级文件集合用于对所述嵌入式主程序中已经存在的数据进行替换;The upgrade file package is split to obtain a first upgrade file set and a second upgrade file set, wherein the first upgrade file set is used to add new data to the embedded main program, and the first upgrade file set is used to add new data to the embedded main program. The second upgrade file set is used to replace the existing data in the embedded main program; 采用所述第一升级文件集合以及所述第二升级文件集合对所述嵌入式主程序进行更新。The embedded main program is updated by using the first upgrade file set and the second upgrade file set. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述嵌入式操作系统为Windows XP Embedded操作系统。4. The method according to any one of claims 1 to 3, wherein the embedded operating system is a Windows XP Embedded operating system. 5.一种嵌入式操作系统的升级装置,其特征在于,包括:5. A device for upgrading an embedded operating system, comprising: 接收模块,用于接收来自于服务器的升级文件包,并将所述升级文件包存储至预设存储区域;a receiving module, configured to receive an upgrade file package from the server, and store the upgrade file package in a preset storage area; 校验模块,用于对嵌入式操作系统进行重新启动,从所述预设存储区域中获取所述升级文件包并对所述升级文件包进行完整性和准确性校验;a verification module, configured to restart the embedded operating system, obtain the upgrade file package from the preset storage area, and perform integrity and accuracy verification on the upgrade file package; 升级模块,用于如果校验成功,采用所述升级文件包进行升级操作,并在所述升级操作完成后采用增强型写入过滤器EWF中的预设命令将在升级操作过程中修改的数据写入受保护的磁盘;The upgrade module is used to use the upgrade file package to perform the upgrade operation if the verification is successful, and use the preset command in the enhanced write filter EWF after the upgrade operation is completed to modify the data during the upgrade operation. write to a protected disk; 所述校验模块包括:The verification module includes: 启动单元,用于在启动所述嵌入式操作系统的同时启动远程升级服务程序,其中,所述远程升级服务程序被预先配置为随所述嵌入式操作系统启动时运行;a startup unit, configured to start a remote upgrade service program when the embedded operating system is started, wherein the remote upgrade service program is preconfigured to run when the embedded operating system is started; 第一检测单元,用于采用所述远程升级服务程序检测在所述预设存储区域中是否存在所述升级文件包;a first detection unit, configured to use the remote upgrade service program to detect whether the upgrade file package exists in the preset storage area; 校验单元,用于在所述第一检测单元输出为是时,则对所述升级文件包进行所述完整性和准确性校验。A verification unit, configured to perform the integrity and accuracy verification on the upgrade file package when the output of the first detection unit is yes. 6.根据权利要求5所述的装置,其特征在于,所述升级模块包括:6. The apparatus according to claim 5, wherein the upgrade module comprises: 第二检测单元,用于采用所述远程升级服务程序对进程列表进行检测,判断所述嵌入式操作系统中的嵌入式主程序当前是否正在运行;a second detection unit, configured to use the remote upgrade service program to detect the process list, and to determine whether the embedded main program in the embedded operating system is currently running; 关闭单元,用于在所述第二检测单元输出为是时,则关闭所述嵌入式主程序;a closing unit for closing the embedded main program when the output of the second detection unit is yes; 更新单元,用于采用所述升级文件包对所述嵌入式主程序进行更新。An update unit, configured to update the embedded main program by using the upgrade file package. 7.根据权利要求6所述的装置,其特征在于,所述更新单元包括:7. The apparatus according to claim 6, wherein the updating unit comprises: 获取子单元,用于对所述升级文件包进行拆分处理,获取第一升级文件集合和第二升级文件集合,其中,所述第一升级文件集合用于向所述嵌入式主程序中添加新数据,所述第二升级文件集合用于对所述嵌入式主程序中已经存在的数据进行替换;an obtaining subunit, configured to perform split processing on the upgrade file package, and obtain a first upgrade file set and a second upgrade file set, wherein the first upgrade file set is used to add to the embedded main program new data, the second upgrade file set is used to replace the existing data in the embedded main program; 更新子单元,用于采用所述第一升级文件集合以及所述第二升级文件集合对所述嵌入式主程序进行更新。An update subunit, configured to update the embedded main program by using the first upgrade file set and the second upgrade file set. 8.根据权利要求5至7中任一项所述的装置,其特征在于,所述嵌入式操作系统为Windows XP Embedded操作系统。8. The device according to any one of claims 5 to 7, wherein the embedded operating system is a Windows XP Embedded operating system.
CN201310433674.6A 2013-09-22 2013-09-22 The upgrade method and device of embedded OS Active CN104461594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310433674.6A CN104461594B (en) 2013-09-22 2013-09-22 The upgrade method and device of embedded OS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310433674.6A CN104461594B (en) 2013-09-22 2013-09-22 The upgrade method and device of embedded OS

Publications (2)

Publication Number Publication Date
CN104461594A CN104461594A (en) 2015-03-25
CN104461594B true CN104461594B (en) 2019-01-15

Family

ID=52907704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310433674.6A Active CN104461594B (en) 2013-09-22 2013-09-22 The upgrade method and device of embedded OS

Country Status (1)

Country Link
CN (1) CN104461594B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095505A (en) * 2016-06-13 2016-11-09 天脉聚源(北京)传媒科技有限公司 A kind of method and device of software upgrading
CN107809324B (en) * 2016-09-07 2022-01-25 中兴通讯股份有限公司 Vehicle-mounted automatic diagnosis system equipment and upgrading method thereof
CN107015827B (en) * 2017-03-20 2020-06-16 深圳市共进电子股份有限公司 Embedded system and method for automatically running third-party extension programs
CN108897565B (en) * 2018-06-19 2021-06-18 深圳市道通智能航空技术股份有限公司 Software upgrading method and device in electronic equipment and electronic equipment
CN110874225B (en) * 2018-08-29 2023-05-02 杭州海康威视数字技术股份有限公司 A data verification method, device, embedded device and storage medium
CN110099130B (en) * 2019-05-15 2021-09-28 腾讯科技(深圳)有限公司 Configuration updating method and device and server
CN112241271A (en) * 2019-07-17 2021-01-19 西安旌旗电子股份有限公司 A Partial Upgrading Method of Embedded Software
CN111625840A (en) * 2020-05-29 2020-09-04 杭州海康威视数字技术股份有限公司 Program checking method, program upgrading method and device
CN113204366A (en) * 2021-06-02 2021-08-03 上海酒贝乐信息技术有限公司 Remote upgrading method for intelligent wine selling machine system
CN114610358A (en) * 2022-04-19 2022-06-10 无锡市恒通电器有限公司 Calibration method for remote upgrade installation package of single-phase electric energy meter
CN116719549B (en) * 2023-08-02 2023-11-28 麒麟软件有限公司 Novel Linux operating system lossless upgrading method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330399A (en) * 2007-06-19 2008-12-24 上海风格信息技术有限公司 Method for upgrading built-in equipment
CN102129378A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Software menu updating method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023876B (en) * 2009-09-14 2013-04-17 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN101996254A (en) * 2010-11-18 2011-03-30 福建升腾资讯有限公司 Software rollback method based on file system layer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330399A (en) * 2007-06-19 2008-12-24 上海风格信息技术有限公司 Method for upgrading built-in equipment
CN102129378A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Software menu updating method and device

Also Published As

Publication number Publication date
CN104461594A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461594B (en) The upgrade method and device of embedded OS
US10303458B2 (en) Multi-platform installer
US9465652B1 (en) Hardware-based mechanisms for updating computer systems
US9292277B2 (en) Methods and devices for updating firmware of a component using a firmware update application
KR101931007B1 (en) Initialization trace of a computing device
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
US10983877B1 (en) Backup monitoring with automatic verification
US10303459B2 (en) Electronic system with update control mechanism and method of operation thereof
CN109213667B (en) An Android system exception handling method and electronic device
US20160371105A1 (en) Deployment and installation of updates in a virtual environment
US8843926B2 (en) Guest operating system using virtualized network communication
US9805197B2 (en) Secure host operating system running a virtual guest operating system
JP6201049B2 (en) System and method for updating system level services in a read-only system image
US9021457B2 (en) Method and system for dynamically resizing enclosed storage device partitions
KR101674975B1 (en) System upgrade method, apparatus, device, program, and recording medium
CN107171833A (en) One kind realizes server B MC and BIOS batch upgrading method by BMC
WO2021169124A1 (en) Method and apparatus for installing software package to target host, and computer device
WO2019137280A1 (en) Terminal anomaly repair method, apparatus, mobile terminal, and storage medium
CN105589699A (en) Serial number information update method, device and terminal
WO2024148863A1 (en) Image compiling method and apparatus, nonvolatile readable storage medium, and electronic device
US20180227391A1 (en) Distributed and redundant firmware evaluation
CN110363011B (en) Method and apparatus for verifying security of UEFI-based BIOS
RU2009105127A (en) CHANGES IN THE CONDITION OF THE ENVIRONMENT FOR CHANGE OF FUNCTIONAL CAPABILITIES
US8949588B1 (en) Mobile telephone as bootstrap device
TWI514279B (en) Server system and firmware update method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant