CN114466387B - Updating method and device of configuration file of base station, storage medium and electronic device - Google Patents

Updating method and device of configuration file of base station, storage medium and electronic device Download PDF

Info

Publication number
CN114466387B
CN114466387B CN202210039297.7A CN202210039297A CN114466387B CN 114466387 B CN114466387 B CN 114466387B CN 202210039297 A CN202210039297 A CN 202210039297A CN 114466387 B CN114466387 B CN 114466387B
Authority
CN
China
Prior art keywords
file
parameter
target
initial configuration
updating
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
CN202210039297.7A
Other languages
Chinese (zh)
Other versions
CN114466387A (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.)
Sunwave Communications Co Ltd
Original Assignee
Sunwave Communications 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 Sunwave Communications Co Ltd filed Critical Sunwave Communications Co Ltd
Priority to CN202210039297.7A priority Critical patent/CN114466387B/en
Publication of CN114466387A publication Critical patent/CN114466387A/en
Application granted granted Critical
Publication of CN114466387B publication Critical patent/CN114466387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for updating a configuration file of a base station, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a data updating request, wherein the data updating request is used for requesting to update initial configuration parameters in an initial configuration file, and the initial configuration parameters are used for controlling the running state of a target base station; performing data updating operation on the first backup file according to the data updating request to obtain a second backup file carrying the target configuration parameters, wherein the first backup file is obtained by backing up the initial configuration file; the initial configuration file is replaced with a second backup file. The invention solves the problem of lower updating efficiency when updating the content in the configuration file in the related technology, thereby achieving the effect of improving the updating efficiency when updating the content in the configuration file.

Description

