CN111158787A - Switching method, switching device, electronic equipment and storage medium - Google Patents

Switching method, switching device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111158787A
CN111158787A CN201911409319.9A CN201911409319A CN111158787A CN 111158787 A CN111158787 A CN 111158787A CN 201911409319 A CN201911409319 A CN 201911409319A CN 111158787 A CN111158787 A CN 111158787A
Authority
CN
China
Prior art keywords
firmware
request
state
responding
electronic device
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.)
Pending
Application number
CN201911409319.9A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911409319.9A priority Critical patent/CN111158787A/en
Publication of CN111158787A publication Critical patent/CN111158787A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a switching method, a switching device, electronic equipment and a storage medium, wherein the method comprises the following steps: the electronic equipment is in a first state of responding to the request by using the first firmware, and an updating instruction is obtained; responding to the updating instruction, forming second firmware, and switching the electronic equipment from the first state to a second state, wherein the second firmware can be updated by the first firmware; wherein the second state is a state of responding to a request using the first firmware and the second firmware.

Description

Switching method, switching device, electronic equipment and storage medium
Technical Field
The present invention relates to network communication technologies, and in particular, to a handover method and apparatus, an electronic device, and a storage medium.
Background
When the electronic device is updated or restarted, the electronic device will be in a state where it cannot respond to the external access request for several to several tens of minutes, so that the electronic device cannot perform normal management work.
Disclosure of Invention
In view of this, the technical solution of the embodiment of the present application is implemented as follows:
the embodiment of the application provides a switching method, which comprises the following steps:
the electronic equipment is in a first state of responding to the request by using the first firmware, and an updating instruction is obtained;
responding to the updating instruction, forming second firmware, and switching the electronic equipment from the first state to a second state, wherein the second firmware can be updated by the first firmware;
wherein the second state is a state of responding to a request using the first firmware and the second firmware. An embodiment of the present application provides a switching device, where the switching device includes:
the obtaining module is used for obtaining an updating instruction when the electronic equipment is in a first state of using the first firmware to respond the request;
a forming module, configured to form a second firmware in response to the update instruction;
and the switching module is used for switching the electronic equipment from the first state to the second state.
An embodiment of the present application provides an electronic device, which at least includes: a controller and a storage medium configured to store executable instructions, wherein:
the controller is configured to execute stored executable instructions configured to perform the handover method described above.
Correspondingly, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the handover method provided above.
The embodiment of the application provides a switching method, a switching device, an electronic device and a storage medium, wherein when the electronic device uses a first firmware to respond to a request, an update instruction is received to form a second firmware, and after the second firmware is formed, the state is switched from the state of using the first firmware to respond to the request to the state of simultaneously using the first firmware and the second firmware to respond to the request, so that the electronic device is in the state that two versions of firmware respond to the request, and the management efficiency of the electronic device is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a handover method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another implementation of the handover method according to the embodiment of the present application;
fig. 3 is a schematic flowchart of another implementation of the handover method according to the embodiment of the present application;
fig. 4 is a schematic flow chart of another implementation of the handover method according to the embodiment of the present application;
FIG. 5 is a schematic structural diagram of a switching device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The electronic device may be implemented in various forms. For example, the electronic devices described in the present application may include devices such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a desktop computer, a server, and the like.
While the following description will be made taking a mobile electronic device as an example, those skilled in the art will appreciate that the configuration according to the embodiment of the present application can be applied to a fixed type electronic device in addition to elements particularly used for moving purposes.
An embodiment of the present application provides a handover method, and fig. 1 is a schematic diagram illustrating an implementation flow of the handover method according to the embodiment of the present application, where as shown in fig. 1, the handover method includes the following steps:
step S101: the electronic device is in a first state using the first firmware response request, and obtains an update instruction.
Here, the electronic device responds to the request or performs other management operations using the first firmware. The request may be a request for accessing the electronic device through a network by another device or another application, a request for sending data to the electronic device, a request for calling an interface of the electronic device, or a request for reading data of the electronic device. The first firmware refers to a file package corresponding to a function for managing hardware in the electronic device. An update instruction to update the electronic device is received while responding to the request to itself using the first firmware.
Step S102: and responding to the updating instruction, forming second firmware, and switching the electronic equipment from the first state to a second state.
Here, the second firmware is updatable by the first firmware, and the second state is a state of responding to the request using the first firmware and the second firmware. The electronic device mainly uses the first firmware to perform management operation and respond to the request, so that updating the electronic device is to update the first firmware of the electronic device. After receiving the updating instruction, the electronic equipment forms a second firmware according to the updating instruction; and switching the state from using only the first firmware to responding to the request to a state using both the first firmware and the second firmware to respond to the request.
In the embodiment of the application, when the electronic device responds to the request by using the first firmware, the update instruction is received, the second firmware is formed, and after the second firmware is formed, the state is switched from the state of responding to the request by using the first firmware to the state of responding to the request by using the first firmware and the second firmware at the same time, so that the electronic device can also respond to the request in the updating process, the electronic device is in the state of responding to the request by using the two versions of firmware, and the management efficiency of the electronic device is improved.
In some embodiments, in order to form the second firmware corresponding to a different update instruction, "forming the second firmware in response to the update instruction" in the step S102 may be implemented by:
the first method is as follows: as shown in fig. 2, fig. 2 is a schematic flow chart of another implementation of the handover method according to the embodiment of the present application, and the following description is made with reference to fig. 1:
step S201: and responding to the updating instruction, copying at least part of the first firmware of the electronic equipment to obtain a copied file.
Here, the update instruction may be upgrading or downgrading a file, initializing, or the like. And if the updating instruction is to upgrade or downgrade at least part of files in the first firmware, copying part of files in the first firmware of the electronic equipment specified in the updating instruction in response to the updating instruction. In a specific example, the first firmware includes three files, and if the update instruction is to update only the second file, only the second file in the first firmware is copied to obtain a copied file. If the updating instruction is to initialize the first firmware, copying all files of the first firmware of the original first firmware to obtain a copied file.
Step S202: and reserving the first firmware, and updating the copied file to form the second firmware.
Here, the update instruction is to upgrade or downgrade at least part of the file in the first firmware, and the at least part of the file in the first firmware is copied to obtain a copied file. Then upgrading or degrading the copied file according to the updating instruction to obtain an updated file, putting the updated file and the file which is not updated in the first firmware together, and packaging to form a second firmware; or upgrading or degrading the copied file corresponding to the original file in the first firmware according to the updating instruction to obtain the updated file so as to form the second firmware. For example, the first firmware includes three files, the update instruction specifies that the second file is to be upgraded, and the second file is copied to obtain a copied file. And then upgrading the copied file to obtain an updated file, or upgrading the original second file to obtain an updated file. When the updating instruction is to initialize the first firmware, copying the first firmware to obtain a copy file of the first firmware, and forming a second firmware. After the second firmware is formed, the first firmware is still reserved, and the state that the first firmware and the second firmware coexist is obtained.
Therefore, the files in the first firmware can be updated in a targeted manner according to the updating instruction, so that communication resources can be saved, and the updating time can be shortened.
The second method comprises the following steps: and reserving the first firmware, responding to the updating instruction, and acquiring a second file carried in the updating instruction so as to form the second firmware according to the second file.
Here, the update instruction is to update all firmware included in the first firmware (for example, upgrade or downgrade a file), and the update instruction carries the updated second file, so that the second file corresponding to the update instruction can be obtained from the update instruction, and the second firmware is formed according to the second file. After the second firmware is formed, the first firmware is still reserved, and the state that the first firmware and the second firmware coexist is obtained.
Therefore, the second firmware can be obtained by directly using the update file according to the update instruction, so that the update time is shortened, and the running speed of the electronic equipment is improved.
In some embodiments, before step S102, the method further comprises: in responding to the update instruction, responding to the request using the first firmware.
Here, in the process of responding to the update instruction, if the second firmware is not formed yet or the formed second firmware is not yet executed, in this case, the request to the electronic device is responded using the first firmware of the electronic device.
Therefore, the electronic equipment can continuously respond to the external request in the process of responding to the updating instruction and updating the file, thereby shortening the time that the electronic equipment cannot perform management work.
In some embodiments, in order to respond to the request when the state switching is performed, the step S102 of "switching the electronic device from the first state to the second state" may be implemented by:
the first method is as follows: as shown in fig. 3, fig. 3 is a schematic flow chart of another implementation of the handover method according to the embodiment of the present application, and the following description is made with reference to fig. 1:
step S301: a request to access the electronic device is obtained.
Here, during the electronic device responding to the update instruction, and when the update is completed, an external access request to the electronic device is acquired. In some specific examples, the access request may be an operation of accessing the electronic device through a network by another device or another application, sending data to the electronic device, invoking an interface of the electronic device, or reading data of the electronic device.
Step S302: attribute information of the request is determined.
Here, when acquiring request information of an external electronic device, attribute information such as access authority of the request, source of the request, time of the request, type of the request, and the like is determined to determine to respond to the request using corresponding firmware.
Step S303: responding to the request using the first firmware if the attribute information satisfies a first condition.
Here, the first condition and the second condition of the attribute information may be set. In some possible implementations, the first condition satisfied by the requested attribute information may be set to: the source of the request belongs to a trusted application or device, the authority of the request is allowed completely, the type of the request is to modify a file, the time of the request is the current emergency processing, and the like, and when the attribute of the request meets a set first condition, the request is responded by using first firmware. In one particular example, where the request type is a modification to some file of the electronic device, the request is responded to using the first firmware.
Step S304: responding to the request using the second firmware if the attribute information satisfies a second condition.
In some specific examples, the second condition satisfied by the requested attribute information may be set as: non-emergency processing, reading data of the electronic device, coming from an unknown application or device, having partial opening of the authority, and the like, and when the requested attribute information satisfies a second condition, using the second firmware to respond to the request. In one specific example, the request type is to read some data of the electronic device, and the request is responded to using the second firmware.
Therefore, the electronic equipment can adaptively select the corresponding firmware to respond to the request according to the attribute information of the request, so that the time that the electronic equipment cannot perform management work is shortened, and the management efficiency of the electronic equipment is improved.
In a second manner, as shown in fig. 4, fig. 4 is a schematic flow chart of another implementation of the handover method according to the embodiment of the present application, and the following description is made with reference to fig. 1:
step S401: when the electronic equipment is in the first state, obtaining a first request, and responding to the first request by using the first firmware;
here, in the process of responding to the update instruction by the electronic device, a first request to the electronic device from the outside is acquired, and at this time, the electronic device is still in the first state of responding to the request by using the first firmware, and the first request is distributed to the first firmware for responding.
Step S402: after the electronic equipment is switched from the first state to the second state, continuously responding to the first request by using the first firmware, and acquiring a second request;
here, after the electronic device switches from the first state to the second state, the second firmware is formed, and the firmware is executed, the first request originally responded by the first firmware is still responded by the first firmware. Also in this process, a new request, i.e., a second request, to the electronic device from the outside is acquired.
Step S403: responding to the second request using the second firmware.
Here, when the state of the electronic device is in the second state, a new request is acquired, and the new request is responded to using the second firmware.
In some realizable embodiments, the switching of states may also be achieved by:
determining the starting time of the second firmware operation; responding, using the first firmware, to an access request to the electronic device prior to the start time; responding, using the second firmware, to an access request to the electronic device after the start time.
Here, the electronic device analyzes the request time based on the start time of the second firmware operation, and assigns the request to the corresponding firmware for response. And if the request information is acquired before the starting time of the operation of the second firmware, using the first firmware to respond to the request, and if the request information is acquired after the starting time of the operation of the second firmware, using the second firmware to respond to the request. In one particular example, an electronic device is provided with an assignment module that analyzes requests and assigns requests. The distribution module analyzes the sequence of the time of the request and the running starting time of the second firmware, and then distributes different requests to different firmware to respond according to the time sequence. For example, a request with a request time before the second firmware operation starting time is distributed to the first firmware for response, and a request with a request time after the second firmware operation starting time is distributed to the second firmware for response.
Therefore, the electronic equipment can adaptively select different firmware response requests according to the state of the electronic equipment, so that the time that the electronic equipment cannot perform management work is shortened, and the management efficiency of the electronic equipment is improved.
In some embodiments, after obtaining a first request when the electronic device is in the first state and responding to the first request using the first firmware, i.e. after step S401, the method further comprises the following process:
the first condition is as follows: and when the first firmware response to the first request is completed, switching the electronic equipment from the second state to a third state.
Here, after the electronic device switches to the second state, the electronic device continues to respond to the request before the switching using the first firmware, and when the request response before the switching is completed, the operation of the first firmware is stopped, at which time the electronic device switches from the second state to a third state, that is, a state in which the request is responded to using the second firmware.
Case two: when the response time length of the first firmware to the first request exceeds a specific time length, switching the electronic equipment from the second state to a third state; wherein the third state is a state in which a request to the electronic device is responded to using the second firmware.
After the electronic device is switched to the second state, the electronic device continues to use the first firmware to respond to the request before switching, and when the duration of the request responded by the first firmware exceeds a specific duration, such as 3 minutes, the operation of the first firmware is stopped, and at the moment, the electronic device is switched from the second state to a third state, namely, the state responded by the second firmware to the request.
Therefore, the electronic equipment can adaptively switch the states according to the actual condition of the first firmware response request, thereby saving communication resources and improving the management efficiency of the electronic equipment.
With the increasing demand and requirement of the big data era on servers, a Baseboard Management Controller (BMC) platform management system is also more and more important for monitoring background performance. The BMC is mainly used for detecting the health states of various components (such as a central processing unit, a memory, a hard disk, a fan, a machine frame and the like) of the server, such as temperature, voltage and the like, and performing corresponding adjustment work to ensure that the system is in a healthy state.
Based on this, an embodiment of the present application provides a switching method to implement an example that two firmware in the BMC run simultaneously when the BMC is updated or restarted, which is described as follows:
it should be noted that the server has a first system and a second system, and the first system can obtain the operation condition of the second system, or can control at least part of the system of the second system.
The second system is a CPU-based system, the first system and the second system being independent of each other; wherein the first system is a BMC based system.
The firmware update of the BMC is to update a system in the BMC.
Step S411: the BMC is used for packaging the file of the management function to obtain a first firmware.
Here, the BMC is an example of the electronic device according to the embodiment of the application, and encapsulates a file corresponding to a management function used by the BMC in the operation process of the BMC to obtain a firmware file, that is, a first firmware file.
Based on different update instructions, different second firmware can be obtained, if the update instruction is to upgrade or downgrade the BMC, step S412 is performed, and if the update instruction is to restart the BMC, step 413 is performed.
Step S412: and acquiring an instruction for updating the BMC, and uploading the new firmware to the BMC to acquire a second firmware.
Here, when the update instruction for upgrading or downgrading the BMC is obtained, since the update instruction carries the update file, that is, the second firmware can be obtained from the update instruction and uploaded to the BMC, and the first firmware is retained.
Step S413: and obtaining a command for restarting the BMC, copying the first firmware and obtaining a second firmware.
Here, when the instruction to restart the BMC is obtained, the firmware file of the BMC needs to be initialized, the first firmware is copied to obtain the second firmware, and the first firmware is retained.
Step S414: the BMC starts the second firmware and runs the first firmware at the same time.
Here, the first firmware is retained at the same time as the second firmware is obtained. When the second firmware is started, the BMC runs the first firmware, so that the first firmware responds to an external request to the BMC.
Step S415: completing the starting of the second firmware.
Here, after the second firmware is started, the time when the second firmware is started is determined, and the request information before and after the second firmware is started is determined. The second firmware is then used to respond to requests after the completion of the boot while the first firmware continues to respond to requests before the completion of the boot of the second firmware. So that two different versions of firmware are operating simultaneously.
Step S416: the execution of the first firmware is stopped.
Here, when the request of the first firmware response is completed or the request of the first firmware response exceeds a certain length, the operation of the first firmware is stopped.
In the embodiment of the application, the second firmware is obtained by updating or initializing the first firmware of the BMC, and the first firmware is reserved at the same time, so that the BMC is in a state that the two firmware simultaneously run to respond to the request, the first firmware is enabled to work in a seamless connection mode when the BMC is refreshed or restarted, the time that the BMC cannot perform management work is shortened, and the cost is reduced.
An embodiment of the present application provides a switching device, and fig. 5 is a schematic structural diagram of the switching device in the embodiment of the present application, and as shown in fig. 5, the switching device 500 includes: an obtaining module 501 and a response module 502, wherein:
the obtaining module 501 is configured to obtain an update instruction when the electronic device is in a first state where the electronic device responds to the request by using the first firmware;
the response module 502 is configured to form a second firmware in response to the update instruction, and switch the electronic device from the first state to a second state, where the second firmware is updatable by the first firmware.
In the above apparatus, the response module 502 includes:
the copying submodule is used for responding to the updating instruction and copying at least part of the first firmware of the electronic equipment to obtain a copied file;
and the first forming submodule is used for reserving the first firmware and updating the copied file to form the second firmware.
In the above apparatus, the response module 502 includes:
and the second forming submodule is used for reserving the first firmware and responding to the updating instruction to obtain a second file carried in the updating instruction so as to form the second firmware according to the second file.
In the above apparatus, the apparatus further comprises:
a use module for responding to the request using the first firmware in responding to the update instruction.
In the above apparatus, the response module 502 includes:
a first obtaining submodule, configured to obtain a request for accessing the electronic device;
the first determining submodule is used for determining attribute information of the request;
a first using submodule for responding to the request using the first firmware if the attribute information satisfies a first condition;
a second using submodule for responding to the request using the second firmware if the attribute information satisfies a second condition.
In the above apparatus, the response module 502 includes:
the second obtaining submodule is used for obtaining a first request when the electronic equipment is in the first state and responding to the first request by using the first firmware;
the third using submodule is used for continuously responding to the first request by using the first firmware and obtaining a second request after the electronic equipment is switched from the first state to the second state;
a fourth use submodule for responding to the second request using the second firmware.
In the above apparatus, the apparatus further comprises:
a first switching module, configured to switch the electronic device from the second state to a third state when the first firmware completes responding to the first request; or the like, or, alternatively,
the second switching module is further used for switching the electronic equipment from the second state to a third state when the response time of the first firmware to the first request exceeds a specific time length; wherein the third state is a state in which a request to the electronic device is responded to using the second firmware.
The embodiment of the present application further provides an electronic device, where the electronic device includes modules, and sub-modules and units included in the modules, and the sub-modules and the units may be implemented by a processor in the electronic device; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a central processing unit, a microprocessor, a digital signal processor, a field programmable gate array, or the like.
Correspondingly, an embodiment of the present application provides an electronic device, fig. 6 is a schematic structural diagram of the electronic device according to the embodiment of the present application, and as shown in fig. 6, the electronic device 600 at least includes: a controller 601 and a storage medium 602 configured to store executable instructions, wherein:
the controller 601 is configured to execute stored executable instructions for implementing the provided handover method.
It should be noted that the above description of the embodiment of the electronic device is similar to the description of the embodiment of the method, and has similar beneficial effects to the embodiment of the method. For technical details not disclosed in the embodiments of the electronic device of the present application, refer to the description of the embodiments of the method of the present application for understanding.
Correspondingly, an embodiment of the present application provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are configured to execute the handover methods provided in other embodiments of the present application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, etc.) to execute the method described in the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method of handover, comprising:
the electronic equipment is in a first state of responding to the request by using the first firmware, and an updating instruction is obtained;
responding to the updating instruction, forming second firmware, and switching the electronic equipment from the first state to a second state, wherein the second firmware can be updated by the first firmware;
wherein the second state is a state of responding to a request using the first firmware and the second firmware.
2. The method of claim 1, the forming second firmware in response to the update instruction comprising:
responding to the updating instruction, copying at least part of the first firmware of the electronic equipment to obtain a copied file;
and reserving the first firmware, and updating the copied file to form the second firmware.
3. The method of claim 1, the forming second firmware in response to the update instruction comprising:
and reserving the first firmware, responding to the updating instruction, and acquiring a second file carried in the updating instruction so as to form the second firmware according to the second file.
4. The method of claim 1, prior to said forming second firmware in response to said update instruction, further comprising:
in responding to the update instruction, responding to the request using the first firmware.
5. The method of claim 1, the switching the electronic device from the first state to a second state, comprising:
obtaining a request to access the electronic device;
determining attribute information of the request;
responding to the request using the first firmware if the attribute information satisfies a first condition;
responding to the request using the second firmware if the attribute information satisfies a second condition.
6. The method of claim 1, the switching the electronic device from the first state to a second state, comprising:
when the electronic equipment is in the first state, obtaining a first request, and responding to the first request by using the first firmware;
after the electronic equipment is switched from the first state to the second state, continuously responding to the first request by using the first firmware, and acquiring a second request;
responding to the second request using the second firmware.
7. The method of claim 6, after the obtaining a first request and responding to the first request using the first firmware while the electronic device is in the first state, the method further comprising:
when the first firmware response to the first request is completed, switching the electronic equipment from the second state to a third state;
or
When the response time length of the first firmware to the first request exceeds a specific time length, switching the electronic equipment from the second state to a third state; wherein the third state is a state in which a request to the electronic device is responded to using the second firmware.
8. A switching device, the switching device comprising:
the obtaining module is used for obtaining an updating instruction when the electronic equipment is in a first state of using the first firmware to respond the request;
a forming module, configured to form a second firmware in response to the update instruction;
and the switching module is used for switching the electronic equipment from the first state to the second state.
9. An electronic device, the electronic device comprising at least: a controller and a storage medium configured to store executable instructions, wherein:
the controller is configured to execute stored executable instructions configured to perform the handover method of any of the preceding claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored therein, the computer-executable instructions being configured to perform the handover method provided by any one of claims 1 to 7 above.
CN201911409319.9A 2019-12-31 2019-12-31 Switching method, switching device, electronic equipment and storage medium Pending CN111158787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911409319.9A CN111158787A (en) 2019-12-31 2019-12-31 Switching method, switching device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911409319.9A CN111158787A (en) 2019-12-31 2019-12-31 Switching method, switching device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111158787A true CN111158787A (en) 2020-05-15

