CN114697310B - Upgrade file distribution method, scheduling server, device and storage medium - Google Patents

Upgrade file distribution method, scheduling server, device and storage medium Download PDF

Info

Publication number
CN114697310B
CN114697310B CN202011609156.1A CN202011609156A CN114697310B CN 114697310 B CN114697310 B CN 114697310B CN 202011609156 A CN202011609156 A CN 202011609156A CN 114697310 B CN114697310 B CN 114697310B
Authority
CN
China
Prior art keywords
target
upgrade file
cloud server
base station
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011609156.1A
Other languages
Chinese (zh)
Other versions
CN114697310A (en
Inventor
王桂林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202011609156.1A priority Critical patent/CN114697310B/en
Publication of CN114697310A publication Critical patent/CN114697310A/en
Application granted granted Critical
Publication of CN114697310B publication Critical patent/CN114697310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present invention relates to the field of wireless communications technologies, and in particular, to an upgrade file allocation method, a scheduling server, a device, and a storage medium. The embodiment of the invention detects an upgrade file stored in a cloud server and used for upgrading a base station, and acquires a target upgrade file after detecting that the cloud server has the target upgrade file with version updated; determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file; and distributing the target upgrade file to the execution equipment of the corresponding base station so that the execution equipment upgrades the base station according to the received target upgrade file. According to the embodiment of the invention, after the update of the upgrade file in the cloud server is detected, the target upgrade file is distributed to the corresponding execution equipment according to the acquired configuration information of the target upgrade file, so that the upgrade file is automatically distributed, the upgrade file is accurately and efficiently distributed to the base station, and the upgrade efficiency of the base station is improved.

Description

Upgrade file distribution method, scheduling server, device and storage medium
Technical Field
The present invention relates to the field of communications technology testing, and in particular, to an upgrade file allocation method, a scheduling server, a device, and a storage medium.
Background
Currently, when upgrading the version of the base station, the new function, the new characteristic or the problem modification, the function optimization and the like of the base station need to be updated through the version upgrade, so as to improve the service quality of the base station.
The existing base station upgrading method is to manually judge the type of an upgrade file required by the base station upgrade, manually obtain the upgrade file of an update version after determining the type of the upgrade file of the base station, and distribute the upgrade file to the base station to upgrade the base station. The base station upgrading mode is complex in operation, is easily influenced by manual operation level, is high in labor cost, is low in accuracy of determining the upgrading file, and is low in efficiency of distributing the upgrading file.
Disclosure of Invention
The embodiment of the invention provides an upgrade file distribution method, a scheduling server, a device and a storage medium, which are used for improving the accuracy of determining upgrade files and improving the distribution efficiency of the upgrade files.
In a first aspect, an embodiment of the present invention provides an upgrade file allocation method, where the method includes:
detecting an upgrade file stored in a cloud server and used for upgrading a base station, and acquiring a target upgrade file after detecting that the cloud server has the target upgrade file with version updated;
Determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file;
distributing the target upgrade file to the execution equipment of the corresponding base station, so that the execution equipment upgrades the base station according to the received target upgrade file.
An optional implementation manner is that the determining, according to the configuration information of the target upgrade file, a base station corresponding to the target upgrade file includes:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
In an alternative embodiment, if multiple target upgrade files are acquired, before distributing the target upgrade files to corresponding execution devices corresponding to the base stations, the method further includes:
determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
And generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
An optional implementation manner is that the executing device for distributing the target upgrade file to the corresponding base station includes:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
and distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station.
An optional implementation manner is that the detecting the upgrade file stored in the cloud server and used for upgrading the base station includes:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
An optional implementation manner is that the cloud server comprises an FTP cloud server and an HTTP cloud server;
after detecting that the cloud server has the target upgrade file updated by the version, obtaining the target upgrade file includes:
If the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
In a second aspect, an embodiment of the present invention provides a scheduling server including a memory, a transceiver, and a processor;
a memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:
detecting an upgrade file stored in a cloud server and used for upgrading a base station, and acquiring a target upgrade file after detecting that the cloud server has the target upgrade file with version updated;
determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file;
And distributing the target upgrade file to the execution equipment of the corresponding base station through the transceiver so that the execution equipment upgrades the base station according to the received target upgrade file.
In an alternative embodiment, the processor is specifically configured to:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
In an alternative embodiment, if multiple target upgrade files are acquired, before distributing the target upgrade files to corresponding execution devices corresponding to the base stations, the processor is further configured to:
determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
And generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
In an alternative embodiment, the processor is specifically configured to:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
and distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station through the transceiver.
In an alternative embodiment, the processor is specifically configured to:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
An optional implementation manner is that the cloud server comprises an FTP cloud server and an HTTP cloud server;
the processor is specifically configured to:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
If the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
In a third aspect, an embodiment of the present invention provides an upgrade file allocation apparatus, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for detecting an upgrade file stored in a cloud server and used for upgrading a base station, and acquiring a target upgrade file after detecting that the cloud server has the target upgrade file with version updated;
the determining unit is used for determining a base station corresponding to the target upgrading file according to the configuration information of the target upgrading file;
the distribution unit is used for distributing the target upgrade file to the execution equipment of the corresponding base station so that the execution equipment upgrades the base station according to the received target upgrade file.
An alternative embodiment is that the determining unit is specifically configured to:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
And determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
In an alternative embodiment, if multiple target upgrade files are acquired, before distributing the target upgrade files to corresponding execution devices corresponding to the base stations, the determining unit is further configured to:
determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
and generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
An alternative embodiment is that the dispensing unit is specifically configured to:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
And distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station.
An alternative embodiment is that the obtaining unit is specifically configured to:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
An optional implementation manner is that the cloud server comprises an FTP cloud server and an HTTP cloud server; the acquisition unit is specifically configured to:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored therein computer program instructions which, when run on a computer, cause the computer to perform the method as described in the first aspect above.
According to the embodiment of the invention, after the upgrade file for upgrading the base station stored in the cloud server is detected and the target upgrade file with version update in the cloud server is detected, the target upgrade file is acquired; determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file; distributing the target upgrade file to the execution equipment of the corresponding base station so that the execution equipment upgrades the base station according to the received target upgrade file; when the embodiment of the invention detects the version update, the target upgrade file can be quickly acquired; after the base station corresponding to the target upgrading file is determined according to the configuration information of the target upgrading file, the target upgrading file is distributed to the execution equipment corresponding to the base station, so that the execution equipment upgrades the base station, the upgrading file is distributed accurately and efficiently, and the upgrading efficiency of the base station is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an upgrade file allocation system according to an embodiment of the present invention;
fig. 2 is an interaction flow chart of a cloud server, a scheduling server, an execution device and a base station when upgrading file allocation is performed in the embodiment of the invention;
FIG. 3 is a flowchart of an upgrade file allocation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a scheduling server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a base station according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an upgrade file allocation apparatus according to an embodiment of the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Some terms appearing hereinafter are explained:
1. in the embodiment of the invention, the term "and/or" describes the association relation of the association objects, which means that three relations can exist, for example, a and/or B can be expressed as follows: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
2. A terminal, also called a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), etc., is a device that provides voice and/or data connectivity to a user, e.g., a handheld device, an in-vehicle device, etc., with a wireless connection function. Currently, some examples of terminals are: a mobile phone, a tablet, a notebook, a palm, a mobile internet device (mobile internet device, MID), a wearable device, a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (self driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like.
3. The base station may be a RAN (Radio Access Network ) node. The RAN is the part of the network that accesses terminals to the wireless network. The RAN node (or device) is a node (or device) in a radio access network. Currently, some examples of RAN nodes are: a 5G base station (generation Node B, gNB), a transmission reception point (transmission reception point, TRP), an evolved Node B (eNB), a radio network controller (radio network controller, RNC), a Node B (Node B, NB), a base station controller (base station controller, BSC), a base transceiver station (base transceiver station, BTS), a home base station (e.g., home evolved NodeB, or home Node B, HNB), a baseband unit (BBU), or a wireless fidelity (wireless fidelity, wifi) Access Point (AP), etc. In addition, in one network architecture, the RAN may include Centralized Unit (CU) nodes and Distributed Unit (DU) nodes.
4. The server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like.
5. And the virtual machine is used for providing virtual/isolated execution environments for cloud platform tenants by using a virtualization technology or a container technology.
6. The FTP cloud server is a cloud server adopting FTP (File Transfer Protocol ) transmission.
7. The HTTP cloud server is a cloud server adopting HTTP (Hyper Text Transfer Protcol, hypertext transfer protocol) transmission.
The network architecture and the service scenario described in the embodiments of the present invention are for more clearly describing the technical solution of the embodiments of the present invention, and do not constitute a limitation on the technical solution provided by the embodiments of the present invention, and those skilled in the art can know that, with the evolution of the network architecture and the appearance of the new service scenario, the technical solution provided by the embodiments of the present invention is applicable to similar technical problems.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, when the base station is upgraded, the version type of the base station is required to be manually determined, the upgrade file of the base station is manually obtained, and then the base station is upgraded in a mode of manually distributing the upgrade file, so that the accuracy is low, the labor cost is high, and the upgrade efficiency is low.
Based on the above-mentioned problems, an embodiment of the present invention provides an upgrade file distribution system, as shown in fig. 1, including a cloud server 10, a scheduling server 20, an execution device 30, and a base station 40;
the cloud server 10 is configured to store an upgrade file for upgrading the base station 40;
the scheduling server 20 detects an upgrade file stored in the cloud server 10 for upgrading the base station 40, and acquires a target upgrade file after detecting that the cloud server 10 has the target upgrade file updated in version; determining a base station 40 corresponding to the target upgrade file according to the configuration information of the target upgrade file; distributing the target upgrade file to the execution device 30 of the corresponding base station 40;
an execution device 30 for upgrading the base station 40 according to the received target upgrade file;
and the base station 40 is used for performing upgrading processing according to the upgraded target version.
According to the embodiment of the invention, after the upgrade file for upgrading the base station stored in the cloud server is detected and the target upgrade file with version update in the cloud server is detected, the target upgrade file is acquired; determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file; distributing the target upgrade file to the execution equipment of the corresponding base station so that the execution equipment upgrades the base station according to the received target upgrade file; when the embodiment of the invention detects the version update, the target upgrade file can be quickly acquired; after the base station corresponding to the target upgrading file is determined according to the configuration information of the target upgrading file, the target upgrading file is distributed to the execution equipment corresponding to the base station, so that the execution equipment upgrades the base station, the upgrading file is distributed accurately and efficiently, and the upgrading efficiency of the base station is improved.
The cloud server in the embodiment of the invention stores the upgrade files for upgrading the various types of base stations, and continuously updates the versions of the upgrade files in the cloud server.
It should be noted that, the base station in the embodiment of the present invention includes, but is not limited to, a test base station.
In implementation, the embodiment of the invention detects the upgrade file stored in the cloud server through the scheduling server, and acquires the target upgrade file after detecting that the cloud server has the target upgrade file with version updated.
In a specific implementation, the scheduling server in the embodiment of the present invention may detect the cloud server by:
after the arrival of the preset inspection time range is determined, the scheduling server detects an upgrade file stored in the cloud server and used for upgrading the base station according to the preset inspection period.
In implementation, the embodiment of the invention can preset the inspection time range and can preset the inspection period in the inspection time range;
it should be noted that, in the embodiment of the present invention, one or more inspection time ranges may be preset; for example, the inspection time range may be preset to 20:00-8:00, and the inspection period may be set to 1 hour within the inspection time range of 20:00-8:00. Or, the embodiment of the invention can also set a plurality of inspection time ranges, and the inspection periods set in different inspection time ranges can be the same or different; for example, two time periods of the inspection time range of 20:00-8:00 and 11:00-13:00 can be preset, the inspection period can be set to be 1 hour in the inspection time range of 20:00-8:00, and the inspection period can be set to be 2 hours in the inspection time range of 11:00-13:00.
In specific implementation, after the preset inspection time range is reached, the embodiment of the invention detects the upgrade file stored in the cloud server according to the preset inspection period, and the embodiment of the invention can detect the upgrade file stored in the cloud server in the following manner.
Mode one, synchronous detection;
the scheduling server in the embodiment of the invention determines whether the size and the number of the upgrade files stored in the scheduling server are the same in the cloud server through synchronizing the size and the number of the upgrade files stored in the cloud server, and if the size of the upgrade files stored in the cloud server is detected to be different from the size of the upgrade files stored in the scheduling server, the scheduling server detects that the upgrade files in the cloud server are updated; or alternatively, the process may be performed,
if the scheduling server detects that the number of the upgrade files stored in the cloud server is different from the number of the upgrade files stored in the scheduling server, the scheduling server is determined to detect that the upgrade files in the cloud server are updated.
Detecting the second mode and the time;
after the preset inspection time range is reached, the scheduling server detects the storage time of the upgrade file in the cloud server according to the preset inspection period; if the storage time of the upgrade file in the cloud server is detected, determining that the upgrade file in the cloud server is updated within the time range of the scheduling server for detecting the preset inspection period of the cloud server.
After detecting that an upgrade version in a cloud server is updated, a scheduling server in the embodiment of the invention acquires a target upgrade file after version updating.
The cloud server in the embodiment of the invention comprises an FTP cloud server and an HTTP cloud server.
If the scheduling server detects that the FTP cloud server has the target upgrade file updated in version, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the scheduling server detects that the HTTP cloud server has the target upgrade file updated by version, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
The method comprises the following steps of describing the acquisition of a target upgrade file according to the two different cloud servers;
the method comprises the steps that firstly, a scheduling server detects a target upgrade file with version update in an FTP cloud server;
after detecting that a target upgrade file with version updated in an FTP cloud server exists, downloading all upgrade files stored in the FTP cloud server; and when downloading the upgrade files stored in the FTP cloud server, preferentially downloading the upgrade files in the preset custom directory.
In specific implementation, the embodiment of the invention can download the target upgrade file in the following way;
the scheduling server in the embodiment of the invention can download the target upgrade files in a parallel mode, and continuously synchronize the acquired target upgrade files with the target upgrade files stored in the FTP cloud server when the target upgrade files are acquired, and control the synchronization time length to be within a preset time length;
for example, when the scheduling server downloads the target upgrade files, 20 processes can be started simultaneously to download the target upgrade files, after the 20 processes download the 20 target upgrade files, the downloaded target upgrade files and the target upgrade files stored in the FTP cloud server are respectively synchronized, and the synchronization time is controlled within 1 minute.
In an alternative implementation manner, if in the process of downloading the target upgrade file, the downloading is interrupted or the size of the target upgrade file in the FTP cloud server is detected to change, the scheduling server deletes the target upgrade file downloaded to the local, and downloads the latest target upgrade file in the next round.
An optional implementation manner is that when the scheduling server in the embodiment of the invention compares the downloaded target upgrade file with the target upgrade file in the FTP cloud server, if it is determined that the downloaded target upgrade file is different from the target upgrade file stored in the FTP cloud server, the scheduling server locally deletes the cache of the target upgrade file and downloads the target upgrade file again.
An optional implementation manner is that after downloading all upgrade files in the FTP cloud server, the embodiment of the invention deletes other upgrade files except the target upgrade file recorded in the custom directory, and cleans up the disk in the scheduling server.
It should be noted that, when the scheduling server in the embodiment of the present invention detects shutdown, the scheduling server will start up and restart at a set time, and automatically run a synchronization program to synchronize with the FTP cloud server.
Secondly, the scheduling server detects that a target upgrade file with version updated is in the HTTP cloud server;
after detecting that the version of the target upgrade file stored in the HTTP cloud server is updated, the scheduling server determines the updated target upgrade file.
An optional implementation manner is that the scheduling server in the embodiment of the present invention downloads the target upgrade files in parallel according to a preset process number.
In specific implementation, for a process, the embodiment of the invention downloads the target upgrade file within a preset downloading time range, and if the target upgrade file is not downloaded within a preset obtaining time range, downloads the next target upgrade file.
In an alternative implementation manner, if the scheduling server detects that the version of the target upgrade file in the HTTP cloud server is updated in the polling period when the target upgrade file is downloaded, another window is opened, and the updated target upgrade file is downloaded.
It should be noted that, the window in the scheduling server is in a hidden state, and external display is not required.
In an alternative implementation manner, if the scheduling server downloads the target upgrade file in the HTTP cloud server, determining that the upgrade file is an empty file, skipping over the file, determining a next downloaded target upgrade file according to a preset process number, and performing cyclic downloading until the downloading of the target upgrade file is completed.
After the target upgrade file is obtained, the base station corresponding to the target upgrade file is determined according to the configuration information of the target upgrade file.
The following details the manner of determining the base station corresponding to the target upgrade file after the target upgrade file is acquired in the embodiment of the present invention:
the method comprises the steps that 1, a scheduling server obtains a target upgrade file;
after a scheduling server in the embodiment of the invention acquires a target upgrade file, acquiring configuration information of the target upgrade file, and determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment; and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
It should be noted that, in the embodiment of the present invention, the configuration information includes at least one hardware type of automation, SYS (system test), OM (Operation Maintennce, operation maintenance test), L1 (PHY physical layer in 5G protocol), L2 (DAP (Data Access Protocol, data access protocol) layer in 5G protocol), PDCP (Packet Data Convergence Protocol ) layer, RLC (Radio link control, radio link control) layer, MAC (Medium Access Control ) layer, and HL (higher layer protocol in 5G protocol);
one type of configuration information may correspond to one or more test environments, which are in one-to-one correspondence with the base station.
An optional implementation manner is that after determining a target test environment corresponding to configuration information of a target upgrade file, a scheduling server establishes a corresponding relation between the target test environment and version information according to version information of the target upgrade file;
it should be noted that, in the embodiment of the present invention, the version information may be an identifier of the target upgrade file, and the version information includes, but is not limited to, a version number and a version update time of the target upgrade file;
after the corresponding relation between the target test environment and the version information is established, the scheduling server adds the established corresponding relation into the mapping relation table of the version and the environment.
An optional implementation manner is that according to a preset corresponding relation between a test environment and a base station and according to a mapping relation table of version and environment, the embodiment of the invention determines the corresponding relation between version information of a target upgrade file and the base station; after the corresponding relation between the version information and the base station is determined, the corresponding relation between the target upgrade file and the base station is determined according to the corresponding relation between the version information and the target upgrade file.
The scheduling server acquires a plurality of target upgrade files;
after a scheduling server in the embodiment of the invention acquires a plurality of target upgrade files, acquiring configuration information of each target upgrade file; and determining the target test environment corresponding to each target upgrade file according to the corresponding relation between the preset configuration information and the test environment and the configuration information corresponding to each target upgrade file.
In specific implementation, after determining the target test environments corresponding to the target upgrade files, the scheduling server in the embodiment of the invention establishes the corresponding relation between the version information of each target upgrade file and the target test environment corresponding to each target upgrade file, and adds the corresponding relation to the mapping relation table of the version and the environment in the scheduling server;
For example, when the version information is a version number, the embodiment of the present invention establishes a correspondence between the version number and the target test environment corresponding to each target upgrade file, and adds the correspondence to a mapping relationship table of the version and the environment in the scheduling server, as shown in the following table 1:
table 1: mapping relation table of version and environment
Figure BDA0002874211810000141
/>
Figure BDA0002874211810000151
After determining target test environments corresponding to all target upgrade files, a scheduling server in the embodiment of the invention gathers and obtains a target upgrade file set corresponding to any one target test environment;
it should be noted that, the target upgrade file set includes at least one target upgrade file corresponding to the target test environment;
an optional implementation manner is that according to the embodiment of the invention, a corresponding relation between a target test environment and a target upgrade file set is generated according to the target upgrade file set corresponding to each target test environment.
In specific implementation, the scheduling server in the embodiment of the invention can determine the version information of the target upgrade file corresponding to the target test environment according to the mapping relation table of the version and the environment; determining a target upgrading file corresponding to the target test environment according to the corresponding relation between the version information and the target upgrading file, and summarizing the target upgrading file to obtain a target upgrading file set;
An optional implementation manner is that after a target upgrade file set is obtained, the embodiment of the invention generates a corresponding relationship between a target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
In specific implementation, the embodiment of the invention can generate the corresponding list of version information corresponding to the target test environment and the target upgrade file set according to the generated corresponding relation between the target test environment and the target upgrade file set.
For example, when the target test environment is an automation environment, as shown in table 2, the scheduling server generates a corresponding list of version information of the automation environment and the corresponding target upgrade file set according to the obtained automation environment and the target upgrade file set corresponding to the automation environment;
table 2: correspondence list of environment and version
Figure BDA0002874211810000161
After generating the corresponding relation between the target test environment and the target upgrade file set, the scheduling server in the embodiment of the invention determines the base station corresponding to each target upgrade file set according to the generated corresponding relation and the corresponding relation between the target test environment and the base station;
in a specific implementation, after determining the base station corresponding to each target upgrade file set, the embodiment of the invention distributes at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station according to the corresponding relation between the preset base station and the execution equipment.
The execution device includes any one of a terminal and a virtual machine.
After receiving the target upgrade file sent by the scheduling server, the execution equipment in the embodiment of the invention adds the target upgrade file to the list to be upgraded; the execution equipment detects the base station according to a preset idle detection period and determines whether the base station is in an idle state or not;
it should be noted that, in the embodiment of the present invention, the base station being in an idle state indicates a state in which the base station is not used.
For example, when the base station is a test base station, if the execution device detects that the test base station is performing an automatic test, it is determined that the base station is in a working state; if the test base station is detected not to be subjected to automatic test, determining that the test base station is in an idle state.
In an alternative implementation manner, when the execution device detects that the base station is in an idle state, the execution device sequentially upgrades the base station according to the target upgrade files in the to-be-upgraded list according to the sequence of the target upgrade files.
In specific implementation, the execution device in the embodiment of the invention downloads the target upgrade list to the base station, and executes the target upgrade file to upgrade the base station.
It should be noted that, the embodiment of the present invention may upgrade the base station manually, or upgrade the base station automatically, which is not limited herein.
After determining that the base station carries out version upgrading according to the target upgrading file, the execution device in the embodiment of the invention deletes the target upgrading file from the list to be upgraded and adds the target upgrading file into the tested list.
After the base station in the embodiment of the invention is upgraded, the base station can enter a working state to work.
Fig. 2 is an interactive flowchart of a cloud server, a scheduling server, an execution device, and a base station in the process of distributing upgrade files according to an embodiment of the present invention, where the base station is taken as a test base station, and a plurality of target upgrade files are obtained, for example, including the following steps:
step S201, after determining that a preset inspection time range is reached, the scheduling server detects an upgrade file stored in the cloud server and used for upgrading the base station according to a preset inspection period;
the cloud server comprises an FTP cloud server and an HTTP cloud server;
step S202, after detecting that a cloud server has a target upgrade file updated by a version, a scheduling server acquires the target upgrade file;
if the target upgrade file with the updated version is detected in the FTP cloud server, a downloading mode corresponding to the FTP cloud server is adopted to obtain the target upgrade file;
If the target upgrade file with version update in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server;
step S203, after obtaining the target upgrade files, the scheduling server determines target test environments corresponding to the target upgrade files according to the corresponding relation between preset configuration information and test environments and the configuration information corresponding to each target upgrade file;
step S204, a scheduling server gathers and obtains a target upgrading file set corresponding to a target test environment aiming at any target test environment;
it should be noted that, the target upgrade file set includes at least one target upgrade file corresponding to the target test environment;
step S205, the scheduling server generates a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment;
step S206, the scheduling server determines the base station corresponding to each target upgrade file set according to the generated corresponding relation between the target test environment and the target upgrade file set and the corresponding relation between the target test environment and the base station;
Step S207, the scheduling server distributes at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station;
step S208, after receiving the target upgrade file set sent by the scheduling server, the execution device adds at least one target upgrade file contained in the target upgrade file set to a list to be upgraded;
step S209, when the execution equipment detects that the base station is in an idle state, the execution equipment sends a target upgrade file to the base station to upgrade the base station;
step S210, after the execution equipment determines that the base station is upgraded, deleting the target upgrade file from a list to be upgraded, and adding the target upgrade file into a test file list;
step S211, the base station performs automatic test after the upgrading is completed.
Based on the same inventive concept, the embodiment of the present invention provides an upgrade file allocation method, and because the method corresponds to the terminal in the upgrade file allocation system of the embodiment of the present invention, and the principle of solving the problem of the method is similar to that of the system, the implementation of the method can refer to the implementation of the system, and the repetition is omitted.
As shown in fig. 3, an embodiment of the present invention provides an upgrade file allocation method, including:
Step S301, an upgrade file stored in a cloud server and used for upgrading a base station is detected, and after a target upgrade file with version update in the cloud server is detected, the target upgrade file is obtained;
step S302, determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file;
step S303, distributing the target upgrade file to the execution equipment of the corresponding base station, so that the execution equipment upgrades the base station according to the received target upgrade file.
An optional implementation manner is that the determining, according to the configuration information of the target upgrade file, a base station corresponding to the target upgrade file includes:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
In an alternative embodiment, if multiple target upgrade files are acquired, before distributing the target upgrade files to corresponding execution devices corresponding to the base stations, the method further includes:
Determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
and generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
An optional implementation manner is that the executing device for distributing the target upgrade file to the corresponding base station includes:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
and distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station.
An optional implementation manner is that the detecting the upgrade file stored in the cloud server and used for upgrading the base station includes:
After the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
An optional implementation manner is that the cloud server comprises an FTP cloud server and an HTTP cloud server;
after detecting that the cloud server has the target upgrade file updated by the version, obtaining the target upgrade file includes:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
Based on the same inventive concept, the embodiment of the present invention further provides a scheduling server, and because the principle of solving the problem of the server is similar to that of the upgrade file distribution system of the embodiment of the present invention, the implementation of the server can refer to the implementation of the system, and the repetition is omitted.
As shown in fig. 4, a scheduling server according to an embodiment of the present invention includes: processor 400, memory 401, transceiver 402, user interface 403, and bus interface.
The processor 400 is responsible for managing the bus architecture and general processing, and the memory 401 may store data used by the processor 400 in performing operations. The transceiver 402 is used to receive and transmit data under the control of the processor 400.
Wherein in fig. 4, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by processor 400 and various circuits of memory represented by memory 401, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 402 may be a number of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over transmission media, including wireless channels, wired channels, optical cables, and the like. The user interface 403 may also be an interface capable of interfacing with an inscribed desired device for a different user device, including but not limited to a keypad, display, speaker, microphone, joystick, etc.
The processor 400 is responsible for managing the bus architecture and general processing, and the memory 401 may store data used by the processor 400 in performing operations.
Alternatively, the processor 400 may be a CPU (Central processing Unit), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable Gate array) or CPLD (Complex Programmable Logic Device ), and the processor may also employ a multicore architecture.
The processor is configured to execute any of the methods provided in the embodiments of the present application by invoking a computer program stored in a memory in accordance with the obtained executable instructions. The processor and the memory may also be physically separate.
It should be noted that, the above device provided in the embodiment of the present invention can implement all the method steps implemented in the method embodiment and achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those in the method embodiment in this embodiment are omitted.
Specifically, the processor 400 is configured to read a program in the memory 401 and execute:
detecting an upgrade file stored in a cloud server and used for upgrading a base station, and acquiring a target upgrade file after detecting that the cloud server has the target upgrade file with version updated;
Determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file;
the target upgrade file is distributed to the execution device of the corresponding base station through the transceiver 402, so that the execution device upgrades the base station according to the received target upgrade file.
Optionally, the processor 400 is specifically configured to:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
Optionally, if multiple target upgrade files are obtained, before distributing the target upgrade files to corresponding execution devices corresponding to the base stations, the processor 400 is further configured to:
determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
And generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
Optionally, the processor 400 is specifically configured to:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
at least one target upgrade file included in each set of target upgrade files is distributed to the execution devices of the corresponding base stations through the transceiver 402.
Optionally, the processor 400 is specifically configured to:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
Optionally, the cloud server includes an FTP cloud server and an HTTP cloud server; the processor 400 is specifically configured to:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
And the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
As shown in fig. 5, a base station according to an embodiment of the present invention includes: processor 500, memory 501, transceiver 502, and bus interface.
The processor 500 is responsible for managing the bus architecture and general processing, and the memory 501 may store data used by the processor 500 in performing operations. The transceiver 503 is used to receive and transmit data under the control of the process 500.
The bus architecture may comprise any number of interconnecting buses and bridges, and in particular one or more processors represented by the processor 500 and various circuits of the memory, represented by the memory 501, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The processor 500 is responsible for managing the bus architecture and general processing, and the memory 501 may store data used by the processor 500 in performing operations.
The flow disclosed in the embodiments of the present invention may be applied to the processor 500 or implemented by the processor 500. In implementation, the steps of the signal processing flow may be performed by integrated logic circuits of hardware in the processor 500 or instructions in the form of software. The processor 500 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and may implement or perform the methods, steps and logic blocks disclosed in embodiments of the invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 401 and the processor 500 reads the information in the memory 501 and completes the steps of the signal processing flow in combination with its hardware.
As shown in fig. 6, an upgrade file allocation apparatus according to an embodiment of the present invention includes:
an obtaining unit 601, configured to detect an upgrade file stored in a cloud server and used for upgrading a base station, and obtain a target upgrade file after detecting that a version of the target upgrade file is updated in the cloud server;
a determining unit 602, configured to determine, according to configuration information of the target upgrade file, a base station corresponding to the target upgrade file;
and the allocation unit 603 is configured to allocate the target upgrade file to an execution device of a corresponding base station, so that the execution device upgrades the base station according to the received target upgrade file.
In an alternative embodiment, the determining unit 602 is specifically configured to:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
In an alternative embodiment, if multiple target upgrade files are acquired, before distributing the target upgrade files to corresponding execution devices corresponding to the base stations, the determining unit 602 is further configured to:
Determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
and generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
An alternative embodiment is that the distribution unit 603 is specifically configured to:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
and distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station.
In an alternative embodiment, the acquiring unit 601 is specifically configured to:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
An optional implementation manner is that the cloud server comprises an FTP cloud server and an HTTP cloud server; the acquiring unit 601 is specifically configured to:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice. In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, the above device provided in the embodiment of the present invention can implement all the method steps implemented in the method embodiment and achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those in the method embodiment in this embodiment are omitted.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores computer program instructions, and when the computer program instructions run on a computer, the computer is caused to execute the steps of any upgrade file allocation method.
The computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including, but not limited to, magnetic storage (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), and semiconductor storage (e.g., ROM, EPROM, EEPROM, nonvolatile storage (NAND FLASH), solid State Disk (SSD)), etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (12)

