CN112771497A - Method and device for upgrading equipment and storage medium - Google Patents
Method and device for upgrading equipment and storage medium Download PDFInfo
- Publication number
- CN112771497A CN112771497A CN202080005231.5A CN202080005231A CN112771497A CN 112771497 A CN112771497 A CN 112771497A CN 202080005231 A CN202080005231 A CN 202080005231A CN 112771497 A CN112771497 A CN 112771497A
- Authority
- CN
- China
- Prior art keywords
- equipment
- target
- local
- downstream
- directly connected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 85
- 238000011144 upstream manufacturing Methods 0.000 claims description 117
- 238000004590 computer program Methods 0.000 claims description 54
- 230000005540 biological transmission Effects 0.000 claims description 36
- 238000004891 communication Methods 0.000 claims description 27
- 238000012546 transfer Methods 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 13
- 230000002093 peripheral effect Effects 0.000 description 10
- 230000001960 triggered effect Effects 0.000 description 5
- 230000010485 coping Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A method, a device and a storage medium for upgrading equipment are provided, the method comprises: according to the detected target equipment selection operation of the user, acquiring identity information of the target equipment and current version information of the target equipment; downloading an upgrade package of the target equipment according to the current version information of the target equipment; transmitting the upgrade package of the target equipment and the identity information of the target equipment to local downstream equipment, so that the local downstream equipment transmits the upgrade package of the target equipment to the target equipment, and the target equipment acquires the upgrade package; and the control target equipment is upgraded according to the upgrade package.
Description
Technical Field
The present application relates to the field of software upgrading technologies, and in particular, to a method and an apparatus for upgrading a device, and a storage medium.
Background
Present consumption level unmanned aerial vehicle, its topological structure is very simple, and the upgrading module is few, and the majority is standard upgrading module: unmanned aerial vehicle and remote controller.
Under such a simple scenario, the existing APP upgrade scheme for the application is as follows: monitoring the connection state of the unmanned aerial vehicle and the remote controller and the state of whether upgrading is needed in real time; when the upgrading conditions are met, the upgrading processes in the modules are triggered respectively, namely, the appropriate firmware upgrading packages are downloaded from the server and are transmitted to the corresponding unmanned aerial vehicle and the remote controller in sequence; after the transmission is completed, the unmanned aerial vehicle and the remote controller are respectively upgraded, and the upgrading progress pushed by the unmanned aerial vehicle and the remote controller is received. If newly-increased equipment on unmanned aerial vehicle or the remote controller, when a plurality of equipment need be upgraded simultaneously, APP need transmit in proper order and upgrade.
The APP upgrading scheme is not suitable for upgrading equipment with a complex topological structure, selective upgrading of the equipment cannot be achieved according to the requirements of users, and the APP upgrading scheme is also not suitable for upgrading new requirements: the number of upgrading equipment is large, the upgrading scheme needs to keep expansibility, and the equipment can be plugged and unplugged at any time.
Disclosure of Invention
Based on the above, the application provides a method and a device for upgrading equipment and a storage medium.
In a first aspect, the present application provides a method for upgrading a device, where the method includes:
according to the detected target equipment selection operation of the user, acquiring related upgrading information of target equipment to be upgraded from related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local;
downloading an upgrade package of a version corresponding to the target equipment according to the current version information of the target equipment;
transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version;
and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment.
In a second aspect, the present application provides an apparatus for upgrading a device, the apparatus comprising: the device comprises a memory, a processor and a communication circuit, wherein the memory and the communication circuit are respectively connected with the processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and, when executing the computer program, implement the steps of:
according to the detected target equipment selection operation of the user, acquiring related upgrading information of target equipment to be upgraded from related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local;
controlling the communication circuit to download the upgrade package of the version corresponding to the target equipment according to the current version information of the target equipment;
controlling the communication circuit to transmit the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version;
and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment.
In a third aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the method of device upgrade as described above.
The embodiment of the application provides a method, a device and a storage medium for upgrading equipment, wherein relevant upgrading information of target equipment to be upgraded is acquired from relevant upgrading information of local downstream equipment according to detected target equipment selection operation of a user, the relevant upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local; downloading an upgrade package of a version corresponding to the target equipment according to the current version information of the target equipment; transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version; and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment. The method comprises the steps that according to detected selection operation of a user, identity information and current version information of target equipment to be upgraded are obtained from related upgrading information of local downstream equipment, an upgrading package of a version corresponding to the target equipment is downloaded according to the current version information of the target equipment, the upgrading package of the version corresponding to the target equipment and the identity information of the target equipment are transmitted to the local downstream equipment, the local downstream equipment transmits the upgrading package of the version corresponding to the target equipment, and the target equipment obtains the upgrading package of the corresponding version; after the target equipment acquires the upgrade package of the corresponding version, the target equipment is controlled to be upgraded, and the target equipment which is selected by the user and is directly and/or indirectly connected with the local can be upgraded according to the requirements of the user, so that the method is suitable for upgrading equipment with a complex topological structure, and provides technical support for upgrading new requirements, namely large quantity of upgraded equipment, maintenance of expansibility of an upgrading scheme and capability of coping with equipment plugging and unplugging at any time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for upgrading a device of the present application;
FIG. 2 is a schematic diagram of an application scenario of the device upgrade method of the present application;
FIG. 3 is a schematic diagram of another application scenario of the device upgrade method of the present application;
fig. 4 is a schematic flow chart illustrating an application of the device upgrading method in a remote controller and a drone system;
FIG. 5 is a schematic diagram of another application scenario of the device upgrade method of the present application;
FIG. 6 is a schematic diagram of a device registration and a transfer registration in a method of device upgrade according to the present application;
FIG. 7 is a schematic diagram of another application scenario of the device upgrade method of the present application;
FIG. 8 is a schematic diagram of another application scenario of the device upgrade method of the present application;
FIG. 9 is a schematic diagram of another application scenario of the device upgrade method of the present application;
FIG. 10 is a schematic diagram of another application scenario of the device upgrade method of the present application;
FIG. 11 is a schematic diagram of another application scenario of the device upgrade method of the present application;
fig. 12 is a schematic structural diagram of an embodiment of the device for upgrading the apparatus of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The existing consumption-level unmanned aerial vehicle has a simple topological structure, and is a standard upgrading module generally: an unmanned aerial vehicle and a remote controller; the upgrading scheme is as follows: monitoring the connection state of the unmanned aerial vehicle and the remote controller and the state of whether upgrading is needed in real time; and when the upgrading conditions are met, the upgrading process of the unmanned aerial vehicle and the remote controller is triggered. The upgrading scheme is not suitable for upgrading equipment with a complex topological structure, the equipment cannot be selectively upgraded according to the requirements of users, and the upgrading scheme is not suitable for upgrading new requirements, namely the upgrading equipment is large in quantity, the upgrading scheme needs to keep expansibility, and the equipment can be plugged at any time.
According to the target equipment selection operation of the detected user, the related upgrading information of the target equipment to be upgraded is obtained from the related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local equipment and/or indirectly connected with the local equipment; downloading an upgrade package of a version corresponding to the target equipment according to the current version information of the target equipment; transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version; and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment. The method comprises the steps that according to detected selection operation of a user, identity information and current version information of target equipment to be upgraded are obtained from related upgrading information of local downstream equipment, an upgrading package of a version corresponding to the target equipment is downloaded according to the current version information of the target equipment, the upgrading package of the version corresponding to the target equipment and the identity information of the target equipment are transmitted to the local downstream equipment, the local downstream equipment transmits the upgrading package of the version corresponding to the target equipment, and the target equipment obtains the upgrading package of the corresponding version; after the target equipment acquires the upgrade package of the corresponding version, the target equipment is controlled to be upgraded, and the target equipment which is selected by the user and is directly and/or indirectly connected with the local can be upgraded according to the requirements of the user, so that the method is suitable for upgrading equipment with a complex topological structure, and provides technical support for upgrading new requirements, namely large quantity of upgraded equipment, maintenance of expansibility of an upgrading scheme and capability of coping with equipment plugging and unplugging at any time.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart of an embodiment of a method for upgrading a device according to the present application, where the method includes:
step S101: according to the detected target equipment selection operation of the user, acquiring related upgrading information of target equipment to be upgraded from related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local.
In this embodiment, the local downstream device includes more than one device directly connected to the local; also include more than one device indirectly connected to the local; the method also comprises more than one device directly connected with the local and more than one device indirectly connected with the local, namely the method of the embodiment can be suitable for upgrading the devices with simple topological structures and also suitable for upgrading the devices with complex topological structures. Correspondingly, the target device to be upgraded comprises a device directly connected with the local and/or a device indirectly connected with the local, that is, the target device may comprise more than one device directly connected with the local; also include more than one device indirectly connected to the local; also includes more than one device directly connected with the local and more than one device indirectly connected with the local. The number of target devices is more than one, for example: one target device, two target devices, three target devices, etc.
In an embodiment, a plurality of devices are organized into a tree structure according to connection relationships to generate a device tree, a local (or user side) is a root node of the device tree, the devices on the device tree are divided into intermediate devices and/or leaf devices, the intermediate devices are connected with downstream devices (including directly connected downstream devices and/or indirectly connected downstream devices) downwards, and the leaf devices are not connected with downstream devices downwards.
As shown in fig. 2, the application APP represents a local (user side) and is a root node of an equipment tree, the equipment tree further includes a remote controller, an airplane (unmanned aerial vehicle), a known peripheral device, an unknown peripheral device, a known mount 1, a known mount 2, and an unknown mount 1, which are directly connected to the remote controller; the remote controller and the airplane are intermediate devices, and the known peripheral device, the unknown peripheral device, the known mount 1, the known mount 2 and the unknown mount 1 are leaf devices; the remote controller is an intermediate device directly connected with the local, and the airplane is an intermediate device indirectly connected with the local; the remote controller is an upstream device directly connected with the airplane, a known peripheral device and an unknown peripheral device; the aircraft is an upstream device directly connected to the known mount 1, also an upstream device directly connected to the known mount 2, also an upstream device directly connected to the unknown mount 1; the remote controller is an upstream device indirectly connected with the known mount 1, also an upstream device indirectly connected with the known mount 2, also an upstream device indirectly connected with the unknown mount 1; the known peripheral, the unknown peripheral, the known mount 1, the known mount 2, and the unknown mount 1 are leaf devices indirectly connected to the local.
The identity information of the device may be information for identifying the device identity, the device type, etc. to distinguish different devices and/or each device, such as a unique identification code, a device identification code, an IP address, etc. For example: device 1, device 2, device 3. The current version information of the device may be version information of an application currently used by the device. According to the current version information of the equipment and the latest version information of the equipment, whether the equipment needs to be upgraded or not and the version information needing to be downloaded can be preliminarily determined. For example, the current version of the application program of the device 1 is V1, the latest version of the application program of the device 1 is V2, it is preliminarily determined whether the device 1 needs to be upgraded, and whether the upgrade is finally selected by the user, and if the device 1 is not used much recently, the upgrade may not be temporarily performed, and if the device 1 is used much recently, the upgrade may be selected.
The upgrade information (i.e. the identity information of the device and the current version information of the device) related to the local downstream device is stored locally, and the obtaining manner is many, for example: inputting identity information of equipment and current version information of the equipment at a local user; or, the identity information and the initial version information of the local prior equipment correspondingly modify the current version information of the equipment every time the equipment is upgraded; or, appointing upgrading time in advance, and pushing the identity information and the current version information of the connected equipment to the local at the time; or, appointing the upgrading time in advance, and connecting the relevant equipment at the upgrading time; or the connected equipment pushes the identity information and the current version information of the connected equipment to the local at preset time intervals; and so on.
The user selects the target equipment needing to be upgraded, and the target equipment can be upgraded according to the requirements of the user through the mode.
Step S102: and downloading the upgrade package of the version corresponding to the target equipment according to the current version information of the target equipment.
And according to the current version information of the target equipment, downloading the upgrade package of the version corresponding to the target equipment from a server.
For example, the versions of the upgrade package of the application program of the device 1 on the server are V1 and V2, and according to the fact that the current version of the application program of the device 1 is V1, it is determined to download the upgrade package of the version V2 corresponding to the target device.
For another example: the versions of the upgrade package of the application program of the device 1 on the server are V1, V2 and V3, and according to the fact that the current version of the application program of the device 1 is V1, the upgrade package of the version V3 corresponding to the target device is determined to be downloaded.
Step S103: and transmitting the upgrade package of the version corresponding to the target equipment and the identity information of the target equipment to the local downstream equipment, so that the local downstream equipment transmits the upgrade package of the version corresponding to the target equipment according to the identity information of the target equipment, and the target equipment acquires the upgrade package of the corresponding version.
The method includes that a local downstream device includes a device directly connected with the local and/or a device indirectly connected with the local, a target device to be upgraded includes a device directly connected with the local and/or a device indirectly connected with the local, an upgrade package of a version corresponding to the target device and identity information of the target device are transmitted to the local downstream device, the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, specific transmission modes and transmission details can be various, as long as the local downstream device transmits the upgrade package of the version corresponding to the target device, and the target device obtains the upgrade package of the corresponding version.
For example: if the device 2 needs to be upgraded (that is, the identity information of the target device has the device 2) after being transmitted from the device 1 to the device 2, the device 2 acquires the corresponding upgrade package (the step is omitted if the device 2 does not need to be upgraded), then sends the upgrade package of the version corresponding to the target device and the identity information of the target device to all interfaces of the device 2 that can be connected to other devices (because the device 2 already acquires the corresponding upgrade package, the upgrade package of the version corresponding to the device 2 and the identity information of the device 2 can be deleted when the device 2 continues to transmit), if the interface is connected to a downstream device, the downstream device can receive the upgrade package of the version corresponding to the target device and the identity information of the target device, and if the interface is not connected to the downstream device, the transmission is terminated.
For another example: if the upgrade package is transmitted from the device 1 to the device 2, the device 2 can detect which interfaces are connected with downstream devices, the device 2 does not need to upgrade, and sends the upgrade package of the version corresponding to the target device and the identity information of the target device to the interfaces of the device 2 connected with the downstream devices.
For another example: if the identity information of the downstream device of the device 2 is stored in the device 2, the device 2 performs targeted transmission to the directly connected downstream device (i.e. the downstream device having a direct or indirect connection relationship with the target device) according to the identity information of the downstream device of the device 2 and the identity information of the target device, but not to all the directly connected downstream devices.
Step S104: and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment.
According to the target equipment selection operation of the detected user, the related upgrading information of the target equipment to be upgraded is obtained from the related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local equipment and/or indirectly connected with the local equipment; downloading an upgrade package of a version corresponding to the target equipment according to the current version information of the target equipment; transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version; and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment. The method comprises the steps that according to detected selection operation of a user, identity information and current version information of target equipment to be upgraded are obtained from related upgrading information of local downstream equipment, an upgrading package of a version corresponding to the target equipment is downloaded according to the current version information of the target equipment, the upgrading package of the version corresponding to the target equipment and the identity information of the target equipment are transmitted to the local downstream equipment, the local downstream equipment transmits the upgrading package of the version corresponding to the target equipment, and the target equipment obtains the upgrading package of the corresponding version; after the target equipment acquires the upgrade package of the corresponding version, the target equipment is controlled to be upgraded, and the target equipment which is selected by the user and is directly and/or indirectly connected with the local can be upgraded according to the requirements of the user, so that the method is suitable for upgrading equipment with a complex topological structure, and provides technical support for upgrading new requirements, namely large quantity of upgraded equipment, maintenance of expansibility of an upgrading scheme and capability of coping with equipment plugging and unplugging at any time.
In general, the interface on the device may or may not be connected with the downstream device; it is possible that during this time period downstream equipment is connected, and during another time period no downstream equipment is connected; it is possible that the local device is too far away from the device, and the user has no way to know the connection between the devices; emergency or special equipment can be plugged at any time; and the like, in order to enable the user to specifically select the target device when selecting the target device, before step S101, the method further includes:
step S105: and acquiring related upgrading information of the local downstream equipment.
Specifically, the related upgrade information of the local downstream device may be acquired by a heartbeat packet. In this embodiment, the heartbeat packet is a self-defined command word that notifies the other party of its own state at regular time in the device and the local, and is sent at a certain time interval, similar to a heartbeat, and is called a heartbeat packet. The method can make the local not pay attention to the connection state of each device, and can meet the new requirements of upgrading, namely that an upgrading scheme needs to maintain expansibility and can cope with equipment plugging and unplugging at any time.
Furthermore, through a heartbeat package pushing mode, all the devices can be organized, an upgrade management list is formed in a local APP, the upgrade management list comprises identity information of each device, the state of whether each device needs to be upgraded or not, and the upgradable latest version, and the upgrade management list is notified to a user; updating the upgrade management list according to the update pushed by the heartbeat packet of each device; if a heartbeat packet is newly added, relevant upgrading information of corresponding equipment is newly added, and if the heartbeat packet is overtime, relevant upgrading information of corresponding equipment is deleted); the user can select the target equipment needing upgrading to form a list needing upgrading, and the upgrading is triggered by one key.
In an embodiment, step S105 may specifically include: substeps 1051 and substep S1052.
Substep S1051: acquiring a registration command of the local downstream device, wherein the registration command is sent by registering the local downstream device with an upstream device directly connected and/or indirectly connected with the local downstream device.
Substep S1052: and acquiring the related upgrading information of the local downstream equipment through the registration command of the local downstream equipment.
The local downstream device may register with an upstream device directly connected to the local downstream device, for example: when the local downstream device is a leaf device, the local downstream device can directly register with the local; for another example: the equipment sequentially connected with the local area is equipment 1, equipment 2 and equipment 3 respectively, the equipment 3 registers to the equipment 2, the equipment 2 registers to the equipment 1, and the equipment 1 registers to the local area; when the device 2 registers with the device 1, the registration command may carry the related upgrade information of the device 3 together, and similarly, when the device 1 registers locally, the registration command may carry the related upgrade information of the device 3 and the device 2 together.
The local downstream device may also register with an upstream device indirectly connected to the local downstream device, for example: and registering the upstream equipment indirectly connected with the local downstream equipment, if the upstream equipment is not local, sending no response message, directly continuing to forward the upstream equipment until the upstream equipment forwards the response message to the local, feeding back the response message by the local, informing the downstream equipment that the registration command has been received in the local, and obtaining the related upgrading information of the downstream equipment.
The local downstream device may also register with upstream devices that are directly and indirectly connected to the local downstream device. For example: and registering with the upstream equipment directly connected with the local downstream equipment, and after the registration is successful, registering with the upstream equipment indirectly connected with the local downstream equipment until the response message is forwarded to the local and locally fed back. By the method, each device can obtain the relevant upgrading information of all the downstream devices of the device, and technical support is provided for subsequent purposeful and targeted forwarding.
In an embodiment, the registration command includes a device registration command and/or a transfer registration command, where the device registration command is a registration command sent by the local downstream device performing device registration with an upstream device directly connected to the local downstream device, and the transfer registration command is a registration command sent by the local downstream device performing transfer registration with an upstream device directly connected to the local downstream device and an upstream device indirectly connected to the local downstream device.
In an embodiment, before the step of obtaining the registration command of the local downstream device in sub-step S1051, the method may further include: and controlling the local downstream equipment to send the equipment registration command to upstream equipment directly connected with the local downstream equipment so as to enable the upstream equipment directly connected with the local downstream equipment to acquire the related upgrading information of the local downstream equipment.
Specifically, the process of device registration may be: generating a registration data packet with a predetermined format; controlling the local downstream device to send the registration data packet to an upstream device directly connected with the local downstream device; and controlling the upstream equipment directly connected with the local downstream equipment to receive the registration data packet.
Wherein the controlling the local downstream device to send a device registration command to an upstream device directly connected to the local downstream device further comprises: controlling the local downstream device to send the device registration command to an upstream device directly connected to the local downstream device at a predetermined time interval.
By the mode, the new upgrading requirement that the upgrading scheme needs to maintain the expansibility and can cope with equipment plugging and unplugging at any time can be met.
In another embodiment, before the step of obtaining the registration command of the local downstream device in sub-step S1051, the method may further include: and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment so as to enable each equipment in the local downstream equipment to acquire relevant upgrade information of all the local downstream equipment. And controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment at preset time intervals.
In a specific embodiment, the controlling the local downstream device to send a transfer registration command to an upstream device directly connected to the local downstream device and an upstream device indirectly connected to the local downstream device may further include: and after the device registration is successful, controlling the local downstream device to send a transmission registration command to the upstream device directly connected with the local downstream device and the upstream device indirectly connected with the local downstream device.
Specifically, the procedure of transferring the registration may be: generating a registration data packet with a predetermined format; controlling the local downstream equipment to send the registration data packet to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment until the registration data packet is sent to the local equipment; and controlling the local to return a response data packet to the downstream equipment directly connected with the local.
Wherein the data content of the registration packet includes a command identification code, a device name, a device identification code, a device type, and a directly connected upstream device identification code.
Wherein the command identification code comprises a device registration command identification code or a transmission registration command identification code.
In an embodiment, step S102 may specifically include: and downloading an upgrade package of a version corresponding to the target equipment according to the detected upgrade triggering operation of the user and the current version information of the target equipment. For example, after a user selects target equipment to be upgraded, and a list needing upgrading is formed, upgrading is triggered by one key, and an upgrading package of a version corresponding to the target equipment is downloaded according to detected upgrading triggering operation of the user and current version information of the target equipment.
In an embodiment, before step S103, the method may further include: sending a prepare to transmit command to the target device. And the local pre-stores the related upgrading information of the local downstream equipment and the connection relation between the local downstream equipment. The content of the command to be transmitted comprises identity information of the equipment, whether the equipment is upgraded or not and whether the downstream equipment of the equipment is upgraded or not. In this way, on one hand, the device can be prepared for upgrading, and on the other hand, the local downstream device can transmit the upgrading packet of the version corresponding to the target device in a targeted and purposeful manner.
For example: as shown in fig. 3, the current downstream devices connected to the local are 4, and the current downstream devices are, from near to far, device a (directly connected to the local), device B (directly connected to device a), device C (directly connected to device a), and device D (directly connected to device B); the contents of the ready-to-transmit command are: equipment A, upgrading equipment A (namely equipment A is target equipment), and upgrading downstream equipment of the equipment A; the equipment B is not upgraded, and the downstream equipment of the equipment B is upgraded; the equipment C is upgraded (namely the equipment C is target equipment), and downstream equipment of the equipment C does not exist; device D, device D upgrade (i.e., device D is the target device), and device D's downstream devices do not. When the upgrade package of the version corresponding to the target device is transmitted to the device a, the device a acquires the upgrade package of the version corresponding to the device a due to the upgrade of the device a, and then forwards the upgrade package of the version corresponding to the target device to the device B, C directly connected to the device a; after the device B receives the information, the device B directly forwards a device D connected with the device B because the device B is not upgraded but the downstream device of the device B is upgraded; after the device C receives the update packet, the device C obtains the update packet of the version corresponding to the device C and does not forward the update packet because the device C is updated and has no downstream device (that is, the device C is a leaf device); after the device D receives the upgrade request, the device D has no downstream device due to the upgrade of the device D, and the device D obtains the upgrade package of the version corresponding to the device D and does not forward the upgrade package.
In an embodiment, in step S104, the controlling the target device to upgrade according to the upgrade package of the version corresponding to the target device may further include: sending an upgrade trigger command to downstream equipment directly connected with the local area; and triggering the target equipment respectively through the downstream equipment directly connected with the local area, so that the target equipment is upgraded according to the upgrade package of the version corresponding to the target equipment.
At this time, the method may further include: and receiving the upgrading progress pushed by the downstream equipment directly connected with the local equipment until the target equipment is upgraded.
In most cases, the number of the target devices is two or more, and details of step S103 will be described in detail below.
Step S103, the transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to a local downstream device may include: sub-step S1031 and sub-step S1032.
Substep S1031: and transmitting the upgrade packages of the versions corresponding to more than two target devices and the identity information of the target devices in parallel to the downstream device directly connected with the local device.
Sub-step S1032: and controlling downstream equipment directly connected with the local device to execute matching operation according to the identity information of the target device so as to enable the target device to obtain the upgrade package of the corresponding version, wherein each device in the local downstream equipment stores the identity information of the downstream equipment.
When the number of the target equipment is more than two, the target equipment is transmitted to the downstream equipment directly connected with the local area in parallel, so that the condition that the upgrading time is excessively prolonged due to the fact that the number of the upgrading equipment is large in sequential transmission can be avoided, and the new upgrading requirement of large number of the upgrading equipment can be met.
The target device to be upgraded can be classified into the following cases: the first kind of target device includes target leaf devices (the target device does not need to forward after receiving the upgrade package of the corresponding version), the second kind of target device includes target intermediate devices (the target device determines whether to forward according to whether the downstream device needs to be upgraded after receiving the upgrade package of the corresponding version), and the third kind of target device includes target leaf devices and target intermediate devices, which can be implemented by combining the first and second kinds of situations.
The target device comprises a target leaf device, and can be divided into two cases: the first type of target device is a downstream device directly connected to the local device (the target device directly receives the local upgrade package corresponding to the version), and the second type of target device is a downstream device indirectly connected to the local device (the target device can receive the upgrade package corresponding to the version only if an intermediate device between the target device and the local device is transferred to the target device).
The target device includes a target intermediate device, and can be divided into four cases: the first is that the target device is a downstream device directly connected to the local device, the downstream device of the target device does not need to be upgraded (the target device directly receives the upgrade package of the local corresponding version, and the target device does not need to be transferred), the second is that the target device is a downstream device directly connected to the local device, the downstream device of the target device needs to be upgraded (the target device directly receives the upgrade package of the local corresponding version, and the target device needs to be transferred to the downstream device), the third is that the target device is a downstream device indirectly connected to the local device, the downstream device of the target device does not need to be upgraded (the target device needs to be transferred to the target device in the middle between the target device and the local device, and the target device can receive the upgrade package of the corresponding version, and the fourth is a downstream device indirectly connected to the local device, The downstream device of the target device needs to be upgraded (the target device can receive the upgrade package of the corresponding version only if the target device needs to be transferred to the target device by the intermediate device between the target device and the local, and the target device needs to continue to transfer to the downstream device).
The concrete description is as follows:
A. the target device comprises a target leaf device, the target device being a downstream device directly connected to said local, sub-step S1032 may comprise: determining that the target device comprises a target leaf device according to the identity information of the target device, wherein the target leaf device comprises a downstream device directly connected with the local, and the leaf device has no downstream device connected downwards; and controlling the downstream equipment directly connected with the local to acquire the upgrade package of the corresponding version and stopping forwarding.
B. The target device comprises a target leaf device, the target device being a downstream device indirectly connected to said local, sub-step S1032 may comprise: according to the identity information of the target device, determining that the target device comprises a target leaf device, and an intermediate device is arranged between the target leaf device and a downstream device directly connected with the local, wherein the intermediate device is connected with the downstream device downwards, and the leaf device is not connected with the downstream device downwards; controlling the downstream device and the intermediate device directly connected with the local to forward the upgrade package of the corresponding version to the target leaf device; and controlling the target leaf equipment to acquire the upgrade package of the corresponding version and stopping forwarding.
C. The target device comprises a target intermediate device, the target device being a downstream device directly connected to said local, sub-step S1032 may comprise: according to the identity information of the target equipment, determining that the target equipment comprises target intermediate equipment, wherein the target intermediate equipment is directly connected with downstream equipment which is directly connected with the local equipment, and the intermediate equipment is downwards connected with the downstream equipment; controlling the downstream equipment directly connected with the local to forward the upgrade package of the corresponding version to the target intermediate equipment; and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
C1, the downstream device of the target device does not need to be upgraded, and the controlling the target intermediate device to obtain the upgrade patch of the corresponding version further includes: and if the target equipment does not comprise the downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain the upgrade package of the corresponding version and stopping forwarding.
C2, the downstream device of the target device needs to be upgraded, and the controlling the target intermediate device to obtain the upgrade patch of the corresponding version further includes: if the target equipment also comprises target downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain an upgrade package of a corresponding version, and forwarding the upgrade package of the corresponding version to the downstream equipment of the target intermediate equipment until the upgrade package is forwarded to the target downstream equipment; and controlling the target downstream equipment to acquire the upgrade patch of the corresponding version.
D. The target device comprises a target intermediate device, the target device being a downstream device indirectly connected to said local, sub-step S1032 may comprise: determining that the target equipment comprises target intermediate equipment according to the identity information of the target equipment, wherein intermediate equipment is arranged between the target intermediate equipment and the downstream equipment directly connected with the local equipment, and the downstream equipment is connected downwards to the intermediate equipment; controlling the downstream equipment and the intermediate equipment which are directly connected with the local area to forward the upgrade package of the corresponding version to the target intermediate equipment; and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
D1, the downstream device of the target device does not need to be upgraded, and the controlling the target intermediate device to obtain the upgrade patch of the corresponding version further includes: and if the target equipment does not comprise the downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain the upgrade package of the corresponding version and stopping forwarding.
D2, the downstream device of the target device needs to be upgraded, and the controlling the target intermediate device to obtain the upgrade patch of the corresponding version further includes: if the target equipment also comprises target downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain an upgrade package of a corresponding version, and forwarding the upgrade package of the corresponding version to the downstream equipment of the target intermediate equipment until the upgrade package is forwarded to the target downstream equipment; and controlling the target downstream equipment to acquire the upgrade patch of the corresponding version.
The method of the embodiment of the present application is described in detail below by taking a remote controller and an unmanned aerial vehicle system as examples.
Referring to fig. 4, fig. 4 is a schematic view of an application process of the device upgrading method in the application in the remote controller and the unmanned aerial vehicle system, and the method includes the following steps:
1. the device pushes a heartbeat package (including related upgrading information of the device) to a local APP in a registration mode, the devices of the unmanned aerial vehicle are locally organized, an upgrading management list is formed in the local APP, and the content of the upgrading management list can include whether each device needs to be upgraded (determined according to the current version information of the device and the upgradable latest version corresponding to the device) and the upgradable latest version corresponding to the device, and the upgradable latest version is notified to a user;
2. the local APP does not need to pay attention to the connection state of each device, and updates the upgrade management list only according to the existence of heartbeat package pushing of each device;
3. the user can select the equipment needing to be upgraded to form a list needing to be upgraded and trigger the upgrading by one key;
4. after receiving an operation of triggering upgrading by a user, the local APP downloads an upgrading package of a version corresponding to target equipment in a list according to the list needing upgrading of the user;
5. after downloading is finished, the local APP sends a transmission preparation command to the target devices in the list to be upgraded in parallel and transmits upgrade packages to the target devices in parallel without sequentially transmitting and upgrading;
6. after the upgrade package transmission of the versions corresponding to all target devices to be upgraded is completed, the local APP sends an upgrade trigger command to the downstream devices (also referred to as direct downstream devices) directly connected with the local APP, the direct downstream devices respectively trigger the target devices in the list to be upgraded to perform internal upgrade, and the local APP receives the upgrade progress pushed by the direct downstream devices until all the target devices are upgraded.
In the step 1, the devices perform heartbeat packet pushing in a registered mode, so that multiple devices can be organized, and a foundation is laid for solving the new requirements of upgrading the devices, namely that the number of upgraded devices is large, the upgrading scheme needs to keep expansibility, and the devices can be plugged and unplugged at any time. A typical upgrade scenario of a consumer-grade unmanned aerial vehicle is shown in fig. 5, a typical upgrade scenario of an industrial-grade unmanned aerial vehicle is shown in fig. 2, upgrade topological graphs of the consumer-grade unmanned aerial vehicle and the industrial-grade unmanned aerial vehicle both have a tree structure, and the upgrade topological graphs are collectively referred to as an equipment tree in the embodiment of the application. The local APP is a root node of the equipment tree; each device is a tree node; a device without downstream devices downward is a leaf device (leaf node); the device having the downstream device downstream is an intermediate device (intermediate node). For a typical device tree for a consumer drone (see fig. 5), the remote control is an intermediary device and the airplane is a leaf device. For a typical equipment tree of an industrial-grade unmanned aerial vehicle (as shown in fig. 2), a remote controller and an airplane are intermediate equipment, and peripherals and mounts are leaf equipment.
In order to convert a physical device tree into a logically processable device tree, the embodiments of the present application use "device registration" and "transport registration". The device registration may be: the downstream device registers with the directly connected upstream device (direct upstream device) to let each device node know the existence of its own directly connected downstream device (direct downstream device); the transfer registration may be: after the device registration is successful, the downstream device registers with the directly connected upstream device (direct upstream device) and the indirectly connected upstream device (indirect upstream device), so that each device node knows the existence of all its downstream devices. Both of these registrations are pushed by the downstream device to the upstream device in the form of heartbeat packets, i.e., at a frequency of 1 Hz. If a heartbeat packet for registration of certain downstream equipment is received for the first time, the equipment is added into a local APP upgrading management list; if the heartbeat packet of a certain downstream device is overtime, that is, the local APP has not received the heartbeat packet for registration of the downstream device within a certain time (for example, the specific implementation time may be 5 seconds), the local APP considers that the device is not in a connected state, and the local APP removes the device from the upgrade management list. Therefore, the way of pushing the heartbeat packet for registration enables the local APP to be free from concerning the connection state of each device, and can realize the expansibility of the upgrading scheme and deal with the random plugging and unplugging of the devices.
In addition, the content included in the local APP upgrade management list may be: device type, device ID, status of whether the device needs to be upgraded, latest version of the device on the server. The state of whether the equipment needs to be upgraded is that the current version of the equipment is compared with the latest version on the server, if the current version of the equipment is smaller, the equipment needs to be upgraded, otherwise, the equipment does not need to be upgraded.
In this embodiment, please refer to fig. 6 for specific implementation of device registration: after the downstream device C is connected with the upstream device B, C needs to send a registration data packet with a specified format and uploads the registration data packet to the upstream device B; and after receiving the registration data packet, the upstream equipment B sends back the registration data packet with the same format and sends the registration data packet to the downstream equipment C. After this process is completed, it is regarded that the device registration of the downstream device C to the upstream device B is successful. The data format of the registration command can be seen in table 1.
Table 1 registration command data format
Data content | Remarks for note |
Command id | Device registration command id, or transport registration command id |
Device name | Name, character string of the device |
Device id | Id of the device itself |
Type of device | Type of the device, enumerated value |
Communication id | In this device registration, the upstream device id |
In this embodiment, please refer to fig. 6 for specific implementation of transmission registration, after the downstream device C successfully registers with the upstream device B, the downstream device C sends a registration packet with a specified format to the upstream device B (the registration command id is distinguished from the registration command id registered by the device); after receiving the response data packet, the upstream device B only feeds back the response data packet to the downstream device C; meanwhile, the upstream device B forwards the registration data packet of the downstream device C to the root node A; and after receiving the response data packet, the root node A only feeds back the response data packet to the equipment B. After this process is finished, it is regarded that the transmission registration of the downstream device C to the direct upstream device and the indirect upstream device is successful.
In step 2, the upgrade management list of the local APP is updated according to the heartbeat packet pushed for registration. In step 3, the user can select the target device to be upgraded to form a list to be upgraded, and the upgrade is triggered by one key. It should be noted here that the user selects the target device of the upgrade from the upgrade management list of the local APP, and if the device is the latest version, the gray color is displayed on the interface, and the user cannot select the target device. And after a list needing to be upgraded is formed, clicking one key by a user to upgrade. And in the step 4, downloading the upgrade package of the version corresponding to the target equipment in the list to be upgraded.
And in the step 5, the local APP transmits the upgrade package corresponding to the target equipment in the list needing to be upgraded in parallel. In the existing upgrading scheme of consumption-level unmanned aerial vehicle APP, APPs are upgraded equipment one by one and are sequentially transmitted and upgraded, and according to the scheme of the embodiment of the application, local APPs transmit a transmission preparation command to target equipment in a list needing to be upgraded in parallel, and then an upgrading package of the target equipment is transmitted. If the list to be upgraded comprises a plurality of target devices, the processes are parallel. In this embodiment, referring to fig. 7 to 11, a specific implementation of sending a ready-to-transmit command may be that, for an industrial-grade drone, a common upgrade scenario may include: scene one, a local APP independently upgrades one device; scene two, local APP upgrading all devices; scene three, local APP upgrades one leaf device in all devices; scene four, local APP upgrades one intermediate device in all devices; and a fifth scenario, upgrading a certain group of equipment in all the equipment by the local APP. The local APP, as the root node of the device tree, sends the ready-to-transmit command down. The command to be transmitted in this embodiment is different from the command to be transmitted in the APP upgrade scheme of the consumer-grade drone, and two more flag parameters are required, and the command format of the command to be transmitted in this embodiment may be shown in table 2.
Table 2 command data format for ready to transmit commands
Data content | Remarks for note |
Command id | Transfer preparation command id |
Device id | |
Flag1 whether the device itself is upgraded or not | For marking whether to skip upgrading of the device itself |
Flag2 for upgrading downstream equipment of equipment | Downstream device upgrade for marking whether to trigger the device |
In scenario one, a local APP individually upgrades a certain device (as shown in fig. 7, the target device to be upgraded includes a B device, the B device is a leaf device, and the B device is directly connected to the local), and the values of the ready-to-transmit command may be shown in table 3.
Table 3 values of prepare to transmit command for scenario one
Device id | Flag1 whether the device itself is upgraded or not | Flag2 for upgrading downstream equipment of equipment |
B | yes | -- |
In a second scenario, all devices for local APP upgrade (as shown in fig. 8, target devices to be upgraded include a device B, a device C, a device D, a device E, and a device F, the device B and the device C are intermediate devices, the device D, the device E, and the device F are leaf devices, the device B is directly connected to the local, the device C is directly connected to the device B, the device D is directly connected to the device B, and the device E and the device F are respectively directly connected to the device C), and values of commands to be transmitted may be referred to in table 4.
Table 4 values of ready to transmit command for scenario two
Device id | DeviceWhether or not to upgrade flag1 itself | Flag2 for upgrading downstream equipment of equipment |
B | yes | yes |
C | yes | yes |
D | yes | -- |
E | yes | -- |
F | yes | -- |
In a third scenario, a local APP upgrades one leaf device of all devices (as shown in fig. 9, a target device to be upgraded includes an E device, the E device is a leaf device indirectly connected to the local, an intermediate device is included between the E device and the local, and the intermediate device is a B device and a C device, respectively), and values of commands to be transmitted may be referred to in table 5.
TABLE 5 values of prepare to transmit command for scenario three
Device id | Flag1 whether the device itself is upgraded or not | Flag2 for upgrading downstream equipment of equipment |
B | no | yes |
C | no | yes |
D | no | -- |
E | yes | -- |
F | no | -- |
In a fourth scenario, a value of a ready-to-transmit command may be shown in table 6, where a certain intermediate device in all devices is upgraded by a local APP (as shown in fig. 10, a target device to be upgraded includes a device C, the device C is an intermediate device indirectly connected to a local device, and a device B is included between the device C and the local device).
Table 6 values of ready to transmit command for scenario four
Device id | Flag1 whether the device itself is upgraded or not | Flag2 for upgrading downstream equipment of equipment |
B | no | yes |
C | yes | no |
D | no | -- |
E | -- | -- |
F | -- | -- |
In a fifth scenario, a group of devices in all devices upgraded by the local APP (as shown in fig. 11, a target device to be upgraded includes a C device, an E device, and an F device, the C device is an intermediate device indirectly connected to the local, the E device and the F device are leaf devices indirectly connected to the local, the E device and the F device are downstream devices directly connected to the C device, and an intermediate device B is included between the C device and the local), and values of a transmission command are prepared and may be referred to in table 7.
Table 7 values of ready to transmit command for scenario five
Device id | Flag1 whether the device itself is upgraded or not | Flag2 for upgrading downstream equipment of equipment |
B | no | yes |
C | yes | yes |
D | no | -- |
E | yes | -- |
F | yes | -- |
After the transmission preparation command is successfully sent, the local APP transmits an upgrade package to target equipment needing to be upgraded; the device that does not need to be upgraded only participates in the process of transferring the upgrade package. Since the actual physical links of the local APP and each target device to be upgraded are different, the transmission modes may also be different, which is not described herein. And after the transmission of all the upgrade packages is successfully finished, performing the step 6: the local APP sends an upgrading triggering command to the direct downstream equipment, the direct downstream equipment can respectively trigger target equipment in a list needing upgrading to carry out internal upgrading, and the local APP receives the upgrading progress pushed by the direct downstream equipment until the upgrading is finished.
According to the method and the device for updating the device tree, the target device to be updated is made to be a node of the device tree through a device registration and transmission registration mode, and the local APP is a root node of the device tree. When a device (whether a peripheral on a remote controller or a mounted device on an airplane) is plugged, the local APP adds the device into an upgrade management list according to a heartbeat package for registration of the device; if the device is removed, the local APP deletes the device from the upgrade management list according to the timeout of the heartbeat packet for registration of the device. As long as all the devices accessed into the device tree in the embodiment of the application meet the implementation and data standard of registration, the local APP can realize the upgrade of the devices, can conveniently process the plugging and unplugging of the devices, and meanwhile keeps the expansibility of the upgrade scheme. After the user triggers the upgrade, the local APP sends an upgrade instruction to the target devices of the device tree in parallel and transmits upgrade packages to the target devices in parallel according to a list to be upgraded, and after the transmission of the upgrade packages of all the target devices to be upgraded is completed, the local APP triggers the internal upgrade of the target devices at the same time. Therefore, a user can upgrade by one key only by selecting target equipment needing to be upgraded, and meanwhile, the parallel transmission replaces the sequential transmission upgrading in the existing scheme, so that the upgrading time under the condition of multiple equipment can be greatly reduced.
In summary, through the scheme of the embodiment of the application, the local APP can well meet the new requirement of upgrading that "upgrading equipment is large in quantity, keeps expansibility, can deal with equipment plug at any time", thereby achieving the upgrading target of the industrial unmanned aerial vehicle: the user can select the target equipment needing to be upgraded from the multiple equipment to carry out one-key upgrading.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of the apparatus for upgrading an apparatus according to the present application, it should be noted that the apparatus according to the present embodiment is capable of performing steps in the method for upgrading an apparatus, and details of relevant contents are described, please refer to relevant contents of the method for upgrading an apparatus, which are not described herein again.
The apparatus 100 comprises: the memory 1, the processor 2 and the communication circuit 3, the memory 1 and the communication circuit 3 are respectively connected with the processor 2.
The processor 2 may be a micro-control unit, a central processing unit, a digital signal processor, or the like.
The memory 1 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a usb disk, or a removable hard disk.
The communication circuit 3 may be used for communication between the apparatus and the outside, communication between itself and the processor 2, and communication between the memory 1 and the processor 2.
The memory 1 is used for storing a computer program; the processor 2 is configured to execute the computer program and, when executing the computer program, implement the following steps:
according to the detected target equipment selection operation of the user, acquiring related upgrading information of target equipment to be upgraded from related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local; controlling the communication circuit to download the upgrade package of the version corresponding to the target equipment according to the current version information of the target equipment; controlling the communication circuit to transmit the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version; and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment.
Wherein the processor, when executing the computer program, implements the steps of: and acquiring related upgrading information of the local downstream equipment.
Wherein the processor, when executing the computer program, implements the steps of: and acquiring the related upgrading information of the local downstream equipment through the heartbeat packet.
Wherein the processor, when executing the computer program, implements the steps of: acquiring a registration command of the local downstream device, wherein the registration command is sent by registering the local downstream device with an upstream device directly connected and/or indirectly connected with the local downstream device; and acquiring the related upgrading information of the local downstream equipment through the registration command of the local downstream equipment.
The registration command comprises a device registration command and/or a transmission registration command, the device registration command is sent by the local downstream device to perform device registration with the upstream device directly connected with the local downstream device, and the transmission registration command is sent by the local downstream device to perform transmission registration with the upstream device directly connected with the local downstream device and the upstream device indirectly connected with the local downstream device.
Wherein the processor, when executing the computer program, implements the steps of: and controlling the local downstream equipment to send the equipment registration command to upstream equipment directly connected with the local downstream equipment so as to enable the upstream equipment directly connected with the local downstream equipment to acquire the related upgrading information of the local downstream equipment.
Wherein the processor, when executing the computer program, implements the steps of: generating a registration data packet with a predetermined format; controlling the local downstream device to send the registration data packet to an upstream device directly connected with the local downstream device; and controlling the upstream equipment directly connected with the local downstream equipment to receive the registration data packet.
Wherein the processor, when executing the computer program, implements the steps of: controlling the local downstream device to send the device registration command to an upstream device directly connected to the local downstream device at a predetermined time interval.
Wherein the processor, when executing the computer program, implements the steps of: and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment so as to enable each equipment in the local downstream equipment to acquire relevant upgrade information of all the local downstream equipment.
Wherein the processor, when executing the computer program, implements the steps of: and after the device registration is successful, controlling the local downstream device to send a transmission registration command to the upstream device directly connected with the local downstream device and the upstream device indirectly connected with the local downstream device.
Wherein the processor, when executing the computer program, implements the steps of: generating a registration data packet with a predetermined format; controlling the local downstream equipment to send the registration data packet to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment until the registration data packet is sent to the local equipment; and controlling the local to return a response data packet to the downstream equipment directly connected with the local.
Wherein the data content of the registration packet includes a command identification code, a device name, a device identification code, a device type, and a directly connected upstream device identification code.
Wherein the command identification code comprises a device registration command identification code or a transmission registration command identification code.
Wherein the processor, when executing the computer program, implements the steps of: and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment at preset time intervals.
Wherein the processor, when executing the computer program, implements the steps of: and controlling the communication circuit to download the upgrade package of the version corresponding to the target equipment according to the detected upgrade triggering operation of the user and the current version information of the target equipment.
Wherein the processor, when executing the computer program, implements the steps of: control the communication circuitry to send a prepare-to-transmit command to the target device.
The content of the command to be transmitted comprises identity information of the equipment, whether the equipment is upgraded or not and whether the downstream equipment of the equipment is upgraded or not.
Wherein the processor, when executing the computer program, implements the steps of: notifying the communication circuit to send an upgrade trigger command to a downstream device directly connected to the local device; and triggering the target equipment respectively through the downstream equipment directly connected with the local area, so that the target equipment is upgraded according to the upgrade package of the version corresponding to the target equipment.
Wherein the processor, when executing the computer program, implements the steps of: and controlling the communication circuit to receive the upgrading progress pushed by the downstream equipment directly connected with the local device until the target equipment is upgraded.
Wherein the number of the target devices is two or more, and the processor implements the following steps when executing the computer program: controlling the communication circuit to transmit more than two upgrade packages of versions corresponding to the target equipment and the identity information of the target equipment in parallel to the downstream equipment directly connected with the local area; and controlling downstream equipment directly connected with the local device to execute matching operation according to the identity information of the target device so as to enable the target device to obtain the upgrade package of the corresponding version, wherein each device in the local downstream equipment stores the identity information of the downstream equipment.
Wherein the processor, when executing the computer program, implements the steps of: determining that the target device comprises a target leaf device according to the identity information of the target device, wherein the target leaf device comprises a downstream device directly connected with the local, and the leaf device has no downstream device connected downwards; and controlling the downstream equipment directly connected with the local to acquire the upgrade package of the corresponding version and stopping forwarding.
Wherein the processor, when executing the computer program, implements the steps of: according to the identity information of the target device, determining that the target device comprises a target leaf device, and an intermediate device is arranged between the target leaf device and a downstream device directly connected with the local, wherein the intermediate device is connected with the downstream device downwards, and the leaf device is not connected with the downstream device downwards; controlling the downstream device and the intermediate device directly connected with the local to forward the upgrade package of the corresponding version to the target leaf device; and controlling the target leaf equipment to acquire the upgrade package of the corresponding version and stopping forwarding.
Wherein the processor, when executing the computer program, implements the steps of: according to the identity information of the target equipment, determining that the target equipment comprises target intermediate equipment, wherein the target intermediate equipment is directly connected with downstream equipment which is directly connected with the local equipment, and the intermediate equipment is downwards connected with the downstream equipment; controlling the downstream equipment directly connected with the local to forward the upgrade package of the corresponding version to the target intermediate equipment; and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
Wherein the processor, when executing the computer program, implements the steps of: determining that the target equipment comprises target intermediate equipment according to the identity information of the target equipment, wherein intermediate equipment is arranged between the target intermediate equipment and the downstream equipment directly connected with the local equipment, and the downstream equipment is connected downwards to the intermediate equipment; controlling the downstream equipment and the intermediate equipment which are directly connected with the local area to forward the upgrade package of the corresponding version to the target intermediate equipment; and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
Wherein the processor, when executing the computer program, implements the steps of: if the target equipment also comprises target downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain an upgrade package of a corresponding version, and forwarding the upgrade package of the corresponding version to the downstream equipment of the target intermediate equipment until the upgrade package is forwarded to the target downstream equipment; and controlling the target downstream equipment to acquire the upgrade patch of the corresponding version.
Wherein the processor, when executing the computer program, implements the steps of: and if the target equipment does not comprise the downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain the upgrade package of the corresponding version and stopping forwarding.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to carry out a method of upgrading a device as described in any of the above. For a detailed description of relevant contents, reference is made to the above-mentioned relevant contents section, which is not described herein again in a redundant manner.
The computer readable storage medium may be an internal storage unit of the device for upgrading the apparatus, such as a hard disk or a memory. The computer readable storage medium may also be an external storage device such as a hard drive equipped with a plug-in, smart memory card, secure digital card, flash memory card, or the like.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The above description is only for the specific embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (53)
1. A method of device upgrade, the method comprising:
according to the detected target equipment selection operation of the user, acquiring related upgrading information of target equipment to be upgraded from related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local;
downloading an upgrade package of a version corresponding to the target equipment according to the current version information of the target equipment;
transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version;
and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment.
2. The method according to claim 1, before the obtaining, according to the detected target device selection operation of the user, the relevant upgrade information of the target device to be upgraded from the relevant upgrade information of the local downstream device, further comprising:
and acquiring related upgrading information of the local downstream equipment.
3. The method of claim 2, wherein the obtaining of the upgrade information related to the local downstream device comprises:
and acquiring the related upgrading information of the local downstream equipment through the heartbeat packet.
4. The method of claim 2, wherein the obtaining of the upgrade information related to the local downstream device comprises:
acquiring a registration command of the local downstream device, wherein the registration command is sent by registering the local downstream device with an upstream device directly connected and/or indirectly connected with the local downstream device;
and acquiring the related upgrading information of the local downstream equipment through the registration command of the local downstream equipment.
5. The method according to claim 4, wherein the registration command comprises a device registration command and/or a transfer registration command, the device registration command is a registration command sent by the local downstream device performing device registration with an upstream device directly connected to the local downstream device, and the transfer registration command is a registration command sent by the local downstream device performing transfer registration with an upstream device directly connected to the local downstream device and an upstream device indirectly connected to the local downstream device.
6. The method of claim 5, wherein obtaining the registration command of the local downstream device is preceded by:
and controlling the local downstream equipment to send the equipment registration command to upstream equipment directly connected with the local downstream equipment so as to enable the upstream equipment directly connected with the local downstream equipment to acquire the related upgrading information of the local downstream equipment.
7. The method of claim 6, wherein the controlling the local downstream device to send the device registration command to an upstream device directly connected to the local downstream device comprises:
generating a registration data packet with a predetermined format;
controlling the local downstream device to send the registration data packet to an upstream device directly connected with the local downstream device;
and controlling the upstream equipment directly connected with the local downstream equipment to receive the registration data packet.
8. The method of claim 6, wherein the controlling the local downstream device to send a device registration command to an upstream device directly connected to the local downstream device comprises:
controlling the local downstream device to send the device registration command to an upstream device directly connected to the local downstream device at a predetermined time interval.
9. The method of claim 5, wherein obtaining the registration command of the local downstream device is preceded by:
and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment so as to enable each equipment in the local downstream equipment to acquire relevant upgrade information of all the local downstream equipment.
10. The method of claim 9, wherein the controlling the local downstream device to send a transfer registration command to an upstream device directly connected to the local downstream device and an upstream device indirectly connected to the local downstream device comprises:
and after the device registration is successful, controlling the local downstream device to send a transmission registration command to the upstream device directly connected with the local downstream device and the upstream device indirectly connected with the local downstream device.
11. The method of claim 9, wherein the controlling the local downstream device to send a transfer registration command to an upstream device directly connected to the local downstream device and an upstream device indirectly connected to the local downstream device comprises:
generating a registration data packet with a predetermined format;
controlling the local downstream equipment to send the registration data packet to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment until the registration data packet is sent to the local equipment;
and controlling the local to return a response data packet to the downstream equipment directly connected with the local.
12. The method according to claim 7 or 11, wherein the data content of the registration packet comprises a command identification code, a device name, a device identification code, a device type, and a directly connected upstream device identification code.
13. The method of claim 12, wherein the command identification code comprises a device registration command identification code or a transport registration command identification code.
14. The method of claim 9, wherein controlling the local downstream device to send transport registration commands to the upstream device directly connected to the local downstream device and the upstream device indirectly connected to the local downstream device comprises:
and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment at preset time intervals.
15. The method according to claim 1, wherein the downloading the upgrade package of the version corresponding to the target device according to the current version information of the target device comprises:
and downloading an upgrade package of a version corresponding to the target equipment according to the detected upgrade triggering operation of the user and the current version information of the target equipment.
16. The method of claim 1, wherein before transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to a local downstream device, the method includes:
sending a prepare to transmit command to the target device.
17. The method of claim 16, wherein the content of the ready-to-transmit command comprises identity information of a device, whether the device itself is upgraded, and whether a device downstream of the device is upgraded.
18. The method according to claim 1, wherein the controlling the target device to upgrade according to the upgrade package of the version corresponding to the target device includes:
sending an upgrade trigger command to downstream equipment directly connected with the local area;
and triggering the target equipment respectively through the downstream equipment directly connected with the local area, so that the target equipment is upgraded according to the upgrade package of the version corresponding to the target equipment.
19. The method of claim 18, further comprising:
and receiving the upgrading progress pushed by the downstream equipment directly connected with the local equipment until the target equipment is upgraded.
20. The method according to claim 1, wherein the number of the target devices is two or more, and the transmitting the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device includes:
the upgrade packages of more than two versions corresponding to the target equipment and the identity information of the target equipment are transmitted to the downstream equipment directly connected with the local equipment in parallel;
and controlling downstream equipment directly connected with the local device to execute matching operation according to the identity information of the target device so as to enable the target device to obtain the upgrade package of the corresponding version, wherein each device in the local downstream equipment stores the identity information of the downstream equipment.
21. The method according to claim 20, wherein the controlling, according to the identity information of the target device, the downstream device connected directly to the local area to perform the matching operation so that the target device obtains the upgrade package of the corresponding version includes:
determining that the target device comprises a target leaf device according to the identity information of the target device, wherein the target leaf device comprises a downstream device directly connected with the local, and the leaf device has no downstream device connected downwards;
and controlling the downstream equipment directly connected with the local to acquire the upgrade package of the corresponding version and stopping forwarding.
22. The method according to claim 20, wherein the controlling, according to the identity information of the target device, the downstream device connected directly to the local area to perform the matching operation so that the target device obtains the upgrade package of the corresponding version includes:
according to the identity information of the target device, determining that the target device comprises a target leaf device, and an intermediate device is arranged between the target leaf device and a downstream device directly connected with the local, wherein the intermediate device is connected with the downstream device downwards, and the leaf device is not connected with the downstream device downwards;
controlling the downstream device and the intermediate device directly connected with the local to forward the upgrade package of the corresponding version to the target leaf device;
and controlling the target leaf equipment to acquire the upgrade package of the corresponding version and stopping forwarding.
23. The method according to claim 20, wherein the controlling, according to the identity information of the target device, the downstream device connected directly to the local area to perform the matching operation so that the target device obtains the upgrade package of the corresponding version includes:
according to the identity information of the target equipment, determining that the target equipment comprises target intermediate equipment, wherein the target intermediate equipment is directly connected with downstream equipment which is directly connected with the local equipment, and the intermediate equipment is downwards connected with the downstream equipment;
controlling the downstream equipment directly connected with the local to forward the upgrade package of the corresponding version to the target intermediate equipment;
and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
24. The method according to claim 20, wherein the controlling, according to the identity information of the target device, the downstream device connected directly to the local area to perform the matching operation so that the target device obtains the upgrade package of the corresponding version includes:
determining that the target equipment comprises target intermediate equipment according to the identity information of the target equipment, wherein intermediate equipment is arranged between the target intermediate equipment and the downstream equipment directly connected with the local equipment, and the downstream equipment is connected downwards to the intermediate equipment;
controlling the downstream equipment and the intermediate equipment which are directly connected with the local area to forward the upgrade package of the corresponding version to the target intermediate equipment;
and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
25. The method of claim 23 or 24, wherein the controlling the target intermediate device to obtain the upgrade package of the corresponding version further comprises:
if the target equipment also comprises target downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain an upgrade package of a corresponding version, and forwarding the upgrade package of the corresponding version to the downstream equipment of the target intermediate equipment until the upgrade package is forwarded to the target downstream equipment;
and controlling the target downstream equipment to acquire the upgrade patch of the corresponding version.
26. The method of claim 23 or 24, wherein the controlling the target intermediate device to obtain the upgrade package of the corresponding version further comprises:
and if the target equipment does not comprise the downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain the upgrade package of the corresponding version and stopping forwarding.
27. An apparatus for upgrading a device, the apparatus comprising: the device comprises a memory, a processor and a communication circuit, wherein the memory and the communication circuit are respectively connected with the processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and, when executing the computer program, implement the steps of:
according to the detected target equipment selection operation of the user, acquiring related upgrading information of target equipment to be upgraded from related upgrading information of local downstream equipment, wherein the related upgrading information comprises identity information of the equipment and current version information of the equipment, and the local downstream equipment comprises equipment directly connected with the local and/or indirectly connected with the local;
controlling the communication circuit to download the upgrade package of the version corresponding to the target equipment according to the current version information of the target equipment;
controlling the communication circuit to transmit the upgrade package of the version corresponding to the target device and the identity information of the target device to the local downstream device, so that the local downstream device transmits the upgrade package of the version corresponding to the target device according to the identity information of the target device, and the target device obtains the upgrade package of the corresponding version;
and after the target equipment acquires the upgrade package of the corresponding version, controlling the target equipment to upgrade according to the upgrade package of the version corresponding to the target equipment.
28. The apparatus of claim 27, wherein the processor, when executing the computer program, performs the steps of:
and acquiring related upgrading information of the local downstream equipment.
29. The apparatus of claim 28, wherein the processor, when executing the computer program, performs the steps of:
and acquiring the related upgrading information of the local downstream equipment through the heartbeat packet.
30. The apparatus of claim 28, wherein the processor, when executing the computer program, performs the steps of:
acquiring a registration command of the local downstream device, wherein the registration command is sent by registering the local downstream device with an upstream device directly connected and/or indirectly connected with the local downstream device;
and acquiring the related upgrading information of the local downstream equipment through the registration command of the local downstream equipment.
31. The apparatus according to claim 30, wherein the registration command comprises a device registration command and/or a transport registration command, the device registration command is sent by the local downstream device performing device registration with an upstream device directly connected to the local downstream device, and the transport registration command is sent by the local downstream device performing transport registration with an upstream device directly connected to the local downstream device and an upstream device indirectly connected to the local downstream device.
32. The apparatus of claim 31, wherein the processor, when executing the computer program, performs the steps of:
and controlling the local downstream equipment to send the equipment registration command to upstream equipment directly connected with the local downstream equipment so as to enable the upstream equipment directly connected with the local downstream equipment to acquire the related upgrading information of the local downstream equipment.
33. The apparatus of claim 32, wherein the processor, when executing the computer program, performs the steps of:
generating a registration data packet with a predetermined format;
controlling the local downstream device to send the registration data packet to an upstream device directly connected with the local downstream device;
and controlling the upstream equipment directly connected with the local downstream equipment to receive the registration data packet.
34. The apparatus of claim 32, wherein the processor, when executing the computer program, performs the steps of:
controlling the local downstream device to send the device registration command to an upstream device directly connected to the local downstream device at a predetermined time interval.
35. The apparatus of claim 31, wherein the processor, when executing the computer program, performs the steps of:
and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment so as to enable each equipment in the local downstream equipment to acquire relevant upgrade information of all the local downstream equipment.
36. The apparatus of claim 35, wherein the processor, when executing the computer program, performs the steps of:
and after the device registration is successful, controlling the local downstream device to send a transmission registration command to the upstream device directly connected with the local downstream device and the upstream device indirectly connected with the local downstream device.
37. The apparatus of claim 35, wherein the processor, when executing the computer program, performs the steps of:
generating a registration data packet with a predetermined format;
controlling the local downstream equipment to send the registration data packet to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment until the registration data packet is sent to the local equipment;
and controlling the local to return a response data packet to the downstream equipment directly connected with the local.
38. The apparatus according to claim 33 or 37, wherein the data content of the registration packet comprises a command identification code, a device name, a device identification code, a device type, and a directly connected upstream device identification code.
39. The apparatus of claim 38, wherein the command identification code comprises a device registration command identification code or a transport registration command identification code.
40. The apparatus of claim 35, wherein the processor, when executing the computer program, performs the steps of:
and controlling the local downstream equipment to send a transmission registration command to the upstream equipment directly connected with the local downstream equipment and the upstream equipment indirectly connected with the local downstream equipment at preset time intervals.
41. The apparatus of claim 27, wherein the processor, when executing the computer program, performs the steps of:
and controlling the communication circuit to download the upgrade package of the version corresponding to the target equipment according to the detected upgrade triggering operation of the user and the current version information of the target equipment.
42. The apparatus of claim 27, wherein the processor, when executing the computer program, performs the steps of:
control the communication circuitry to send a prepare-to-transmit command to the target device.
43. The apparatus of claim 42, wherein the content of the prepare-to-transmit command comprises identity information of a device, whether the device itself is upgraded, and whether a device downstream of the device is upgraded.
44. The apparatus of claim 27, wherein the processor, when executing the computer program, performs the steps of:
notifying the communication circuit to send an upgrade trigger command to a downstream device directly connected to the local device;
and triggering the target equipment respectively through the downstream equipment directly connected with the local area, so that the target equipment is upgraded according to the upgrade package of the version corresponding to the target equipment.
45. The apparatus according to claim 44, wherein the processor, when executing the computer program, performs the steps of:
and controlling the communication circuit to receive the upgrading progress pushed by the downstream equipment directly connected with the local device until the target equipment is upgraded.
46. The apparatus of claim 27, wherein the number of target devices is two or more, and wherein the processor, when executing the computer program, performs the steps of:
controlling the communication circuit to transmit more than two upgrade packages of versions corresponding to the target equipment and the identity information of the target equipment in parallel to the downstream equipment directly connected with the local area;
and controlling downstream equipment directly connected with the local device to execute matching operation according to the identity information of the target device so as to enable the target device to obtain the upgrade package of the corresponding version, wherein each device in the local downstream equipment stores the identity information of the downstream equipment.
47. The apparatus according to claim 46, wherein the processor, when executing the computer program, performs the steps of:
determining that the target device comprises a target leaf device according to the identity information of the target device, wherein the target leaf device comprises a downstream device directly connected with the local, and the leaf device has no downstream device connected downwards;
and controlling the downstream equipment directly connected with the local to acquire the upgrade package of the corresponding version and stopping forwarding.
48. The apparatus according to claim 46, wherein the processor, when executing the computer program, performs the steps of:
according to the identity information of the target device, determining that the target device comprises a target leaf device, and an intermediate device is arranged between the target leaf device and a downstream device directly connected with the local, wherein the intermediate device is connected with the downstream device downwards, and the leaf device is not connected with the downstream device downwards;
controlling the downstream device and the intermediate device directly connected with the local to forward the upgrade package of the corresponding version to the target leaf device;
and controlling the target leaf equipment to acquire the upgrade package of the corresponding version and stopping forwarding.
49. The apparatus according to claim 46, wherein the processor, when executing the computer program, performs the steps of:
according to the identity information of the target equipment, determining that the target equipment comprises target intermediate equipment, wherein the target intermediate equipment is directly connected with downstream equipment which is directly connected with the local equipment, and the intermediate equipment is downwards connected with the downstream equipment;
controlling the downstream equipment directly connected with the local to forward the upgrade package of the corresponding version to the target intermediate equipment;
and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
50. The apparatus according to claim 46, wherein the processor, when executing the computer program, performs the steps of:
determining that the target equipment comprises target intermediate equipment according to the identity information of the target equipment, wherein intermediate equipment is arranged between the target intermediate equipment and the downstream equipment directly connected with the local equipment, and the downstream equipment is connected downwards to the intermediate equipment;
controlling the downstream equipment and the intermediate equipment which are directly connected with the local area to forward the upgrade package of the corresponding version to the target intermediate equipment;
and controlling the target intermediate equipment to acquire the upgrade package of the corresponding version.
51. The apparatus according to claim 49 or 50, wherein the processor, when executing the computer program, performs the steps of:
if the target equipment also comprises target downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain an upgrade package of a corresponding version, and forwarding the upgrade package of the corresponding version to the downstream equipment of the target intermediate equipment until the upgrade package is forwarded to the target downstream equipment;
and controlling the target downstream equipment to acquire the upgrade patch of the corresponding version.
52. The apparatus according to claim 49 or 50, wherein the processor, when executing the computer program, performs the steps of:
and if the target equipment does not comprise the downstream equipment of the target intermediate equipment, controlling the target intermediate equipment to obtain the upgrade package of the corresponding version and stopping forwarding.
53. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out a method of upgrading a device according to any of claims 1-26.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/084052 WO2021203384A1 (en) | 2020-04-09 | 2020-04-09 | Device upgrade method and apparatus, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112771497A true CN112771497A (en) | 2021-05-07 |
Family
ID=75699516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202080005231.5A Pending CN112771497A (en) | 2020-04-09 | 2020-04-09 | Method and device for upgrading equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112771497A (en) |
WO (1) | WO2021203384A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114461240A (en) * | 2021-06-30 | 2022-05-10 | 荣耀终端有限公司 | Software upgrading method, software upgrading system and electronic equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115525064A (en) * | 2022-08-30 | 2022-12-27 | 一飞(海南)科技有限公司 | Method, system, equipment and application for processing restart critical phase of formation airplane |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083537A (en) * | 2006-05-31 | 2007-12-05 | 华为技术有限公司 | Method, apparatus and system for realizing device management |
CN102937904A (en) * | 2012-10-24 | 2013-02-20 | 华为技术有限公司 | Multi-node firmware updating method and device |
US20130219030A1 (en) * | 2012-02-21 | 2013-08-22 | F5 Networks, Inc. | In service upgrades for a hypervisor or hardware manager hosting virtual traffic managers |
CN106775841A (en) * | 2016-11-29 | 2017-05-31 | 广州广电运通金融电子股份有限公司 | The method, system and device of plug-in unit upgrading |
CN107465539A (en) * | 2017-07-25 | 2017-12-12 | 北京康得新创科技股份有限公司 | The upgrade-system of the upgrade method of firmware, terminal and firmware |
CN110768817A (en) * | 2018-07-27 | 2020-02-07 | 视联动力信息技术股份有限公司 | Upgrading method and device for video networking terminal |
-
2020
- 2020-04-09 CN CN202080005231.5A patent/CN112771497A/en active Pending
- 2020-04-09 WO PCT/CN2020/084052 patent/WO2021203384A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083537A (en) * | 2006-05-31 | 2007-12-05 | 华为技术有限公司 | Method, apparatus and system for realizing device management |
US20130219030A1 (en) * | 2012-02-21 | 2013-08-22 | F5 Networks, Inc. | In service upgrades for a hypervisor or hardware manager hosting virtual traffic managers |
CN102937904A (en) * | 2012-10-24 | 2013-02-20 | 华为技术有限公司 | Multi-node firmware updating method and device |
CN106775841A (en) * | 2016-11-29 | 2017-05-31 | 广州广电运通金融电子股份有限公司 | The method, system and device of plug-in unit upgrading |
CN107465539A (en) * | 2017-07-25 | 2017-12-12 | 北京康得新创科技股份有限公司 | The upgrade-system of the upgrade method of firmware, terminal and firmware |
CN110768817A (en) * | 2018-07-27 | 2020-02-07 | 视联动力信息技术股份有限公司 | Upgrading method and device for video networking terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114461240A (en) * | 2021-06-30 | 2022-05-10 | 荣耀终端有限公司 | Software upgrading method, software upgrading system and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2021203384A1 (en) | 2021-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3200072B1 (en) | Method for updating terminal system, terminal and system | |
EP2456257B1 (en) | Method and system for upgrading wireless data card | |
CN108023765A (en) | Equipment firmware upgrading method and device and storage medium | |
CN102164363B (en) | Base station version updating realization method and base station | |
TWI639321B (en) | Charging adapter and updating method thereof | |
CN111142905B (en) | OTA upgrading method, OTA server and OTA upgrading system | |
CN107066300B (en) | Firmware upgrading method of storage device and storage device | |
CN104954394A (en) | Software differential packet production and update method, server, terminal and update system | |
EP2664988B1 (en) | Method, device and system for installing terminal software | |
CN114201197A (en) | Firmware upgrading method and device, electronic equipment and readable storage medium | |
CN112771497A (en) | Method and device for upgrading equipment and storage medium | |
CN110069288B (en) | USB equipment sharing method, device and system | |
CN115335803B (en) | Equipment upgrading method, intelligent equipment and computer readable storage medium | |
JP7257554B2 (en) | Model file distribution method, platform, system, terminal and readable storage medium | |
CN108153548A (en) | A kind of EMMC firmware upgrade methods and device | |
CN109189419B (en) | System upgrading method, device and system, server and client | |
CN101854442B (en) | Network device and firmware updating method thereof | |
CN109343880A (en) | RN packet updating method, RN packet updating device and readable storage medium | |
CN114640584B (en) | Module upgrading method and system | |
CN114745269A (en) | Firmware upgrading method and device, electronic equipment and storage medium | |
CN102169439A (en) | Data transmission system | |
CN106708549B (en) | OTA (over the air) upgrading method of handheld terminal | |
CN111124451A (en) | Distributed backup upgrading method | |
CN118981330A (en) | Firmware upgrading method, system, terminal and storage medium of equipment | |
CN118193022B (en) | Version customization data management method and platform |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210507 |