Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
Therefore, a first objective of the present invention is to provide a method for upgrading a local area network device, which solves the problems in the prior art that the device upgrading process increases the dependency on the wide area network used for multiple times, increases the load of a server, and reduces the upgrading success rate of the device.
The second purpose of the invention is to provide another local area network equipment upgrading method.
The third purpose of the invention is to provide a local area network equipment upgrading device.
The fourth purpose of the invention is to provide another local area network equipment upgrading device
A fifth object of the invention is to propose a computer device.
A sixth object of the invention is to propose a non-transitory computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for upgrading a local area network device, where the method is applied to a first device serving as a main upgrading device among a plurality of devices of the same type in the same local area network, and includes the following steps: receiving an upgrade package and an upgrade rule sent by a server through a wide area network; sending the upgrading packet and the upgrading rule to second equipment with the same type as the first equipment through a local area network, so that the second equipment carries out upgrading processing according to the upgrading rule and the upgrading packet; and receiving an upgrading result fed back by the second equipment, and reporting the upgrading result to the server through a wide area network.
The local area network equipment upgrading method receives the upgrading packet and the upgrading rule sent by the server through the wide area network, sends the upgrading packet and the upgrading rule to the second equipment with the same type as the first equipment through the local area network, enables the second equipment to carry out upgrading processing according to the upgrading rule and the upgrading packet, then receives the upgrading result fed back by the second equipment, and reports the upgrading result to the server through the wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
In addition, the method for upgrading the local area network device according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the method further includes: receiving a carrying instruction of the main upgrading equipment in the local area network, which is sent by the server, through a wide area network; or receiving a carrying instruction of the main upgrading device in the local area network sent by the user.
Optionally, the method further includes: and detecting whether the preset trigger time is reached, and if the preset trigger time is reached, carrying out the function of the main upgrading equipment in the local area network.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides a method for upgrading a local area network device, where the method is applied to a second device serving as a passive upgrade device in multiple devices of the same type in the same local area network, and includes the following steps: receiving an upgrade package and an upgrade rule sent by first equipment through a local area network, wherein the first equipment and the second equipment have the same equipment type and are used as main upgrade equipment to obtain the upgrade package and the upgrade rule from a server through the local area network; carrying out upgrading treatment according to the upgrading rule and the upgrading packet; and feeding back the upgrade result to the first equipment so that the first equipment reports the upgrade result to the server through a wide area network.
The local area network equipment upgrading method receives an upgrading packet and an upgrading rule sent by first equipment through a local area network, wherein the first equipment and second equipment have the same equipment type, the first equipment and the second equipment are used as main upgrading equipment to obtain the upgrading packet and the upgrading rule from a server through the local area network, upgrading is carried out according to the upgrading rule and the upgrading packet, and finally an upgrading result is fed back to the first equipment, so that the first equipment reports the upgrading result to the server through the wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
In addition, the method for upgrading the local area network device according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the performing, according to the upgrade rule and the upgrade package, upgrade processing includes: judging whether to carry out upgrading treatment according to the upgrading rule and the current software version number; and if so, performing upgrading operation through the upgrading packet.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides an apparatus for upgrading a local area network device, where the apparatus is applied to a first device serving as a main upgrading device among a plurality of devices of the same type in the same local area network, and the apparatus includes: the first sending module is used for receiving the upgrade package and the upgrade rule sent by the server through the wide area network; the second sending module is used for sending the upgrading packet and the upgrading rule to second equipment with the same type as the first equipment through a local area network so that the second equipment carries out upgrading processing according to the upgrading rule and the upgrading packet; and the processing module is used for receiving the upgrading result fed back by the second equipment and reporting the upgrading result to the server through a wide area network.
The local area network equipment upgrading device receives the upgrading packet and the upgrading rule sent by the server through the wide area network, sends the upgrading packet and the upgrading rule to the second equipment with the same type as the first equipment through the local area network, enables the second equipment to carry out upgrading processing according to the upgrading rule and the upgrading packet, then receives the upgrading result fed back by the second equipment, and reports the upgrading result to the server through the wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
In addition, the upgrading apparatus for lan devices according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the apparatus is characterized by further comprising: the first receiving module is used for receiving a carrying instruction of the main upgrading equipment in the local area network, which is sent by the server, through a wide area network; or, the second receiving module is configured to receive a carrying instruction of the main upgrade device in the local area network sent by the user.
Optionally, the apparatus further includes: and the detection receiving module is used for detecting whether the preset trigger time is reached or not, and receiving the functions of the main upgrading equipment in the local area network if the preset trigger time is reached.
In order to achieve the above object, a fourth aspect of the present invention provides an apparatus for upgrading a local area network device, where the apparatus is applied to a second device serving as a passive upgrade device among a plurality of devices of the same type in the same local area network, and the apparatus includes: the third sending module is used for receiving the upgrade package and the upgrade rule sent by the first equipment through the local area network, wherein the first equipment and the second equipment have the same equipment type, and the first equipment and the second equipment are used as main upgrade equipment to obtain the upgrade package and the upgrade rule from the server through the local area network; the upgrading module is used for carrying out upgrading treatment according to the upgrading rule and the upgrading packet; and the feedback module is used for feeding back the upgrading result to the first equipment so that the first equipment reports the upgrading result to the server through a wide area network.
The upgrading device of the local area network equipment receives an upgrading packet and an upgrading rule sent by first equipment through a local area network, wherein the first equipment and second equipment have the same equipment type, and are used as main upgrading equipment to obtain the upgrading packet and the upgrading rule from a server through the local area network, upgrade the upgrading equipment according to the upgrading rule and the upgrading packet, and finally feed an upgrading result back to the first equipment so that the first equipment reports the upgrading result to the server through a wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
In addition, the upgrading apparatus for lan devices according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the upgrade module is specifically configured to: judging whether to carry out upgrading treatment according to the upgrading rule and the current software version number; and if so, performing upgrading operation through the upgrading packet.
To achieve the above object, a fifth embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for upgrading a local area network device according to the first embodiment and the method for upgrading a local area network device according to the third embodiment are implemented.
To achieve the above object, a sixth aspect of the present invention provides a non-transitory computer-readable storage medium, having a computer program stored thereon, where the computer program is configured to, when executed by a processor, implement a method for upgrading a local area network device according to the first aspect and a method for upgrading a local area network device according to the third aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a method, an apparatus and a device for upgrading a local area network device according to an embodiment of the present invention with reference to the accompanying drawings.
Specifically, in the related art, each device of the same type generally needs to independently connect to a server to download a corresponding upgrade package for the related upgrade operation. However, this method increases the dependency on the wide area network used for many times, and also increases the burden of the server, and there are situations such as abnormal device upgrade due to network problems, so that the upgrade success rate of the device is low.
In order to solve the problems, the invention provides a local area network equipment upgrading method, which is characterized in that after an upgrading package and an upgrading rule are obtained by a main upgrading device, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependence of the equipment upgrading process on a wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same model is improved, and the production cost is reduced. The method comprises the following specific steps:
for convenience of description, the method for upgrading a local area network device according to the embodiment of the present invention is applied to a first device serving as a main upgrading device among a plurality of devices of the same type in the same local area network.
Fig. 1 is a flowchart illustrating a method for upgrading a lan device according to an embodiment of the present invention. As shown in fig. 1, the method for upgrading a local area network device includes:
step 101, receiving an upgrade package and an upgrade rule sent by a server through a wide area network.
And 102, sending the upgrade package and the upgrade rule to second equipment with the same type as the first equipment through the local area network, so that the second equipment carries out upgrade processing according to the upgrade rule and the upgrade package.
Specifically, the device in the embodiment of the present invention may be an intelligent device, and mainly refers to a device that has a wide area network connection capability and can be remotely controlled through a wide area network and a local area network, including but not limited to one or more of a wifi communication module, a 2G/3G/4G communication module (including a 2G module based on GSM, CDMA communication, a 3G module based on CDMA2000, WCDMA, TD-SCDMA, WiMAX communication, a 4G module based on LTE communication, and a 5G module for next generation communication), and the like. For the local area network communication capability, the communication capability includes but is not limited to one or more of local area network communication capability such as wifi module, Zigbee module, bluetooth module, wired connection communication, and the like.
It should be noted that the local area network device upgrade in the embodiment of the present invention mainly refers to upgrade of Over-the-air technology (OTA, Over-the-air technology), that is, a technology for remotely upgrading data and applications of a module or an electronic control board through an interface of network communication, where the interface of network communication may be an HTTP/HTTPs protocol based on TCP, an MQTT protocol, or the like.
Specifically, fig. 2 is a schematic structural diagram of an upgrade of a lan device according to an embodiment of the present invention. As shown in fig. 2, the server may establish a connection with a plurality of devices of the same type through the local area network router and perform related operations; any one of a plurality of devices of the same type may be used as a first device of a main upgrade device, for example, a first intelligent device on the left in fig. 2 is used as a main upgrade device, and the remaining plurality of devices of the same type are all passive upgrade devices, and an upgrade package and an upgrade rule may be obtained from the main upgrade device through a local area network. Wherein the upgrade rules may be included in the upgrade package or exist independently.
Specifically, the local area network device upgrading method provided by the embodiment of the invention is applied to a first device serving as a main upgrading device in a plurality of devices of the same type in the same local area network, and the first device can be connected with a server through a wide area network, so that a device upgrading packet and an upgrading rule sent by the server can be received at one time, and the pressure that the server needs to provide the device upgrading packet and the upgrading rule for multiple times is reduced.
Specifically, the first device needs to report the software version numbers of a plurality of devices of the same type to the server through the wide area network, so that when the server detects that the software version numbers are updated, the device upgrade operation is triggered. Namely, the server can determine that the software version number is updated by comparing the software version number and the like, and then sends the upgrade package links of a plurality of devices of the same type at one time, so that the first device can download all the device upgrade packages and upgrade rules at one time, thereby avoiding multiple downloads, reducing the dependence on a wide area network and improving the success rate of the downloads.
More specifically, before step 101, one of a plurality of intelligent devices of the same type needs to be set as a main upgrade device, and as an example, the first device receives, through a wide area network, a join instruction of the main upgrade device in a local area network sent by a server, so as to serve as a function of joining the main upgrade device in the local area network according to the join instruction; as another example, the first device receives a join instruction of the master upgrade device in the lan sent by the user, so that the first device functions as the master upgrade device in the lan according to the join instruction.
In order to further improve the accuracy and efficiency of upgrading, the first device may detect whether the preset trigger time is reached by presetting the trigger time, such as 5 seconds, 10 seconds, and the like, and accept the function of the main upgrading device in the local area network when the trigger time is reached.
Further, the first device may send the upgrade package and the upgrade rule to a second device having the same type as the first device through the local area network, so that the second device performs upgrade processing according to the upgrade rule and the upgrade package. It can be understood that the first device may distribute the upgrade package and the upgrade rule to all devices of the same model under the same lan, so that all devices of the same model perform the upgrade process according to the upgrade rule and the upgrade package. The problem of dependence on the wide area network caused by multiple use when the same type of intelligent equipment is upgraded is solved, and the burden of providing the upgrade package for multiple times of the server is reduced.
Therefore, a plurality of devices of the same type can acquire corresponding upgrade packages through the local area network for upgrading, the hardware production cost of the devices, which is to be connected with the wide area network independently, can be reduced, the abnormal conditions caused by external conditions such as the network are reduced, the success rate of upgrading is improved, and in addition, the plurality of devices of the same type can select to remove the communication capacity of the wide area network, so that the production cost is reduced.
And 103, receiving the upgrade result fed back by the second equipment, and reporting the upgrade result to the server through the wide area network.
Specifically, after the plurality of devices of the same type, that is, the second device, acquire the corresponding upgrade package, the related upgrade operation may be performed, and the upgraded result may be fed back to the first device. Furthermore, after the upgrade operation is finished, the first device may feed back the upgrade result to the server through the wide area network, and it may be understood that the feedback may be performed in many ways, for example, as follows: as an example, the first device immediately feeds back to the server every time the first device receives an upgrade result of the second device; as another example, the master device collects the upgrade results of all the second devices and feeds the upgrade results back to the server at one time, so that the efficiency of upgrading the local area network devices is further improved.
In summary, in the method for upgrading a local area network device according to the embodiment of the present invention, the wide area network receives the upgrade package and the upgrade rule sent by the server, and sends the upgrade package and the upgrade rule to the second device having the same type as the first device through the local area network, so that the second device performs upgrade processing according to the upgrade rule and the upgrade package, then receives the upgrade result fed back by the second device, and reports the upgrade result to the server through the wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
In order to more fully describe the local area network device upgrading method of the embodiment of the present invention, the method is applied to a second device serving as a passive upgrading device among a plurality of devices of the same type in the same local area network.
Fig. 3 is a flowchart illustrating a method for upgrading a lan device according to another embodiment of the present invention. As shown in fig. 3, the method for upgrading a local area network device includes:
step 201, receiving an upgrade package and an upgrade rule sent by a first device through a local area network, where the first device and a second device have the same device type and are used as a main upgrade device to obtain the upgrade package and the upgrade rule from a server through the local area network.
And step 202, carrying out upgrading treatment according to the upgrading rule and the upgrading packet.
Specifically, the plurality of second devices may receive, through the local area network, the upgrade package and the upgrade rule sent by the first device. It is understood that the second device receives the upgrade package and the upgrade rule from the server through the local area network as the main upgrade device with the first device having the same device type as the second device.
Further, performing upgrade processing according to the upgrade rule and the upgrade package, as an example, judging whether to perform upgrade processing according to the upgrade rule and the current software version number; if so, performing upgrading operation through the upgrading package.
For example, the plurality of second devices of the same device type are A, B and C, respectively, and the current software version number is 1.0; a user newly purchases a second device with the same device type D, and the current software version number is 2.0; according to the upgrading rule, when a plurality of second devices of the same device type, respectively A, B and C, are upgraded to 2.0, the second device D does not need to be upgraded. Therefore, the upgrading efficiency of the equipment is further improved.
And 203, feeding back the upgrade result to the first device so that the first device reports the upgrade result to the server through the wide area network.
Specifically, the second device may feed back an upgrade result, such as success, failure, and the like, to the first device through the local area network, so that the second device may feed back the upgrade result to the server through the wide area network, and it can be understood that the feedback may be performed in many ways, for example, as follows: as an example, the first device immediately feeds back to the server every time the first device receives an upgrade result of the second device; as another example, the master device collects the upgrade results of all the second devices and feeds the upgrade results back to the server at one time, so that the efficiency of upgrading the local area network devices is further improved.
In summary, in the method for upgrading a local area network device according to the embodiment of the present invention, an upgrade package and an upgrade rule sent by a first device are received through a local area network, where the first device and a second device have the same device type, and are used as a main upgrade device to obtain the upgrade package and the upgrade rule from a server through the local area network, perform upgrade processing according to the upgrade rule and the upgrade package, and finally feed an upgrade result back to the first device, so that the first device reports the upgrade result to the server through the wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
Corresponding to the method for upgrading a lan device provided in the first embodiment, an embodiment of the present invention further provides a device for upgrading a lan device, and the device for upgrading a lan device provided in the embodiment of the present invention corresponds to the method for upgrading a lan device provided in the foregoing embodiments, so that the implementation manner of the method for upgrading a lan device is also applicable to the device for upgrading a lan device provided in this embodiment, and will not be described in detail in this embodiment.
Fig. 4 is a schematic structural diagram of an apparatus for upgrading a lan device according to an embodiment of the present invention. As shown in fig. 3, the apparatus for upgrading a lan device includes: a first sending module 11, a second sending module 12 and a processing module 13.
The first sending module 11 is configured to receive, through the wide area network, the upgrade package and the upgrade rule sent by the server.
And a second sending module 12, configured to send the upgrade package and the upgrade rule to a second device having the same type as the first device through a local area network, so that the second device performs upgrade processing according to the upgrade rule and the upgrade package.
And the processing module 13 is configured to receive the upgrade result fed back by the second device, and report the upgrade result to the server through the wide area network.
In an embodiment of the present invention, as shown in fig. 5, on the basis of fig. 4, a first receiving module 14, a second receiving module 15, and a detection accepting module 16 are further included.
The first receiving module 14 is configured to receive, through the wide area network, a connection instruction of the main upgrade device in the local area network, where the connection instruction is sent by the server.
And the second receiving module 15 is configured to receive a carrying instruction of the main upgrade device in the local area network sent by the user.
And the detection receiving module 16 is configured to detect whether a preset trigger time is reached, and receive the function of the main upgrade device in the local area network if the preset trigger time is reached.
In summary, the upgrade apparatus for a local area network device in the embodiment of the present invention receives, through the wide area network, the upgrade package and the upgrade rule sent by the server, and sends, through the local area network, the upgrade package and the upgrade rule to the second device having the same type as the first device, so that the second device performs upgrade processing according to the upgrade rule and the upgrade package, then receives the upgrade result fed back by the second device, and reports the upgrade result to the server through the wide area network. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
Corresponding to the method for upgrading a lan device provided in the second embodiment, an embodiment of the present invention further provides a device for upgrading a lan device, and the device for upgrading a lan device provided in the embodiment of the present invention corresponds to the method for upgrading a lan device provided in the foregoing embodiments, so that the implementation manner of the method for upgrading a lan device is also applicable to the device for upgrading a lan device provided in this embodiment, and will not be described in detail in this embodiment.
Fig. 6 is a schematic structural diagram of an apparatus for upgrading a lan device according to another embodiment of the present invention. As shown in fig. 6, the apparatus for upgrading a lan device includes: a third sending module 21, an upgrade module 22 and a feedback module 23.
The device is applied to a plurality of devices of the same type in the same local area network and is used as a second device of the passive upgrading device.
The third sending module 21 is configured to receive the upgrade package and the upgrade rule sent by the first device through the local area network, where the first device and the second device have the same device type, and are used as the main upgrade device to obtain the upgrade package and the upgrade rule from the server through the local area network.
And the upgrading module 22 is used for upgrading according to the upgrading rules and the upgrading package.
And the feedback module 23 is configured to feed back the upgrade result to the first device, so that the first device reports the upgrade result to the server through the wide area network.
In an embodiment of the present invention, the upgrade module 22 is specifically configured to: judging whether to perform upgrading treatment according to upgrading rules and the current software version number; if so, performing upgrading operation through the upgrading package.
In summary, the upgrade apparatus for a lan device in the embodiment of the present invention receives, through a lan, an upgrade package and an upgrade rule sent by a first device, where the first device and a second device have the same device type, and as a main upgrade device, the first device obtains the upgrade package and the upgrade rule from a server through the lan, performs upgrade processing according to the upgrade rule and the upgrade package, and finally feeds an upgrade result back to the first device, so that the first device reports the upgrade result to the server through the wan. Therefore, after the upgrading package and the upgrading rule are obtained through the main upgrading equipment, the upgrading package and the upgrading rule are distributed to all equipment with the same model under the same local area network in a local area network mode for upgrading, so that the dependency of the equipment upgrading process on the wide area network is reduced, the load of a server is lightened, the upgrading success rate of the equipment with the same type is improved, and the production cost is reduced.
The invention provides a computer device, and fig. 7 is a schematic structural diagram of the computer device according to an embodiment of the invention. As shown in fig. 7, a memory 31, a processor 32, and a computer program stored on the memory 31 and executable on the processor 32.
The processor 32, when executing the program, implements the method for upgrading a lan device provided in the above embodiments.
Further, the computer device further comprises:
a communication interface 33 for communication between the memory 31 and the processor 32.
A memory 31 for storing a computer program operable on the processor 32.
The memory 31 may comprise a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 32 is configured to implement the method for upgrading a lan device according to the foregoing embodiment when executing the program.
If the memory 31, the processor 32 and the communication interface 33 are implemented independently, the communication interface 33, the memory 31 and the processor 32 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 31, the processor 32, and the communication interface 33 are integrated on a chip, the memory 31, the processor 32, and the communication interface 33 may complete mutual communication through an internal interface.
The processor 32 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, which when executed by an instruction processor in the computer program product, performs a method for upgrading a local area network device, where the method is applied to a first device serving as a main upgrading device among a plurality of devices of the same type in the same local area network, and includes: receiving an upgrade package and an upgrade rule sent by a server through a wide area network; sending the upgrade package and the upgrade rule to second equipment with the same type as the first equipment through a local area network, so that the second equipment carries out upgrade processing according to the upgrade rule and the upgrade package; and receiving an upgrading result fed back by the second equipment, and reporting the upgrading result to the server through the wide area network.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, which when executed by an instruction processor in the computer program product, performs a method for upgrading a local area network device, where the method is applied to a second device that is a passive upgrade device in a plurality of devices of the same type in the same local area network, and includes: receiving an upgrade package and an upgrade rule sent by first equipment through a local area network, wherein the first equipment and second equipment have the same equipment type and are used as main upgrade equipment to obtain the upgrade package and the upgrade rule from a server through the local area network; carrying out upgrading treatment according to the upgrading rule and the upgrading packet; and feeding back the upgrading result to the first equipment so that the first equipment reports the upgrading result to the server through the wide area network.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.