File processing method, device and system and electronic equipment

By obtaining and processing the configuration information of the measurement report MR, the collection and uploading process of the base station MR-OAM files is uniformly managed, which solves the problems of long development cycle, high cost and low efficiency in the existing technology, and improves the stability and reliability of the system. sex.

CN119031387APending Publication Date: 2024-11-26CHINA TELECOM INTELLIGENT NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411132812.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The lack of unified and standardized reference solutions in the prior art has resulted in the long development cycle, high cost, low efficiency, and insufficient reliability, affecting maintenance efficiency.

Method used

By obtaining the collection configuration information and uploading configuration information of the measurement report MR, sending query instructions to the MR proxy module and receiving response messages, collecting and uploading MR files based on the configuration information, standardizing the communication protocol between the MR management module and the MR proxy module, and unifying the Manage the collection and uploading of MR files.

Benefits of technology

It realizes standardized management of base stations, improves the stability and reliability of the system, reduces the problem of low MR-OAM management efficiency, and simplifies the development and maintenance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031387A_ABST
    Figure CN119031387A_ABST
Patent Text Reader

Abstract

The invention discloses a file processing method, device and system and electronic equipment. The method comprises the following steps: acquiring collection configuration information and uploading configuration information of a measurement report (MR); sending a first query instruction and a second query instruction to the MR agent module, and receiving a first response message and a second response message returned by the MR agent module; under the condition that the first response message indicates that the MR management module is allowed to perform MR collection operation, collecting a first target MR according to the collection configuration information; and under the condition that the second response message indicates that the MR management module is allowed to perform MR uploading operation, uploading the second target MR to the file server according to the uploading configuration information. The technical problem that the MR-OAM management efficiency is low due to the fact that a unified and normative reference scheme is lacked in the design of the MR-OAM management software of the base station in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular, to a file processing method, device, system and electronic device. Background Art

[0002] With the rapid development of 5G technology, the deployment of 5G base station equipment is also expanding, meeting people's higher requirements for the network in production and life. With the large-scale deployment of 5G base stations, the management of 5G base station MR (Measurement Report)-OAM has become a very important task for both R&D manufacturers and customers.

[0003] Measurement is an important function of mobile communication systems. The system needs to use measurement results to trigger events such as cell selection / reselection and handover. At the same time, statistical analysis of a large amount of measurement data can also be used to discover network problems. The generation of measurements and reports is usually completed by the radio resource control layer of the base station protocol stack, and the collection, storage, and upload of MRs are managed by the base station OAM application software system.

[0004] In the related technologies, there is no unified, standardized, and efficient development method for reference in the industry for the design and development of MR-OAM management software systems. When developing MR-OAM management software systems, each manufacturer needs to spend a lot of manpower, material resources, and time to design and implement them. The development cycle of MR-OAM management software is long, the cost is high, and the development efficiency is low, which leads to the problem of low management efficiency of MR-OAM. At the same time, the non-standard development method will also lead to the reliability of the MR-OAM management software system not being guaranteed, which will cause trouble to the maintenance personnel and reduce the maintenance efficiency of the management software system.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present application provide a file processing method, device, system and electronic device to at least solve the technical problem of low MR-OAM management efficiency caused by the lack of a unified and standardized reference solution in the design of base station MR-OAM management software in the related technology.

[0007] According to one aspect of an embodiment of the present application, a file processing method is provided, including: obtaining collection configuration information and upload configuration information of a measurement report MR, wherein the collection configuration information is used to provide configuration for a data collection process of the MR, and the upload configuration information is used to provide configuration for a data upload process of the MR; sending a first query instruction and a second query instruction to an MR proxy module, and receiving a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; when the first response message indicates that the MR management module is allowed to perform an MR collection operation, collecting a first target MR according to the collection configuration information, wherein the first target MR is all MR files that meet the collection configuration information; when the second response message indicates that the MR management module is allowed to perform an MR upload operation, uploading a second target MR to a file server according to the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information.

[0008] Optionally, collecting the first target MR based on the collection configuration information includes: sending the collection configuration information to the MR proxy module, wherein the collection configuration information includes at least one of the following: the start collection time, the end collection time and the collection parameters of the MR; when the start collection time is reached, sending a start collection instruction to the MR proxy module, and receiving a third response message returned by the MR proxy module, wherein the third response message is used to indicate that the MR proxy module starts collecting MR files; when the end collection time is reached, sending an end collection instruction to the MR proxy module, and receiving the first target MR collected by the MR proxy module through the MR collection module within the start collection time and the end collection time.

[0009] Optionally, the method also includes: determining an agreed value of a single instruction of the MR management module when performing a collection operation, wherein the single instruction includes at least one of the following: a first query instruction, a second query instruction, a start collection instruction, and an end collection instruction, and the agreed value is used to standardize the communication protocol between the MR management module and the MR agent module; and determining a message body corresponding to the collection parameters, wherein the message body is used to define the conditions and behaviors of the MR management module when performing a collection operation.

[0010] Optionally, uploading the second target MR to the file server according to the upload configuration information includes: storing the first target MR to the random access memory RAM, and sorting all MR files in the RAM in chronological order to obtain a first MR sequence; uploading the MR files in the first MR sequence to the file server in sequence according to the upload configuration information.

[0011] Optionally, the method further includes: receiving a reset message generated by the database management module, wherein the reset message is used to indicate that the system is about to be in an abnormal state; and storing all MR files in RAM to a flash memory flash.

[0012] Optionally, storing the first target MR in a random access memory RAM includes: determining a first total memory that can store MR files in RAM, and determining a second total memory that can store MR files in flash; determining a first file amount used by RAM, and determining a second file amount of the first target MR; determining a third file amount based on the first file amount and the second file amount, and storing the first target MR in RAM if the third file amount is less than or equal to the first total memory.

[0013] Optionally, storing all MR files in RAM to the flash memory flash includes: determining a fourth file amount used by the flash; and storing all MR files in RAM to the flash when the sum of the third file amount and the fourth file amount is less than or equal to the second total memory.

[0014] According to another aspect of an embodiment of the present application, a file processing method is also provided, including: receiving a first query instruction and a second query instruction sent by an MR management module, and returning a first response message and a second response message to the MR management module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; when the first response message indicates that the MR management module is allowed to perform an MR collection operation, receiving collection configuration information sent by the MR management module, and determining a first target MR based on the collection configuration information, wherein the collection configuration information is used to provide configuration for the MR data collection process, and the first target MR is all MR files that meet the collection configuration information; sending the first target MR to the MR management module.

[0015] According to another aspect of an embodiment of the present application, a file processing system is further provided, including a database management module, an MR management module, an MR proxy module, an MR collection module and an MR upload module, wherein the database management module is used to send collection configuration information and upload configuration information to the MR management module, wherein the collection configuration information is used to provide configuration for a data collection process of a measurement report MR, and the upload configuration information is used to provide configuration for a data upload process of the MR; the MR management module is used to receive the collection configuration information and upload configuration information sent by the database management module; send a first query instruction and a second query instruction to the MR proxy module, and receive a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform a collection operation The management module performs an upload operation; when the first response message indicates that the MR management module is allowed to perform the MR collection operation, the first target MR is collected according to the collection configuration information, wherein the first target MR is all MR files that meet the collection configuration information; when the second response message indicates that the MR management module is allowed to perform the MR upload operation, the second target MR is uploaded to the file server according to the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information; an MR proxy module is used to receive the first query instruction and the second query instruction sent by the MR management module, and return the first response message and the second response message to the MR management module; when the first response message indicates that the MR management module is allowed to perform the MR collection operation, the collection configuration information sent by the MR management module is received, and the first target MR is determined according to the collection configuration information; the first target MR is sent to the MR management module; an MR collection module is used to collect the first target MR; and an MR upload module is used to upload the second target MR.

[0016] According to another aspect of the embodiment of the present application, a file processing device is further provided, including: an acquisition module, used to acquire collection configuration information and upload configuration information of a measurement report MR, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the upload configuration information is used to provide configuration for the data upload process of the MR; a first sending module, used to send a first query instruction and a second query instruction to the MR proxy module, and receive a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; the collection module, used to collect a first target MR according to the collection configuration information when the first response message indicates that the MR management module is allowed to perform an MR collection operation, wherein the first target MR is all MR files that meet the collection configuration information; and the upload module, used to upload a second target MR to a file server according to the upload configuration information when the second response message indicates that the MR management module is allowed to perform an MR upload operation, wherein the second target MR is all MR files that meet the upload configuration information.

[0017] According to another aspect of the embodiment of the present application, a file processing device is also provided, including: a receiving module, used to receive a first query instruction and a second query instruction sent by an MR management module, and return a first response message and a second response message to the MR management module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; a determination module, used to receive collection configuration information sent by the MR management module when the first response message indicates that the MR management module is allowed to perform an MR collection operation, and determine a first target MR based on the collection configuration information, wherein the collection configuration information is used to provide configuration for the MR data collection process, and the first target MR is all MR files that meet the collection configuration information; a second sending module, used to send the first target MR to the MR management module.

[0018] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the processing method for implementing the above-mentioned file.

[0019] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned file processing method by running the computer program.

[0020] According to another aspect of the embodiments of the present application, a computer program product is provided, including computer instructions, which implement the above-mentioned file processing method when executed by a processor.

[0021] In an embodiment of the present application, by acquiring the collection configuration information and the upload configuration information of the measurement report MR, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the upload configuration information is used to provide configuration for the data upload process of the MR; sending a first query instruction and a second query instruction to the MR proxy module, and receiving a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; in the case where the first response message indicates that the MR management module is allowed to perform the MR collection operation , collect the first target MR based on the collection configuration information, wherein the first target MR is all MR files that meet the collection configuration information; when the second response message indicates that the MR management module is allowed to perform the MR upload operation, upload the second target MR to the file server based on the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information, and achieve the purpose of unified management of the collection process and the upload process of the MR file based on the collection configuration information and the upload configuration information set by the OAM database, thereby realizing the standardized management of the base station, and at the same time improving the technical effect of the stability and reliability of the system, thereby solving the technical problem of low MR-OAM management efficiency caused by the lack of a unified and standardized reference solution in the design of the base station MR-OAM management software of the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0023] Figure 1 is a hardware structure diagram of a computer terminal for implementing a file processing method according to an embodiment of the present application;

[0024] Figure 2 is a flowchart of a method for processing a file according to an embodiment of the present application;

[0025] Figure 3 is a schematic diagram of a file processing flow according to an embodiment of the present application;

[0026] Figure 4 is a schematic diagram of a multi-module structure according to an embodiment of the present application;

[0027] Figure 5 is a schematic diagram of interaction between an OAM database management module, an MR management module and an MR proxy module according to an embodiment of the present application;

[0028] Figure 6 is a schematic diagram of interaction between an MR proxy module and an MR collection module according to an embodiment of the present application;

[0029] Figure 7 is a schematic diagram of an MR file upload process according to an embodiment of the present application;

[0030] Figure 8 is a schematic diagram of a file storage process after restart according to an embodiment of the present application;

[0031] Fig. 9 is a flowchart of another file processing method according to an embodiment of the present application;

[0032] Fig.10 is a structural diagram of a file processing device according to an embodiment of the present application;

[0033] Fig.11 It is a structural diagram of another file processing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] First, some nouns or terms that appear in the process of explaining the embodiments of the present application are subject to the following explanations:

[0037] OAM (Operations, Administration and Maintenance): A specialty in base station protocol stack software, mainly responsible for the operation, maintenance and management of base station protocol stack.

[0038] MR (Measurement Report): The base station measurement report data mainly comes from the client and base station, as well as the measurement statistics calculated during the radio resource management process.

[0039] In order to solve the problem of poor file management efficiency in the related art, the present application embodiment provides a file processing method applied to the MR management module side and a file processing method applied to the MR proxy module side. The file processing method applied to the MR management module side and the file processing method applied to the MR proxy module side can both be run on Figure 1 In the computer terminal shown, the computer terminal is described below by taking the file processing method on the MR management module side as an example.

[0040] The file processing method embodiment provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a file processing method. Figure 1As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions connected via a wired and / or wireless network. In addition, it may also include: a display, a keyboard, a cursor control device, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, and a BUS bus. Those skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0041] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0042] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the file processing method in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned file processing method. The memory 104 may include a high-speed random access memory, and may also include a 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 a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0043] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0044] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0045] It should be noted that, in some optional embodiments, the above Figure 1 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.