Family

ID=70559998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911409319.9A Pending CN111158787A (en) 2019-12-31 2019-12-31 Switching method, switching device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111158787A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI836901B (en) * 2023-02-14 2024-03-21 新唐科技股份有限公司 Firmware switching method for system security and electrical device using the same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217257A1 (en) * 2002-05-17 2003-11-20 Ebsen David S. Method for updating memory resident firmware as a background operation
CN106909410A (en) * 2015-12-23 2017-06-30 鼎捷软件股份有限公司 A kind of update method and server system for server system
CN108170464A (en) * 2017-12-27 2018-06-15 联想(北京)有限公司 A kind of version upgrading method, service platform and electronic equipment
CN109558157A (en) * 2017-09-26 2019-04-02 广达电脑股份有限公司 Firmware setting is saved during firmware update

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217257A1 (en) * 2002-05-17 2003-11-20 Ebsen David S. Method for updating memory resident firmware as a background operation
CN106909410A (en) * 2015-12-23 2017-06-30 鼎捷软件股份有限公司 A kind of update method and server system for server system
CN109558157A (en) * 2017-09-26 2019-04-02 广达电脑股份有限公司 Firmware setting is saved during firmware update
CN108170464A (en) * 2017-12-27 2018-06-15 联想(北京)有限公司 A kind of version upgrading method, service platform and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI836901B (en) * 2023-02-14 2024-03-21 新唐科技股份有限公司 Firmware switching method for system security and electrical device using the same

Similar Documents

Publication Publication Date Title
KR101585350B1 (en) Component update using management engine
US20200193027A1 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
JP6466476B2 (en) Access isolation for multi-operating system devices
WO2018113571A1 (en) Virtualized network element management method and device, and computer storage medium
WO2022016998A1 (en) Method for processing internet of things control system, and system, server, terminal and medium
US11789718B2 (en) System and method for subscription based solution modification implementation
WO2020228377A1 (en) Method and device for configuring mirror memory and computer storage medium
US11861577B2 (en) System and method for distributed enforcement of configuration limitations
US20190227918A1 (en) Method for allocating memory resources, chip and non-transitory readable medium
US20230222471A1 (en) System and method for subscription based solution implementation
CN111143031A (en) Method and device for changing capacity of virtual machine
KR101821016B1 (en) Apparatus, system and method for allocating identifiers to components of a control system
CN108958807B (en) Terminal system starting method and terminal
CN110286996B (en) Container instance IP switching method, device, computer equipment and storage medium
CN111158787A (en) Switching method, switching device, electronic equipment and storage medium
CN107831887B (en) Application starting method and device
CN113360893A (en) Container-based intelligent contract execution method and device and storage medium
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN112631536A (en) Energy controller LCD liquid crystal display control system and method
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN113703850B (en) BIOS program starting method, system and related components
CN105159714A (en) PMIC initialization method and electronic equipment
CN114416148A (en) Hot upgrading method, device and storage medium for virtual machine management program
WO2016206437A1 (en) Rom package generation method and device
CN112632032A (en) Data migration method and device, storage medium and terminal equipment

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