CN111277435A - Method and device for upgrading network equipment, storage medium and electronic equipment - Google Patents

Method and device for upgrading network equipment, storage medium and electronic equipment Download PDF

Info

Publication number
CN111277435A
CN111277435A CN202010049605.5A CN202010049605A CN111277435A CN 111277435 A CN111277435 A CN 111277435A CN 202010049605 A CN202010049605 A CN 202010049605A CN 111277435 A CN111277435 A CN 111277435A
Authority
CN
China
Prior art keywords
network
equipment
network device
network equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010049605.5A
Other languages
Chinese (zh)
Inventor
周天阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Dayu Semiconductor Co Ltd
Original Assignee
Nanjing Dayu Semiconductor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Dayu Semiconductor Co Ltd filed Critical Nanjing Dayu Semiconductor Co Ltd
Priority to CN202010049605.5A priority Critical patent/CN111277435A/en
Publication of CN111277435A publication Critical patent/CN111277435A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

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

Abstract

The present disclosure relates to a method, an apparatus, a storage medium, and an electronic device for upgrading a network device, the method including: receiving an upgrade file for upgrading the network device; determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment; if other network equipment except the network equipment exists in the preset range of the position of the network equipment, the upgrading file is sent to the other network equipment, so that the other network equipment can upgrade the equipment versions of the other network equipment according to the upgrading file, the upgrading file can also be sent between the network equipment, the occupation of an air interface of a base station is reduced, network blockage is avoided, the upgrading file can be sent to the network equipment, and the upgrading of the network equipment is realized.

Description