[0046] In the above-mentioned operating environment, an embodiment of the present application provides an embodiment of a file processing method. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0047] Figure 2 is a flowchart of a method for processing a file according to an embodiment of the present application, such as Figure 2 As shown, the method is applied to the MR management module and includes the following steps:

[0048] Step S202, obtaining collection configuration information and upload configuration information of the measurement report MR, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the upload configuration information is used to provide configuration for the data upload process of the MR.

[0049] In the above step S202, the MR management module can obtain necessary configuration information from the (OAM-MR) database management module, such as the above-mentioned collection configuration information and upload configuration information. The collection configuration information and upload configuration information define the specific parameters and conditions of the MR file during the collection and upload process, and are used to provide configuration for the MR data collection and upload process.

[0050] Furthermore, in order to achieve more refined data processing and file management, it can be associated with the corresponding information in the collection configuration information and the upload configuration information. For example:

[0051] In the collection configuration information, specific tags or attributes can be defined to identify the classification of MR files, such as collection methods (such as periodic collection, time-triggered collection), collection cycles (such as MR files collected within a specific time period), data types (such as MRO, MER, MRS), etc., where MRO represents periodic measurement report sample data files, excluding event-triggered sample data; MRE represents event-triggered measurement report sample data; MRS represents measurement report statistical data files, which only counts sample data in the MRO file, and does not include event-triggered measurement report sample data.

[0052] The upload configuration information may include an upload strategy corresponding to the classification in the collection configuration information, such as specifying a certain type of data to be uploaded to a specific server, stored in a specific storage area, or adopting a specific upload strategy (such as encrypted upload, compressed upload, sequential upload), etc. Subsequently, after collecting the MR files, the MR management module matches the upload strategy in the upload configuration information according to the classification or attribute label in the collection configuration information, and determines the upload target and method of each type of data; based on the matching results, the MR management module can dynamically determine the best upload path and method for each MR file, such as uploading high-priority MR files to a high-speed server in real time, and uploading low-priority MR files in batches during non-peak hours, etc. Therefore, while the MR management module performs the upload task according to the upload configuration message, it can also adjust the upload strategy in real time according to the specific information in the collection configuration information, so that the collected MR files can be correctly processed and stored according to the established corresponding relationship, thereby reducing the complexity of data management and improving the flexibility and adaptability of the system.

[0053] Step S204, sending a first query instruction and a second query instruction to the MR proxy module, and receiving a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation.

[0054] In the above step S204, the first query instruction and the second query instruction are sent from the MR management module to the MR proxy module, wherein the first query instruction is used to query whether the MR management module has the conditions for data collection, such as whether resources are available, whether permissions are satisfied, etc.; the second query instruction is used to query whether the MR management module has the conditions for data upload, such as network connection status, whether storage space is sufficient, etc. The first response message and the second response message are sent from the MR proxy module to the MR management module, wherein the first response message is used for the MR proxy module to indicate whether the MR management module is allowed to perform a collection operation according to the current state, for example, if the MR management module is allowed to perform a collection operation, 1 is returned, and if the MR management module is not allowed to perform a collection operation, 0 is returned; the second response message is used for the MR proxy module to indicate whether the MR management module is allowed to perform an upload operation according to the current state, for example, 1 is returned if the MR management module is allowed to perform an upload operation, and 0 is returned if the MR management module is not allowed to perform an upload operation.

[0055] Step S206 , when the first response message indicates that the MR management module is allowed to perform the MR collection operation, first target MRs are collected according to the collection configuration information, wherein the first target MRs are all MR files that meet the collection configuration information.

[0056] In the above step S206, if the first response message indicates that the MR management module is allowed to perform the MR collection operation, the MR management module sends the above collection configuration information to the MR proxy module, and the MR proxy module controls the MR collection module (for example, the wireless resource control layer) to collect data within the specified time period, thereby obtaining the first target MR that meets the collection configuration information.

[0057] Step S208: when the second response message indicates that the MR management module is allowed to perform the MR upload operation, the second target MR is uploaded to the file server according to the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information.

[0058] In the above step S208, if the second response message indicates that the MR management module is allowed to perform the MR upload operation, the MR management module starts the data upload operation according to the above upload configuration information, for example, uploading the collected first target file or the MR file contained in the RAM itself or the MR file contained in the flash to the designated file server.

[0059] Through the above steps S202 to S208, the purpose of collecting configuration information and uploading configuration information based on the OAM database settings, and uniformly managing the collection process and upload process of MR files is achieved, thereby realizing standardized management of base stations, while improving the technical effect of system stability and reliability, and further solving the technical problem of low MR-OAM management efficiency caused by the lack of a unified and standardized reference solution in the design of base station MR-OAM management software in related technologies.

[0060] Figure 3 FIG. 1 is a schematic diagram of a file processing flow according to an embodiment of the present application. Figure 3 As shown, after the system starts, first create the MR file storage directory under ram and flash, and set the size, that is, define the total memory that can store MR files in ram and flash. For example: in terms of MR file storage directory planning, the collected MR files (such as the first target MR mentioned above) can be stored in the / ram / oam / mr / upload / directory. Before restarting, the MR management module copies the MR files stored in the / ram / oam / mr / upload / directory to the / flash / oam / mr / upload / directory to prevent MR file loss. It should be noted that if the above directory does not exist when leaving the factory or powering on, the MR management module will create it and allocate the directory space size. Each manufacturer can also plan the above directory according to actual needs.

[0061] Secondly, the MR collection and MR file upload threads are started through the MR management module to start the MR file collection and upload work under the normal operation of the base station. Before each collection, the collection configuration information will be obtained from the OAM database management module, and when the collection configuration information changes, the configuration information needs to be resent to the MR proxy module. Finally, when the system detects that the base station device is about to restart, it will complete the collection of MR files once before the restart, and store the MR files stored in RAM to flash to prevent MR file loss.

[0062] The following combination Figure 3 The overall process in the above steps S202 to S208 is described in detail.

[0063] In the embodiment of the present application, the file processing method mainly involves the following modules: OAM database management module, MR management module, MR proxy module, MR upload module and MR collection module. The functional structure of each module is as follows: Figure 4 The details are as follows:

[0064] OAM database management module: used to send the MR collection configuration information and upload configuration information set by the system to the MR management module.

