CN105808268B - Information processing method, electronic equipment and system - Google Patents

Information processing method, electronic equipment and system Download PDF

Info

Publication number
CN105808268B
CN105808268B CN201410838574.6A CN201410838574A CN105808268B CN 105808268 B CN105808268 B CN 105808268B CN 201410838574 A CN201410838574 A CN 201410838574A CN 105808268 B CN105808268 B CN 105808268B
Authority
CN
China
Prior art keywords
update
data packet
firmware
electronic equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410838574.6A
Other languages
Chinese (zh)
Other versions
CN105808268A (en
Inventor
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201410838574.6A priority Critical patent/CN105808268B/en
Publication of CN105808268A publication Critical patent/CN105808268A/en
Application granted granted Critical
Publication of CN105808268B publication Critical patent/CN105808268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an information processing method, electronic equipment and a system, wherein the method comprises the following steps: acquiring an update data packet for a first firmware, and updating the first firmware according to the update data packet; generating first information by using the update data packet aiming at the first firmware, and broadcasting the first information; detecting whether an updating request for the updating data packet sent by a second electronic device is received; and when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet.

Description

Information processing method, electronic equipment and system
Technical Field
The present invention relates to firmware management technologies in the field of communications, and in particular, to an information processing method, an electronic device, and a system.
Background
Firmware version updates have been an important function in the server domain. However, the operation method for updating the firmware in the server is usually that a manager selects a server to be updated, then sends an update package to the selected server, and then controls the server to complete the update, so that due to the intervention of manual operation, the operation is easy to have errors, and the operation is slow and takes a long time.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an information processing method, an electronic device and a system, which can solve at least the above problems in the prior art.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to first electronic equipment and comprises the following steps:
acquiring an update data packet for a first firmware, and updating the first firmware according to the update data packet;
generating first information by using the update data packet aiming at the first firmware, and broadcasting the first information;
detecting whether an updating request for the updating data packet sent by a second electronic device is received;
and when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet.
In the above scheme, the first information carries version information of an update data packet of the first firmware.
In the foregoing solution, the acquiring an update data packet for a first firmware includes:
determining whether broadcast information of an update packet for the first firmware is detected;
when the broadcast information of the update packet for the first firmware is detected;
extracting version information of an update data packet from the broadcast information;
judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware;
when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, and acquiring an update data packet aiming at the first firmware from the third electronic equipment.
In the foregoing solution, the updating the first firmware according to the update data packet includes:
judging whether a downloading request aiming at the updating data packet sent by fourth electronic equipment is received;
and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the first electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request.
In the foregoing solution, the generating a first instruction, where the first instruction is used to control the second electronic device to update the first firmware according to the update data packet, includes:
judging whether a second updating request aiming at the updating data packet sent by fifth electronic equipment is received or not;
and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the first electronic equipment to control the second electronic equipment to update the first firmware according to the update data packet and respond to the second update request after the update data packet is sent to the second electronic equipment.
An embodiment of the present invention provides an electronic device, including:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for acquiring an update data packet aiming at first firmware;
the processing unit is used for updating the first firmware according to the updating data packet; generating first information by using the update data packet for the first firmware; detecting whether an updating request for the updating data packet sent by a second electronic device is received; when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet;
a transmitting unit, configured to broadcast the first information.
In the above scheme, the first information carries version information of an update data packet of the first firmware.
In the foregoing solution, the processing unit is specifically configured to determine whether the receiving unit detects broadcast information of an update packet for the first firmware; when the broadcast information of the update packet for the first firmware is detected; extracting version information of an update data packet from the broadcast information; judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware; when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, and acquiring an update data packet aiming at the first firmware from the third electronic equipment.
In the foregoing solution, the processing unit is specifically configured to determine whether the receiving unit determines that the receiving unit receives a download request for the update data packet sent by a fourth electronic device; and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the first electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request.
In the foregoing solution, the processing unit is specifically configured to determine whether a second update request for the update data packet sent by a fifth electronic device is received; and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet and responding to the second update request after the update data packet is sent to the second electronic equipment.
An embodiment of the present invention further provides an information processing system, where the information processing system includes: at least two electronic devices in the above scheme.
According to the information processing method, the electronic equipment and the system, the first information of the update data packet aiming at the firmware is broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
Drawings
FIG. 1 is a first flowchart illustrating an information processing method according to an embodiment of the present invention;
FIG. 2 is a first scenario of the present invention;
FIG. 3 is a flowchart illustrating a second information processing method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a second scenario of the present invention;
FIG. 5 is a third scenario diagram according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a fourth scenario diagram according to the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The first embodiment,
An embodiment of the present invention provides an information processing method, which is applied to a first electronic device, and as shown in fig. 1, the method includes:
step 101: acquiring an update data packet for a first firmware, and updating the first firmware according to the update data packet;
step 102: generating first information by using the update data packet aiming at the first firmware, and broadcasting the first information;
step 103: detecting whether an updating request for the updating data packet sent by a second electronic device is received;
step 104: and when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet.
Here, the first electronic device may be a server; the second electronic device may also be a server. The first electronic device may be in a cluster of N servers and the first electronic device itself is one of the N servers, where N is a positive integer greater than or equal to 1.
The first firmware is a piece of software that works at the system most basic and lowest layer of the first electronic device.
The first information carries version information of an update data packet of the first firmware.
The broadcasting the first information may be that the first electronic device sends the first information to all electronic devices connected thereto.
In one embodiment, the obtaining of the update data packet for the first firmware may be directly obtaining an update data packet provided by a user, for example, directly obtaining an update data packet copied to the first electronic device by the user, or receiving an update data packet sent to the first electronic device by the user through an electronic device.
The method for controlling the second electronic device to update the first firmware according to the update data packet may include, but is not limited to, the following two ways: the first electronic equipment sends an update data packet to second electronic equipment, the second electronic equipment analyzes the received update data packet, and then the first firmware is independently updated according to the analyzed update data packet; and secondly, after the first electronic equipment sends the update data packet to the second electronic equipment, controlling the second electronic equipment to analyze the received update data packet, and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
The present embodiment can be described by using the scenario provided in fig. 2, where six servers A, B, C, D, E, F are provided, a server a is used as the first electronic device in the present embodiment, and a server B is used as the second electronic device in the present embodiment; the method specifically comprises the following steps:
when the server A finishes updating the first firmware by using the updating data packet, sending a first message to B, C, D, E, F servers;
then the server B judges that the server B needs to update according to the version information of the update data packet of the first firmware in the received first information, and sends an update request to the server A;
and after the server A receives the updating request, generating a first instruction, and controlling the server B to update the first firmware according to the data packet.
Therefore, by adopting the scheme, the first information of the update data packet aiming at the firmware can be broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
Example II,
An embodiment of the present invention provides an information processing method, which is applied to a first electronic device, and as shown in fig. 3, the method includes:
step 301: determining whether broadcast information of an update packet for the first firmware is detected;
step 302: extracting version information of an update packet from the broadcast information when the broadcast information of the update packet for the first firmware is detected;
step 303: judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware; when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, acquiring an update data packet aiming at the first firmware from the third electronic equipment, and updating the first firmware according to the update data packet;
step 304: generating first information by using the update data packet aiming at the first firmware, and broadcasting the first information;
step 305: detecting whether an updating request for the updating data packet sent by a second electronic device is received;
step 306: and when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet.
Here, the first electronic device may be a server; the second electronic device may also be a server. The first electronic device may be in a cluster of N servers and the first electronic device itself is one of the N servers, where N is a positive integer greater than or equal to 1.
The first firmware is a piece of software that works at the system most basic and lowest layer of the first electronic device.
The first information carries version information of an update data packet of the first firmware.
And the judgment whether the broadcast information of the update data packet aiming at the first firmware is detected to be in the server cluster or not is carried out, and whether the broadcast information sent by other servers can be received or not is detected in real time.
The third electronic device determining to send the broadcast information according to the broadcast information may be: and analyzing the broadcast information to acquire source address information from the broadcast information, and determining the third electronic equipment according to the acquired source address information.
Preferably, the step of obtaining the update data packet for the first firmware from the third electronic device may include: and sending an update request to the third electronic equipment, and then receiving the control of the third electronic equipment to update the first firmware according to the update data packet.
The broadcasting the first information may be that the first electronic device sends the first information to all electronic devices connected thereto.
The method for controlling the second electronic device to update the first firmware according to the update data packet may include, but is not limited to, the following two ways: the first electronic equipment sends an update data packet to second electronic equipment, the second electronic equipment analyzes the received update data packet, and then the first firmware is independently updated according to the analyzed update data packet; and secondly, after the first electronic equipment sends the update data packet to the second electronic equipment, controlling the second electronic equipment to analyze the received update data packet, and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
The present embodiment can be described by using the scenario provided in fig. 4, where six servers A, B, C, D, E, F are provided, a server a is used as the first electronic device in the present embodiment, a server B is used as the second electronic device in the present embodiment, and a server F is used as the third electronic device in the present embodiment; the method specifically comprises the following steps:
the method comprises the steps that a server A detects whether first information is received in real time, when the first information is received, version information of an updating data packet is extracted from the first information, when the extracted version information is higher than the version of firmware of the server A, the server F is determined to be equipment sending information by using the first information, then an updating request is sent to the server F, and the server F is controlled to update the first firmware by using the updating data packet;
after the server A finishes updating the first firmware by using the updating data packet, sending first information to the B, C, D, E, F server;
then the server B judges that the server B needs to update according to the version information of the update data packet of the first firmware in the received first information, and sends an update request to the server A;
and after the server A receives the updating request, generating a first instruction, and controlling the server B to update the first firmware according to the data packet.
Therefore, by adopting the scheme, the first information of the update data packet aiming at the firmware can be broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
Example III,
An embodiment of the present invention provides an information processing method, which is applied to a first electronic device, and as shown in fig. 1, the method includes:
step 101: acquiring an update data packet for a first firmware, and updating the first firmware according to the update data packet;
step 102: generating first information by using the update data packet aiming at the first firmware, and broadcasting the first information;
step 103: detecting whether an updating request for the updating data packet sent by a second electronic device is received;
step 104: and when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet.
Here, the first electronic device may be a server; the second electronic device may also be a server. The first electronic device may be in a cluster of N servers and the first electronic device itself is one of the N servers, where N is a positive integer greater than or equal to 1.
The first firmware is a piece of software that works at the system most basic and lowest layer of the first electronic device.
The first information carries version information of an update data packet of the first firmware.
The broadcasting the first information may be that the first electronic device sends the first information to all electronic devices connected thereto.
The method for controlling the second electronic device to update the first firmware according to the update data packet may include, but is not limited to, the following two ways: the first electronic equipment sends an update data packet to second electronic equipment, the second electronic equipment analyzes the received update data packet, and then the first firmware is independently updated according to the analyzed update data packet; and secondly, after the first electronic equipment sends the update data packet to the second electronic equipment, controlling the second electronic equipment to analyze the received update data packet, and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
In this embodiment, when the first electronic device is updating using the update data packet and receives an update request sent by another electronic device, the first electronic device may not temporarily respond to the update request until it completes its own update, and the method includes: judging whether a downloading request aiming at the updating data packet sent by fourth electronic equipment is received; and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the first electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request. Therefore, when the first electronic device executes the updating operation, the first electronic device is not influenced by other operations, and the updating efficiency of the firmware of the first electronic device is further ensured.
The present embodiment can be described by using the scenario provided in fig. 4, where six servers A, B, C, D, E, F are provided, a server a is used as the first electronic device in the present embodiment, a server B is used as the second electronic device in the present embodiment, and a server F is used as the third electronic device in the present embodiment; the method specifically comprises the following steps:
the method comprises the steps that a server A detects whether first information is received in real time, when the first information is received, version information of an updating data packet is extracted from the first information, when the extracted version information is higher than the version of firmware of the server A, the server F is determined to be equipment sending information by using the first information, then an updating request is sent to the server F, and the server F is controlled to update the first firmware by using the updating data packet;
when the server A executes the updating operation and receives the updating request sent by the server D, the updating operation is continuously executed without responding to the updating request until the updating request is completed, and the server D is controlled to update by responding to the updating request sent by the server D;
in addition, after the server a finishes updating the first firmware by using the update data packet, the server a also sends B, C, D, E, F first information to the server;
then the server B judges that the server B needs to update according to the version information of the update data packet of the first firmware in the received first information, and sends an update request to the server A;
and after the server A receives the updating request, generating a first instruction, and controlling the server B to update the first firmware according to the data packet.
Preferably, in step 104 of this embodiment, the generating a first instruction, where the first instruction is used to control the second electronic device to update the first firmware according to the update data packet, includes: judging whether a second updating request aiming at the updating data packet sent by fifth electronic equipment is received or not; and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the first electronic equipment to control the second electronic equipment to update the first firmware according to the update data packet and respond to the second update request after the update data packet is sent to the second electronic equipment. The third instruction may control to store the second update request in the cache, extract the second update request from the cache after controlling the second electronic device to complete the update, and control the fifth electronic device to perform the update according to the second update request.
It can be understood that, in this scenario, although only the second update request sent by one fifth electronic device is mentioned, in fact, the first electronic device may control the electronic devices sending the update requests to update one by one according to the sequence of receiving the update requests in order to receive the update requests.
For example, as shown in fig. 5, assume that server B serves as a first electronic device and server a serves as a second electronic device; the server B receives the updating requests sent by the server D and the server E while controlling the server A to update, and caches the updating requests according to the sequence of the received updating requests; after the control server A is updated, the updating requests sent by the server D are extracted according to the caching sequence, then the server D is controlled to perform updating operation according to the updating requests, and then the server E is controlled to perform updating operation according to the updating requests.
Therefore, by adopting the scheme, the first information of the update data packet aiming at the firmware can be broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
Example four,
An embodiment of the present invention provides an electronic device, as shown in fig. 6, the electronic device includes:
a receiving unit 61, configured to obtain an update data packet for the first firmware;
a processing unit 62, configured to update the first firmware according to the update data packet; generating first information by using the update data packet for the first firmware; detecting whether an updating request for the updating data packet sent by a second electronic device is received; when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet;
a sending unit 63, configured to broadcast the first information.
Here, the electronic device may be in a cluster of N servers and the electronic device itself is one of the N servers, where N is a positive integer greater than or equal to 1.
The first firmware is a piece of software that works at the system most basic and lowest layer of the first electronic device.
The first information carries version information of an update data packet of the first firmware.
The broadcasting the first information may be that the first electronic device sends the first information to all electronic devices connected thereto.
In one embodiment, the processing unit 62 may obtain the update data packet for the first firmware directly, for example, directly obtain the update data packet copied to the first electronic device by the user, or receive the update data packet sent to the first electronic device by the user through an electronic device.
The method for controlling the second electronic device to update the first firmware according to the update data packet may include, but is not limited to, the following two ways: firstly, sending an update data packet to second electronic equipment, analyzing the received update data packet by the second electronic equipment, and independently updating a first firmware according to the analyzed update data packet; and after the update data packet is sent to the second electronic equipment, the processing unit controls the second electronic equipment to analyze the received update data packet, and controls the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
The present embodiment can be described by using the scenario provided in fig. 2, in which six servers A, B, C, D, E, F are provided, a server a is used as the electronic device described in the present embodiment, and a server B is used as the second electronic device in the present embodiment; the method specifically comprises the following steps:
when the processing unit of the server A finishes updating the first firmware by using the updating data packet, sending a first message to B, C, D, E, F server;
then, the processing unit of the server B judges that the server B needs to update according to the version information of the update data packet of the first firmware in the received first information, and sends an update request to the server A;
and after the processing unit of the server A receives the updating request, generating a first instruction, and controlling the server B to update the first firmware according to the data packet.
Therefore, by adopting the scheme, the first information of the update data packet aiming at the firmware can be broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
Example V,
An embodiment of the present invention provides an electronic device, including:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for acquiring an update data packet aiming at first firmware;
the processing unit is used for updating the first firmware according to the updating data packet; generating first information by using the update data packet for the first firmware; detecting whether an updating request for the updating data packet sent by a second electronic device is received; when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet;
a transmitting unit, configured to broadcast the first information.
Here, the electronic device may be a server; the second electronic device may also be a server. The electronic device may be in a cluster of N servers and itself be one of the N servers, where N is a positive integer greater than or equal to 1.
The first firmware is a piece of software that works at the bottom most layer of the system of the electronic device.
The first information carries version information of an update data packet of the first firmware.
And the judgment whether the broadcast information of the update data packet aiming at the first firmware is detected to be in the server cluster or not is carried out, and whether the broadcast information sent by other servers can be received or not is detected in real time.
The processing unit is specifically configured to determine whether the receiving unit detects broadcast information of an update packet for the first firmware; when the broadcast information of the update packet for the first firmware is detected; extracting version information of an update data packet from the broadcast information; judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware; when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, and acquiring an update data packet aiming at the first firmware from the third electronic equipment.
The processing unit is specifically configured to acquire source address information from the broadcast information by analyzing the broadcast information, and determine the third electronic device according to the acquired source address information.
Preferably, the sending unit is specifically configured to send an update request to the third electronic device; the processing unit then receives control of the third electronic device to perform an update for the first firmware according to the update data packet.
The broadcasting the first information may be that the first electronic device sends the first information to all electronic devices connected thereto.
The method for controlling the second electronic device to update the first firmware according to the update data packet may include, but is not limited to, the following two ways: the first electronic equipment sends an update data packet to second electronic equipment, the second electronic equipment analyzes the received update data packet, and then the first firmware is independently updated according to the analyzed update data packet; and secondly, after the first electronic equipment sends the update data packet to the second electronic equipment, controlling the second electronic equipment to analyze the received update data packet, and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
This embodiment can be described by using the scenario provided in fig. 4, where six servers A, B, C, D, E, F are provided, a server a is used as the electronic device described in this embodiment, a server B is used as the second electronic device in this embodiment, and a server F is the third electronic device described in this embodiment; the method specifically comprises the following steps:
the method comprises the steps that a server A detects whether first information is received in real time, when the first information is received, version information of an updating data packet is extracted from the first information, when the extracted version information is higher than the version of firmware of the server A, the server F is determined to be equipment sending information by using the first information, then an updating request is sent to the server F, and the server F is controlled to update the first firmware by using the updating data packet;
after the server A finishes updating the first firmware by using the updating data packet, sending first information to the B, C, D, E, F server;
then the server B judges that the server B needs to update according to the version information of the update data packet of the first firmware in the received first information, and sends an update request to the server A;
and after the server A receives the updating request, generating a first instruction, and controlling the server B to update the first firmware according to the data packet.
Preferably, in this embodiment, when the first electronic device receives an update request sent by another electronic device while being updated by using the update packet, the method may further include temporarily not responding to the update request until the update request is responded after the update of the first electronic device is completed, and the method includes: the processing unit is specifically configured to determine whether the receiving unit determines that the receiving unit receives a download request for the update data packet sent by a fourth electronic device; and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the first electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request. Therefore, when the first electronic device executes the updating operation, the first electronic device is not influenced by other operations, and the updating efficiency of the firmware of the first electronic device is further ensured.
For example, fig. 4 illustrates a scenario in which A, B, C, D, E, F six servers are provided, where server a is the electronic device described in this embodiment, server B is the second electronic device in this embodiment, and server F is the third electronic device described in this embodiment; the method specifically comprises the following steps:
the server A detects whether first information is received or not in real time through the receiving unit, when the first information is received, the processing unit extracts version information of an updating data packet from the first information, when the extracted version information is higher than the version of the firmware of the server A, the server F is determined to be equipment sending the information by using the first information, then an updating request is sent to the server F, and the receiving server F controls to update the first firmware by using the updating data packet;
when the server A executes the updating operation and receives the updating request sent by the server D, the updating operation is continuously executed without responding to the updating request until the updating request is completed, and the server D is controlled to update by responding to the updating request sent by the server D;
in addition, after the server a finishes updating the first firmware by using the update data packet, the server a also sends B, C, D, E, F first information to the server;
then the server B judges that the server B needs to update according to the version information of the update data packet of the first firmware in the received first information, and sends an update request to the server A;
and after the server A receives the updating request, generating a first instruction, and controlling the server B to update the first firmware according to the data packet.
Preferably, the processing unit is specifically configured to determine whether a second update request for the update data packet sent by a fifth electronic device is received; and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet and responding to the second update request after the update data packet is sent to the second electronic equipment. The third instruction may control to store the second update request in the cache, extract the second update request from the cache after controlling the second electronic device to complete the update, and control the fifth electronic device to perform the update according to the second update request.
It can be understood that, in this scenario, although only the second update request sent by one fifth electronic device is mentioned, in fact, the first electronic device may control the electronic devices sending the update requests to update one by one according to the sequence of receiving the update requests in order to receive the update requests.
For example, as shown in fig. 5, assume that server B serves as the electronic device and server a serves as the second electronic device; the server B receives the updating requests sent by the server D and the server E while controlling the server A to update, and caches the updating requests according to the sequence of the received updating requests; after the control server A is updated, the updating requests sent by the server D are extracted according to the caching sequence, then the server D is controlled to perform updating operation according to the updating requests, and then the server E is controlled to perform updating operation according to the updating requests.
Therefore, by adopting the scheme, the first information of the update data packet aiming at the firmware can be broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
Example six,
The embodiment provides an information processing system, which comprises at least two electronic devices; the functions of the electronic device are the same as those of the electronic devices described in the fourth and fifth embodiments.
The electronic device may be a server, and accordingly, the information processing system may be a server cluster, for example, as shown in fig. 2, the information processing system may include six servers.
The electronic device includes: the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for acquiring an update data packet aiming at first firmware;
the processing unit is used for updating the first firmware according to the updating data packet; generating first information by using the update data packet for the first firmware; detecting whether an updating request for the updating data packet sent by a second electronic device is received; when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet;
a transmitting unit, configured to broadcast the first information.
The processing unit is specifically configured to determine whether the receiving unit detects broadcast information of an update packet for the first firmware; when the broadcast information of the update packet for the first firmware is detected; extracting version information of an update data packet from the broadcast information; judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware; when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, and acquiring an update data packet aiming at the first firmware from the third electronic equipment.
The processing unit is specifically configured to acquire source address information from the broadcast information by analyzing the broadcast information, and determine the third electronic device according to the acquired source address information.
Preferably, the sending unit is specifically configured to send an update request to the third electronic device; the processing unit then receives control of the third electronic device to perform an update for the first firmware according to the update data packet.
The broadcasting the first information may be that the first electronic device sends the first information to all electronic devices connected thereto.
The method for controlling the second electronic device to update the first firmware according to the update data packet may include, but is not limited to, the following two ways: firstly, sending an update data packet to second electronic equipment, analyzing the received update data packet by the second electronic equipment, and independently updating a first firmware according to the analyzed update data packet; and secondly, after the update data packet is sent to the second electronic equipment, controlling the second electronic equipment to analyze the received update data packet, and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
The processing unit is specifically configured to determine whether the receiving unit determines that the receiving unit receives a download request for the update data packet sent by a fourth electronic device; and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the first electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request. Therefore, when the first electronic device executes the updating operation, the first electronic device is not influenced by other operations, and the updating efficiency of the firmware of the first electronic device is further ensured.
Preferably, the processing unit is specifically configured to determine whether a second update request for the update data packet sent by a fifth electronic device is received; and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet and responding to the second update request after the update data packet is sent to the second electronic equipment. The third instruction may control to store the second update request in the cache, extract the second update request from the cache after controlling the second electronic device to complete the update, and control the fifth electronic device to perform the update according to the second update request.
It can be understood that, in this scenario, although only the second update request sent by one fifth electronic device is mentioned, in fact, the first electronic device may control the electronic devices sending the update requests to update one by one according to the sequence of receiving the update requests in order to receive the update requests.
In the system shown in fig. 2, since each server can perform the same operation, by adopting the system provided in this embodiment, the operating efficiency of firmware update can be improved, for example, in the scenario shown in fig. 7, assuming that the topmost server is the first server performing firmware update, and after the server controls N servers in the next layer to perform update, the N servers continue to control the next M servers to perform update.
Therefore, by adopting the scheme, the first information of the update data packet aiming at the firmware can be broadcasted among the electronic equipment, and the other electronic equipment is controlled to carry out the update operation of the firmware by using the update data packet according to the update request sent by the other electronic equipment. Therefore, misoperation caused by manual upgrading of the firmware is avoided, and the transmission speed of the update data packet is increased.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. An information processing method is applied to a first electronic device, and comprises the following steps:
acquiring an update data packet for a first firmware, and updating the first firmware according to the update data packet;
generating first information by using the update data packet aiming at the first firmware, and broadcasting the first information;
detecting whether an updating request for the updating data packet sent by a second electronic device is received; the first electronic device and the second electronic device are two different servers in a cluster consisting of N servers, and N is a positive integer greater than or equal to 1;
and when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to analyze the received update data packet, and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to the installation script.
2. The method of claim 1, wherein the first information carries version information of an update packet of the first firmware.
3. The method of claim 1, wherein obtaining the update package for the first firmware comprises:
determining whether broadcast information of an update packet for the first firmware is detected;
when the broadcast information of the update packet for the first firmware is detected;
extracting version information of an update data packet from the broadcast information;
judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware;
when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, and acquiring an update data packet aiming at the first firmware from the third electronic equipment.
4. The method of claim 1, wherein the updating the first firmware according to the update packet comprises:
judging whether a downloading request aiming at the updating data packet sent by fourth electronic equipment is received;
and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the first electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request.
5. The method according to claim 1, wherein the generating a first instruction for controlling the second electronic device to update the first firmware according to the update data packet comprises:
judging whether a second updating request aiming at the updating data packet sent by fifth electronic equipment is received or not;
and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the first electronic equipment to control the second electronic equipment to update the first firmware according to the update data packet and respond to the second update request after the update data packet is sent to the second electronic equipment.
6. An electronic device, the electronic device comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for acquiring an update data packet aiming at first firmware;
the processing unit is used for updating the first firmware according to the updating data packet; generating first information by using the update data packet for the first firmware; detecting whether an updating request for the updating data packet sent by a second electronic device is received; the electronic equipment and the second electronic equipment are two different servers in a cluster consisting of N servers, and N is a positive integer greater than or equal to 1; when the update request is received, generating a first instruction, wherein the first instruction is used for controlling the second electronic equipment to analyze the received update data packet and controlling the second electronic equipment to complete the update of the first firmware by using the analyzed update data packet according to an installation script;
a transmitting unit, configured to broadcast the first information.
7. The electronic device according to claim 6, wherein the first information carries version information of an update packet of the first firmware.
8. The electronic device of claim 6,
the processing unit is specifically configured to determine whether the receiving unit detects broadcast information of an update packet for the first firmware; when the broadcast information of the update packet for the first firmware is detected; extracting version information of an update data packet from the broadcast information; judging whether the version information meets a second preset condition, wherein the second preset condition is that the version information is newer than that of the currently installed first firmware; when the version information meets a second preset condition, determining third electronic equipment for sending the broadcast information according to the broadcast information, and acquiring an update data packet aiming at the first firmware from the third electronic equipment.
9. The electronic device according to claim 6, wherein the processing unit is specifically configured to determine whether the receiving unit determines that the receiving unit receives a download request for the update package sent by a fourth electronic device; and when the downloading request is received, generating a second instruction, wherein the second instruction is used for controlling the electronic equipment until the updating operation of the first firmware is completed, and then responding to the downloading request.
10. The electronic device according to claim 6, wherein the processing unit is specifically configured to determine whether a second update request for the update packet sent by a fifth electronic device is received; and when the second update request is received, generating a third instruction, wherein the third instruction is used for controlling the second electronic equipment to update the first firmware according to the update data packet and responding to the second update request after the update data packet is sent to the second electronic equipment.
11. An information processing system characterized by comprising: at least two electronic devices of any one of claim 6 to claim 10.
CN201410838574.6A 2014-12-29 2014-12-29 Information processing method, electronic equipment and system Active CN105808268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410838574.6A CN105808268B (en) 2014-12-29 2014-12-29 Information processing method, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410838574.6A CN105808268B (en) 2014-12-29 2014-12-29 Information processing method, electronic equipment and system

Publications (2)

Publication Number Publication Date
CN105808268A CN105808268A (en) 2016-07-27
CN105808268B true CN105808268B (en) 2019-12-24

Family

ID=56979975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410838574.6A Active CN105808268B (en) 2014-12-29 2014-12-29 Information processing method, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN105808268B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332936A (en) * 2017-08-25 2017-11-07 长沙曙通信息科技有限公司 A kind of distributed storage distribution and installation network system realization
CN109358876A (en) * 2018-09-28 2019-02-19 联想(北京)有限公司 A kind of version synchronization method and device, equipment, storage medium
CN112118322B (en) * 2020-09-24 2022-08-30 杭州海康威视数字技术股份有限公司 Data synchronization method of network equipment, network equipment and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321350A (en) * 2008-07-24 2008-12-10 北京立通无限科技有限公司 Method ,device and system for automatically updating application software of mobile terminal
CN102325166A (en) * 2011-07-21 2012-01-18 大唐移动通信设备有限公司 Method and device for upgrading application software version
CN102546818A (en) * 2012-02-13 2012-07-04 成都欣点科技有限公司 Method and system for upgrading embedded equipment in batches
CN103716390A (en) * 2013-12-25 2014-04-09 广西大学 Method and terminal for data sharing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027806B2 (en) * 2001-07-26 2006-04-11 Kyocera Wireless, Corp. System and method for field downloading a wireless communications device software code section

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321350A (en) * 2008-07-24 2008-12-10 北京立通无限科技有限公司 Method ,device and system for automatically updating application software of mobile terminal
CN102325166A (en) * 2011-07-21 2012-01-18 大唐移动通信设备有限公司 Method and device for upgrading application software version
CN102546818A (en) * 2012-02-13 2012-07-04 成都欣点科技有限公司 Method and system for upgrading embedded equipment in batches
CN103716390A (en) * 2013-12-25 2014-04-09 广西大学 Method and terminal for data sharing

Also Published As

Publication number Publication date
CN105808268A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN107066305B (en) Method and device for updating server firmware of server and server
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
CN105302587B (en) Data-updating method and device
CN104410665B (en) A kind of method for down loading and equipment upgrading bag
CN103970566B (en) A kind of method and apparatus of router firmware upgrading
US10200507B2 (en) Creation of a binding based on a description associated with a server
CN106612192A (en) An equipment upgrading method, apparatus and system
KR20140100501A (en) Method and apparatus for providing firmware over the air service to user equipments
CN102779054A (en) Installation treatment method and device of application program as well as server
CN106549789B (en) Method and system for realizing server installation
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
CN103152206A (en) Method and system for updating multiple devices
CN105808268B (en) Information processing method, electronic equipment and system
CN104504587A (en) Advertisement monitoring method and device, electronic apparatus
CN103905441A (en) Data acquisition method and device
CN106953898B (en) Method and device for acquiring software package
CN107357612A (en) Application program updating detection method and device
CN108540509A (en) A kind of processing method of terminal browser, device and server, intelligent terminal
CN112688983A (en) Proxy right management device, terminal device and storage medium
KR20150005164A (en) FOTA system and the method
CN111273924A (en) Software updating method and device
CN104486383A (en) Method for installing application program on smart mobile device
CN105589705A (en) File updating method and device, and equipment
KR20180050001A (en) Firmware upgrade system and method for IoT
US20150370450A1 (en) Display terminal and display method

Legal Events

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