1. An upgrade file allocation method, which is applied to a scheduling server, comprises the following steps:
detecting an upgrade file stored in the cloud server and used for upgrading the base station; if the size and/or the number of the upgrade files stored in the cloud server are different from those of the upgrade files stored in the scheduling server through synchronization, determining that a target upgrade file with version update exists in the cloud server; or if the storage time of the upgrade file in the cloud server is determined to be in the time range of the preset inspection period after the preset inspection time range is reached, determining that the cloud server has the target upgrade file with version update;
Acquiring the target upgrading file;
determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file;
distributing the target upgrade file to the execution equipment of the corresponding base station so that the execution equipment upgrades the base station according to the received target upgrade file;
the determining, according to the configuration information of the target upgrade file, a base station corresponding to the target upgrade file includes:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
2. The method of claim 1, wherein if a plurality of target upgrade files are acquired, before distributing the target upgrade files to corresponding execution devices of the base stations, further comprising:
determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
And generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
3. The method of claim 2, wherein the distributing the target upgrade file to the execution device of the corresponding base station comprises:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
and distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station.
4. The method of any one of claims 1 to 3, wherein the detecting the upgrade file stored in the cloud server and used for upgrading the base station includes:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
5. The method of any one of claims 1-3, wherein the cloud server comprises an FTP cloud server and an HTTP cloud server;
After detecting that the cloud server has the target upgrade file updated by the version, obtaining the target upgrade file includes:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
6. A dispatch server comprising a memory, a transceiver, and a processor;
a memory for storing a computer program;
a transceiver for transceiving data under control of the processor;
a processor for reading the computer program in the memory and performing the following operations:
detecting an upgrade file stored in the cloud server and used for upgrading the base station; if the size and/or the number of the upgrade files stored in the cloud server are different from those of the upgrade files stored in the scheduling server through synchronization, determining that a target upgrade file with version update exists in the cloud server; or if the storage time of the upgrade file in the cloud server is determined to be in the time range of the preset inspection period after the preset inspection time range is reached, determining that the cloud server has the target upgrade file with version update;
Acquiring the target upgrading file;
determining a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file;
distributing the target upgrade file to the execution equipment of the corresponding base station through the transceiver so that the execution equipment upgrades the base station according to the received target upgrade file;
the method specifically comprises the steps that when the processor determines a base station corresponding to the target upgrade file according to the configuration information of the target upgrade file, the method is used for:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
7. The scheduling server of claim 6, wherein if a plurality of target upgrade files are obtained, the processor is further configured to, prior to distributing the target upgrade files to corresponding execution devices corresponding to the base stations:
determining a target test environment corresponding to each target upgrade file according to a corresponding relation between preset configuration information and the test environment and configuration information corresponding to each target upgrade file;
Summarizing and obtaining a target upgrading file set corresponding to any target testing environment aiming at any target testing environment; the target upgrading file set comprises at least one target upgrading file corresponding to the target test environment;
and generating a corresponding relation between the target test environment and the target upgrade file set according to the target upgrade file set corresponding to each target test environment.
8. The scheduling server of claim 7, wherein the processor is specifically configured to:
determining base stations corresponding to the target upgrading file sets according to the generated corresponding relation between the target testing environment and the target upgrading file sets and the corresponding relation between the target testing environment and the base stations;
and distributing at least one target upgrade file contained in each target upgrade file set to the execution equipment of the corresponding base station through the transceiver.
9. The scheduling server according to any one of claims 6 to 8, wherein the processor is specifically configured to:
after the preset inspection time range is determined to be reached, an upgrade file stored in the cloud server and used for upgrading the base station is detected according to a preset inspection period.
10. The scheduling server according to any one of claims 6 to 8, wherein the cloud server comprises an FTP cloud server and an HTTP cloud server;
the processor is specifically configured to:
if the target upgrade file with the updated version in the FTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the FTP cloud server;
if the target upgrade file with version updated in the HTTP cloud server is detected, acquiring the target upgrade file by adopting a downloading mode corresponding to the HTTP cloud server;
and the downloading mode corresponding to the FTP cloud server is different from the downloading mode corresponding to the HTTP cloud server.
11. An upgrade file allocation apparatus, comprising:
the acquisition unit is used for detecting an upgrade file stored in the cloud server and used for upgrading the base station; if the size and/or the number of the upgrade files stored in the cloud server are different from those of the upgrade files stored in the scheduling server through synchronization, determining that a target upgrade file with version update exists in the cloud server; or if the storage time of the upgrade file in the cloud server is determined to be in the time range of the preset inspection period after the preset inspection time range is reached, determining that the cloud server has the target upgrade file with version update; acquiring the target upgrading file;
The determining unit is used for determining a base station corresponding to the target upgrading file according to the configuration information of the target upgrading file;
the distribution unit is used for distributing the target upgrading file to the execution equipment of the corresponding base station so that the execution equipment upgrades the base station according to the received target upgrading file;
the determining unit is specifically configured to, when determining, according to the configuration information of the target upgrade file, a base station corresponding to the target upgrade file:
determining a target test environment corresponding to the configuration information of the target upgrade file according to a corresponding relation between preset configuration information and the test environment;
and determining the base station corresponding to the target test environment as the base station corresponding to the target upgrade file.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for causing the computer to execute the method of any one of claims 1 to 5.
CN202011609156.1A 2020-12-30 2020-12-30 Upgrade file distribution method, scheduling server, device and storage medium Active CN114697310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011609156.1A CN114697310B (en) 2020-12-30 2020-12-30 Upgrade file distribution method, scheduling server, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011609156.1A CN114697310B (en) 2020-12-30 2020-12-30 Upgrade file distribution method, scheduling server, device and storage medium

Publications (2)

Publication Number Publication Date
CN114697310A CN114697310A (en) 2022-07-01
CN114697310B true CN114697310B (en) 2023-04-28

Family

ID=82132092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011609156.1A Active CN114697310B (en) 2020-12-30 2020-12-30 Upgrade file distribution method, scheduling server, device and storage medium

Country Status (1)

Country Link
CN (1) CN114697310B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164363A (en) * 2011-04-14 2011-08-24 新邮通信设备有限公司 Base station version updating realization method and base station
CN109743212A (en) * 2019-02-26 2019-05-10 京信通信系统(中国)有限公司 Realize method, apparatus, computer storage medium and the equipment of opening base station
CN111190628A (en) * 2019-12-31 2020-05-22 京信通信系统(中国)有限公司 Base station upgrading method, device, equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137417B (en) * 2011-02-18 2014-02-26 华为技术有限公司 Carrier frequency mutual assistance method, base station and wireless communication system
CN103546912A (en) * 2012-07-09 2014-01-29 中兴通讯股份有限公司 Method, device and system for upgrading version of base station
CN104053174B (en) * 2014-05-29 2018-03-27 大唐移动通信设备有限公司 Based on the adaptive method and device of FPGA Base Band Unit equipment RRU interface protocols
CN105373410B (en) * 2015-12-22 2019-04-30 京信通信系统(中国)有限公司 Base station software difference upgrade method and its device
CN107104839A (en) * 2017-05-19 2017-08-29 京信通信技术(广州)有限公司 Firmware upgrade method, device, server, Internet of things system and RF tag
CN109151850A (en) * 2017-06-19 2019-01-04 中兴通讯股份有限公司 Base station software upgrade method, device, base station and computer readable storage medium
CN109391497A (en) * 2017-08-10 2019-02-26 大唐移动通信设备有限公司 A kind of method, base station and the management station of version file upgrading
CN109388419B (en) * 2018-10-17 2022-02-18 阳光电源股份有限公司 Photovoltaic power station equipment software upgrading system, method and device
CN109558135A (en) * 2018-10-23 2019-04-02 京信通信系统(中国)有限公司 Base station software integration release management method and system
CN109561382B (en) * 2018-12-13 2021-11-12 京信网络系统股份有限公司 Home base station parameter self-configuration method, system, storage medium and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164363A (en) * 2011-04-14 2011-08-24 新邮通信设备有限公司 Base station version updating realization method and base station
CN109743212A (en) * 2019-02-26 2019-05-10 京信通信系统(中国)有限公司 Realize method, apparatus, computer storage medium and the equipment of opening base station
CN111190628A (en) * 2019-12-31 2020-05-22 京信通信系统(中国)有限公司 Base station upgrading method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LTE基站软件升级开发项目的进度管理研究.《中国优秀硕士学位论文全文数据库》.2017,全文. *
Remote incremental linking for energy-efficient reprogramming of sensor networks.《Google学术》.2005,全文. *
胡小玉 ; 刘国辉 ; .基于SST微控制器的MSAP系统在线升级方案的设计.电视技术.2013,(05),全文. *

Also Published As

Publication number Publication date
CN114697310A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
EP3069536B1 (en) Location-based software updates
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
CN104410665B (en) A kind of method for down loading and equipment upgrading bag
US20110191764A1 (en) Systems, methods, and apparatuses for facilitating distribution of firmware updates
EP2660761A1 (en) Timestamp management method for data synchronization and terminal therefor
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN109714757B (en) Method and device for preparing eSIM card in shared mode
CN110391938B (en) Method and apparatus for deploying services
US20220141119A1 (en) Calibrating network analyzer devices
CN112596768B (en) Updating method and device of equipment, storage medium and electronic device
CN109254914A (en) Software development kit test method, system, computer installation and readable storage medium storing program for executing
CN112130866A (en) Application deployment method and related device
CN112417255A (en) Method and device for receiving online state, storage medium and electronic device
CN105704296A (en) Application environment cloning method and device
CN108664799B (en) Permission setting method and device for equipment management application
CN113612824A (en) Calibration data management method, system, medium, and device
CN114697310B (en) Upgrade file distribution method, scheduling server, device and storage medium
US11288018B2 (en) Method and system for deploying a virtual distributed unit on a network device
CN106293814B (en) Upgrading method and device
CN107864488B (en) Method, device and system for automatically testing base station service
EP4145359A1 (en) Method and apparatus for transferring machine learning model parameter
CN110781878B (en) Target area determination method and device, storage medium and electronic device
CN108964989B (en) Method and device for connecting with service platform and computer readable storage medium
CN108628683B (en) Data transmission method and device
CN105812410A (en) Address book synchronizing method and system

Legal Events

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