Updating method and device of configuration file of base station, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of data management, in particular to a method and a device for updating a configuration file of a base station, a storage medium and an electronic device.
Background
The configuration parameters of the pico-cell equipment are stored in text files of xml and other formatted tree structures, and if the configuration parameters are detected to be changed in the operation process of the pico-cell equipment. The content in the configuration file needs to be changed, the changed configuration parameters are written into the configuration file, the current common practice when the configuration parameters are changed is to rewrite the whole configuration file, and if power failure occurs in the process of rewriting, the configuration parameters are lost. This way of rewriting the entire configuration file is not only inefficient, but also is prone to losing data.
Aiming at the problem of low updating efficiency when updating the content in the configuration file in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for updating a configuration file of a base station, a storage medium and an electronic device, which are used for at least solving the problem that the updating efficiency is lower when the content in the configuration file is updated in the related technology.
According to an embodiment of the present invention, there is provided a method for updating a configuration file of a base station, including: acquiring a data updating request, wherein the data updating request is used for requesting to update initial configuration parameters in an initial configuration file, and the initial configuration parameters are used for controlling the running state of a target base station; performing data updating operation on a first backup file according to the data updating request to obtain a second backup file carrying target configuration parameters, wherein the first backup file is obtained by backing up the initial configuration file; and replacing the initial configuration file with the second backup file.
Optionally, executing the data update operation on the first backup file according to the data update request, and obtaining the second backup file carrying the target configuration parameter includes: determining an operation type and parameter information which are included in the data updating request and used for requesting to execute the data updating operation, wherein the operation type is used for indicating the operation condition executed on the initial configuration parameter; and updating the parameter information to the initial configuration parameters included in the first backup file according to the mode matched with the operation type to obtain the second backup file carrying the target configuration parameters.
Optionally, the updating the parameter information to the initial configuration parameter included in the first backup file in a manner matched with the operation type, and obtaining the second backup file carrying the target configuration parameter includes: determining whether a target parameter identifier exists in the initial configuration parameter under the condition that the operation type is a first updating operation type, wherein the first updating operation type is used for indicating to add the parameter information in the initial configuration parameter; creating the target parameter identification in the initial configuration parameters under the condition that the target parameter identification does not exist in the initial configuration parameters; setting the value of the target parameter identifier as a target parameter value to obtain the target configuration parameter, wherein the parameter information comprises the target parameter identifier and the target parameter value.
Optionally, the updating the parameter information to the initial configuration parameter included in the first backup file in a manner matched with the operation type, and obtaining the second backup file carrying the target configuration parameter includes: determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a second updating operation type, wherein the second updating operation type is used for indicating deletion of the parameter information in the initial configuration parameter, and the parameter information comprises the target parameter identifier; and deleting the target parameter identifier in the initial configuration parameters and the parameter value corresponding to the target parameter identifier to obtain the target configuration parameters.
Optionally, the updating the parameter information to the initial configuration parameter included in the first backup file in a manner matched with the operation type, and obtaining the second backup file carrying the target configuration parameter includes: determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a third updating operation type, wherein the third updating operation type is used for indicating to modify a parameter corresponding to the parameter information in the initial configuration parameter; and changing an initial parameter value of the target parameter identifier in the initial configuration parameters into a target parameter value to obtain the target configuration parameters, wherein the parameter information comprises the target parameter identifier and the target parameter value.
Optionally, the performing a data update operation on the first backup file according to the data update request includes: storing the data update request in a temporary change file; and under the condition that the data updating request in the temporary change file meets the target quantity condition, executing data updating operation on the first backup file according to the data updating request in the temporary change file.
Optionally, said replacing the initial configuration file with the second backup file includes: changing the file name of the initial configuration file from a first file name to a second file name; and changing the file name of the second backup file into the first file name.
According to still another embodiment of the present invention, there is also provided an apparatus for updating a configuration file of a base station, including: the system comprises an acquisition module, a data updating module and a control module, wherein the acquisition module is used for acquiring a data updating request, wherein the data updating request is used for requesting to update initial configuration parameters in an initial configuration file, and the initial configuration parameters are used for controlling the running state of a target base station; the processing module is used for executing data updating operation on the first backup file according to the data updating request to obtain a second backup file carrying the target configuration parameters, wherein the first backup file is obtained by backing up the initial configuration file; and the replacing module is used for replacing the initial configuration file with the second backup file.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, the data updating request is obtained, wherein the data updating request is used for requesting to update the initial configuration parameters in the initial configuration file, and the initial configuration parameters are used for controlling the running state of the target base station; performing data updating operation on the first backup file according to the data updating request to obtain a second backup file carrying the target configuration parameters, wherein the first backup file is obtained by backing up the initial configuration file; the initial configuration file is replaced by the second backup file, namely, when the data updating operation is required to be carried out on the initial configuration file, the data updating operation is carried out on the first backup file obtained by backing up the initial configuration file, so that the second backup file comprising updated target configuration parameters is obtained, and further, the data updating operation is carried out on the initial configuration file by replacing the initial configuration file by the second backup file, so that the rewriting of the initial configuration file is avoided, the problem of data loss caused by power failure in the rewriting process in the related art is avoided, the problem of lower updating efficiency in the updating of the content in the configuration file in the related art is solved, and the effect of improving the updating efficiency in the updating of the content in the configuration file is achieved.
Drawings
Fig. 1 is a block diagram of a mobile terminal hardware structure of a method for updating a configuration file of a base station according to an embodiment of the present invention;
fig. 2 is a flowchart of a method of updating a profile of a base station according to an embodiment of the present invention;
FIG. 3 is an alternative configuration parameter change flow diagram according to an embodiment of the present invention;
fig. 4 is a block diagram of a configuration file updating apparatus of a base station according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
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.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a mobile terminal hardware structure of a method for updating a configuration file of a base station according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for updating a configuration file of a base station in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for updating a configuration file of a base station is provided, and fig. 2 is a flowchart of a method for updating a configuration file of a base station according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, a data updating request is obtained, wherein the data updating request is used for requesting to update initial configuration parameters in an initial configuration file, and the initial configuration parameters are used for controlling the running state of a target base station;
step S204, performing data updating operation on a first backup file according to the data updating request to obtain a second backup file carrying a target configuration parameter, wherein the first backup file is obtained by backing up the initial configuration file;
step S206, replacing the initial configuration file with the second backup file.
Through the steps, when the data updating operation is required to be executed on the initial configuration file, the data updating operation is executed on the first backup file obtained by backing up the initial configuration file, so that the second backup file comprising the updated target configuration parameters is obtained, and the second backup file is used for replacing the initial configuration file, so that the data updating operation is executed on the initial configuration file, the rewriting of the initial configuration file is avoided, the problem of data loss caused by power failure in the rewriting process in the related art is avoided, the problem of lower updating efficiency in updating the content in the configuration file in the related art is solved, and the effect of improving the updating efficiency in updating the content in the configuration file is achieved.
In the technical solution provided in step S202, the initial configuration file is a text file stored in a target format, for example, a text file in a tree structure formatted by xml, json, ini, etc. The following is an example of a code of an optional initial configuration file according to the present embodiment:
the storage format of the initial configuration file is simple and easy to understand, a plurality of sub-nodes can be stored in one record through supporting a tree structure by a bracket, the usage situation of the base station configuration file is more met, the modification of the base station configuration file is generally that a plurality of nodes are added and deleted simultaneously, and one record in the scheme can directly correspond to one configuration change operation of the base station. The tree structure storage can save the storage space of the changed file, avoid repeatedly recording the same field and improve the efficiency of writing the file. The tree structure is the same as the xml file structure, so that the analysis of the change file and the writing of the xmlDoc object are easier.
In the technical solution provided in step S204, the data updating operation may include, but is not limited to, adding configuration parameters to the initial configuration file, deleting configuration parameters, modifying configuration parameters, and the like, which is not limited to this scheme.
In the technical solution provided in step S206, the replacement of the initial configuration file with the second backup file may be performed by directly deleting the initial configuration file in the memory of the target base station, or may be performed by modifying the naming of the second backup file, for example, both the initial configuration file and the second backup file are stored in the memory of the target base station, or may be performed by deleting the initial configuration file and retaining the second configuration file, so as to use the second backup file as the configuration file of the target base station, or may be performed by changing the naming of the initial configuration file from "target file" to "other file" and changing the file name of the second configuration file to "target file", so as to use the second backup file as the configuration file of the target base station.
As an optional implementation manner, the performing a data update operation on the first backup file according to the data update request, and obtaining the second backup file carrying the target configuration parameter includes:
determining an operation type and parameter information which are included in the data updating request and used for requesting to execute the data updating operation, wherein the operation type is used for indicating the operation condition executed on the initial configuration parameter;
and updating the parameter information to the initial configuration parameters included in the first backup file according to the mode matched with the operation type to obtain the second backup file carrying the target configuration parameters.
Optionally, in this embodiment, the data update request is an update request with a fixed format, and the data update request may include, but is not limited to, an operation name for performing an update operation, parameter information, and the like, where the following is an optional code example of a temporary change file according to this embodiment:
add:/Library/Book/{ Name = "trivial world", author/{ Name = "way remote", process = "composer" }
add:/Library/scope/{ Name = "small Ming", age = "12", test/Hello = "Hi" }
del:/Library/Book [ name= "sky red dust" ]
del:/Library/{ Book [ name= "sky curtain red dust" ], book [ name= "trivial world" ], people [ age= "12" ] }
set:/Library/Book [ name= "sky curtain red dust" ]/name= "trivial world
set:/Library/Book [ Name = "sky red dust" ]/Author/{ Name = "way remote", process = "composer" }
The temporary change file sequentially stores a plurality of data change requests received by a target base station according to the sequence, and the format of each change request is as follows: parameter information "," operation name "indicates the type of the operation, and there are three types of operation (including adding parameters, deleting parameters, modifying parameters, respectively indicated by keywords add, del, set),": "used to divide the operation name and parameter information," parameter information "is used to determine parameter identification and parameter values for adding, deleting, modifying parameters. In the above code, the forward slash "/" indicates a hierarchical relationship between nodes (configuration parameters), that is, the node on the left of the slash is the parent node on the right of the slash, the root node must include a forward slash on the left, and the forward slash cannot be included in the bracket. Brackets "[ ]" denote definitions for determining parent nodes between homonymous nodes based on the value of child nodes. The brackets "{ }" means that the node to the left of the brackets has a plurality of child nodes, and the child nodes in the brackets are separated by commas. The meaning of the equal sign "=" is that when the equal sign is in brackets, it means equal, and the other case means assignment, and the double quote means a value of which the part bracketed by the two double quotes is a node. If the value of a node contains a double quote, then an escape is required using "\" (e.g., "hello\" world "). The reverse slash is an escape character, and when the double-quotation mark contains the double quotation mark or the reverse slash, the reverse slash is needed to be added in front of the character for escaping.
In the code example of the temporary change file, the storage format of the temporary change file is simple and easy to understand, a tree structure is supported by brackets, one data change request can store a plurality of child nodes, the service scene of the pico-base station configuration file is more met, the pico-base station configuration file is modified by adding and deleting a plurality of nodes at the same time, and one data change request in the embodiment can directly correspond to one configuration change operation of the pico-base station. The tree structure storage can save the temporary change file storage space, avoid repeatedly recording the same fields and improve the file writing efficiency. The tree structure is the same as the xml file structure, so that the change file is easier to analyze and write in the configuration file.
As an optional implementation manner, the updating the parameter information to the initial configuration parameters included in the first backup file in a manner matched with the operation type, so as to obtain the second backup file carrying the target configuration parameters includes:
determining whether a target parameter identifier exists in the initial configuration parameter under the condition that the operation type is a first updating operation type, wherein the first updating operation type is used for indicating to add the parameter information in the initial configuration parameter;
creating the target parameter identification in the initial configuration parameters under the condition that the target parameter identification does not exist in the initial configuration parameters;
setting the value of the target parameter identifier as a target parameter value to obtain the target configuration parameter, wherein the parameter information comprises the target parameter identifier and the target parameter value.
Alternatively, in this embodiment, when the target parameter identifier exists in the initial configuration parameter, the target parameter value may be directly added to the position corresponding to the target parameter identifier in the initial configuration parameter.
Optionally, in this embodiment, one or more target parameter identifiers may be, but are not limited to, included in each data change request.
As an optional implementation manner, the updating the parameter information to the initial configuration parameters included in the first backup file in a manner matched with the operation type, so as to obtain the second backup file carrying the target configuration parameters includes:
determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a second updating operation type, wherein the second updating operation type is used for indicating deletion of the parameter information in the initial configuration parameter, and the parameter information comprises the target parameter identifier;
and deleting the target parameter identifier in the initial configuration parameters and the parameter value corresponding to the target parameter identifier to obtain the target configuration parameters.
Optionally, in this embodiment, when the operation type is the operation type corresponding to the delete operation, the parameter information may include only the target parameter identifier, and may also include the target parameter identifier and the target parameter value corresponding to the target parameter identifier.
As an optional implementation manner, the updating the parameter information to the initial configuration parameters included in the first backup file in a manner matched with the operation type, so as to obtain the second backup file carrying the target configuration parameters includes:
determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a third updating operation type, wherein the third updating operation type is used for indicating to modify a parameter corresponding to the parameter information in the initial configuration parameter;
and changing an initial parameter value of the target parameter identifier in the initial configuration parameters into a target parameter value to obtain the target configuration parameters, wherein the parameter information comprises the target parameter identifier and the target parameter value.
As an alternative embodiment, the performing the data update operation on the first backup file according to the data update request includes:
storing the data update request in a temporary change file;
and under the condition that the data updating request in the temporary change file meets the target quantity condition, executing data updating operation on the first backup file according to the data updating request in the temporary change file.
Alternatively, in this embodiment, the target number condition may be that the number of data change requests in the temporary change file reaches a certain value, or that the storage space occupied by the temporary change file reaches a certain value, which is not limited in this scheme.
As an alternative embodiment, said replacing said initial configuration file with said second backup file comprises:
changing the file name of the initial configuration file from a first file name to a second file name;
and changing the file name of the second backup file into the first file name.
Through the steps, the file names of the backup file and the initial configuration file are modified, so that the update configuration parameters are ensured to be file safety, and the problem of file loss during rewriting the configuration file in the related art is avoided.
FIG. 3 is an alternative configuration parameter change flow chart according to an embodiment of the present invention, as shown in FIG. 3, which may include, but is not limited to, the following steps:
s301, acquiring a data change request.
S302, the data change requests are sequentially stored in the temporary change file according to the time sequence, and the temporary change file is written in by adding data at the tail end of the file, so that the whole file does not need to be rewritten.
Step S303 is executed to detect whether the temporary change file reaches the upper storage limit, and if it is detected that the temporary change file reaches the upper storage limit, step S304 is executed to detect whether the temporary change file reaches the upper storage limit by detecting the number of data change requests in the temporary change folder, or whether the temporary change file reaches the upper storage limit by detecting the size of the storage space occupied by the change requests in the temporary change folder, if it is detected that the temporary change file does not reach the upper storage limit.
S304, when the temporary change file is detected to reach the upper storage limit, analyzing the data change request in the temporary change folder one by one.
S305, backing up the initial configuration file to obtain a first backup file, executing corresponding updating operation on the first backup file according to the analysis result of the data change request, wherein the updating operation comprises adding operation, deleting operation and changing operation (sequentially analyzing the data change request to obtain target parameter identifiers in parameter information when adding operation, detecting whether the target parameter identifiers exist in the first backup file, adding the target parameter identifiers in the first backup file when the target parameter identifiers do not exist in the first backup file, then setting the target parameter identifiers as the corresponding target parameter identifiers in the parameter information to obtain a second backup file, sequentially analyzing the target parameter identifiers in the data change request to obtain the target parameter identifiers in the parameter information when deleting operation, detecting whether the target parameter identifiers exist in the first backup file, deleting the target parameter identifiers in the first configuration file and the parameters corresponding to the target parameter identifiers to obtain a second backup file, sequentially analyzing the target parameter identifiers in the data change request to obtain the target parameter identifiers in the parameter information and the target parameters corresponding to the target parameter identifiers when changing operation, detecting the target parameter identifiers in the first backup file, and changing the corresponding parameter identifiers to obtain the second backup file.
S306, changing the file name of the initial configuration file from the first file name to the second file name.
S307, the file renaming of the second backup file is changed to the first file name.
S308, deleting the initial configuration file of the second file name.
S309, the data change request is continuously acquired.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
In this embodiment, there is further provided a device for updating a configuration file of a base station, and fig. 4 is a block diagram of a configuration file updating device of a base station according to an embodiment of the present invention, as shown in fig. 4, where the device includes:
an obtaining module 42, configured to obtain a data update request, where the data update request is used to request to update an initial configuration parameter in an initial configuration file, where the initial configuration parameter is used to control an operation state of a target base station;
the processing module 44 is configured to perform a data update operation on a first backup file according to the data update request, to obtain a second backup file carrying a target configuration parameter, where the first backup file is obtained by backing up the initial configuration file;
a replacing module 46, configured to replace the initial configuration file with the second backup file.
Optionally, the processing module includes: a determining unit, configured to determine an operation type and parameter information included in the data update request, where the operation type is used to indicate an operation condition performed on the initial configuration parameter; and the updating unit is used for updating the parameter information into the initial configuration parameters included in the first backup file according to the mode matched with the operation type to obtain the second backup file carrying the target configuration parameters.
Optionally, the updating unit is configured to: determining whether a target parameter identifier exists in the initial configuration parameter under the condition that the operation type is a first updating operation type, wherein the first updating operation type is used for indicating to add the parameter information in the initial configuration parameter; creating the target parameter identification in the initial configuration parameters under the condition that the target parameter identification does not exist in the initial configuration parameters; setting the value of the target parameter identifier as a target parameter value to obtain the target configuration parameter, wherein the parameter information comprises the target parameter identifier and the target parameter value.
Optionally, the updating unit is configured to: determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a second updating operation type, wherein the second updating operation type is used for indicating deletion of the parameter information in the initial configuration parameter, and the parameter information comprises the target parameter identifier; and deleting the target parameter identifier in the initial configuration parameters and the parameter value corresponding to the target parameter identifier to obtain the target configuration parameters.
Optionally, the updating unit is configured to: determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a third updating operation type, wherein the third updating operation type is used for indicating to modify a parameter corresponding to the parameter information in the initial configuration parameter; and changing an initial parameter value of the target parameter identifier in the initial configuration parameters into a target parameter value to obtain the target configuration parameters, wherein the parameter information comprises the target parameter identifier and the target parameter value.
Optionally, the processing module includes: the storage unit is used for storing the data updating request in a temporary change file; and the processing unit is used for executing data updating operation on the first backup file according to the data updating request in the temporary change file under the condition that the data updating request in the temporary change file meets the target quantity condition.
Optionally, the replacing module includes: a first changing unit, configured to change a file name of the initial configuration file from a first file name to a second file name; and the second changing unit is used for changing the file name of the second backup file into the first file name.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for updating a configuration file of a base station, comprising:
acquiring a data updating request, wherein the data updating request is used for requesting to update initial configuration parameters in an initial configuration file, and the initial configuration parameters are used for controlling the running state of a target base station;
performing data updating operation on a first backup file according to the data updating request to obtain a second backup file carrying target configuration parameters, wherein the first backup file is obtained by backing up the initial configuration file;
replacing the initial configuration file with the second backup file;
wherein, the executing the data update operation on the first backup file according to the data update request includes: storing the data update request in a temporary change file; executing data updating operation on the first backup file according to the data updating request in the temporary change file under the condition that the data updating request in the temporary change file meets the target quantity condition; the target quantity condition means that the storage space occupied by the temporary change file reaches a certain value, and the data update request in the temporary change file is analyzed one by one under the condition that the storage space occupied by the temporary change file reaches the certain value;
the temporary change file sequentially stores a plurality of data update requests received by a target base station according to the sequence, and the format of each data update request is an operation name: and parameter information, wherein the operation name represents the operation type of the operation, the parameter information represents the execution operation parameter identification and the parameter value, and when a plurality of parameter information needing to be modified in the same data updating request are provided, a hierarchical relationship exists among the plurality of parameter information.
2. The method of claim 1, wherein performing a data update operation on the first backup file according to the data update request to obtain a second backup file carrying the target configuration parameter comprises:
determining an operation type and parameter information which are included in the data updating request and used for requesting to execute the data updating operation, wherein the operation type is used for indicating the operation condition executed on the initial configuration parameter;
and updating the parameter information to the initial configuration parameters included in the first backup file according to the mode matched with the operation type to obtain the second backup file carrying the target configuration parameters.
3. The method of claim 2, wherein updating the parameter information into the initial configuration parameters included in the first backup file in a manner matching the operation type, to obtain the second backup file carrying the target configuration parameters includes:
determining whether a target parameter identifier exists in the initial configuration parameter under the condition that the operation type is a first updating operation type, wherein the first updating operation type is used for indicating to add the parameter information in the initial configuration parameter;
creating the target parameter identification in the initial configuration parameters under the condition that the target parameter identification does not exist in the initial configuration parameters;
setting the value of the target parameter identifier as a target parameter value to obtain the target configuration parameter, wherein the parameter information comprises the target parameter identifier and the target parameter value.
4. The method of claim 2, wherein updating the parameter information into the initial configuration parameters included in the first backup file in a manner matching the operation type, to obtain the second backup file carrying the target configuration parameters includes:
determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a second updating operation type, wherein the second updating operation type is used for indicating deletion of the parameter information in the initial configuration parameter, and the parameter information comprises the target parameter identifier;
and deleting the target parameter identifier in the initial configuration parameters and the parameter value corresponding to the target parameter identifier to obtain the target configuration parameters.
5. The method of claim 2, wherein updating the parameter information into the initial configuration parameters included in the first backup file in a manner matching the operation type, to obtain the second backup file carrying the target configuration parameters includes:
determining a target parameter identifier in the initial configuration parameter under the condition that the operation type is a third updating operation type, wherein the third updating operation type is used for indicating to modify a parameter corresponding to the parameter information in the initial configuration parameter;
and changing an initial parameter value of the target parameter identifier in the initial configuration parameters into a target parameter value to obtain the target configuration parameters, wherein the parameter information comprises the target parameter identifier and the target parameter value.
6. The method of claim 1, wherein the replacing the initial configuration file with the second backup file comprises:
changing the file name of the initial configuration file from a first file name to a second file name;
and changing the file name of the second backup file into the first file name.
7. An apparatus for updating a configuration file of a base station, comprising:
the system comprises an acquisition module, a data updating module and a control module, wherein the acquisition module is used for acquiring a data updating request, wherein the data updating request is used for requesting to update initial configuration parameters in an initial configuration file, and the initial configuration parameters are used for controlling the running state of a target base station;
the processing module is used for executing data updating operation on the first backup file according to the data updating request to obtain a second backup file carrying the target configuration parameters, wherein the first backup file is obtained by backing up the initial configuration file;
a replacing module, configured to replace the initial configuration file with the second backup file;
wherein the processing module comprises: the storage unit is used for storing the data updating request in a temporary change file; the temporary change file sequentially stores a plurality of data update requests received by a target base station according to a sequence, and the format of each data update request is an operation name: parameter information, wherein the operation name represents the operation type of the operation, the parameter information represents the execution operation parameter identification and the parameter value, and when a plurality of parameter information needing to be modified in the same data updating request are provided, a hierarchical relationship exists among the plurality of parameter information; the processing unit is used for executing data updating operation on the first backup file according to the data updating request in the temporary change file under the condition that the data updating request in the temporary change file meets the target quantity condition; the target number condition means that the storage space occupied by the temporary change file reaches a certain value, and the data update request in the temporary change file is analyzed one by one under the condition that the storage space occupied by the temporary change file reaches the certain value.
8. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 6.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 when the computer program is executed.
CN202210039297.7A 2022-01-13 2022-01-13 Updating method and device of configuration file of base station, storage medium and electronic device Active CN114466387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210039297.7A CN114466387B (en) 2022-01-13 2022-01-13 Updating method and device of configuration file of base station, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210039297.7A CN114466387B (en) 2022-01-13 2022-01-13 Updating method and device of configuration file of base station, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114466387A CN114466387A (en) 2022-05-10
CN114466387B true CN114466387B (en) 2024-04-09

Family

ID=81409365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210039297.7A Active CN114466387B (en) 2022-01-13 2022-01-13 Updating method and device of configuration file of base station, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114466387B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174383B (en) * 2022-05-30 2024-03-22 青岛海尔科技有限公司 Equipment updating method, storage medium and electronic device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552692A (en) * 2008-04-02 2009-10-07 大唐移动通信设备有限公司 Operating and maintenance system and parameter configuration method of network element device
CN101867941A (en) * 2010-06-10 2010-10-20 华为技术有限公司 Data processing method and network management equipment
CN102364894A (en) * 2011-10-21 2012-02-29 中兴通讯股份有限公司 Issuing method for configuration data file and network management equipment
CN102591909A (en) * 2011-01-14 2012-07-18 赛门铁克公司 Systems and methods for providing increased scalability in deduplication storage systems
JP2018033169A (en) * 2017-10-27 2018-03-01 株式会社Nttドコモ Radio base station, user terminal, and radio communication method
CN108733639A (en) * 2018-04-09 2018-11-02 中国平安人寿保险股份有限公司 A kind of configuration parameter regulation means, device, terminal device and storage medium
CN109413677A (en) * 2018-12-19 2019-03-01 京信通信系统(中国)有限公司 Cell parameter configuration method, device and base station, parameter management system
CN109614376A (en) * 2018-12-04 2019-04-12 郑州云海信息技术有限公司 The update method and NAS configuration node controller of NAS node profile
CN110489391A (en) * 2019-07-25 2019-11-22 深圳壹账通智能科技有限公司 A kind of data processing method and relevant device
CN112416456A (en) * 2020-11-18 2021-02-26 中国建设银行股份有限公司 Configuration file processing method, device, equipment, storage medium and system
CN112445519A (en) * 2020-12-03 2021-03-05 平安科技(深圳)有限公司 File change control method, device, equipment and storage medium
CN112788624A (en) * 2019-11-08 2021-05-11 大唐移动通信设备有限公司 User terminal measurement configuration method and device
CN113641419A (en) * 2021-07-30 2021-11-12 联想(北京)有限公司 File loading method and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5411064B2 (en) * 2010-05-27 2014-02-12 京セラ株式会社 Radio base station, radio communication system, and control method
US8874781B2 (en) * 2011-10-17 2014-10-28 Qualcomm Incorporated System and apparatus for power efficient delivery of social network updates to a receiver device in a broadcast network
US11520665B2 (en) * 2020-05-15 2022-12-06 EMC IP Holding Company LLC Optimizing incremental backup for clients in a dedupe cluster to provide faster backup windows with high dedupe and minimal overhead

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552692A (en) * 2008-04-02 2009-10-07 大唐移动通信设备有限公司 Operating and maintenance system and parameter configuration method of network element device
CN101867941A (en) * 2010-06-10 2010-10-20 华为技术有限公司 Data processing method and network management equipment
CN102591909A (en) * 2011-01-14 2012-07-18 赛门铁克公司 Systems and methods for providing increased scalability in deduplication storage systems
CN102364894A (en) * 2011-10-21 2012-02-29 中兴通讯股份有限公司 Issuing method for configuration data file and network management equipment
JP2018033169A (en) * 2017-10-27 2018-03-01 株式会社Nttドコモ Radio base station, user terminal, and radio communication method
CN108733639A (en) * 2018-04-09 2018-11-02 中国平安人寿保险股份有限公司 A kind of configuration parameter regulation means, device, terminal device and storage medium
CN109614376A (en) * 2018-12-04 2019-04-12 郑州云海信息技术有限公司 The update method and NAS configuration node controller of NAS node profile
CN109413677A (en) * 2018-12-19 2019-03-01 京信通信系统(中国)有限公司 Cell parameter configuration method, device and base station, parameter management system
CN110489391A (en) * 2019-07-25 2019-11-22 深圳壹账通智能科技有限公司 A kind of data processing method and relevant device
CN112788624A (en) * 2019-11-08 2021-05-11 大唐移动通信设备有限公司 User terminal measurement configuration method and device
CN112416456A (en) * 2020-11-18 2021-02-26 中国建设银行股份有限公司 Configuration file processing method, device, equipment, storage medium and system
CN112445519A (en) * 2020-12-03 2021-03-05 平安科技(深圳)有限公司 File change control method, device, equipment and storage medium
CN113641419A (en) * 2021-07-30 2021-11-12 联想(北京)有限公司 File loading method and computer readable storage medium

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
4G伪基站的监测定位与规避协同分析;张建奎;郭宝;张阳;;移动通信(13);全文 *
CATT, CMCC, Huawei, HiSilicon, MediaTek, Intel Corporation, Ericsson.R2-1813147 "Introduction of DEFLATE based UDC Solution".3GPP tsg_ran\wg2_rl2.2018,(tsgr2_103),全文. *
Huawei, HiSilicon.R2-1811547 "Remaining issues for NB-IoT except EDT".3GPP tsg_ran\wg2_rl2.2018,(tsgr2_103),全文. *
Huawei.R2-161760 "36.331 Running CR to capture agreements on NB-IoT".3GPP tsg_ran\WG2_RL2.2016,(TSGR2_93),全文. *
Qualcomm Incorporated, Huawei, HiSilicon.R2-1813091 "Introduction of EDT for eMTC and NB-IoT enhancements".3GPP tsg_ran\wg2_rl2.2018,(tsgr2_103),全文. *
基于BLS的动态云数据完整性验证方案;高歌;吴磊;阎允雪;;山东师范大学学报(自然科学版)(02);全文 *
大数据中心安全数据去重解决方案研究;郎为民;姚晋芳;褚开锋;吴培仁;;电信快报(11);全文 *

Also Published As

Publication number Publication date
CN114466387A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US8869111B2 (en) Method and system for generating test cases for a software application
CN107632827B (en) Method and device for generating installation package of application
CN106874281B (en) Method and device for realizing database read-write separation
WO2019095667A1 (en) Database data collection method, application server, and computer readable storage medium
CN108563440A (en) The automatic adding method of List Controller code, device and readable storage medium storing program for executing
CN110990048A (en) Method and system for monitoring resource loss of Unity project
CN108763042A (en) A kind of Cloud Server performance data acquisition method and device based on python
CN114466387B (en) Updating method and device of configuration file of base station, storage medium and electronic device
CN111737227A (en) Data modification method and system
CN111177243B (en) Data export method and device, storage medium and electronic device
CN110990356A (en) Real-time automatic capacity expansion method and system for logical mirror image
CN112988280B (en) Configuration data processing method and device
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN105550179A (en) Webpage collection method and browser plug-in
CN115878589A (en) Version management method and device of structured data and related equipment
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN104063377A (en) Information processing method and electronic equipment using same
CN110147381B (en) Information processing method, system and recording medium
CN110727565B (en) Network equipment platform information collection method and system
CN104753659B (en) A kind of method, apparatus and system of more network element data synchronization loads
CN110708355A (en) File uploading method, system, device and readable storage medium
CN116226082A (en) Database model generation method and device, storage medium and electronic equipment
CN108008984A (en) A kind of resource file downloading updating method and device
CN112817953A (en) Data verification method and device, computer equipment and computer-readable storage medium
CN108228226B (en) Hard link differential method and device and corresponding terminal

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