CN107453931B - Lan device upgrade method, device and its equipment - Google Patents

Lan device upgrade method, device and its equipment Download PDF

Info

Publication number
CN107453931B
CN107453931B CN201710901155.6A CN201710901155A CN107453931B CN 107453931 B CN107453931 B CN 107453931B CN 201710901155 A CN201710901155 A CN 201710901155A CN 107453931 B CN107453931 B CN 107453931B
Authority
CN
China
Prior art keywords
upgrading
equipment
area network
upgrade
local area
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
CN201710901155.6A
Other languages
Chinese (zh)
Other versions
CN107453931A (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.)
Midea Intelligent Lighting and Controls Technology Co Ltd
Original Assignee
Midea Group Co Ltd
Midea Smart Home Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, Midea Smart Home Technology Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710901155.6A priority Critical patent/CN107453931B/en
Publication of CN107453931A publication Critical patent/CN107453931A/en
Priority to PCT/CN2018/087472 priority patent/WO2019062157A1/en
Application granted granted Critical
Publication of CN107453931B publication Critical patent/CN107453931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention proposes a kind of lan device upgrade method, device and its equipment, wherein, the method is applied to the first equipment in multiple same type equipment in same local area network as main updating apparatus, comprising: the upgrade package and upgrade rule sent by wide area network reception server;Upgrade package and upgrade rule are sent to the second equipment for having same type with the first equipment by local area network, so that the second equipment carries out upgrading processing according to upgrade rule and upgrade package;The updating result of the second equipment feedback is received, and updating result is reported to by server by wide area network.Thus, after obtaining upgrade package and upgrade rule by main updating apparatus, all same model devices being distributed under same local area network by way of local area network are upgraded, to reduce device upgrade process to the dependence of wide area network, alleviate the burden of server, the success rate for upgrading of same type equipment is improved, production cost is reduced.

Description

Local area network equipment upgrading method, device and equipment
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a local area network equipment upgrading method, a local area network equipment upgrading device and local area network equipment.
Background
At present, more and more intelligent devices appear in the market, and the functions of the intelligent devices are more and more abundant along with the development of the technology. In order to provide a user with newly developed or optimized product performance functions after the user purchases a plurality of intelligent devices of the same type, it is necessary to provide a stable Over-the-Air Technology (OTA) upgrade so that all devices can be upgraded at once.
In the related art, each device of the same type needs to be independently connected with a server to download the corresponding upgrade package. Therefore, the dependence on the wide area network used for multiple times is increased, the load of the server is also increased, and the conditions of abnormal equipment upgrading and the like caused by network problems exist, so that the upgrading success rate of the equipment is lower.
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.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for upgrading a local area network device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a local area network device upgrade according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for upgrading a LAN device according to another embodiment of the present invention
Fig. 4 is a schematic structural diagram of an upgrading apparatus for a lan device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an upgrading apparatus for a lan device according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an upgrading apparatus for a lan device according to another embodiment of the present invention;
FIG. 7 is a schematic diagram of a computer device according to one embodiment 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 also 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.

Claims (12)

1. A local area network equipment upgrading method is characterized in that the method is applied to a first equipment which is taken as a main upgrading equipment in a plurality of equipments of the same type in the same local area network, and comprises the following steps:
receiving an upgrade package and an upgrade rule sent by a server through a wide area network; the server takes any one of the plurality of devices of the same type as the first device of the main upgrading device, and takes other devices of the same type except the first device as second devices;
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.
2. The method of claim 1, further comprising:
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,
and receiving a carrying instruction of the main upgrading equipment in the local area network sent by a user.
3. The method of claim 1, further comprising:
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.
4. A local area network equipment upgrading method is characterized in that the method is applied to a plurality of devices of the same type in the same local area network as second equipment of passive upgrading equipment, and comprises 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 a wide area network; the server takes any one of the plurality of devices of the same type as the first device of the main upgrading device, and takes other devices of the same type except the first device as second devices;
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.
5. The method of claim 4, wherein the performing an upgrade process according to the upgrade rule and the upgrade package comprises:
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.
6. A local area network equipment upgrading device is characterized in that the device is applied to a first device which is taken as a main upgrading device in a plurality of devices of the same type in the same local area network, and comprises:
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 server takes any one of the plurality of devices of the same type as the first device of the main upgrading device, and takes other devices of the same type except the first device as second devices;
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.
7. The apparatus of claim 6, 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,
and the second receiving module is used for receiving the carrying instruction of the main upgrading equipment in the local area network sent by the user.
8. The apparatus of claim 6, further comprising:
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.
9. A local area network equipment upgrading device is characterized in that the device is applied to a plurality of equipment of the same type in the same local area network as second equipment of passive upgrading equipment, and comprises:
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 are used as main upgrade equipment to obtain the upgrade package and the upgrade rule from a server through a wide area network; the server takes any one of the plurality of devices of the same type as the first device of the main upgrading device, and takes other devices of the same type except the first device as second devices;
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.
10. The apparatus of claim 9, wherein 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.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method for upgrading a local area network device according to any one of claims 1 to 5 when executing the computer program.
12. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method for upgrading a local area network device according to any one of claims 1-5.
CN201710901155.6A 2017-09-28 2017-09-28 Lan device upgrade method, device and its equipment Active CN107453931B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710901155.6A CN107453931B (en) 2017-09-28 2017-09-28 Lan device upgrade method, device and its equipment
PCT/CN2018/087472 WO2019062157A1 (en) 2017-09-28 2018-05-18 Master-slave device upgrade method, apparatus, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710901155.6A CN107453931B (en) 2017-09-28 2017-09-28 Lan device upgrade method, device and its equipment