Method and device for upgrading network equipment, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for upgrading a network device, a storage medium, and an electronic device.
Background
With the development of the internet of things technology, hundreds of millions of internet of things devices will be accessed to the network of an operator. In order to reduce complexity and power consumption of the internet of things, the access rate of the internet of things is generally low, and the devices of the internet of things also need to be upgraded according to the upgrade file, but the upgrade file is generally a relatively large file.
At present, when the internet of things equipment is upgraded, a server generally sends an upgrade file to a base station, and then sends the upgrade file to each piece of internet of things equipment through the base station. However, the number of the base stations is much smaller than that of the internet of things devices, and the air interface resources of each base station are limited, and need to be allocated to all the internet of things devices of the base station, when the number of the internet of things devices to be upgraded is large, and the air interface resources of the base stations are not allocated enough, network congestion is caused, and the transmission of the upgrade file fails, so that the network devices cannot be upgraded.
Disclosure of Invention
The invention aims to provide a method, a device, a storage medium and electronic equipment for upgrading network equipment, and aims to solve the problems that more internet of things equipment needs to be upgraded, network blockage is caused when air interface resources of a base station are not distributed enough, transmission of an upgrade file fails, and accordingly the network equipment cannot be upgraded.
In order to achieve the above object, a first aspect of the present disclosure provides a method for upgrading a network device, which is applied to the network device, and the method includes:
receiving an upgrade file for upgrading the network device;
determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment;
and if other network equipment except the network equipment exists in the preset range of the position of the network equipment, sending the upgrade file to the other network equipment so that the other network equipment can upgrade the equipment versions of the other network equipment according to the upgrade file.
Optionally, the receiving an upgrade file for upgrading the network device includes:
receiving the upgrade file sent by a server; alternatively, the first and second electrodes may be,
and receiving the upgrade file sent by a first target network device, wherein the network device is located in a preset range of the position of the first target network device.
Optionally, if no other network device except the network device exists within the preset range of the location of the network device, a notification message for notifying that no other network device exists is sent to the server, so that the server determines a specific network device from the other network devices except the network device and sends the upgrade file to the specific network device.
Optionally, after receiving an upgrade file for upgrading the network device, the method further includes:
upgrading the equipment version of the network equipment according to the upgrading file to obtain a target equipment version;
and obtaining upgrading information corresponding to the target equipment version, and sending the upgrading information to a server.
Optionally, in a case of receiving the upgrade file sent by the server, the obtaining upgrade information corresponding to the version of the target device includes:
acquiring version information of the target device version and first device information of the network device;
under the condition of receiving the upgrade file sent by the first target network device, the obtaining of the upgrade information corresponding to the version of the target device includes:
and acquiring version information of the target equipment version, second equipment information of the network equipment and equipment identification information of the first target network equipment.
A second aspect of the present disclosure provides an upgrading method for upgrading a network device, which is applied to a server, and the method includes:
receiving equipment information sent by a plurality of network equipment in a network system;
determining a designated network device from a plurality of network devices according to the device information;
and sending an upgrade file for upgrading the network equipment to the specified network equipment, so that the upgrade file is sent to other network equipment under the condition that the specified network equipment determines that other network equipment except the specified network equipment exists in the preset range of the position of the specified network equipment.
Optionally, the device information includes location information;
the determining a designated network device from the plurality of network devices according to the device information includes:
generating a tree according to the position information and the network system;
and if the network equipment corresponding to the position information is determined to be located at the root node position of the tree corresponding to the network system, taking the network equipment as the designated network equipment.
Optionally, the determining a designated network device from the plurality of network devices according to the device information includes:
for each network device in the plurality of network devices, determining the number of the devices of other network devices except the network device in the preset range of the position of the network device according to the position information;
and taking the network equipment with the largest number of equipment as the specified network equipment.
Optionally, the device information includes historical upgrade information; the history upgrading information comprises equipment identification information of second target network equipment, and the second target network equipment is network equipment which sends a history upgrading file to the network equipment when the network equipment is upgraded;
the determining a designated network device from the plurality of network devices according to the device information includes:
determining second target network equipment corresponding to the equipment identification information with the largest quantity according to the historical upgrading information;
and taking the second target network equipment corresponding to the equipment identification information with the largest quantity as the specified network equipment.
Optionally, the device information includes historical upgrade information; the history upgrading information comprises the number of devices of other network devices under the condition that the network device sends a history upgrading file to other network devices;
the determining a designated network device from the plurality of network devices according to the device information includes:
determining the network equipment with the largest number of equipment from a plurality of network equipment according to the historical upgrading information;
and taking the network equipment with the maximum number of equipment as the specified network equipment.
Optionally, the method further comprises:
if the specified network device determines that other network devices except the specified network device do not exist in the preset range of the position of the specified network device, receiving a notification message which is sent by the specified network device and used for informing that other network devices do not exist;
and determining a specific network device from other network devices except the specified network device, and sending the upgrade file to the specific network device.
A third aspect of the present disclosure provides an apparatus for upgrading a network device, which is applied to the network device, and the apparatus includes:
the upgrade file receiving module is used for receiving an upgrade file for upgrading the network equipment;
the other network equipment determining module is used for determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment;
and the upgrade file sending module is used for sending the upgrade file to other network equipment if other network equipment except the network equipment exists in the preset range of the position of the network equipment, so that the other network equipment can upgrade the equipment versions of the other network equipment according to the upgrade file.
Optionally, the upgrade file receiving module is configured to:
receiving the upgrade file sent by a server; alternatively, the first and second electrodes may be,
and receiving the upgrade file sent by a first target network device, wherein the network device is located in a preset range of the position of the first target network device.
Optionally, the apparatus further comprises:
and the notification message sending module is used for sending a notification message for informing that other network equipment does not exist to the server if other network equipment except the network equipment does not exist in the preset range of the position of the network equipment, so that the server determines the specific network equipment from the other network equipment except the network equipment and sends the upgrade file to the specific network equipment.
Optionally, the apparatus further comprises:
the network equipment upgrading module is used for upgrading the equipment version of the network equipment according to the upgrading file to obtain a target equipment version;
and the upgrading information acquisition module is used for acquiring upgrading information corresponding to the target equipment version and sending the upgrading information to a server.
Optionally, in a case of receiving the upgrade file sent by the server, the upgrade information obtaining module is configured to:
acquiring version information of the target device version and first device information of the network device;
under the condition of receiving the upgrade file sent by the first target network device, the upgrade information acquisition module is configured to:
and acquiring version information of the target equipment version, second equipment information of the network equipment and equipment identification information of the first target network equipment.
A fourth aspect of the present disclosure provides an apparatus for upgrading a network device, which is applied to a server, and the apparatus includes:
the device information receiving module is used for receiving device information sent by a plurality of network devices in the network system;
a designated network device determining module for determining a designated network device from the plurality of network devices according to the device information;
and the upgrade file sending module is used for sending an upgrade file for upgrading the network equipment to the specified network equipment so as to send the upgrade file to other network equipment under the condition that the specified network equipment determines that other network equipment except the specified network equipment exists in the preset range of the position of the specified network equipment.
Optionally, the device information includes location information;
the designated network device determination module is to:
generating a tree according to the position information and the network system;
and if the network equipment corresponding to the position information is determined to be located at the root node position of the tree corresponding to the network system, taking the network equipment as the designated network equipment.
Optionally, the designated network device determining module is configured to:
for each network device in the plurality of network devices, determining the number of the devices of other network devices except the network device in the preset range of the position of the network device according to the position information;
and taking the network equipment with the largest number of equipment as the specified network equipment.
Optionally, the device information includes historical upgrade information; the history upgrading information comprises equipment identification information of second target network equipment, and the second target network equipment is network equipment which sends a history upgrading file to the network equipment when the network equipment is upgraded;
the designated network device determination module is to:
determining second target network equipment corresponding to the equipment identification information with the largest quantity according to the historical upgrading information;
and taking the second target network equipment corresponding to the equipment identification information with the largest quantity as the specified network equipment.
Optionally, the device information includes historical upgrade information; the history upgrading information comprises the number of devices of other network devices under the condition that the network device sends a history upgrading file to other network devices;
the designated network device determination module is to:
determining the network equipment with the largest number of equipment from a plurality of network equipment according to the historical upgrading information;
and taking the network equipment with the maximum number of equipment as the specified network equipment.
Optionally, the apparatus further comprises:
a notification message receiving module, configured to receive a notification message sent by the designated network device and used for notifying that no other network device exists if the designated network device determines that no other network device exists within a preset range of a location of the designated network device;
and the specific network equipment determining module is used for determining specific network equipment from other network equipment except the specified network equipment and sending the upgrade file to the specific network equipment.
A fifth aspect of the present disclosure provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of the first aspects.
A sixth aspect of the present disclosure provides an electronic device applied to a network device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of the first aspect.
A seventh aspect of the present disclosure provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of the second aspects.
An eighth aspect of the present disclosure provides an electronic device applied to a server, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any of the second aspects.
By the technical scheme, the upgrading file for upgrading the network equipment can be received; determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment; if other network equipment except the network equipment exists in the preset range of the position of the network equipment, the upgrading file is sent to the other network equipment, the upgrading file can also be sent between the network equipment, occupation of an air interface of the base station is reduced, network blockage is avoided, the upgrading file can be sent to the network equipment, and upgrading of the network equipment is achieved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a block diagram illustrating a system for upgrading a network device in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of upgrading a network device in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another method of upgrading a network device in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a third method of upgrading a network device in accordance with an exemplary embodiment;
FIG. 5 is a signaling diagram illustrating a method of upgrading a network device in accordance with an example embodiment;
FIG. 6 is a block diagram illustrating an apparatus to upgrade a network device in accordance with an example embodiment;
FIG. 7 is a block diagram illustrating a second apparatus for upgrading a network device in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a third apparatus for upgrading a network device in accordance with an example embodiment;
FIG. 9 is a block diagram illustrating a fourth apparatus to upgrade a network device, according to an example embodiment;
FIG. 10 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment;
FIG. 11 is a block diagram illustrating another electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
First, an application scenario of the present disclosure is explained, and the present disclosure can be applied to a system for upgrading a network device. As shown in fig. 1, the system includes: server 101, base station 102, and network device 103. Wherein, the server 101 can communicate with the base station 102, and the base station 102 can communicate with the network device 103.
Illustratively, the network device 103 is in a network covered by the base station 102, the base station may be a base station of an operator, and the network device 103 may be an internet of things device accessing the network of the operator.
When the network device 103 needs to be upgraded, the server sends the 101 upgrade file to the base station 102, the base station 102 sends the upgrade file to the network device 103 after receiving the upgrade file, and the network device 103 performs upgrading after receiving the upgrade file. However, when there are many network devices to be upgraded and the air interface resources of the base station are not sufficiently allocated, network congestion may be caused, and the transmission of the upgrade file may fail, so that the network devices may not be upgraded.
The inventor notices the problem and provides a method for upgrading network equipment, which comprises the following steps:
fig. 2 is a flow chart illustrating a method of upgrading a network device, as applied to the network device, according to an example embodiment. As shown in fig. 2, the method includes:
s201, receiving an upgrade file for upgrading the network equipment.
In this embodiment, the network device is located in a network range covered by the base station, and the network device, the base station, and the network device may communicate with each other according to Communication protocols such as Narrow Band Internet of Things (NBIOT), (Enhanced Machine Class Communication ) (eMTC), (Global System for mobile Communication, Global System for mobile communications, GSM, and the like.
For example, the network device may be an internet of things device, and the network covered by the base station may be an internet of things, and the internet of things device and the base station and the internet of things device communicate with each other according to communication protocols such as NBIOT, eMTC, GSM, and the like.
In this embodiment, the network device receives the upgrade file sent by the server; or, receiving the upgrade file sent by the first target network device, where the network device is located within a preset range of a location of the first target network device. When the network device is located within a preset range of the location of the first target network device, the first target network device may detect the network device within the preset range, and send the upgrade file to the network device. For example, the first target network device sends the upgrade file to the network device, and at the same time, sends the device identification information of the first target network device to the network device, and further, the network device may know, according to the device identification information of the first target network device, that the network device sending the upgrade file to the network device is the first target network device.
For example, the network device is B and the first target network device is a. The first target network device a sends the upgrade file to the network device B, and at the same time, sends the device identification information of the first target network device a to the network device B, and further, the network device B can know that the network device sending the upgrade file to the network device B is the first target network device a according to the device identification information of the first target network device a.
S202, determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment;
and S203, if other network equipment except the network equipment exists in the preset range of the position of the network equipment, sending the upgrade file to the other network equipment so that the other network equipment can upgrade the equipment version of the other network equipment according to the upgrade file.
For example, after receiving the upgrade file, the network device upgrades the device version of the network device according to the upgrade file, and determines whether other network devices except the network device exist within a preset range of the location of the network device. If it is determined that other network devices except the network device exist within the preset range of the position of the network device, acquiring the number of the other network devices, and sending the upgrade file to the other network devices, so that the other network devices upgrade the device versions of the other network devices according to the upgrade file.
Similarly, the network device sends the device identification information of the network device to the other network device while sending the upgrade file to the other network device, so that the other network device can know that the network device sending the upgrade file to the other network device is the network device according to the device identification information.
For example, the network device is B and the other network device is C, D. The network device B detects that two other network devices C, D exist in the preset range of the location of the network device B, except the network device B, and then sends the upgrade file to the other network devices C, D. The network device B sends the upgrade file to the other network device C, D, and at the same time, sends the device identification information of the network device B to the other network device C, D, so that the other network device C, D can know that the network device sending the upgrade file to the other network device C, D is the network device B according to the device identification information of the network device B.
In another embodiment, the network device may send its own upgrade information directly to the server while sending the upgrade file to other network devices. Illustratively, the network device upgrades the device version of the network device according to the upgrade file to obtain a target device version; and obtaining upgrading information corresponding to the target equipment version, and sending the upgrading information to a server.
For example, the network device is B1, and the other network devices are C1 and D1. The network device B1 transmits the upgrade file to the other network devices C1 and D1, and simultaneously transmits the upgrade information of the network device B1 directly to the server. Illustratively, the network device B1 upgrades the device version of the network device B1 according to the upgrade file to obtain a target device version; and obtaining upgrading information corresponding to the target equipment version, and sending the upgrading information to a server.
By adopting the scheme, the upgrading file for upgrading the network equipment can be received; determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment; if other network equipment except the network equipment exists in the preset range of the position of the network equipment, the upgrading file is sent to the other network equipment, the upgrading file can also be sent between the network equipment, occupation of an air interface of the base station is reduced, network blockage is avoided, the upgrading file can be sent to the network equipment, and upgrading of the network equipment is achieved.
The method for upgrading a network device provided by the present disclosure is further described in detail below with reference to the embodiment of fig. 3. Fig. 3 is a flow chart illustrating another method of upgrading a network device according to the embodiment of fig. 2.
As shown in fig. 3, the method includes:
s301, receiving an upgrade file which is sent by the server or the first target network device and used for upgrading the network device.
The specific implementation manner of this step may refer to the description of step S201 in the embodiment shown in fig. 2, and this embodiment is not described herein again.
S302, upgrading the equipment version of the network equipment according to the upgrading file to obtain a target equipment version;
and S303, acquiring the upgrading information corresponding to the target equipment version, and sending the upgrading information to a server.
Under the condition of receiving the upgrade file sent by the server, acquiring upgrade information corresponding to the target device version comprises: and acquiring version information of the target device version and first device information of the network device.
Further, the version information of the target device version and the first device information are sent to a server through a base station, so that the server updates the device version information of the network device to the version information of the target device version according to the first device information, and stores the upgrade information corresponding to the target device version.
Under the condition of receiving the upgrade file sent by the first target network device, the obtaining of the upgrade information corresponding to the version of the target device includes: and acquiring version information of the target device version, second device information of the network device and device identification information of the first target network device.
Further, the version information of the target device version, the second device information of the network device, and the device identification information of the first target network device are sent to the server through the base station, so that the server updates the device version information of the network device to the version information of the target device version according to the second device information, and stores the upgrade information corresponding to the target device version.
S304, determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment;
s305, if other network equipment except the network equipment exists in the preset range of the position of the network equipment, sending the upgrade file to the other network equipment so that the other network equipment can upgrade the equipment version of the other network equipment according to the upgrade file.
S304 and S305 provided in this embodiment are similar to S202 and S203 provided in the embodiment of fig. 2, and this embodiment is not described herein again.
S306, if no other network equipment except the network equipment exists in the preset range of the position of the network equipment, sending a notification message for informing that no other network equipment exists to the server, so that the server determines the specific network equipment from the other network equipment except the network equipment and sends the upgrade file to the specific network equipment.
For example, if the network device B does not detect other network devices except the network device B within the preset range of the location of the network device B, a notification message for notifying that no other network device exists is sent to the server through the base station, where the notification message further includes the device identification information of the network device B, so that the server can know that no other network device exists within the preset range of the location of the network device B according to the device identification information of the network device B.
For example, if the upgrade file received by the network device is sent by the server through the base station, after receiving the notification message sent by the base station, the server determines a specific network device D from the other network devices C except the network device B, and sends the upgrade file to the specific network device D.
Illustratively, if the upgrade file received by the network device is sent by the first target network device a, after receiving the notification message sent by the base station, the server determines a specific network device D from the other network devices C except the first target network device a and the network device B, and sends the upgrade file to the specific network device D.
By adopting the scheme, the upgrading file which is sent by the server or the first target network equipment and used for upgrading the network equipment can be received, other network equipment except the network equipment exists in the preset range of the position of the determined network equipment, the upgrading file is sent to the other network equipment, and the upgrading file can also be sent between the network equipment; if it is determined that no other network device except the network device exists within the preset range of the position of the network device, sending a notification message for notifying that no other network device exists to the server, so that the server determines a specific network device from the other network devices except the network device, and sends the upgrade file to the specific network device, thereby reducing the number of upgrade files sent by the server to the network device through the base station, effectively reducing the occupation of an air interface of the base station, avoiding network congestion, sending the upgrade file to the network device, and realizing the upgrade of the network device.
Fig. 4 is a flowchart illustrating another method of upgrading a network device, applied to a server, according to an example embodiment, and includes:
s401, receiving device information sent by a plurality of network devices in a network system.
In this embodiment, the plurality of network devices are located in a network range covered by the base station, and the plurality of network devices located in the network range covered by the base station form a network system. Further, the network device may communicate with the base station and the network device according to communication protocols such as NBIOT, eMTC, GSM, and the like.
Illustratively, the network device may be an internet of things device, the network covered by the base station may be an internet of things, and the plurality of internet of things devices located within the range of the internet of things covered by the base station form an internet of things system. The communication between the Internet of things equipment and the base station and between the Internet of things equipment is carried out according to communication protocols such as NBIOT, eMTC, GSM and the like.
In this embodiment, the server may receive, through the base station, the device information sent by the plurality of network devices in the network system. The device information may include device identification information of the network device, location information of the network device, and historical upgrade information.
S402, determining a designated network device from a plurality of network devices according to the device information.
For example, when the server receives the device identification information and the location information sent by the plurality of network devices, the server may determine the designated network device from the plurality of network devices according to the device information. The designated network device may be the first target network device in the foregoing embodiments, or may be a specific network device in the foregoing embodiments.
In one possible implementation, determining the designated network device from the plurality of network devices according to the device information includes:
the method comprises the following steps: the server generates a spanning tree according to the position information of the plurality of network devices and the network system.
In this embodiment, the plurality of network devices send the location information of the network device to the server every preset time, so that the server can timely obtain the current location information of the plurality of network devices when the plurality of network devices move.
In this step, after receiving the location information of the plurality of network devices, the server may construct a minimum spanning tree from the network system according to a kruskal algorithm, where a vertex of the minimum spanning tree corresponds to each location of the network device, and a weight of an edge between two points corresponds to signal quality. Firstly, constructing a subgraph which only contains n vertexes and is empty in an edge set, then selecting an edge with the maximum weight from the edge set, and if two vertexes of the edge belong to different trees, adding the two vertexes into the subgraph, namely combining the two trees in which the two vertexes are respectively positioned into one tree; on the contrary, if the two vertices of the edge are already located on the same tree, it is not advisable, and an edge with the largest weight should be taken and tried again. And the rest is repeated until no new edge can be added. At this time, the forest may include one or more trees, and the tree root of each tree is the root node set of the forest.
Optionally, the weight value may also correspond to a distance, and the edge with the smallest weight value is selected and added each time.
Step two: and if the network equipment corresponding to the position information is positioned at the root node position of the tree corresponding to the network system, taking the network equipment as the designated network equipment.
In this step, after the minimum spanning tree is obtained, the distance between the n-1 edges of the minimum spanning tree is calculated to obtain the sum of the distances between the n-1 edges, and the spanning tree corresponding to the minimum sum of the distances is the minimum spanning tree. And if the network equipment corresponding to the position information is located at the root node position of the minimum spanning tree, the network equipment is used as the designated network equipment.
In another possible implementation manner, for each of a plurality of network devices, determining, according to the location information, the number of devices of other network devices except the network device within a preset range of the location of the network device; and taking the network equipment with the maximum number of the equipment as the specified network equipment.
For example, if the number of devices of other network devices except the network device a in the preset range of the location where the network device a is located is 6, and the number of devices of other network devices except the network device B in the preset range of the location where the network device B is located is 4, the network device a is taken as the designated network device. Illustratively, after the server receives the historical upgrade information sent by the plurality of network devices, the server may further determine a designated network device from the plurality of network devices according to the historical upgrade information.
In a possible implementation manner, the history upgrade information includes device identification information of a second target network device, where the second target network device is a network device that sends a history upgrade file to the network device when the network device is upgraded; determining second target network equipment corresponding to the equipment identification information with the largest quantity according to the historical upgrading information; and taking the second target network equipment corresponding to the equipment identification information with the largest quantity as the appointed network equipment. The second target network device may be the first target network device in the foregoing embodiment, or may be a specific network device in the foregoing embodiment.
It should be noted that, if the location of the network device is mobile, it is determined that the network device sends the history update file to the second target network device of the network device when the network device is updated last time; determining second target network equipment corresponding to the equipment identification information with the largest quantity; and taking the second target network equipment corresponding to the equipment identification information with the largest quantity as the specified network equipment during the last upgrading.
For example, the server receives that the history upgrade information sent by 5 network devices includes the device identification information P of the second target network device, and the history upgrade information sent by 2 network devices includes the device identification information Q of the second target network device. The second target network device corresponding to the device identification information P is taken as the designated network device.
In another possible implementation manner, the history upgrade information includes the number of devices of other network devices when the network device sends the history upgrade file to the other network devices; determining the network equipment with the largest number of equipment from a plurality of network equipment according to the historical upgrading information; and taking the network equipment with the maximum number of the equipment as the specified network equipment.
It should be noted that, if the location of the network device is mobile, the number of devices of the other network device is determined when the network device is upgraded last time and the network device sends the history upgrade file to the other network device; determining the network equipment with the largest number of equipment at the last upgrading from a plurality of network equipment according to the historical upgrading information; and taking the network equipment with the maximum number of the equipment as the specified network equipment.
For example, when the history upgrade information received by the server from the network device a includes that the network device a sends a history upgrade file to another network device, the number of devices in the other network device is 5; the server receives the number 6 of the other network devices when the history upgrading information sent by the network device B includes that the network device B sends the history upgrading file to the other network devices. Network device B is treated as the designated network device. In an embodiment, the server receives, through the base station, the history upgrade information sent by the multiple network devices as the device identification information of the second target network device, and when the network device sends the upgrade file to another network device, the number of devices of the other network device, the history version information, and the device identification information of the network device.
And S403, sending an upgrade file for upgrading the network device to the specified network device, so that the specified network device sends the upgrade file to other network devices when determining that other network devices except the specified network device exist in the preset range of the position of the specified network device.
For example, after determining the designated network device, the server sends the device identification information of the designated network device and the upgrade file to the base station, and then sends the upgrade file to the designated network device through the base station according to the device identification information.
Further, after receiving the upgrade file, the designated network device upgrades the device version of the designated network device according to the upgrade file to obtain a target device version, and sends the upgrade file to other network devices when other network devices except the designated network device are detected within a preset range of the position of the designated network device, so that the other network devices can upgrade according to the upgrade file.
By adopting the scheme, the equipment information sent by a plurality of network equipment in the network system can be received; determining a designated network device from the plurality of network devices according to the device information; the method comprises the steps of sending an upgrade file for upgrading the network equipment to the appointed network equipment, so that the appointed network equipment sends the upgrade file to other network equipment under the condition that other network equipment except the appointed network equipment exists in a preset range of the position where the appointed network equipment is located, a server does not need to send the upgrade file to all the network equipment through a base station, occupation of an air interface of the base station can be effectively reduced, network blockage is avoided, the upgrade file can be sent to the network equipment, and upgrading of the network equipment is achieved.
The method for upgrading a network device according to the embodiment of the present disclosure is further described in detail below with reference to the embodiment of fig. 5.
Fig. 5 is a signaling interaction diagram illustrating a method of upgrading a network device according to an example embodiment, as shown in fig. 5, the method including:
s501, a server receives equipment information sent by a plurality of network equipment in a network system;
s502, the server determines the designated network equipment from the plurality of network equipment according to the equipment information.
S501 and S502 provided in this embodiment are similar to S401 and S402 provided in the embodiment of fig. 4, and this embodiment is not described again here.
S503, the server sends an upgrade file for upgrading the network equipment to the specified network equipment;
s504, the designated network equipment receives the upgrade file sent by the server;
s505, the designated network device upgrades the device version of the designated network device according to the upgrade file to obtain a target device version;
s506, the designated network equipment acquires the upgrading information corresponding to the target equipment version and sends the upgrading information to the server.
In the step, the upgrade information corresponding to the target device version acquired by the designated network device includes version information of the target device version and third device information of the designated network device, and the version information of the target device version and the third device information of the designated network device are sent to the server through the base station, so that the server updates the device version information of the designated network device to the version information of the target device version according to the third device information, and saves the upgrade information corresponding to the target device version.
And S507, under the condition that the specified network equipment determines that other network equipment except the specified network equipment exists in the preset range of the position of the specified network equipment, the specified network equipment sends the upgrade file to the other network equipment.
Further, after receiving the upgrade file, the designated network device E upgrades the device version of the designated network device E according to the upgrade file to obtain a target device version, and sends the upgrade file to the other network device F when detecting other network devices F except the designated network device within a preset range of the position of the designated network device E, so that the other network devices F upgrade according to the upgrade file to obtain the target device version, obtain upgrade information corresponding to the target device version, and send the upgrade information to the server through the base station.
Illustratively, when the other network device F detects other network devices G except the other network device F within a preset range of the location of the other network device F, the upgrade file is sent to the other network device G, so that the other network devices G upgrade according to the upgrade file to obtain the version of the target device, obtain upgrade information corresponding to the version of the target device, and send the upgrade information to the server through the base station. And the rest is done until the upgrade file is sent to all network devices in the network system.
In addition, it should be noted that, if the other network device F does not detect other network devices except the other network device F within the preset range of the location of the other network device F, a notification message for the absence of the other network devices is sent to the server, so that the server determines a third target network device H from the other network devices except the specified network device E and the other network device F according to the notification message, and sends the upgrade file to the third target network device H, so that the third target network device H upgrades according to the upgrade file to obtain a target device version, and obtains upgrade information corresponding to the target device version, and then sends the upgrade information to the server through the base station. The third target network device may be the first target network device in the foregoing embodiment, or may be a specific network device in the foregoing embodiment.
Further, the third target network device H sends the upgrade file to the other network devices I when detecting other network devices I except the third target network device H within a preset range of the position of the third target network device H, so that the other network devices I can upgrade according to the upgrade file to obtain the target device version, obtain upgrade information corresponding to the target device version, and send the upgrade information to the server through the base station. And the rest is done until the upgrade file is sent to all network devices in the network system.
In this step, the determination method of the third target network device is similar to the determination method of the specified network device, and details are not described here again in this embodiment.
And S508, if the specified network device determines that no other network device except the specified network device exists in the preset range of the position of the specified network device, sending a notification message for informing that no other network device exists to the server.
For example, if the specified network device does not detect other network devices except the specified network device within a preset range of the location of the specified network device, a notification message for notifying that no other network device exists is sent to the server through the base station, where the notification message further includes device identification information of the specified network device.
S509, the server receives a notification message which is sent by the specified network device and used for informing that other network devices do not exist;
s510, the server determines a specific network device from other network devices except the specified network device, and sends the upgrade file to the specific network device.
In this embodiment, after receiving the notification message sent by the base station, the server may learn, according to the device identification information of the specified network device, that no other network device exists within the preset range of the location of the specified network device, determine a specific network device from the other network devices except the specified network device, and send the upgrade file to the specific network device.
Illustratively, the specific network device upgrades the device version of the specific network device according to the upgrade file to obtain a target device version, and obtains upgrade information corresponding to the target device version, and sends the upgrade information to the server. Further, the upgrade information corresponding to the target device version acquired by the specific network device includes version information of the target device version and device information of the specific network device, and the version information of the target device version and the device information of the specific network device are sent to the server, so that the server updates the device version information of the specific network device to the version information of the target device version according to the device information of the specific network device, and stores the upgrade information corresponding to the target device version.
Similarly, when the specific network device detects other network devices except the specific network device within a preset range of the position of the specific network device, the specific network device sends the upgrade file to the other network devices, so that the other network devices can upgrade according to the upgrade file to obtain the version of the target device, obtain upgrade information corresponding to the version of the target device, and send the upgrade information to the server through the base station. And the rest is done until the upgrade file is sent to all network devices in the network system.
Similarly, if the specific network device does not detect other network devices except the specific network device within the preset range of the position of the specific network device, sending a notification message for the absence of the other network devices to the server, so that the server determines a fourth target network device from the other network devices except the specified network device and the specific network according to the notification message, and sending the upgrade file to the fourth target network device, so that the fourth network device upgrades according to the upgrade file to obtain the version of the target device, obtains upgrade information corresponding to the version of the target device, and then sends the upgrade information to the server through the base station. The fourth target network device may be the first target network device in the foregoing embodiment, or may be a specific network device in the foregoing embodiment.
Further, when the fourth target network device detects other network devices except the fourth target network device within a preset range of the location of the fourth target network device, the upgrade file is sent to the other network devices, so that the other network devices can upgrade according to the upgrade file to obtain the version of the target device, obtain upgrade information corresponding to the version of the target device, and send the upgrade information to the server through the base station. And the rest is done until the upgrade file is sent to all network devices in the network system.
In this step, the determination method of the specific network device and the fourth target network device is similar to the determination method of the specified network device, and this embodiment is not described herein again.
By adopting the scheme, the server can receive the equipment information sent by a plurality of network equipment in the network system; determining appointed network equipment from the plurality of network equipment according to the equipment information, and sending an upgrade file for upgrading the network equipment to the appointed network equipment; the appointed network equipment receives an upgrade file sent by a server; and under the condition that other network equipment except the appointed network equipment exists in the preset range of the position of the appointed network equipment, the upgrading file is sent to the other network equipment, and the server does not need to send the upgrading file to all the network equipment through the base station, so that the occupation of an air interface of the base station can be effectively reduced, the network blockage is avoided, the upgrading file can be sent to the network equipment, and the upgrading of the network equipment is realized.
Fig. 6 is a block diagram illustrating an apparatus for upgrading a network device, which is applied to the network device, according to an exemplary embodiment, and as shown in fig. 6, the apparatus 60 includes:
an upgrade file receiving module 601, configured to receive an upgrade file used for upgrading the network device;
a module 602 for determining other network devices, configured to determine whether there are other network devices except the network device within a preset range of a location where the network device is located;
an upgrade file sending module 603, configured to send the upgrade file to another network device if another network device other than the network device exists within a preset range of a location where the network device is located, so that the other network device upgrades the device version of the other network device according to the upgrade file.
Optionally, the upgrade file receiving module 601 is configured to:
receiving the upgrade file sent by a server; alternatively, the first and second electrodes may be,
and receiving the upgrade file sent by the first target network equipment, wherein the network equipment is positioned in a preset range of the position of the first target network equipment.
Alternatively, fig. 7 is a block diagram of another apparatus for upgrading a network device according to the embodiment of fig. 6. As shown in fig. 7, the apparatus 60 further includes:
a notification message sending module 604, configured to send a notification message for notifying that no other network device exists to a server if no other network device except the network device exists within a preset range of a location of the network device, so that the server determines a specific network device from the other network devices except the network device and sends the upgrade file to the specific network device.
Optionally the apparatus 60 further comprises:
the network device upgrading module 605 is configured to upgrade the device version of the network device according to the upgrade file to obtain a target device version;
the upgrade information obtaining module 606 is configured to obtain upgrade information corresponding to the version of the target device, and send the upgrade information to the server.
Optionally, in the case of receiving the upgrade file sent by the server, the upgrade information obtaining module 605 is configured to:
acquiring version information of the version of the target equipment and first equipment information of the network equipment;
in the case of receiving the upgrade file sent by the first target network device, the upgrade information obtaining module 605 is configured to:
and acquiring version information of the target device version, second device information of the network device and device identification information of the first target network device.
By adopting the device, the upgrading file for upgrading the network equipment can be received; determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment; if other network equipment except the network equipment exists in the preset range of the position of the network equipment, the upgrading file is sent to the other network equipment, the upgrading file can also be sent between the network equipment, occupation of an air interface of the base station is reduced, network blockage is avoided, the upgrading file can be sent to the network equipment, and upgrading of the network equipment is achieved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating an apparatus for upgrading a network device, which is applied to a server according to an exemplary embodiment, and as shown in fig. 8, the apparatus 80 includes:
a device information receiving module 801, configured to receive device information sent by multiple network devices in a network system;
a designated network device determining module 802 for determining a designated network device from the plurality of network devices according to the device information;
an upgrade file sending module 803, configured to send an upgrade file for upgrading the network device to the specified network device, so that the specified network device sends the upgrade file to another network device when determining that the other network device except the specified network device exists within the preset range of the location of the specified network device.
Optionally, the device information includes location information;
the designated network device determination module 802 is configured to:
generating a tree according to the position information and the network system;
and if the network equipment corresponding to the position information is determined to be positioned at the root node position of the tree corresponding to the network system, taking the network equipment as the designated network equipment.
Optionally, the designated network device determining module 802 is configured to:
for each network device in the plurality of network devices, determining the number of the devices of other network devices except the network device within the preset range of the position of the network device according to the position information;
and taking the network equipment with the largest number of equipment as the specified network equipment.
Optionally, the device information includes historical upgrade information; the history upgrading information comprises equipment identification information of second target network equipment, and the second target network equipment is network equipment which sends a history upgrading file to the network equipment when the network equipment is upgraded;
the designated network device determination module 802 is configured to:
determining second target network equipment corresponding to the equipment identification information with the largest quantity according to the historical upgrading information; and taking the second target network equipment corresponding to the equipment identification information with the largest quantity as the appointed network equipment.
Optionally, the device information includes historical upgrade information; the history upgrading information comprises the number of devices of other network devices under the condition that the network device sends a history upgrading file to other network devices;
the designated network device determination module 802 is configured to:
determining the network equipment with the largest number of equipment from a plurality of network equipment according to the historical upgrading information; and taking the network equipment with the maximum number of the equipment as the specified network equipment.
Alternatively, fig. 9 is a block diagram of another apparatus for upgrading a network device according to the embodiment of fig. 8. As shown in fig. 9, the apparatus 80 further includes:
a notification message receiving module 804, configured to receive a notification message sent by the specified network device and used for notifying that no other network device exists if the specified network device determines that no other network device exists within a preset range of the location of the specified network device;
a specific network device determining module 805 configured to determine a specific network device from the network devices other than the specified network device, and send the upgrade file to the specific network device.
By adopting the device, the equipment information sent by a plurality of network equipment in the network system can be received; determining a designated network device from the plurality of network devices according to the device information; the method comprises the steps of sending an upgrade file for upgrading the network equipment to the appointed network equipment, so that the appointed network equipment sends the upgrade file to other network equipment under the condition that other network equipment except the appointed network equipment exists in a preset range of the position where the appointed network equipment is located, a server does not need to send the upgrade file to all the network equipment through a base station, occupation of an air interface of the base station can be effectively reduced, network blockage is avoided, the upgrade file can be sent to the network equipment, and upgrading of the network equipment is achieved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here. Fig. 10 is a block diagram illustrating an electronic device 1000 according to an exemplary embodiment, where the electronic device 1000 is applied to a network device. As shown in fig. 10, the electronic device 1000 may include: a processor 1001 and a memory 1002. The electronic device 1000 may also include one or more of a multimedia component 1003, an input/output (I/O) interface 1004, and a communications component 1005.
The processor 1001 is configured to control the overall operation of the electronic device 1000, so as to complete all or part of the steps in the method for upgrading the network device. The memory 1002 is used to store various types of data to support operation of the electronic device 1000, such as instructions for any application or method operating on the electronic device 1000 and application-related data, such as contact data, messaging, pictures, audio, video, and so forth. The Memory 1002 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk. The multimedia components 1003 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may further be stored in memory 1002 or transmitted through communication component 1005. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 1004 provides an interface between the processor 1001 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1005 is used for wired or wireless communication between the electronic device 1000 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, or 5G, NB-IOT (Narrow Band Internet of Things), or a combination of one or more of them, so that the corresponding communication component 1005 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method for upgrading a network Device.
In another exemplary embodiment, a computer readable storage medium is provided comprising program instructions which, when executed by a processor, implement the steps of the method of upgrading a network device described above. For example, the computer readable storage medium may be the memory 1002 comprising program instructions executable by the processor 1001 of the electronic device 1000 to perform the method of upgrading a network device described above.
Fig. 11 is a block diagram illustrating an electronic device 1100 in accordance with an example embodiment. For example, the electronic device 1100 may be provided as a server. Referring to fig. 11, electronic device 1100 includes a processor 1122, which can be one or more in number, and a memory 1132 for storing computer programs executable by processor 1122. The computer programs stored in memory 1132 may include one or more modules that each correspond to a set of instructions. Further, the processor 1122 may be configured to execute the computer program to perform the method of upgrading a network device described above.
Additionally, the electronic device 1100 may also include a power component 1126 and a communication component 1150, the power component 1126 may be configured to perform power management of the electronic device 1100, and the communication component 1150 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 1100. In addition, the electronic device 1100 may also include an input/output (I/O) interface 1158. Electronic device 1100 may operate based on an operating system stored in memory 1132, such as a Windows Server, Mac OS XTM, UnixTM, Linux, and the like.
In another exemplary embodiment, a computer readable storage medium is provided comprising program instructions which, when executed by a processor, implement the steps of the method of upgrading a network device described above. For example, the computer readable storage medium may be the memory 1132 described above including program instructions that are executable by the processor 1122 of the electronic device 1100 to perform the method described above for upgrading a network device.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned method of upgrading a network device when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure. It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (17)

1. A method for upgrading a network device, the method being applied to the network device and comprising:
receiving an upgrade file for upgrading the network device;
determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment;
and if other network equipment except the network equipment exists in the preset range of the position of the network equipment, sending the upgrade file to the other network equipment so that the other network equipment can upgrade the equipment versions of the other network equipment according to the upgrade file.
2. The method of claim 1, wherein receiving an upgrade file for upgrading the network device comprises:
receiving the upgrade file sent by a server; alternatively, the first and second electrodes may be,
and receiving the upgrade file sent by a first target network device, wherein the network device is located in a preset range of the position of the first target network device.
3. The method according to claim 1, wherein if no other network device except the network device exists within a preset range of the location of the network device, sending a notification message for notifying that no other network device exists to a server, so that the server determines a specific network device from the other network devices except the network device and sends the upgrade file to the specific network device.
4. The method of any of claims 1 to 3, wherein after receiving an upgrade file for upgrading the network device, the method further comprises:
upgrading the equipment version of the network equipment according to the upgrading file to obtain a target equipment version;
and obtaining upgrading information corresponding to the target equipment version, and sending the upgrading information to a server.
5. The method according to claim 4, wherein in a case of receiving the upgrade file sent by a server, the obtaining upgrade information corresponding to the target device version includes:
acquiring version information of the target device version and first device information of the network device;
under the condition of receiving the upgrade file sent by the first target network device, the obtaining of the upgrade information corresponding to the version of the target device includes:
and acquiring version information of the target equipment version, second equipment information of the network equipment and equipment identification information of the first target network equipment.
6. An upgrading method for upgrading a network device, which is applied to a server, the method comprising:
receiving equipment information sent by a plurality of network equipment in a network system;
determining a designated network device from a plurality of network devices according to the device information;
and sending an upgrade file for upgrading the network equipment to the specified network equipment, so that the upgrade file is sent to other network equipment under the condition that the specified network equipment determines that other network equipment except the specified network equipment exists in the preset range of the position of the specified network equipment.
7. The method of claim 6, wherein the device information comprises location information;
the determining a designated network device from the plurality of network devices according to the device information includes:
generating a tree according to the position information and the network system;
and if the network equipment corresponding to the position information is determined to be located at the root node position of the tree corresponding to the network system, taking the network equipment as the designated network equipment.
8. The method of claim 7, wherein determining a designated network device from the plurality of network devices based on the device information comprises:
for each network device in the plurality of network devices, determining the number of the devices of other network devices except the network device in the preset range of the position of the network device according to the position information;
and taking the network equipment with the largest number of equipment as the specified network equipment.
9. The method of claim 6, the device information comprising historical upgrade information; the history upgrading information comprises equipment identification information of second target network equipment, and the second target network equipment is network equipment which sends a history upgrading file to the network equipment when the network equipment is upgraded;
the determining a designated network device from the plurality of network devices according to the device information includes:
determining second target network equipment corresponding to the equipment identification information with the largest quantity according to the historical upgrading information;
and taking the second target network equipment corresponding to the equipment identification information with the largest quantity as the specified network equipment.
10. The method of claim 6, the device information comprising historical upgrade information; the history upgrading information comprises the number of devices of other network devices under the condition that the network device sends a history upgrading file to other network devices;
the determining a designated network device from the plurality of network devices according to the device information includes:
determining the network equipment with the largest number of equipment from a plurality of network equipment according to the historical upgrading information;
and taking the network equipment with the maximum number of equipment as the specified network equipment.
11. The method of claim 6, further comprising:
if the specified network device determines that other network devices except the specified network device do not exist in the preset range of the position of the specified network device, receiving a notification message which is sent by the specified network device and used for informing that other network devices do not exist;
and determining a specific network device from other network devices except the specified network device, and sending the upgrade file to the specific network device.
12. An apparatus for upgrading a network device, the apparatus being applied to the network device and comprising:
the upgrade file receiving module is used for receiving an upgrade file for upgrading the network equipment;
the other network equipment determining module is used for determining whether other network equipment except the network equipment exists in a preset range of the position of the network equipment;
and the upgrade file sending module is used for sending the upgrade file to other network equipment if other network equipment except the network equipment exists in the preset range of the position of the network equipment, so that the other network equipment can upgrade the equipment versions of the other network equipment according to the upgrade file.
13. An apparatus for upgrading a network device, applied to a server, the apparatus comprising:
the device information receiving module is used for receiving device information sent by a plurality of network devices in the network system;
a designated network device determining module for determining a designated network device from the plurality of network devices according to the device information;
and the upgrade file sending module is used for sending an upgrade file for upgrading the network equipment to the specified network equipment so as to send the upgrade file to other network equipment under the condition that the specified network equipment determines that other network equipment except the specified network equipment exists in the preset range of the position of the specified network equipment.
14. A computer-readable storage medium, having stored thereon computer program instructions, which, when executed by a processor, implement the steps of the method of any of claims 1 to 5.
15. An electronic device, applied to a network device, includes:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1 to 5.
16. A computer-readable storage medium, having stored thereon computer program instructions, which, when executed by a processor, implement the steps of the method of any of claims 6 to 11.
17. An electronic device, applied to a server, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 6 to 11.
CN202010049605.5A 2020-01-16 2020-01-16 Method and device for upgrading network equipment, storage medium and electronic equipment Pending CN111277435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010049605.5A CN111277435A (en) 2020-01-16 2020-01-16 Method and device for upgrading network equipment, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010049605.5A CN111277435A (en) 2020-01-16 2020-01-16 Method and device for upgrading network equipment, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111277435A true CN111277435A (en) 2020-06-12

Family

ID=71001725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010049605.5A Pending CN111277435A (en) 2020-01-16 2020-01-16 Method and device for upgrading network equipment, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111277435A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003717A (en) * 2020-07-06 2020-11-27 视联动力信息技术股份有限公司 Device upgrading method, network device, server, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447884A (en) * 2007-11-26 2009-06-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor
CN105743948A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 Network version upgrading method and apparatus
CN105843643A (en) * 2016-03-22 2016-08-10 维沃移动通信有限公司 Mobile terminal software version upgrading method and mobile terminal
CN107104839A (en) * 2017-05-19 2017-08-29 京信通信技术(广州)有限公司 Firmware upgrade method, device, server, Internet of things system and RF tag
CN107222553A (en) * 2017-06-26 2017-09-29 深圳市智物联网络有限公司 Pass through the method for Internet of Things adapter upgrade equipment, system and Internet of Things adapter
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating
CN107682197A (en) * 2017-10-17 2018-02-09 锐捷网络股份有限公司 Device updating method, the network equipment and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447884A (en) * 2007-11-26 2009-06-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor
CN105743948A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 Network version upgrading method and apparatus
CN105843643A (en) * 2016-03-22 2016-08-10 维沃移动通信有限公司 Mobile terminal software version upgrading method and mobile terminal
CN107104839A (en) * 2017-05-19 2017-08-29 京信通信技术(广州)有限公司 Firmware upgrade method, device, server, Internet of things system and RF tag
CN107222553A (en) * 2017-06-26 2017-09-29 深圳市智物联网络有限公司 Pass through the method for Internet of Things adapter upgrade equipment, system and Internet of Things adapter
CN107682197A (en) * 2017-10-17 2018-02-09 锐捷网络股份有限公司 Device updating method, the network equipment and server
CN107608701A (en) * 2017-10-20 2018-01-19 深圳市道通科技股份有限公司 A kind of method and apparatus of firmware updating

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003717A (en) * 2020-07-06 2020-11-27 视联动力信息技术股份有限公司 Device upgrading method, network device, server, electronic device and storage medium
CN112003717B (en) * 2020-07-06 2023-05-09 视联动力信息技术股份有限公司 Device upgrading method, network device, server, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN104410665B (en) A kind of method for down loading and equipment upgrading bag
CN103699408A (en) Software updating method and equipment
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
US10164828B2 (en) Geospatial based management of configuration profiles
US20210258210A1 (en) Data driven user interface for configuring device settings
CN110780912B (en) Hierarchical spanning tree software patch with segment support
CN110601978B (en) Flow distribution control method and device
CN104267980A (en) Software score display method, terminal, data server and system
CN105530323B (en) File upgrading method, related equipment and system
CN111277435A (en) Method and device for upgrading network equipment, storage medium and electronic equipment
CN112039934A (en) Information feedback method, feedback information processing method and device
CN113132906B (en) Virtual positioning identification method and device, storage medium and electronic equipment
JP2021010164A (en) Method and apparatus for processing notification using notification preset
CN106293814B (en) Upgrading method and device
CN105144090A (en) Method and apparatus for prefetching device drivers for peripheral devices connected to a smartphone prior to high-level operating system (HLOS) boot
EP3015990B1 (en) Information processing device, and destination information updating method and program
CN110035496A (en) A kind of cloud platform switching method, system and electronic equipment
CN105490852A (en) Upgrade detection method and device
CN113589745A (en) Vehicle remote control method and device and electronic equipment
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
KR20150029916A (en) Apparatus and method for setting up computting environments
CN105991729B (en) Installation package downloading method and server
US20220253300A1 (en) Software update device, server, software update system, and software update method
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
CN108093093B (en) Method and device for updating address table of destination equipment in source equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612

RJ01 Rejection of invention patent application after publication