[0065] OAM-MR management side: mainly includes MR management module and MR proxy module, wherein the MR management module is used to interact with the MR proxy module (such as sending the first query instruction and the second query instruction to the MR proxy module to query whether the collection operation and the upload operation can be performed), and the MR collection module performs the MR file collection task within a preset period (such as the start collection time and the end collection time) according to the collection configuration information; the MR management module is also used to perform the MR file upload task with the MR upload module, and send the MR file upload result to the MR upload module. The MR proxy module is used to interact with the MR management module (such as returning the first response message and the second response message to the MR management module to indicate whether the MR proxy module can perform the collection operation and the upload operation), and receive the sent collection configuration information, so as to control the wireless resource control layer in the MR collection module to collect MR files within a preset period. It should be noted that both the MR management module and the MR proxy module support distributed interaction, that is, one MR management module can interact with multiple MR proxy modules at the same time. The MR management module can be designed as a platform, and there is no need to change the module when the project changes. The MR proxy module is responsible for external interaction. When the project changes, only a few changes need to be made to the MR management proxy module, thereby improving the maintainability of the base station MR-OAM management software.

[0066] MR collection module: mainly includes a wireless resource control layer, which is used to collect MR files within a preset period and display the MR file collection operation process.

[0067] MR upload module: used to perform MR upload tasks and display the MR upload operation progress. At the same time, the MR upload module is also responsible for receiving each MR file upload result and performing corresponding operations based on the upload result. If the upload fails, it will generate an MR file upload failure alarm message and print the upload failure log information.

[0068] Optionally, collecting the first target MR based on the collection configuration information includes: sending the collection configuration information to the MR proxy module, wherein the collection configuration information includes at least one of the following: the start collection time, the end collection time and the collection parameters of the MR; when the start collection time is reached, sending a start collection instruction to the MR proxy module, and receiving a third response message returned by the MR proxy module, wherein the third response message is used to indicate that the MR proxy module starts collecting MR files; when the end collection time is reached, sending an end collection instruction to the MR proxy module, and receiving the first target MR collected by the MR proxy module through the MR collection module within the start collection time and the end collection time.

[0069] In the embodiment of the present application, the interaction between the OAM database management module, the MR management module and the MR proxy module is as follows: Figure 5 shown.

[0070] For the MR collection process: first, the MR management module receives or reads the collection configuration information sent by the OAM database management module; sends a first query instruction to the MR proxy module to query whether the collection operation can be performed; when the first response message returned by the MR proxy module is 1, it indicates that the MR management module can perform the collection operation, and then continues to send the collection configuration information to the MR proxy module, wherein the configuration information may include the start collection time, the end collection time and the collection parameters of the MR; when the response message returned by the MR proxy module is 1, it indicates that the MR proxy module is ready to receive instructions to start MR file collection; at this time, the MR management module is in a waiting state, and when the start collection time is reached, the start collection instruction is sent to the MR proxy module; when the third response message returned by the MR proxy module is 1, it indicates that the MR management module has started to collect MR files; at this time, the MR management module is still in a waiting state, and when the end collection time is reached, the end collection instruction is sent to the MR proxy module, thereby controlling the MR proxy module to end the collection of MR files; then, the MR management module receives the compressed package of all MR files collected by the MR proxy module within the start collection time and the end collection time, and obtains the above-mentioned first target MR.

[0071] For the MR collection process: first, the MR management module receives or reads the upload configuration information sent by the OAM database management module; sends a second query instruction to the MR proxy module to query whether the upload operation can be performed; when the second response message returned by the MR proxy module is 1, it means that the MR management module can perform the upload operation, and then the MR files in RAM are uploaded one by one.

[0072] Furthermore, the interaction between the MR proxy module and the MR collection module is as follows Figure 6 As shown, it is a schematic diagram of the process of the MR proxy module controlling the radio resource control layer to collect MR files. The details are as follows:

[0073] First, the MR proxy module sends the collection configuration information to the wireless resource control layer in the MR collection module; when the response message returned by the wireless resource control layer is 1, it indicates that the wireless resource control layer can perform the MR collection task. Subsequently, the MR proxy module sends a start collection instruction to the wireless resource control layer to control the wireless resource control layer to collect MR files; after a preset cycle, the MR proxy module sends an end collection instruction to the wireless resource control layer to control the wireless resource control layer to end the collection. Finally, the MR proxy module receives the MR file prepared by the wireless resource control layer, compresses the MR file and sends it to the MR management module.

[0074] Optionally, the method also includes: determining an agreed value of a single instruction of the MR management module when performing a collection operation, wherein the single instruction includes at least one of the following: a first query instruction, a second query instruction, a start collection instruction, and an end collection instruction, and the agreed value is used to standardize the communication protocol between the MR management module and the MR agent module; and determining a message body corresponding to the collection parameters, wherein the message body is used to define the conditions and behaviors of the MR management module when performing a collection operation.

[0075] In the embodiment of the present application, the communication process between modules can be simplified by using a single instruction (such as a first query instruction, a second query instruction, a start collection instruction, and an end collection instruction, etc.). Furthermore, by converting a single instruction into a specific agreed value, the communication protocol between modules can be standardized to reduce system ambiguity and errors. For example: the first query instruction is digitized as 8180 to query whether a collection operation can be performed; the second query instruction is digitized as 8181 to query whether an upload operation can be performed; the above-mentioned start collection instruction is digitized as 8182 to indicate the start collection time; the end collection instruction is digitized as 8183 to indicate the end collection time.

[0076] At the same time, the relevant parameters in the collected configuration information and uploaded configuration information can also be encapsulated. The details are as follows:

[0077] 1. The key parameters contained in the message body corresponding to the collection parameters in the collection configuration information are as follows:

[0078] MrEnable: MR collection switch, bool data type, 1 means MR collection is allowed, 0 means MR collection is prohibited, and the MR management module determines whether to perform MR collection based on this value;

[0079] SamplePeriod: MR sampling period, integer data, unit ms, indicating how often the radio resource control layer collects MR data;

[0080] StatisPeriod: MR collection period, integer data, unit min, indicating how often MR files are collected and uploaded. The MR management module periodically sends MR collection control information to the MR management agent module based on the StartTime below and this value;

[0081] MrFileEn: MR file upload enable, character data, the rightmost 3 bits represent: MRE, MRS, MRO, and the bit is 1 to report the file, for example: binary 011 means MRO is not transmitted, MRS and MRE are uploaded;

[0082] StartTime: MR collection start time, time_t type data, format hh:mm:ss, indicating that MR collection starts from this time every day, and MR files are collected and uploaded every StatisPeriod period. If this time is the current time or a time before the current time, MR collection starts immediately, and MR files are collected and uploaded every StatisPeriod period from the current time. This is configurable. If not configured, the default value is the current time.

[0083] Prb00_31NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 0th PRB, and the rightmost bit represents the 31st PRB. It can be used for both 4G and 5G.

[0084] Prb32_63NumBitMap: 32-bit integer data, each bit represents a PRB. If this bit is 1, it means that the PRB is measured. The leftmost bit represents the 32nd PRB, and the rightmost bit represents the 63rd PRB. It can be used for both 4G and 5G.

[0085] Prb64_95NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 64th PRB, and the rightmost bit represents the 95th PRB. It can be used for both 4G and 5G.

[0086] Prb96_127NumBitMap: 32-bit integer data, each bit represents a PRB. If this bit is 1, it means that the PRB is measured. The leftmost bit represents the 96th PRB, and the rightmost bit represents the 127th PRB. Since 4G has 100 PRBs and 5G has 273 PRBs, 4G only uses the leftmost 4 bits, while 5G uses the full value.

[0087] Prb128_159NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 128th PRB, and the rightmost bit represents the 159th PRB. It is only used in 5G.

[0088] Prb160_191NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 160th PRB, and the rightmost bit represents the 191st PRB. It is only used in 5G.

[0089] Prb192_223NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 192nd PRB, and the rightmost bit represents the 223rd PRB. It is only used in 5G.

[0090] Prb224_255NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 224th PRB, and the rightmost bit represents the 255th PRB. It is only used in 5G.

[0091] Prb256_272NumBitMap: 32-bit integer data, each bit represents a PRB. When this bit is 1, it means that the PRB is measured. The leftmost bit represents the 256th PRB, and the 17th bit from the left represents the 272nd PRB. It is only used in 5G.

[0092] SubFrameBitMap: 16-bit integer data, indicating the customized reporting subframe. The leftmost 10 bits are used to indicate the uplink subframe. Setting 1 indicates that the measurement value of the subframe is displayed, and setting 0 indicates that it is not displayed. For example, 0x8080 indicates that subframes 0 and 9 are to be displayed, that is, from left to right, subframes 0 to 9 are indicated.

[0093] Omcr: string type data, indicating the manufacturer name.

[0094] 2. The key parameters contained in the message body corresponding to the upload parameters in the upload configuration information are as follows:

[0095] MrUploadEn: MR upload switch, bool data type, 1 means MR upload is allowed, 0 means MR upload is prohibited, and the MR management module determines whether to upload MR files based on this value;

[0096] TransferURL: indicates the address of uploading MR files to the server. The data type is a string, which is consistent with TransferURL in 2.1.

[0097] User: the login name of MR uploaded to the server, string type;

[0098] Password: The login password for MR to upload to the server, string type.

[0099] Optionally, uploading the second target MR to the file server according to the upload configuration information includes: storing the first target MR to the random access memory RAM, and sorting all MR files in the RAM in chronological order to obtain a first MR sequence; uploading the MR files in the first MR sequence to the file server in sequence according to the upload configuration information.

[0100] In an embodiment of the present application, the MR management module usually stores the collected first target MR file in RAM, modifies the name of the MR file compression package, adds a serial number to the name, obtains the first MR sequence to indicate the order of MR file collection, and finally adds it to the upload list. At this point, a cycle of MR collection work is completed.

[0101] The specific upload process is as follows: Figure 7 As shown, after the MR upload activity is started, first determine whether the MR management module allows the upload operation, and wait for the upload message. If allowed, all MR files that meet the specifications in flash and RAM (including the first target MR) are added to the upload list. Subsequently, the MR upload configuration information is obtained from the OAM database management module, and the MR management module is queried whether the upload operation can be performed. If the response result indicates that the MR module can perform the upload operation, the upload task is started; if the response result indicates that the MR module cannot perform the upload operation, the upload configuration information is re-acquired after the MR upload configuration information is changed. Before starting to upload, first determine whether the system is about to restart and whether the upload list is empty. If there is no imminent restart and the upload list is not empty, MR files are obtained from the upload list in turn for upload. If a file fails to be uploaded N times in a row (the N value can be determined according to the actual situation, such as N = 3), it is considered that the MR file upload fails, and the upload result is sent to the upload result processing process in the MR upload module for processing, such as generating an alarm, printing log information, etc. If the upload is successful, the upload result is also sent to the upload result processing process for recording, and then the file in the flash or RAM and the upload list is cleared. At this point, the MR file upload activity ends and enters the next MR file upload activity.

[0102] Optionally, the method further includes: receiving a reset message generated by the database management module, wherein the reset message is used to indicate that the system is about to be in an abnormal state; and storing all MR files in RAM to a flash memory flash.

[0103] In the embodiment of the present application, the file storage process before and after restart is as follows: Figure 8As shown. When the system detects a reset message (such as a restart message), the MR management software will collect the last MR file before the restart, and then store the SMR file in RAM to flash to prevent loss after the restart. After the MR management software system restarts, the MR files in RAM and flash are added to the upload list and uploaded in sequence.

[0104] Optionally, storing the first target MR in a random access memory RAM includes: determining a first total memory that can store MR files in RAM, and determining a second total memory that can store MR files in flash; determining a first file amount used by RAM, and determining a second file amount of the first target MR; determining a third file amount based on the first file amount and the second file amount, and storing the first target MR in RAM if the third file amount is less than or equal to the first total memory.

[0105] In the embodiment of the present application, the storage strategy for RAM occurs before each storage of MR files, as follows:

[0106] 1. Determine the directory size fileTotalSize that can store MR files under the ram set by the code, that is, the first total memory mentioned above;

[0107] 2. Determine the memory size fileTotalSizeRam that can store all MR files in the MR file directory under ram, that is, the first file size mentioned above;

[0108] 3. Determine the file size fileSize of the MR to be stored (i.e., the first target MR mentioned above), i.e., the second file size mentioned above;

[0109] 4. Determine whether the sum of fileTotalSizeRam and fileSize (i.e. the third file size) is less than the first total memory;

[0110] 5. If condition 4 is met, the first target MR file is directly stored in RAM;

[0111] 6. If condition 4 is not met, all MR files in RAM are taken out and sorted according to the added sequence number, and the earliest MR files are deleted in turn until condition 4 is met, and then the first target MR file is stored in RAM.

[0112] Optionally, storing all MR files in RAM to the flash memory flash includes: determining a fourth file amount used by the flash; and storing all MR files in RAM to the flash when the sum of the third file amount and the fourth file amount is less than or equal to the second total memory.

[0113] In the embodiment of the present application, the storage strategy for flash occurs before each system restart, as follows:

[0114] 1. Determine whether there is an MR file in RAM. If not, end the activity. If yes, proceed to the next step.

[0115] 2. Determine the size fileTotalSize of the MR file directory that can be stored in the flash set by the code, that is, the second total memory mentioned above, and determine the size fileTotalSizeFlash of all MR files stored in the flash, that is, the fourth file size mentioned above;

[0116] 3. Determine whether the sum of the third file volume and the fourth file volume is less than the second total memory. If so, store all MR files in RAM into flash and end the activity. If not, proceed to the next step.

[0117] 4. Take out the MR files in RAM and flash and sort them; calculate the file sizes of the sorted files from the latest one to the latest one, until the total file size is just equal to the second total memory or is smaller than the second total memory but not enough to place the next MR file, and put all MR files into a list;

[0118] 5. Determine whether the file under flash exists in the list, if not, delete it; store the MR files under ram in the list into flash one by one, and those already in flash will not be stored anymore.

[0119] In the embodiment of the present application, the classes of MR collection operation and MR upload operation are also designed, wherein MrCollect is the MR collection class and MrUpload is the MR upload class. The details are as follows:

[0120] (1) MrCollect Class

[0121] The MrCollect class is mainly used to manage the periodic collection of Mr files, including the following operations:

[0122] Start: MR collection function start interface, external members start MR collection function by calling this interface;

[0123] SetMrFlashSize: Set the space size of the MR file flash storage directory according to actual needs;

[0124] SetMrFlashDir: Set the MR file flash storage directory;

[0125] SetMrRamSize: Set the space size of the MR file RAM storage directory according to actual needs;

[0126] SetMrRamDir: Set the MR file ram storage directory;

[0127] MrRamDir: Get the MR file ram storage directory;

[0128] MrFlashDir: Get the MR file flash storage directory;

[0129] MrFlashSize: Get the size of the MR file flash storage directory space;

[0130] MrRamSize: Get the size of the MR file RAM storage directory space;

[0131] UpdateCollectParam: Updates MR collection configuration information;

[0132] MrPeriodCollect: Periodically collect MR files;

[0133] RebootCallback: collects MR callback function once before restarting.

[0134] (2) MrUpload class

[0135] The MrUpload class is mainly responsible for managing MR file uploads, including file uploads, notification of upload results to the OAM operation process, etc. It mainly includes the following operations:

[0136] Start: MR upload function start interface, external members start the MR upload function by calling this interface;

[0137] AddUploadMrFile: add MR file to the upload list;

[0138] RebootMoveToFlash: store the MR file in RAM to flash before rebooting;

[0139] SetConnTimeout: Set the connection timeout with the MR file upload server during the upload process. If the timeout occurs, the connection is considered to have failed, resulting in the failure of MR file upload;

[0140] SetTranTimeo: Set the MR file upload timeout. If the upload timeout occurs, the upload is considered failed.

[0141] UpdateUploadParam: Update MR upload configuration information;

[0142] UploadTask: upload the MR files in the list;

[0143] MoveToFlash: When storing MR files in flash, save the MR files in the list into flash.

[0144] In the embodiment of the present application, by adopting a modular design, such as an OAM database management module, an MR management module, an MR proxy module, an MR collection module, and an MR upload module, the reliability of the base station MR-OAM management software can be greatly improved, which has the characteristics of being standardized, easy to understand and implement, and applicable to various manufacturers. At the same time, maintenance personnel can easily complete the maintenance of the base station MR-OAM management software by referring to the design scheme, saving time and effort. Compared with the situation where there is no scheme or other schemes are confusing, the maintenance efficiency of the base station MR-OAM management software can be effectively enhanced, and the maintenance cost can be reduced.

[0145] Fig. 9 1 is a flowchart of a method for processing a file according to an embodiment of the present application. Fig. 9 As shown, the method is applied to the MR agent module and includes the following steps:

[0146] Step S902, receiving a first query instruction and a second query instruction sent by the MR management module, and returning a first response message and a second response message to the MR management module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation;

[0147] Step S904, when the first response message indicates that the MR management module is allowed to perform the MR collection operation, receiving the collection configuration information sent by the MR management module, and determining the first target MR according to the collection configuration information, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the first target MR is all MR files that meet the collection configuration information;

[0148] Step S906: Send the first target MR to the MR management module.

[0149] It should be noted that the file processing method applied on the MR proxy module side is similar to the file processing method applied on the MR management module side. Therefore, the relevant explanations and instructions in the file processing method on the MR management module side are also applicable to the file processing method on the MR proxy module side, and will not be repeated here.

[0150] The embodiment of the present application also provides a file processing system, which includes a database management module, an MR management module, an MR proxy module, an MR collection module and an MR upload module, wherein:

[0151] A database management module, used to send collection configuration information and upload configuration information to the MR management module, wherein the collection configuration information is used to provide configuration for the data collection process of the measurement report MR, and the upload configuration information is used to provide configuration for the data upload process of the MR;

[0152] The MR management module is used to receive the collection configuration information and the upload configuration information sent by the database management module; send a first query instruction and a second query instruction to the MR proxy module, and receive a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; when the first response message indicates that the MR management module is allowed to perform an MR collection operation, the first target MR is collected according to the collection configuration information, wherein the first target MR is all MR files that meet the collection configuration information; when the second response message indicates that the MR management module is allowed to perform an MR upload operation, the second target MR is uploaded to the file server according to the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information;

[0153] The MR proxy module is configured to receive the first query instruction and the second query instruction sent by the MR management module, and return the first response message and the second response message to the MR management module; when the first response message indicates that the MR management module is allowed to perform the MR collection operation, receive the collection configuration information sent by the MR management module, and determine the first target MR according to the collection configuration information; and send the first target MR to the MR management module;

[0154] An MR collection module, used for collecting a first target MR;

[0155] The MR uploading module is used to upload the second target MR.

[0156] It should be noted that the file processing system is used to execute the file processing method on the MR management module side or the file processing method on the MR proxy module side. Therefore, the relevant explanations and instructions in the file processing method on the MR management module side or the file processing method on the MR proxy module side are also applicable to the file processing system and will not be repeated here.

[0157] According to an embodiment of the present application, a file processing device is provided. It should be noted that the file processing device of the embodiment of the present application can be used to execute the file processing method provided by the embodiment of the present application. The file processing device provided by the embodiment of the present application is introduced below.

[0158] Fig.10 is a structural diagram of a file processing device according to an embodiment of the present application. Fig.10 As shown, the device is applied to the MR management module, including:

[0159] The acquisition module 1000 is used to acquire the collection configuration information and upload configuration information of the measurement report MR, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the upload configuration information is used to provide configuration for the data upload process of the MR;

[0160] The first sending module 1002 is used to send a first query instruction and a second query instruction to the MR proxy module, and receive a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation;

[0161] A collection module 1004 is configured to collect first target MRs according to the collection configuration information when the first response message indicates that the MR management module is allowed to perform the MR collection operation, wherein the first target MRs are all MR files that meet the collection configuration information;

[0162] The upload module 1006 is used to upload the second target MR to the file server according to the upload configuration information when the second response message indicates that the MR management module is allowed to perform the MR upload operation, wherein the second target MR is all MR files that meet the upload configuration information.

[0163] Through the acquisition module 1000, the first sending module 1002, the collection module 1004 and the upload module 1006 in the processing device of the above-mentioned file, the purpose of unified management of the collection process and the upload process of the MR file based on the collection configuration information and the upload configuration information set by the OAM database is achieved, thereby realizing the standardized management of the base station and improving the technical effect of the stability and reliability of the system, thereby solving the technical problem of low MR-OAM management efficiency caused by the lack of a unified and standardized reference solution in the design of the base station MR-OAM management software of the related technology.

[0164] In the file processing device provided in the embodiment of the present application, the collection module is also used to send collection configuration information to the MR proxy module, wherein the collection configuration information includes at least one of the following: MR start collection time, end collection time and collection parameters; when the start collection time is reached, a start collection instruction is sent to the MR proxy module, and a third response message returned by the MR proxy module is received, wherein the third response message is used to indicate that the MR proxy module starts collecting MR files; when the end collection time is reached, an end collection instruction is sent to the MR proxy module, and the MR proxy module receives the first target MR collected by the MR collection module through the MR collection module within the start collection time and the end collection time.

[0165] In the file processing device provided in the embodiment of the present application, the collection module is also used to determine the agreed value of a single instruction of the MR management module when performing a collection operation, wherein the single instruction includes at least one of the following: a first query instruction, a second query instruction, a start collection instruction, and an end collection instruction, and the agreed value is used to standardize the communication protocol between the MR management module and the MR agent module; and to determine the message body corresponding to the collection parameters, wherein the message body is used to define the conditions and behaviors of the MR management module when performing a collection operation.

[0166] In the file processing device provided in the embodiment of the present application, the upload module is also used to store the first target MR in the random access memory RAM, and sort all MR files in the RAM in chronological order to obtain a first MR sequence; and upload the MR files in the first MR sequence to the file server in sequence according to the upload configuration information.

[0167] The file processing device provided in the embodiment of the present application also includes a storage module 1008, which is used to receive a reset message generated by the database management module, wherein the reset message is used to indicate that the system is about to be in an abnormal state; and store all MR files in RAM to the flash memory flash.

[0168] In the file processing device provided in the embodiment of the present application, the storage module is also used to determine the first total memory that can store MR files in RAM, and to determine the second total memory that can store MR files in flash; to determine the first file amount used by RAM, and to determine the second file amount of the first target MR; to determine the third file amount based on the first file amount and the second file amount, and to store the first target MR in RAM when the third file amount is less than or equal to the first total memory.

[0169] In the file processing device provided in the embodiment of the present application, the storage module is also used to determine the fourth file amount used by the flash; when the sum of the third file amount and the fourth file amount is less than or equal to the second total memory, all MR files in the RAM are stored in the flash.

[0170] Fig.11 is a structural diagram of a file processing device according to an embodiment of the present application. Fig.11 As shown, the device is applied to the MR agent module, including:

[0171] The receiving module 1100 is used to receive a first query instruction and a second query instruction sent by the MR management module, and return a first response message and a second response message to the MR management module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation;

[0172] The determination module 1102 is used to receive the collection configuration information sent by the MR management module when the first response message indicates that the MR management module is allowed to perform the MR collection operation, and determine the first target MR according to the collection configuration information, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the first target MR is all MR files that meet the collection configuration information;

[0173] The second sending module 1104 is configured to send the first target MR to the MR management module.

[0174] Through the receiving module 1100, the determining module 1102 and the second sending module 1104 in the processing device of the above-mentioned file, the purpose of collecting configuration information and uploading configuration information based on the OAM database setting, and uniformly managing the collection process and the upload process of the MR file is achieved, thereby realizing the standardized management of the base station, and at the same time improving the technical effect of the stability and reliability of the system, thereby solving the technical problem of low MR-OAM management efficiency caused by the lack of a unified and standardized reference solution in the design of the base station MR-OAM management software of the related technology.

[0175] An embodiment of the present application also provides an electronic device, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the processing method for implementing the above-mentioned file.

[0176] It should be noted that the above electronic equipment is used to execute Figure 2 The file processing method shown in the figure, therefore the relevant explanations and instructions in the above file processing method are also applicable to the electronic device and will not be repeated here.

[0177] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored computer program, wherein a device where the non-volatile storage medium is located executes the above-mentioned file processing method by running the computer program.

[0178] It should be noted that the above non-volatile storage medium is used to execute Figure 2 Therefore, the relevant explanations in the above-mentioned file processing method are also applicable to the non-volatile storage medium and will not be repeated here.

[0179] An embodiment of the present application also provides a computer program product, including computer instructions, which implement the above-mentioned file processing method when executed by a processor.

[0180] It should be noted that the above-mentioned computer program product is used to execute Figure 2 Therefore, the relevant explanations and instructions in the above-mentioned file processing method are also applicable to the computer program product and will not be repeated here.

[0181] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0182] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0183] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0186] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.

[0187] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing a file, characterized in that: include: Acquire collection configuration information and upload configuration information of the measurement report MR, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the upload configuration information is used to provide configuration for the data upload process of the MR; Sending a first query instruction and a second query instruction to the MR proxy module, and receiving a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; In the case where the first response message indicates that the MR management module is allowed to perform the MR collection operation, collecting first target MRs according to the collection configuration information, wherein the first target MRs are all MR files that meet the collection configuration information; When the second response message indicates that the MR management module is allowed to perform the MR upload operation, the second target MR is uploaded to the file server according to the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information.

2. The method according to claim 1, characterized in that Collecting the first target MR according to the collection configuration information includes: Sending the collection configuration information to the MR proxy module, wherein the collection configuration information includes at least one of the following: the start collection time, the end collection time and the collection parameters of the MR; When the collection start time is reached, sending a collection start instruction to the MR proxy module, and receiving a third response message returned by the MR proxy module, wherein the third response message is used to indicate that the MR proxy module starts collecting MR files; When the end collection time is reached, an end collection instruction is sent to the MR proxy module, and the MR proxy module receives the first target MR collected by the MR collection module between the start collection time and the end collection time.

3. The method according to claim 2, characterized in that The method further comprises: Determining an agreed value of a single instruction of the MR management module when performing a collection operation, wherein the single instruction includes at least one of the following: the first query instruction, the second query instruction, the start collection instruction, and the end collection instruction, and the agreed value is used to standardize a communication protocol between the MR management module and the MR proxy module; and A message body corresponding to the collection parameter is determined, wherein the message body is used to define conditions and behaviors of the MR management module when performing a collection operation.

4. The method according to claim 1, characterized in that: Uploading the second target MR to the file server according to the upload configuration information includes: The first target MR is stored in a random access memory RAM, and all MR files in the RAM are sorted in chronological order to obtain a first MR sequence; The MR files in the first MR sequence are uploaded to the file server in sequence according to the upload configuration information.

5. The method according to claim 4, characterized in that The method further comprises: Receiving a reset message generated by a database management module, wherein the reset message is used to indicate that the system is about to be in an abnormal state; All MR files in the RAM are stored in the flash memory flash.

6. The method according to claim 5, characterized in that Storing the first target MR in a random access memory RAM includes: Determine a first total memory of the ram that can store MR files, and determine a second total memory of the flash that can store MR files; Determine a first file amount used by the RAM, and determine a second file amount of the first target MR; A third file amount is determined according to the first file amount and the second file amount, and when the third file amount is less than or equal to the first total memory, the first target MR is stored in the RAM.

7. The method according to claim 6, characterized in that Storing all MR files in the RAM to the flash memory flash includes: Determining the fourth file amount used by the flash; In a case where the sum of the third file amount and the fourth file amount is less than or equal to the second total memory, all MR files in the RAM are stored in the flash.

8. A method for processing a file, characterized in that: include: receiving a first query instruction and a second query instruction sent by the MR management module, and returning a first response message and a second response message to the MR management module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; In the case where the first response message indicates that the MR management module is allowed to perform the MR collection operation, receiving the collection configuration information sent by the MR management module, and determining a first target MR according to the collection configuration information, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the first target MR is all MR files that meet the collection configuration information; The first target MR is sent to the MR management module.

9. A file processing system, characterized in that: It includes a database management module, an MR management module, an MR proxy module, an MR collection module and an MR upload module, wherein: The database management module is used to send collection configuration information and upload configuration information to the MR management module, wherein the collection configuration information is used to provide configuration for the data collection process of the measurement report MR, and the upload configuration information is used to provide configuration for the data upload process of the MR; The MR management module is configured to receive the collection configuration information and the upload configuration information sent by the database management module; send a first query instruction and a second query instruction to the MR proxy module, and receive a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; in the case where the first response message indicates that the MR management module is allowed to perform an MR collection operation, collect a first target MR according to the collection configuration information, wherein the first target MR is all MR files that meet the collection configuration information; in the case where the second response message indicates that the MR management module is allowed to perform an MR upload operation, upload a second target MR to a file server according to the upload configuration information, wherein the second target MR is all MR files that meet the upload configuration information; The MR proxy module is configured to receive a first query instruction and a second query instruction sent by the MR management module, and return a first response message and a second response message to the MR management module; when the first response message indicates that the MR management module is allowed to perform an MR collection operation, receive the collection configuration information sent by the MR management module, and determine a first target MR according to the collection configuration information; and send the first target MR to the MR management module; The MR collection module is used to collect the first target MR; The MR uploading module is used to upload the second target MR.

10. A file processing device, characterized in that: include: An acquisition module, used to acquire collection configuration information and upload configuration information of a measurement report MR, wherein the collection configuration information is used to provide configuration for a data collection process of the MR, and the upload configuration information is used to provide configuration for a data upload process of the MR; a first sending module, configured to send a first query instruction and a second query instruction to the MR proxy module, and receive a first response message and a second response message returned by the MR proxy module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; a collecting module, configured to collect first target MRs according to the collecting configuration information when the first response message indicates that the MR management module is allowed to perform the MR collecting operation, wherein the first target MRs are all MR files that meet the collecting configuration information; The upload module is used to upload the second target MR to the file server according to the upload configuration information when the second response message indicates that the MR management module is allowed to perform the MR upload operation, wherein the second target MR is all MR files that meet the upload configuration information.

11. A file processing device, characterized in that: include: a receiving module, configured to receive a first query instruction and a second query instruction sent by a MR management module, and return a first response message and a second response message to the MR management module, wherein the first query instruction is used to query whether the MR management module is allowed to perform a collection operation, and the second query instruction is used to query whether the MR management module is allowed to perform an upload operation, and the first response message is used to indicate whether the MR management module is allowed to perform a collection operation, and the second response message is used to indicate whether the MR management module is allowed to perform an upload operation; a determination module, configured to receive the collection configuration information sent by the MR management module when the first response message indicates that the MR management module is allowed to perform the MR collection operation, and determine a first target MR according to the collection configuration information, wherein the collection configuration information is used to provide configuration for the data collection process of the MR, and the first target MR is all MR files that meet the collection configuration information; The second sending module is used to send the first target MR to the MR management module.

12. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store program instructions; The processor is connected to the memory, and is used to execute the file processing method described in any one of claims 1 to 7, or execute the file processing method described in claim 8.

13. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the file processing method described in any one of claims 1 to 7, or executes the file processing method described in claim 8 by running the computer program.

14. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, they implement the file processing method described in any one of claims 1 to 7, or when they are executed, they implement the file processing method described in claim 8.