Publications (2)

Publication Number Publication Date
CN107453931A CN107453931A (en) 2017-12-08
CN107453931B true CN107453931B (en) 2019-10-01

Family

ID=60498471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710901155.6A Active CN107453931B (en) 2017-09-28 2017-09-28 Lan device upgrade method, device and its equipment

Country Status (1)

Country Link
CN (1) CN107453931B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019062157A1 (en) * 2017-09-28 2019-04-04 美的智慧家居科技有限公司 Master-slave device upgrade method, apparatus, and device
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
CN108491222B (en) * 2018-03-27 2021-09-17 青岛海信智慧生活科技股份有限公司 Gateway equipment upgrading method and device, gateway equipment and storage medium
CN110083375A (en) * 2019-03-27 2019-08-02 珠海全志科技股份有限公司 A kind of equipment room interaction carries out the method and device of OTA upgrading
CN110058872A (en) * 2019-05-21 2019-07-26 天津华泽瑞威信息技术有限公司 A kind of universal upgrade maintenance tool external member and its application method and upgrade method
CN110489151A (en) * 2019-08-27 2019-11-22 深信服科技股份有限公司 A kind of terminal staging method and system
CN111934928A (en) * 2020-08-03 2020-11-13 杭州海康威视数字技术股份有限公司 Terminal equipment upgrading method, device, management platform, system and equipment
CN115174341B (en) * 2022-05-20 2023-09-26 厦门立林科技有限公司 Method, device and equipment for upgrading equipment in intelligent community

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060016636A (en) * 2004-08-18 2006-02-22 엘지전자 주식회사 Home network system
CN101694622A (en) * 2009-09-29 2010-04-14 中兴通讯股份有限公司 Remote firmware upgrading method of multi-device combination equipment and system thereof
CN104301395A (en) * 2014-09-25 2015-01-21 深圳市同洲电子股份有限公司 Method, electronic equipment and system for upgrading devices automatically
CN106648782A (en) * 2016-12-27 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating APK file
CN106817259A (en) * 2017-01-18 2017-06-09 杭州迪普科技股份有限公司 The upgrade method and device of VSM systems
CN107040399A (en) * 2016-02-04 2017-08-11 京东方科技集团股份有限公司 A kind of upgrade file method for down loading, equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615455B (en) * 2014-12-30 2018-09-07 北京锐安科技有限公司 A kind of the IPMC program remote upgrading methods and device of ATCA frameworks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060016636A (en) * 2004-08-18 2006-02-22 엘지전자 주식회사 Home network system
CN101694622A (en) * 2009-09-29 2010-04-14 中兴通讯股份有限公司 Remote firmware upgrading method of multi-device combination equipment and system thereof
CN104301395A (en) * 2014-09-25 2015-01-21 深圳市同洲电子股份有限公司 Method, electronic equipment and system for upgrading devices automatically
CN107040399A (en) * 2016-02-04 2017-08-11 京东方科技集团股份有限公司 A kind of upgrade file method for down loading, equipment and system
CN106648782A (en) * 2016-12-27 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for updating APK file
CN106817259A (en) * 2017-01-18 2017-06-09 杭州迪普科技股份有限公司 The upgrade method and device of VSM systems

Also Published As

Publication number Publication date
CN107453931A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107453931B (en) Lan device upgrade method, device and its equipment
US20190356596A1 (en) Service link selection control method and device
CN107580071A (en) Master-slave equipment upgrade method, device and its equipment
CN112669149B (en) Block chain consensus method, device, server and storage medium
CN105813115A (en) WIFI network configuration method and device
CN106648563B (en) Dependency decoupling processing method and device for shared module in application program
CN111522562B (en) Dishwasher software burning method, device and equipment thereof
CN111756597B (en) Wireless module testing system, method and device applied to gateway
CN104506943A (en) Set top box software customized upgrading method
US8676353B2 (en) Control system
CN111130828B (en) Intelligent network distribution method and device and terminal equipment
CN109462646B (en) Abnormal response method and equipment
CN113645048B (en) Network card switching method and device and field programmable gate array FPGA
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
WO2019062157A1 (en) Master-slave device upgrade method, apparatus, and device
WO2024036926A1 (en) Terminal capability reporting method, terminal capability processing method, terminal device, network device, and medium
CN107204792B (en) Detection method, detection device and computer readable storage medium
US10812399B2 (en) Communication method, communication apparatus, and program for reducing delay time of transmission control protocol (TCP) transmission processing
CN102377478A (en) Information processing device, communication system, and information processing method
CN109218042B (en) Fault diagnosis method and device based on web server and computer-readable storage medium
US10169025B2 (en) Dynamic management of software load at customer premise equipment device
US20140136016A1 (en) Control Unit for a Motor Vehicle, Programming Unit, and Programming System
WO2022110604A1 (en) Control method and control system for battery monitoring platform
CN114546842A (en) Interface test method and device, storage medium and electronic equipment
CN105743802B (en) Method for realizing service cooperative scheduling and computing single board

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200331

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Patentee after: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Qianhai Shenzhen Hong Kong cooperation zone before the Bay Road No. 1 building 201 room A

Co-patentee before: MIDEA GROUP Co.,Ltd.

Patentee before: MIDEA SMART HOME TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Patentee after: Meizhi Optoelectronic Technology Co., Ltd

Address before: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Patentee before: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder