CN109669728A - The software closedown method and device of vxworks operating system - Google Patents
The software closedown method and device of vxworks operating system Download PDFInfo
- Publication number
- CN109669728A CN109669728A CN201811534201.4A CN201811534201A CN109669728A CN 109669728 A CN109669728 A CN 109669728A CN 201811534201 A CN201811534201 A CN 201811534201A CN 109669728 A CN109669728 A CN 109669728A
- Authority
- CN
- China
- Prior art keywords
- closedown
- software
- shutdown
- operating system
- hardware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/442—Shutdown
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present embodiments relate to software closedown method, device, computer equipment and the storage mediums of a kind of vxworks operating system.Method includes: to obtain closedown register order;According to closedown register order, system and generation system shutdown command are restarted;It is instructed according to system closedown, control bottom hardware work is in off-mode.Thus, it is possible to be saved in time using data and system-level data cached, the impaired probability of reduction hardware adaptor.
Description
Technical field
The present invention relates to computer operating system technical fields, more particularly to a kind of software of VXWorks operating system
Closedown method, device, computer equipment and storage medium.
Background technique
There are a set of specifications for being called ACPI for X86 mainboard, by the hardware and software interface of specification definition, Windows/
It, can software shutdown as long as (SuSE) Linux OS realizes ACPI Specification.
ACPI Specification is followed when X86 motherboard hardware designs at present, but since VXWorks operating system does not support ACPI to advise
Model, therefore software cannot shut down as Windows/Linux operating system, there are no related software shutdown commands.
When traditional VXWorks operating system work, to allow system stalls, can only hardware shutdown, i.e., directly
Pull out motherboard power supply power-off shutdown, thus can stability to system and reliability Work bring great risk.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of vxworks operating system software closedown method,
Device, computer equipment and storage medium can reliably shut down.
In a first aspect, the embodiment of the invention provides a kind of software closedown methods of vxworks operating system, comprising:
Obtain closedown register order;
According to the closedown register order, system and generation system shutdown command are restarted;
It is instructed according to the system closedown, control bottom hardware work is in off-mode.
In some embodiments, described according to the closedown register order, restart system, comprising:
According to the closedown register order, system service and application program is notified to execute reboot operation.
In some embodiments, the reboot operation includes: reseting network, closes peripheral hardware, flush buffers and notice system
System will reset.
In some embodiments, described according to the closedown register order, notify system service and application program to execute weight
Open operation, comprising:
The closedown register order is made a thorough investigation of, reboot function is executed, to notify system service is executed with application program to restart
Operation.
In some embodiments, described to be instructed according to the system closedown, the work of control bottom hardware is in off-mode, packet
It includes:
It is instructed according to the system closedown, closes the service of interruption;
After closing the interruption service, hardware shutdown command is sent to bottom hardware, so that the bottom hardware works
In off-mode.
In some embodiments, described to be instructed according to the system closedown, close the service of interruption, comprising:
It is instructed according to the system closedown, executes sysToMonitor function, to close the service of interruption.
In some embodiments, the bottom hardware includes power supply;
The control bottom hardware work is in off-mode, comprising:
Power supply shutdown command is sent to the power supply, so that the power supply shuts down according to the power supply shutdown command.
Second aspect, the embodiment of the invention also provides a kind of software shutdown units of vxworks operating system, comprising:
Module is obtained, for obtaining closedown register order;
Restart and generation module, for restarting system and generation system shutdown command according to the closedown register order;
Module of shutting down controls bottom hardware work in off-mode for instructing according to the system closedown.
In some embodiments, it is described restart be specifically used for generation module:
According to the closedown register order, system service and application program is notified to execute reboot operation.
In some embodiments, the reboot operation includes: reseting network, closes peripheral hardware, flush buffers and notice system
System will reset.
In some embodiments, it is described restart with generation module also particularly useful for:
According to the closedown register order, reboot function is executed, to notify system service is executed with application program to restart
Operation.
In some embodiments, the shutdown module is specifically used for:
It is instructed according to the system closedown, closes the service of interruption;
After closing the interruption service, hardware shutdown command is sent to bottom hardware, so that the bottom hardware works
In off-mode.
In some embodiments, the shutdown module also particularly useful for:
It is instructed according to the system closedown, executes sysToMonitor function, to close the service of interruption.
In some embodiments, the bottom hardware includes power supply;
The shutdown module is specifically used for:
Power supply shutdown command is sent to the power supply, so that the power supply shuts down according to the power supply shutdown command.
The third aspect, the embodiment of the invention also provides a kind of computer equipments, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out above-mentioned method.
Fourth aspect, the embodiment of the invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the calculating
Machine readable storage medium storing program for executing is stored with computer executable instructions, when the computer executable instructions are executed by processor, makes
The processor executes above-mentioned method.
The software closedown method of vxworks operating system provided in an embodiment of the present invention, by obtaining closedown register order,
System and generation system shutdown command are restarted according to closedown register order, are instructed according to system closedown, control bottom hardware work
In off-mode.On the one hand, it can be improved the reliability of shutdown, reduce hardware adaptor and be damaged probability.On the other hand, it is shutting down
Before, system can be restarted, some application programs or system service in system is enabled to be saved in time using data and be
Irrespective of size is data cached, safely powers off to realize.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 a is the application scenarios schematic diagram of the software closedown method of vxworks operating system of the present invention;
Fig. 1 b is another application scenarios schematic diagram of the software closedown method of vxworks operating system of the present invention;
Fig. 2 is the flow chart of one embodiment of the software closedown method of vxworks operating system of the present invention;
Fig. 3 is that present system restarts flow chart;
Fig. 4 is present system shutdown process figure;
Fig. 5 is the flow chart of another embodiment of the software closedown method of invention vxworks operating system;
Fig. 6 is the structural block diagram of one embodiment of the software shutdown unit of vxworks operating system of the present invention;
Fig. 7 is the structural block diagram of another embodiment of the software shutdown unit of vxworks operating system of the present invention;
Fig. 8 is the hardware structural diagram of one embodiment of computer equipment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The software closedown method of vxworks operating system provided by the invention is suitable for application scenarios shown in Fig. 1 a, packet
Include application layer shutdown module 102, operating system layer shutdown module 104 and bottom hardware shutdown module 106, application layer shutdown mould
Block 102 is software shutdown entrance, provides power-off operation interface for the user, realizes shutdown command, operating system layer shutdown module
104 provide functional interface, realize application program shutdown notice, close movable peripheral hardware, halt system service by peripheral hardware driving
ACPI core interface relevant to shutdown, operation related hardware deposit are provided with functions, bottom hardware shutdown modules 106 such as components
Device makes hardware enter S3 state.When user executes power-off operation, the function for calling application layer shutdown module 102 to provide enters
Operating system layer shutdown module 104 is finally completed the shutdown of mainboard finally by bottom hardware shutdown module 106.It can be timely
It saves using data and system-level data cached, the impaired probability of reduction hardware adaptor.
1b is please referred to, the software closedown method of vxworks operating system provided by the invention is suitable for computer, computer
Including mainboard 101, I/O equipment 103 and hard disk 105, wherein mainboard 101 runs above-mentioned application layer shutdown module, operation system
Unite layer shutdown module and bottom hardware shut down module, wherein I/O equipment 103 be specifically as follows keyboard, mouse, scanner with
And display etc., hard disk 105, hard disk are specifically as follows solid state hard disk (SSD), mechanical hard disk (HDD), hybrid hard disk etc..I/O is set
Standby 103 are connected by Interface & Bus, and I/O equipment 103 receives address information from address bus, are controlled from control bus
Signal, and be connected by data/address bus with other component.Bus is a kind of computer-internal structure, it be by central processing unit,
The highway of memory, Input/Output Device transmitting information, all parts of computer are connected by bus, and external equipment is logical
It crosses corresponding interface circuit to be connected with bus again, carries out the interaction of data.When carrying out power-off operation in I/O equipment 103,
I/O equipment 103 connects mainboard 101 by data/address bus, and into application layer shutdown module, application layer shutdown module is software shutdown
Entrance provides power-off operation interface for the user, subsequently enters operating system layer shutdown module, drives closing activity by peripheral hardware
Hard disk 105, the functions such as halt system service and component, finally jump bottom hardware shutdown module, operation related hardware deposit
Device makes hardware enter S3 state, is finally completed the shutdown of mainboard 101.Thus it can save in time using data and system-level caching
Data reduce hardware adaptor and are damaged probability.
As shown in Fig. 2, the embodiment of the invention provides a kind of software closedown methods of vxworks operating system, comprising:
Step 202, closedown register order is obtained.
Closedown register order executes power-off operation for triggering application layer shutdown module, and closedown register order can be user
Character string write etc. code segment or the closedown register order formed by triggering peripheral hardware, divide for example, persistently pressing power key 1
Clock can distribute closedown register order out.
When shutdown, user sends closedown register order, then, closedown register order quilt to vxworks operating system
VxWorks shell (VxWorks kernel) is executed, to enter operating system layer shutdown module.
In some embodiments, vxworks operating system can provide the friendly interface UI for user, so that user is in UI
Closedown register order is inputted on interface, vxworks operating system obtains the closedown register order in turn.
Step 204, according to closedown register order, restart system and generation system shutdown command.
As shown in figure 3, vxworks operating system is according to closedown register order, weight when shutting down module into operating system layer
Starting system, for example, vxworks operating system notice system service and application program execute reboot operation, wherein reboot operation packet
Include: reseting network closes peripheral hardware, flush buffers and notifies system that will reset.
In the conventional technology, when needing to carry out power-off operation to vxworks operating system, since traditional VxWorks operate
System does not support software to shut down, and therefore, traditional vxworks operating system is merely able to hardware shutdown, also that is, user directly pulls out
Motherboard power supply in vxworks operating system realizes power-off shutdown, reliable and stable work belt of such mode to VxWorks system
Carry out great risk.For example, once power off, data cached in memory can lose immediately, fail to be saved in outside in time
It stores equipment (such as hard disk), leads to loss of data in this way.If powered off suddenly in addition, mechanical hard disk is currently at working condition,
It will lead to mechanical hard disk and damage such problem, all will seriously affect the reliable and stable work of system.
Therefore, traditional technology the prior art has at least the following problems:
1, application program can not perceive vxworks operating system and will shut down and lose application layer data.
Numerous application programs can not know that system will shut down, and not can be carried out relevant treatment, for example save using data, hair
Alarm, record log etc. operate out.
2, it loses system-level data cached.
Vxworks operating system need it is data cached in memory, using such mode of shutting down simple and crudely,
The CPU of vxworks operating system has not been able to the data refreshed in memory in time to External memory equipment (such as hard disk).
3, increase damage hardware adaptor probability.
For example, working as mechanical hard disk at work, it is impaired that such shutdown mode will lead to mechanical hard disk.
It in the present embodiment, can be by restarting system, so that some application programs or system in system before shutdown
Service can be saved in time using data and system-level data cached, safely powered off to realize.
In some embodiments, when restarting system, vxworks operating system is executed according to closedown register order first
Reboot function, to notify system service and application program to execute reboot operation.Reboot function can ensure that operating system level
It is normal to restart function, secondly grid is resetted, that is, allows vxworks operating system to return to original state, is then shut off
Peripheral hardware closes movable peripheral hardware by device Drivers, then flush buffers, secondly noticing vxworks operating system will
It resets, by resetting above-mentioned specific functional units, ensure that network function normally stops working from system level,
System cache reliably refreshes, and system service and application program energy aware operating systems will restart and carry out respective handling, for example,
Significant data is saved in hard disk in time after receiving the notice that vxworks operating system will restart for program.
When restarting vxworks operating system, vxworks operating system generation system shutdown command, the system closedown refers to
Order is used to indicate bottom hardware work in off-mode.
In some embodiments, system closedown instruction can be to call other functions during executing reboot function
Instruction, other functions are for assisting reboot function to realize that vxworks operating system shuts down reliable and stablely.For example, other letters
Number is sysToMonitor function, and it is one and particular hardware height phase that sysToMonitor function, which is located in board suppot package,
The function of pass, user can modify this function according to actual hardware, and the concrete function of this function is to close to interrupt, and jump to
The entrance of vxworks operating system.
Step 206, it is instructed according to system closedown, control bottom hardware work is in off-mode.
After jumping to the entrance of vxworks operating system, vxworks operating system is instructed according to system closedown, and poll is each
The working condition of a bottom hardware, if the working condition of bottom hardware is " work ", vxworks operating system is to the bottom
Layer hardware sends hardware shutdown command, indicates that the bottom hardware shuts down.If the working condition of bottom hardware is " shutdown ",
Vxworks operating system does not send hardware shutdown command, the off-mode for maintaining the bottom hardware current to the bottom hardware.
In some embodiments, vxworks operating system can not have to the working condition of each bottom hardware of poll one by one,
Hardware shutdown command directly is sent to whole bottom hardwares, so that corresponding bottom hardware realizes shutdown.
In some embodiments, in control bottom hardware work during off-mode, vxworks operating system root
It is instructed according to the system closedown of generation, closes the service of interruption.After closing the service of interruption, hardware shutdown is sent to bottom hardware and is referred to
It enables, so that bottom hardware work is in off-mode.Therefore, before jumping to bottom hardware shutdown module, VxWorks operation system
System first closes the service of interruption, so that subsequent can more reliablely and stablely indicate that bottom hardware shuts down, avoids by other Gao You
The bothering for interruption of first grade and cause shut down working efficiency it is low.
In some embodiments, vxworks operating system is instructed according to system closedown, executes sysToMonitor function,
To close the service of interruption.Since sysToMonitor function can be modified according to actual hardware, it in the present embodiment, will
It allows it to have after the modification of sysToMonitor function and closes interruption, jump to the function of bottom hardware shutdown module.
As shown in figure 4, this function can ensure that operating system level restarts function specifically, reboot function is first carried out
Normally, secondly grid is resetted, that is, allows system to return to original state, is then shut off peripheral hardware, i.e., driven by peripheral hardware
Movable peripheral hardware is closed, then flush buffers, secondly notification system will reset, in executing the closing of sysToMonitor function
It has no progeny, jumps to bottom hardware shutdown module, send hardware shutdown command to bottom hardware, so that bottom hardware work is being shut down
State.Bottom hardware module of shutting down provides ACPI relevant to shutdown core interface, operation related hardware register, make hardware into
Enter S3 state, S3 state suspends to memory, and the operational data before system being entered S3 state is stored in memory.
In some embodiments, bottom hardware includes all kinds of peripheral hardwares, power supply, hard disk, memory, display, power amplifier etc.
Deng.
In general, by obtaining closedown register order, according to closedown register order, restart system and generation system shutdown
Instruction, instructs according to system closedown, and control bottom hardware work is in off-mode, on the one hand, it can be improved the reliable of shutdown
Property, it reduces hardware adaptor and is damaged probability.On the other hand, before shutdown, system can be restarted, so that some applications in system
Program or system service can be saved in time using data and system-level data cached, safely powered off to realize.
In one embodiment, the software closedown method of vxworks operating system, as shown in figure 5, bottom hardware includes electricity
Source, in the shutdown state, vxworks operating system sends power supply shutdown command to power supply to control power work, so that power supply root
It shuts down according to power supply shutdown command.In some embodiments, power supply shutdown command can be the finger for following power supply shutdown agreement
It enables.
In some embodiments, power supply is ATX power supply, and ATX power supply function is that the power supply of alternating current 220V is converted to calculating
The power supply of direct current 5V, 12V, 3.3V for being used inside machine.ATX power supply is controlled by PSON signal, when PSON is low level, that is,
Power supply shutdown command is low level PSON signal, and ATX power supply can stop to X86 main board power supply, therefore X86 mainboard can power off
Shutdown.South bridge SLP_S3 is arranged on X86 mainboard, the PSON pin on south bridge on the pin connection ATX power supply of SLP_S3, X86
The south bridge of central processing unit is equipped with related register and controls SLP_S3 pin signal, as long as output phase is answered on SLP_S3 pin
Level makes PSON low level, then ATX power supply will stop to X86 main board power supply, and X86 mainboard will therefore power-off shutdown.
In some other embodiment, the pin on X86 mainboard can be GPIO0, the PSON pipe on the pin connection ATX power supply of GPIO0
Foot, the south bridge of X86 central processing unit is equipped with related register and controls GPIO0 pin signal, as long as exporting on GPIO0 pin
Corresponding level makes PSON low level, then ATX power supply will stop to X86 main board power supply, therefore X86 mainboard will be powered off and be closed
Machine.
It should be noted that not necessarily there is centainly successive between above steps in above-mentioned each embodiment
Sequentially, those of ordinary skill in the art, according to an embodiment of the present invention to describe to be appreciated that in different embodiments, above-mentioned each step
Suddenly there can be the different sequences that executes, also i.e., it is possible to execute parallel, execution etc. can also be exchanged.
Correspondingly, the embodiment of the invention also provides a kind of software shutdown unit of vxworks operating system, such as Fig. 6 institute
Show, the software shutdown unit 600 of the vxworks operating system includes:
Module 602 is obtained, for obtaining closedown register order.
Restart with generation module 604, for according to closedown register order, restarting system and generation system shutdown command.
Module 606 of shutting down controls bottom hardware work in off-mode for instructing according to system closedown.
The software shutdown unit of vxworks operating system provided in an embodiment of the present invention, by obtaining closedown register order,
According to closedown register order, restarts system and generation system shutdown command, instructed according to system closedown, control bottom hardware work
In off-mode, thus, it is possible to be saved in time using data and system-level data cached, the impaired probability of reduction hardware adaptor.
Optionally, in the other embodiments of described device, Fig. 7, described device 600 are please referred to further include:
Notification module 608, for notifying system service and application program to execute reboot operation according to closedown register order.
Optionally, in the other embodiments of described device, Fig. 7, described device 600 are please referred to further include:
Execution module 610, for executing reboot function according to closedown register order, to notify system service and application
Program executes reboot operation;It is instructed according to system closedown, executes sysToMonitor function, to close the service of interruption.
Optionally, in the other embodiments of described device, Fig. 7, described device 600 are please referred to further include:
Closedown module 612 closes the service of interruption for instructing according to system closedown.
Sending module 614, for sending hardware shutdown command to bottom hardware after closing the interruption service, so that
Bottom hardware works in off-mode.
Specifically, in some embodiments, it is described restart be specifically used for generation module 604:
According to the closedown register order, system service and application program is notified to execute reboot operation.
Specifically, in some embodiments, the reboot operation include: reseting network, close peripheral hardware, flush buffers and
Notice system will reset.
Specifically, in some embodiments, it is described restart with generation module 604 also particularly useful for:
According to the closedown register order, reboot function is executed, to notify system service is executed with application program to restart
Operation.
Specifically, in some embodiments, the shutdown module 606 is specifically used for:
It is instructed according to the system closedown, closes the service of interruption;
After closing the interruption service, hardware shutdown command is sent to bottom hardware, so that the bottom hardware works
In off-mode.
Specifically, in some embodiments, the shutdown module 606 also particularly useful for:
It is instructed according to the system closedown, executes sysToMonitor function, to close the service of interruption.
Specifically, in some embodiments, the bottom hardware includes power supply;
The shutdown module 606 is specifically used for:
Power supply shutdown command is sent to the power supply, so that the power supply shuts down according to the power supply shutdown command.
It is mentioned it should be noted that the embodiment of the present invention can be performed in the software shutdown unit of above-mentioned vxworks operating system
The software closedown method of the vxworks operating system of confession has the corresponding functional module of execution method and beneficial effect.Do not exist
The technical detail of detailed description in the software shutdown unit embodiment of vxworks operating system, reference can be made to institute of the embodiment of the present invention
The software closedown method of the vxworks operating system of offer.
Fig. 8 is the hardware structural diagram of computer equipment provided in an embodiment of the present invention, as shown in figure 8, the computer
Equipment 8 includes:
One or more processors 81 and memory 82, in Fig. 8 by taking a processor 81 as an example.
Processor 82 can be connected with memory 82 by bus or other modes, to be connected as by bus in Fig. 8
Example.
Memory 82 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, as the software of the vxworks operating system in the embodiment of the present invention closes
Corresponding program instruction/the module of machine method (for example, attached acquisition module 602 shown in fig. 6, restart and generation module 604 and shutdown
Module 606).Non-volatile software program, instruction and the module that processor 81 is stored in memory 82 by operation, thus
The various function application and data processing of computer equipment are executed, i.e. the VxWorks of realization above method embodiment operate system
The software closedown method of system.
Memory 82 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program required at least one function;Storage data area can store to be shut down according to the software of vxworks operating system and fill
That sets uses created data etc..In addition, memory 82 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.One
In a little embodiments, it includes the memory remotely located relative to processor 81 that memory 82 is optional, these remote memories can be with
By being connected to the network to the software shutdown unit of vxworks operating system.The example of above-mentioned network include but is not limited to internet,
Intranet, local area network, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 82, when by one or more of processors 81
When execution, the software closedown method of the vxworks operating system in above-mentioned any means embodiment is executed, for example, more than executing
Method and step 202 in Fig. 2 of description is to step 206;Module 602 to 614 in module 602 to 606, Fig. 7 in realization Fig. 6
Function.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those of ordinary skill in the art can be understood that each embodiment
The mode of general hardware platform can be added to realize by software, naturally it is also possible to pass through hardware.Those of ordinary skill in the art can
With understand all or part of the process realized in above-described embodiment method be can be instructed by computer program it is relevant hard
Part is completed, and the program can be stored in a computer-readable storage medium, the program is when being executed, it may include as above
State the process of the embodiment of each method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-
Only Memory, ROM) or random access memory (RandomAccess Memory, RAM) etc..
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;At this
It under the thinking of invention, can also be combined between the technical characteristic in above embodiments or different embodiment, step can be with
It is realized with random order, and there are many other variations of different aspect present invention as described above, for simplicity, they do not have
Have and is provided in details;Although the present invention is described in detail referring to the foregoing embodiments, the ordinary skill people of this field
Member is it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part of skill
Art feature is equivalently replaced;And these are modified or replaceed, each reality of the present invention that it does not separate the essence of the corresponding technical solution
Apply the range of a technical solution.
Claims (10)
1. a kind of software closedown method of vxworks operating system characterized by comprising
Obtain closedown register order;
According to the closedown register order, system and generation system shutdown command are restarted;
It is instructed according to the system closedown, control bottom hardware work is in off-mode.
2. software closedown method according to claim 1, which is characterized in that described according to the closedown register order, weight
Starting system, comprising:
According to the closedown register order, system service and application program is notified to execute reboot operation.
3. software closedown method according to claim 2, which is characterized in that the reboot operation includes: reseting network, closes
Closing peripheral hardware, flush buffers and notice system will reset.
4. software closedown method according to claim 2, which is characterized in that it is described according to the closedown register order, lead to
Know that system service and application program execute reboot operation, comprising:
According to the closedown register order, reboot function is executed, to notify system service and application program to execute reboot operation.
5. software closedown method according to claim 1, which is characterized in that described to be instructed according to the system closedown, control
Bottom hardware work processed is in off-mode, comprising:
It is instructed according to the system closedown, closes the service of interruption;
After closing the interruption service, hardware shutdown command is sent to bottom hardware, so that bottom hardware work is being closed
Machine state.
6. software closedown method according to claim 5, which is characterized in that it is described to be instructed according to the system closedown, it closes
Close interruption service, comprising:
It is instructed according to the system closedown, executes sysToMon itor function, to close the service of interruption.
7. software closedown method according to any one of claims 1 to 6, which is characterized in that the bottom hardware includes electricity
Source;
The control bottom hardware work is in off-mode, comprising:
Power supply shutdown command is sent to the power supply, so that the power supply shuts down according to the power supply shutdown command.
8. a kind of software shutdown unit of vxworks operating system characterized by comprising
Module is obtained, for obtaining closedown register order;
Restart and generation module, for restarting system and generation system shutdown command according to the closedown register order;
Module of shutting down controls bottom hardware work in off-mode for instructing according to the system closedown.
9. a kind of computer equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the described in any item methods of claim 1-7.
10. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the computer-readable recording medium storage has
Computer executable instructions make the server perform claim when the computer executable instructions are performed by server
It is required that the described in any item methods of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534201.4A CN109669728B (en) | 2018-12-14 | 2018-12-14 | Software shutdown method and device for VxWorks operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534201.4A CN109669728B (en) | 2018-12-14 | 2018-12-14 | Software shutdown method and device for VxWorks operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109669728A true CN109669728A (en) | 2019-04-23 |
CN109669728B CN109669728B (en) | 2022-04-05 |
Family
ID=66144876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811534201.4A Active CN109669728B (en) | 2018-12-14 | 2018-12-14 | Software shutdown method and device for VxWorks operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669728B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569074A (en) * | 2019-09-09 | 2019-12-13 | 上海联影医疗科技有限公司 | Computer shutdown method, system and storage medium |
CN112698870A (en) * | 2019-10-23 | 2021-04-23 | 杭州海康威视数字技术股份有限公司 | Startup and shutdown management method, computing device and storage medium |
CN113468191A (en) * | 2021-06-04 | 2021-10-01 | 合肥联宝信息技术有限公司 | Data updating method and device, electronic equipment and computer readable medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369778A (en) * | 2001-02-15 | 2002-09-18 | 英业达股份有限公司 | High-safety shtdown method for protecting Window 9X system |
US20030237007A1 (en) * | 2002-06-20 | 2003-12-25 | Nick Ramirez | Method and system for shutting down and restarting a computer system |
US6763458B1 (en) * | 1999-09-27 | 2004-07-13 | Captaris, Inc. | System and method for installing and servicing an operating system in a computer or information appliance |
CN1818870A (en) * | 2006-03-16 | 2006-08-16 | 浙江大学 | Memory mirror starting optimization of built-in operation system |
CN101448299A (en) * | 2008-11-30 | 2009-06-03 | 中兴通讯股份有限公司 | Terminal and method for avoiding interference |
US20120167079A1 (en) * | 2010-12-22 | 2012-06-28 | Lsi Corporation | Method and system for reducing power loss to backup io start time of a storage device in a storage virtualization environment |
CN103473087A (en) * | 2013-08-30 | 2013-12-25 | 福建升腾资讯有限公司 | Startup control method for software-operated startup and shutdown in multitask systems |
CN103593037A (en) * | 2013-11-29 | 2014-02-19 | 湖南强军科技有限公司 | Geophysics instrument soft shutting method and system |
CN103796066A (en) * | 2014-01-21 | 2014-05-14 | 上海晨思电子科技有限公司 | Smart television system and method for turning on and turning off smart television system |
CN104081314A (en) * | 2012-07-27 | 2014-10-01 | 惠普发展公司,有限责任合伙企业 | Implementing power off state in computing device |
CN105744077A (en) * | 2016-03-31 | 2016-07-06 | 广东欧珀移动通信有限公司 | Shutdown control method and device for mobile terminal and mobile terminal |
CN106325457A (en) * | 2016-08-25 | 2017-01-11 | 广州御银科技股份有限公司 | Shutdown monitoring system |
CN108958811A (en) * | 2018-05-23 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of closedown method, device, equipment and computer readable storage medium |
-
2018
- 2018-12-14 CN CN201811534201.4A patent/CN109669728B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6763458B1 (en) * | 1999-09-27 | 2004-07-13 | Captaris, Inc. | System and method for installing and servicing an operating system in a computer or information appliance |
CN1369778A (en) * | 2001-02-15 | 2002-09-18 | 英业达股份有限公司 | High-safety shtdown method for protecting Window 9X system |
US20030237007A1 (en) * | 2002-06-20 | 2003-12-25 | Nick Ramirez | Method and system for shutting down and restarting a computer system |
CN1818870A (en) * | 2006-03-16 | 2006-08-16 | 浙江大学 | Memory mirror starting optimization of built-in operation system |
CN101448299A (en) * | 2008-11-30 | 2009-06-03 | 中兴通讯股份有限公司 | Terminal and method for avoiding interference |
US20120167079A1 (en) * | 2010-12-22 | 2012-06-28 | Lsi Corporation | Method and system for reducing power loss to backup io start time of a storage device in a storage virtualization environment |
CN104081314A (en) * | 2012-07-27 | 2014-10-01 | 惠普发展公司,有限责任合伙企业 | Implementing power off state in computing device |
CN103473087A (en) * | 2013-08-30 | 2013-12-25 | 福建升腾资讯有限公司 | Startup control method for software-operated startup and shutdown in multitask systems |
CN103593037A (en) * | 2013-11-29 | 2014-02-19 | 湖南强军科技有限公司 | Geophysics instrument soft shutting method and system |
CN103796066A (en) * | 2014-01-21 | 2014-05-14 | 上海晨思电子科技有限公司 | Smart television system and method for turning on and turning off smart television system |
CN105744077A (en) * | 2016-03-31 | 2016-07-06 | 广东欧珀移动通信有限公司 | Shutdown control method and device for mobile terminal and mobile terminal |
CN106325457A (en) * | 2016-08-25 | 2017-01-11 | 广州御银科技股份有限公司 | Shutdown monitoring system |
CN108958811A (en) * | 2018-05-23 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of closedown method, device, equipment and computer readable storage medium |
Non-Patent Citations (2)
Title |
---|
林嘉树等: "VxWorks操作***BSP和BootLoader介绍", 《电信快报》 * |
淳少恒 等: ""软开关机在高可靠性分布式电法仪器中的设计"", 《地球物理学进展》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569074A (en) * | 2019-09-09 | 2019-12-13 | 上海联影医疗科技有限公司 | Computer shutdown method, system and storage medium |
CN112698870A (en) * | 2019-10-23 | 2021-04-23 | 杭州海康威视数字技术股份有限公司 | Startup and shutdown management method, computing device and storage medium |
CN113468191A (en) * | 2021-06-04 | 2021-10-01 | 合肥联宝信息技术有限公司 | Data updating method and device, electronic equipment and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN109669728B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9721660B2 (en) | Configurable volatile memory without a dedicated power source for detecting a data save trigger condition | |
CN109739563B (en) | Terminal control method, device, system and storage medium | |
CN102387280B (en) | Image forming apparatus, system-on-chip (SOC) unit, and driving method thereof | |
US9858098B2 (en) | Hypervisor modification of system tables | |
US6895515B1 (en) | Computer and power control method for executing predetermined process in said computer prior to turning off its power | |
CN109669728A (en) | The software closedown method and device of vxworks operating system | |
US9710179B2 (en) | Systems and methods for persistent memory timing characterization | |
US9645625B2 (en) | System and method for power management of computing devices in a virtual desktop infrastructure | |
US9619348B2 (en) | Method, medium, system, and apparatus for supplying power at the time of power outage | |
CN112506745B (en) | Memory temperature reading method and device and computer readable storage medium | |
CN102736928B (en) | Fast wake-up computer system method and computer system | |
US10248486B2 (en) | Memory monitor | |
US20150370692A1 (en) | Guest-independent testing of guest firmware in virtualized systems | |
US20220391188A1 (en) | Systems and methods for context-aware firmware update | |
US11699470B2 (en) | Efficient memory activation at runtime | |
CN105556461A (en) | Techniques for pre-OS image rewriting to provide cross-architecture support, security introspection, and performance optimization | |
CN111767174A (en) | BIOS (basic input output System) refreshing control method, server and storage medium | |
CN116701285A (en) | Remote access control apparatus, remote access control method, remote access control device, and computer readable medium | |
US11243757B2 (en) | Systems and methods for efficient firmware update of memory devices in BIOS/UEFI environment | |
CN106155689A (en) | The method showing under a linux operating system based on non-x 86 platform | |
US8060605B1 (en) | Systems and methods for evaluating the performance of remote computing systems | |
CN111930502A (en) | Server management method, device, equipment and storage medium | |
US10782764B2 (en) | Techniques of emulating an ACPI controller on a service processor | |
US7272731B2 (en) | Information handling system having reduced power consumption | |
CN106933558B (en) | Power supply control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |