Data acquisition method and device and base station maintenance and measurement method

By setting two threads and data probes in the physical layer, the problem of obtaining base station data in the existing technology cannot ensure the real-time processing of data by the physical layer, real-time acquisition and outgoing of base station data is realized, and physics is improved The business processing efficiency of the layer.

CN119402987AInactive Publication Date: 2025-02-07SUNWAVE COMM
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411433699.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, obtaining base station data related to the physical layer cannot guarantee the real-timeness of the physical layer processing data, resulting in an increase in link overhead and affecting the service processing of the physical layer.

Method used

In the physical layer of the baseband processing unit, at least two threads are arranged to run: the first thread is responsible for processing the base station data, and the second thread is used to outgoing base station data. The base station data is stored by the data probe when the first thread performs a processing task, and the second thread is caused to obtain the base station data from the data probe through an indication message.

Benefits of technology

It realizes real-time acquisition and outgoing base station data without affecting the real-timeness of the first thread processing task, and solves the problem that acquisition of base station data in the prior art cannot guarantee the real-timeness of the physical layer processing data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402987A_ABST
    Figure CN119402987A_ABST
Patent Text Reader

Abstract

The invention relates to a data acquisition method and device and a base station maintenance method, in the method, at least a first thread and a second thread are operated at the same time, the first thread is configured to process base station data transmitted and received by a physical layer of a baseband processing unit, and the second thread is configured to process the base station data transmitted and received by the physical layer of the baseband processing unit. A node for executing a processing task for base station data in a first thread is provided with a data probe point, a second thread is configured in a physical layer, and the method comprises the following steps: under the condition that the first thread executes the processing task for the base station data, calling the data probe point to store the base station data; sending an indication message to a second thread through the first thread, wherein the indication message comprises position information of the data probe point; and in response to the indication message, controlling a second thread to obtain the base station data from the data probe point, the base station data in the second thread being used for outgoing. Through the data processing method and device, the technical problem that the real-time performance of data processing of a physical layer cannot be guaranteed in the data obtaining process 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 communication technology, and in particular to a data acquisition method, device and base station maintenance method. Background Art

[0002] In the baseband unit (BBU), the physical (PHY) layer is the foundation of the entire communication system. The physical layer is mainly responsible for the transmission and modulation and demodulation of digital signals, ensuring that data can be transmitted quickly and accurately in the network. Therefore, the maintenance of the physical layer is particularly important.

[0003] The commonly used maintenance and measurement method obtains base station data related to the physical layer by printing (printf). This method will increase the link overhead of the physical layer. Since the physical layer processes data in the service link, the additional link overhead will affect the real-time performance of the physical layer in processing data. Summary of the invention

[0004] In the embodiments of the present application, a data acquisition method, device and base station maintenance method are provided to solve the technical problem in the prior art that obtaining base station data related to the physical layer cannot ensure the real-time performance of the physical layer in processing data.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a data acquisition method, which is applied to a physical layer of a baseband processing unit. In the method, the physical layer runs at least a first thread and a second thread simultaneously, wherein the first thread is configured to process base station data sent and received by the physical layer, and a data probe point is provided at a node where the first thread performs a processing task for the base station data, and the second thread is configured in the physical layer. The method includes:

[0007] In the case where the first thread executes the processing task for the base station data, calling the data probe point to store the base station data;

[0008] Sending an indication message to the second thread through the first thread, wherein the indication message includes location information of the data probe point;

[0009] In response to the indication message, the second thread is controlled to obtain the base station data from the data probe point, wherein the base station data in the second thread is used for external transmission.

[0010] In combination with the first aspect, in a possible design manner, the number of the data probe points is set according to the number of the nodes, and each of the nodes corresponds to at least one data probe point;

[0011] In the case where the first thread executes the processing task for the base station data, calling the data probe point to store the base station data includes:

[0012] When it is detected that the first thread is processing a task on the node, controlling the first thread to send a call instruction to the data probe point corresponding to the node;

[0013] In response to the calling instruction, the data probe is called to store the base station data on the node.

[0014] In combination with the first aspect, in a possible design manner, sending an indication message to the second thread through the first thread includes:

[0015] After the data probe stores the base station data, the data probe is controlled by the first thread to send an indication message to the second thread, and the indication message is transmitted between the data probe and the second thread in the form of a semaphore.

[0016] In combination with the first aspect, in one possible design method, the node for processing the task includes an interface for transmitting the base station data between the physical layer and the protocol stack, an interface for transmitting the base station data between the physical layer and the radio frequency remote unit, and / or a service module within the physical layer.

[0017] In combination with the first aspect, in a possible design manner, the base station data includes first base station data transmitted between the physical layer and the protocol stack of the baseband processing unit,

[0018] The second base station data transmitted between the physical layer and the radio remote unit, and / or

[0019] The third base station data is processed by the service module within the physical layer.

[0020] In a second aspect, an embodiment of the present application provides a base station maintenance method, which is applied to the method of the first aspect and possible design methods thereof, and the base station maintenance method includes:

[0021] The base station data is obtained from the second thread; the base station data in the second thread is obtained using the method of the first aspect and its possible design manner.

[0022] Parsing the base station data according to a parsing rule corresponding to a preset communication protocol to obtain parsing information;

[0023] According to the parsed information, the working state of the physical layer of the baseband processing unit is determined.

[0024] In conjunction with the second aspect, in a possible design manner, the obtaining the base station data from the second thread includes:

[0025] establishing a communication connection with the baseband processing unit; and receiving the baseband data sent by the baseband processing unit through the second thread when the second thread obtains the base station data from the first thread, or

[0026] The base station data stored in the form of logs is obtained from the memory of the baseband processing unit, wherein the base station data is obtained by the second thread from the data probe point of the first thread and then cached in the memory.

[0027] In a third aspect, an embodiment of the present application provides a data acquisition device, including:

[0028] A storage module, configured to call a data probe point to store the base station data when the first thread executes a processing task for the base station data;

[0029] A communication module, configured to send an indication message to a second thread through the first thread, wherein the indication message includes location information of the data probe point;

[0030] The acquisition module is used to control the second thread to acquire the base station data from the data probe point, wherein the base station data in the second thread is used for external transmission.

[0031] In a fourth aspect, an embodiment of the present application provides a baseband processing unit, comprising a physical layer and a protocol stack, wherein the physical layer is configured to execute the method of the first aspect and its possible design method, or to execute the method of the second aspect and its possible design method.

[0032] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method of the first aspect and its possible design methods, or to execute the method of the second aspect and its possible design methods.

[0033] In a sixth aspect, an embodiment of the present application provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the method of the first aspect and its possible design method, or execute the method of the second aspect and its possible design method when running.

[0034] Compared with the prior art, in a data acquisition method, device and base station maintenance method provided in an embodiment of the present application, a second thread for maintenance is provided inside the physical layer, the second thread and the first thread maintain a running state, and the first thread is responsible for processing the base station data sent and received by the physical layer of the baseband processing unit. When the first thread performs a processing task for the base station data, the data probe point will be called to save the base station data. The first thread will send an indication message to the second thread to instruct the second thread to capture the base station data from the data probe point where the first thread stores the base station data. The base station data in the second thread is used for outbound transmission. In this way, when data needs to be sent out, the base station data can be obtained from the second thread in real time, which not only ensures the real-time performance of obtaining the base station data, but also does not affect the real-time performance of the first thread processing node tasks. Therefore, the technical problem that the acquisition of base station data related to the physical layer in the prior art cannot ensure the real-time performance of the physical layer processing data is solved.

[0035] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] 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:

[0037] Figure 1 is a hardware structure block diagram of a terminal according to a data acquisition method of an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the hardware structure of a base station provided in an embodiment of the present application is shown;

[0039] Figure 3 A flow chart of a data acquisition method provided by an embodiment of the present application is shown;

[0040] Figure 4 A flow chart showing another data acquisition method provided by an embodiment of the present application is shown;

[0041] Figure 5 A flow chart of a base station maintenance method provided by an embodiment of the present application is shown;

[0042] Figure 6 It is a structural block diagram of the data acquisition device of an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0044] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0045] The data acquisition method provided in the embodiment of the present application can be executed in a terminal, a computer or a similar test platform. Taking running on a terminal as an example, Figure 1 is a hardware structure block diagram of a terminal according to a data acquisition method of an embodiment of the present application. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102, and memory 104 for storing data. Processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. Optionally, the terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0046] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the data probe points in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, to implement the above-mentioned 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 102, and these remote memories may be connected to the terminal 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.

[0047] The transmission device 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 terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as 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 device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0048] The various technologies described in the embodiments of this application can be used for the maintenance and analysis of base stations, micro base stations and pico base stations. Taking the application to base stations as an example, Figure 2 FIG. 1 shows a schematic diagram of the hardware structure of a base station provided in an embodiment of the present application. Figure 2 As shown, the base station 20 includes a baseband processing unit 201 and a remote radio unit (RRU) 202. Among them, the physical layer 201a of the baseband processing unit 201 will involve message communication with other modules during the implementation process, such as communication between the physical layer 201a and the upper layer (such as the protocol stack 201b), and communication between the baseband processing unit 201 and the remote radio unit 202, so the maintenance of the physical layer 201a is particularly important. Most of the related technologies use a printing method to store the base station data related to the physical layer during the operation of the base station into a specified data format, which is called log information (log), and then download the log information of the base station to the local by setting a method. This method of obtaining base station data is not only slow, but also increases the link overhead of the physical layer. Since the physical layer processes data in the service link, the additional link overhead will cause the real-time performance of the physical layer processing data to be affected.

[0049] Since the physical layer has strict timing requirements, based on this, the embodiment of the present application can reduce the time to obtain base station data from the physical layer and ensure the real-time processing of data by the physical layer. The obtained base station data can be used to analyze the working state of the physical layer, thereby determining the operating state of the base station.

[0050] Before describing the method of the embodiment of the present application, the improvement principle of the method is first introduced.

[0051] From the above introduction, it can be known that the physical layer is responsible for the data processing task. Specifically, the physical layer can perform transmission processing on the data, and the business module inside the physical layer can modulate, calculate, and analyze the data. Therefore, the data on the nodes participating in the processing task of the physical layer is saved as base station data, and the working status of the physical layer can be analyzed. In the related technology, the physical layer processes data through one or more business threads, and does not directly capture data for maintenance during the processing process. This is because the physical layer has strict timing requirements. If the physical layer business thread uses shared memory to simultaneously execute data processing and data capture, it will affect the process of processing data by the business thread, such as affecting the time of sending and receiving messages. Therefore, the embodiment of the present application implements the setting of data probe points at the nodes that process data inside the physical layer. The data probe points save the base station data and notify other threads to capture data from the address of the data probe points. This will not affect the process of processing data by the original business threads of the physical layer, and the speed of obtaining data is also faster.

[0052] The following is an example of a baseband processing unit having the above-mentioned components to illustrate the method provided by an embodiment of the present application. In this method, the baseband processing unit runs at least a first thread and a second thread at the same time, wherein the first thread is equivalent to one or more business threads introduced above, that is, the first thread can be a business thread, or it can be a thread pool including multiple business threads. The first thread is used to process base station data sent and received by the physical layer of the baseband processing unit. The second thread is different from the first thread. The second thread is a thread (or a number grabbing thread) in the baseband processing unit for executing data acquisition alone, that is, the second thread does not participate in the physical layer's processing tasks for base station data. In addition, the second thread can be started after the base station is turned on, or it can be started in response to an operation and maintenance instruction.

[0053] The method includes Figure 3 Steps S301 to S303 are shown.

[0054] Step S301: When the first thread executes a processing task for base station data, a data probe point is called to store the base station data.

[0055] The execution of the processing task may be understood as the physical layer transmitting (receiving or sending) and / or modulating and demodulating base station data through the first thread.

[0056] Specifically, if the physical layer sends a first message to the protocol stack through the first thread, the base station data includes the first message, and the execution of the processing task can be understood as the first thread sending the base station data. If the physical layer receives a second message sent by the radio remote unit through the first thread, the base station data includes the second message, and the execution of the processing task can be understood as the first thread receiving the base station data. If the physical layer modulates or demodulates the first thread to obtain a third message, the base station data includes the third message, and the execution of the processing task can be understood as the first thread modulating or demodulating the base station data.

[0057] In this step, the triggering time for the physical layer to store the base station data can be preset. For example, but not limitation, the triggering time for calling the data probe point to store the base station data can be when the physical layer sends the base station data to the protocol stack or the radio remote unit through the first thread, and the physical layer detects that the transmission interface (such as CPRI or eCPRI port) is called; or when the physical layer receives the base station data sent by the protocol stack or the radio remote unit through the first thread, the physical layer detects that the transmission interface is called; or when the physical layer executes the internal algorithm modulation or demodulation to obtain the output result (i.e., the base station data), the physical layer detects that the channel modulation and demodulation module is called.

[0058] As an example, the physical layer stores base station data by deploying a network packet capturer. Taking the network packet capturer as a wireshark tool, the wireshark tool is constructed by running a program package corresponding to the wireshark tool on a terminal such as a PC, and data detection points are deployed at each node through the wireshark tool. When it is detected that the first thread processes the base station data, the physical layer calls the wireshark tool through the first thread to store the base station data, so as to obtain the base station data from the wireshark tool later.

[0059] It is worth mentioning that in this step, the network packet grabber is deployed in the physical layer, which can capture both the messages sent and received by the physical layer and the messages output by the internal processing signal of the physical layer. Therefore, the base station data obtained by the network packet grabber is more informative, and the maintenance and measurement results obtained by analyzing the base station data will be more accurate.

[0060] In addition, this step detects the physical layer sending and receiving messages or modulating and demodulating messages, and then stores the messages in real time. In the related art, the operation and maintenance instructions are detected before the messages are obtained in the form of printing. In comparison, this step obtains messages faster and in real time.

[0061] Step S302: Send an indication message to the second thread through the first thread, where the indication message includes location information of the data probe point.

[0062] The indication information includes a semaphore, that is, the first thread and the second thread can interact by sending and receiving semaphores. Specifically, the physical layer posts a semaphore (or sends a semaphore) to the second thread of the physical layer through the first thread to instruct the second thread to perform an operation of obtaining base station data from the address where the first thread stores base station data. The second thread can always wait for the semaphore (or wait for the semaphore). When the second thread receives the semaphore, it can perform the operation indicated by the semaphore. For details, please refer to the introduction of step S303 below.

[0063] It can be understood that the indication information carries the address space to indicate the location of the base station data. Just because the first thread stores the base station data in step S301, the address space carried by the indication information can be the address space for the first thread to store the base station data. Compared with directly sending the address for the interaction between the physical layer and the transmission target (such as the service stack) to the second thread, the method of sending the address space for storing the base station data in the first thread to the second thread not only avoids interrupting the processing sequence of the first thread, ensures the real-time nature of the first thread processing the interaction message between the physical layer and the transmission target, but also avoids the second thread and the first thread processing a piece of memory at the same time, which affects the business thread data processing. In this embodiment, the address space is the location information of the data probe point. In some other feasible embodiments, the address space can be the location for storing the base station data in the first thread, wherein the address space is different from the node location of the first thread processing task, so it will not affect the first thread processing task.

[0064] Step S303: In response to the instruction message, control the second thread to obtain base station data from the data probe point, wherein the base station data in the second thread is used for external transmission.

[0065] Among them, sending the base station data outward includes storing the base station data in the memory, or sending the base station data to an external server, etc. It can be understood that the base station data in the second thread is used for outward transmission, so that when data needs to be sent outward, the base station data can be obtained from the second thread in real time, and the outward transmission step is executed in the second thread, so it will not affect the real-time processing task of the first thread.

[0066] The following continues to explain this step by taking the indication information including a semaphore as an example. Since the second thread of the physical layer maintains communication with the first thread, after the first thread sends the semaphore to the second thread, the second thread receives the semaphore and can execute the operation of obtaining base station data from the data probe point based on the address space carried by the semaphore.

[0067] In the embodiment of the present application, the base station data source is messages related to the physical layer, including messages sent and received via the physical layer, messages modulated and demodulated within the physical layer, etc. The base station data is parsed and analyzed to obtain the working state of the physical layer, and the base station can be maintained and tested according to the working state of the physical layer.

[0068] By way of example and not limitation, the base station data includes first base station data transmitted between the physical layer of the baseband processing unit and the protocol stack of the baseband processing unit, second base station data transmitted between the baseband processing unit and the radio frequency remote unit through the physical layer, and / or third base station data processed by a service module within the physical layer, wherein the transmission may be one or more of sending, receiving, issuing, and reporting, and the present application does not impose any limitation on this.

[0069] More specifically, the first base station data includes: one or more of the configuration parameters sent by the protocol stack to the physical layer and the demodulation results reported by the physical layer to the protocol stack. The second base station data includes: one or more of the downlink air interface data sent by the baseband processing unit to the radio remote unit through the CPRI or eCPRI port and the uplink air interface data sent by the radio remote unit to the baseband processing unit through the CPRI or eCPRI port. The third base station data includes: the uplink pusch channel output data output by the channel estimation module inside the physical layer and the downlink pdsch channel output data output by the pdsch channel modulation module inside the physical layer.

[0070] In the embodiment recorded in the above steps S301 to S303, a second thread for maintenance and measurement is provided inside the physical layer, and the second thread and the first thread keep running, and the first thread is responsible for processing the base station data sent and received by the physical layer of the baseband processing unit. When the first thread sends and receives base station data and modulates and demodulates base station data, it will call the data probe point to save the base station data. The first thread will send an indication message to the second thread to instruct the second thread to grab the base station data from the data probe point. In this embodiment, the data probe point is set on the service link of the physical layer, such as the interface between the physical layer and the transmission target, the modem module inside the physical layer, etc. Whenever base station data is generated in the service link, the first thread calls the data probe point to store the base station data, which not only ensures the real-time acquisition of base station data, but also does not affect the service processing of the base station data by the first thread. Therefore, this embodiment solves the technical problem that the acquisition of base station data related to the physical layer in the prior art cannot ensure the real-time processing of data by the physical layer.

[0071] In some embodiments, the number of data probe points is set according to the number of nodes, and each node corresponds to at least one data probe point. Figure 4 As shown, the above step S301 includes steps S401 to S402.

[0072] Step S401: When it is detected that the first thread is processing a task on a node, the first thread is controlled to send a call instruction to a data probe corresponding to the node.

[0073] Step S402: In response to the calling instruction, the data probe point is called to store the base station data on the node.

[0074] Specifically, if the physical layer transmits the first base station data at the first node, a first call instruction is sent to the first data probe corresponding to the first node, and in response to the first call instruction, the first data probe stores the first base station data. If the physical layer transmits the second base station data at the second node, a second call instruction is sent to the second data probe corresponding to the second node, and in response to the second call instruction, the second data probe stores the second base station data. If the physical layer transmits the third base station data at the third node, a third call instruction is sent to the third data probe corresponding to the third node, and in response to the third call instruction, the third data probe stores the third base station data. The first node may be an interface for transmitting base station data between the physical layer and the protocol stack, the second node may be an interface for transmitting base station data between the physical layer and the radio remote unit, and the third node may be a service module inside the physical layer.

[0075] The node includes an interface for transmitting base station data between the physical layer and the protocol stack, an interface for transmitting base station data between the physical layer and the radio remote unit, and / or a service module inside the physical layer. Exemplarily, a first data probe point is set at the transmission interface between the physical layer and the radio remote unit (such as a CPRI or eCPRI port); or, a second data probe point is set after the channel estimation function inside the physical layer; or, a third data probe point is set in the pdsch channel modulation module inside the physical layer; or, a fourth data probe point is set at the transmission interface between the physical layer and the protocol stack (such as the Layer 1 or Layer 2 interface in LTE). The first data probe point, the second data probe point, the third data probe point, and the fourth data probe point can store the messages interacting between the physical layer and the protocol stack after receiving the call instruction of the first thread. The number of data probe points corresponds to the number of nodes, so that the physical layer can obtain the base station data of each service processing node of the physical layer, so that the obtained base station data contains richer and more comprehensive content. In addition, when adding services at the physical layer, the required data information can be captured by adding data probe points at the nodes of the service link; or, the base station information of the service link can be no longer captured by deleting data probe points at the nodes of the service link. By setting data probe points, the amount of operations is simplified, the data acquisition efficiency is higher, and the maintenance efficiency is also higher.

[0076] In some of the embodiments, continue to refer to Figure 4 , the above step S302 includes:

[0077] Step S403: After the data probe stores the base station data, the first thread controls the data probe to send an indication message to the second thread, and the indication message is transmitted between the data probe and the second thread in the form of a semaphore.

[0078] Specifically, threads can interact with each other through semaphores. The data probe point is arranged in the first thread, so the first thread can control the data probe point to send a semaphore to the second thread to instruct the second thread to capture the base station data.

[0079] The present application also provides a base station maintenance method, such as Figure 5 As shown, the method includes steps S501 to S503.

[0080] Step S501: Acquire base station data from the second thread.

[0081] Among them, what is obtained from the second thread is the base station data captured based on the processing timing of the physical layer. Therefore, the base station data is strongly correlated with the timing of the physical layer. The physical layer will locate and analyze the problem based on the obtained base station data and the processing timing inside the physical layer.

[0082] In some embodiments, step S501 includes: establishing a communication connection with a baseband processing unit; and receiving base station data sent by the baseband processing unit through the second thread when the second thread obtains the base station data from the first thread.

[0083] In this embodiment, a communication connection is established between the baseband processing unit and the server device, so that after the second thread captures the base station data, the base station data is sent to the server device in real time. By capturing the base station data online in real time, the maintenance efficiency is improved.

[0084] In some of the embodiments, step S501 includes: acquiring base station data stored in a log form from a memory of a baseband processing unit, wherein the base station data is cached in the memory after being acquired from a data probe point by a second thread.

[0085] In this embodiment, the second thread stores the base station data in the memory of the baseband processing unit, so that the operator can view the base station data offline.

[0086] Step S502: parse the base station data according to the parsing rules corresponding to the preset communication protocol to obtain parsing information.

[0087] Continuing to use the wireshark tool as an example, in order to be able to use the wireshark tool to display and view the acquired base station data, it is necessary to carry out secondary development of the parsing function of wireshark. Here it is necessary to define the message protocol for capturing data (equivalent to the above-mentioned base station data), package the data according to the predefined message protocol inside the baseband processing unit, and then send it to the wireshark tool. The wireshark tool will carry out secondary tool development based on the predefined message protocol to parse the acquired data into a specified format. Exemplarily, the predefined data format is:

[0088] typedef struct

[0089] {

[0090] uint32_t MessageType;

[0091] uint32_t MessageLen;

[0092] uint32_t NumMessage;

[0093] }WIRESHARK_MSG_FORMAT;

[0094] When capturing data, the data and messages will be packaged according to the above protocol. Different data and messages have different message types. When developing the wireshark tool, it will judge and parse according to the message format.

[0095] It should be noted that when the wireshark tool captures network port data packets, it will capture all data flows of the network port with the IP set. In order to accurately filter out the data packets sent by the baseband processing unit (equivalent to the above-mentioned base station data), it is necessary to specify the port number (or port number) for distinction. For example, if the data packets sent by the baseband processing unit to the IP network port are defined as port number 4567, then when developing the parsing function of the wireshark tool, it is necessary to use port number 4567 for filtering, so that all data packets with port number 4567 will be filtered out, and then the data packets will be parsed according to the preset interface protocol.

[0096] Step S503: Determine the working state of the physical layer of the baseband processing unit according to the parsed information.

[0097] Specifically, after parsing the base station data, the operating status of the unit generating the base station data and the parameter value of the status identifier of the message content can be obtained. Exemplarily, the parameter value corresponding to the operating status of the physical layer is set to phyState, and the operating status of the base station is determined according to the value of phyState, such as phyState = 0, indicating that the physical layer is in an idle state; phyState = 1, indicating that the physical layer is in a parameter configuration state; phyState = 2, indicating that the physical layer is in an operating state; phyState = 3, indicating that the physical layer is in an error state.

[0098] The base station maintenance and measurement method provided in the embodiment of the present application is described and illustrated by means of specific examples below.

[0099] First, create a thread at the physical layer to capture io data and info information. For example, the thread name is ioInfoThread. In this thread, the ioInfo_init() function is first initialized to initialize variables and build the wireshark message header. During the initialization process, it is necessary to create a data storage buffer size (or cache size). This parameter can be used as an input variable to provide input parameters for users to configure. This thread is equivalent to the second thread mentioned above.

[0100] Then use the defined save_macphy_msg() function as a probe point (equivalent to the data probe point described above), and call this function at the nodes where the protocol stack and the physical layer send and receive data, so that the business code can save data in the processing flow, so that the second thread can capture the message between the physical layer and the high layer. For example, when the physical layer receives a high-level message, the probe point function can be called to capture the message. Similarly, when the physical layer reports the demodulation result to the high layer, the probe point can also be called to save the message. Among them, the message includes the configuration parameters sent from the high layer to the physical layer, and the demodulation result reported by the physical layer to the high layer. This message is equivalent to the first base station data mentioned above.

[0101] Alternatively, use the save_ether_data() function to obtain the air interface data between the BBU and the RRU. When the physical layer packages the data and sends it to the RRU according to the eCPRI protocol group, this probe point can be added to capture the downlink data sent by the physical layer. When the physical layer receives the uplink data packet through the eCPRI port, the probe point can be called to save the uplink data sent by the RRU to the BBU. This message is equivalent to the second base station data mentioned above.

[0102] Alternatively, use the save_phy_data() function to obtain the maintenance information during the internal processing of the physical layer, including the output results of each function in the physical layer processing process. For example, it includes the data of each node in the physical layer processing the downlink channel and the node data in the physical layer processing the uplink channel. In the function, a probe point will be provided for the physical layer to save data according to the processing requirements of each channel, so that the information of each node processed in the physical layer can be obtained in real time. In the internal processing flow of the physical layer, set the probe point in advance to set the data to be saved. This node information is equivalent to the third base station data mentioned above.

[0103] After the second thread captures the data, the data can be displayed online in real time. Exemplarily, a udp_sevice() function can be created to enable the baseband processing unit and the network port to communicate via udp, with the purpose of sending the ioInfo data (equivalent to the base station data) captured in the baseband processing unit to the server computer in real time, and the ioInfo data sent by the baseband processing unit can be obtained through the network port of the server computer. As an example, an IP port can be reserved, and the IP port will be set according to the operator's computer, so that network communication between the baseband processing unit and the server computer can be achieved. The ioInfo data captured by the baseband processing unit can be obtained by an external server computer in real time.

[0104] Alternatively, when offline storage is required, the base station data acquired by the data probe point can be saved in the memory of the baseband processing unit, and polled and stored according to the pre-set buffer size. When the base station data cached in the memory needs to be saved in the log, the save command can be entered to save the cached base station data in the log according to the preset pcap file format.

[0105] The operator can download the log to the local computer and use the wireshark tool to view and analyze it. For details, please refer to the description of step S502, which will not be repeated here.

[0106] In summary, the base station maintenance method provided by the embodiment of the present application creates a separate capture thread inside the BBU to avoid the time-consuming capture affecting the timing of the normal business thread. In the capture thread inside the BBU, capture functions of different messages are created according to the needs of the capture, and the messages include protocol stack and physical layer interaction messages, data interaction messages between BBU and RRU, and maintenance data messages inside the physical layer. Of course, other message contents can also be defined in the capture thread as needed. The defined capture function can be used as a probe point for the business process to call, and the node that needs to be captured in the business process can directly call the probe point to save the message to the capture thread. The capture thread will package the message according to the predefined data format, which can be stored in the system memory or sent online to the network port. The external server will use the wireshark tool to capture the network port data, parse it according to the parsing rules corresponding to the preset communication protocol, and obtain the parsing information, so as to determine the working state of the physical layer. The data obtained by this method is faster and more real-time, and will not affect the business link inside the physical layer, so the efficiency of maintenance is greatly improved.

[0107] The present application also provides a data acquisition device in the embodiments, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "subunit" and the like used below may implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0108] Figure 6 is a structural block diagram of a data acquisition device according to an embodiment of the present application. Figure 6 As shown, the device comprises:

[0109] The storage module 61 is used to call the data probe point to store the base station data when the first thread executes the processing task for the base station data.

[0110] The communication module 62 is used to send an indication message to the second thread through the first thread, where the indication message includes location information of the data probe point.

[0111] The acquisition module 63 is used to control the second thread to acquire the base station data from the data detection point, wherein the base station data in the second thread is used for external transmission.

[0112] In some embodiments, the storage module 61 is also used to control the first thread to send a call instruction to the data probe point corresponding to the node when it is detected that the first thread is processing a task on the node; in response to the call instruction, the data probe point is called to store the base station data on the node.

[0113] In some embodiments, the communication module 62 is further configured to control the data probe to send an indication message to the second thread through the first thread after the data probe stores the base station data, and the indication message is transmitted between the data probe and the second thread in the form of a semaphore.

[0114] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0115] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0116] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0117] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0118] Optionally, in this embodiment, the processor may be configured to execute the following steps S1 to S3 through a computer program.

[0119] Step S1, when the first thread executes the processing task for the base station data, the data probe point is called to store the base station data.

[0120] Step S2: sending an indication message to the second thread through the first thread, where the indication message includes location information of the data probe point.

[0121] Step S3, in response to the indication message, controlling the second thread to obtain the base station data from the data probe point, wherein the base station data in the second thread is used for external transmission.

[0122] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0123] In addition, in combination with the method provided in the above embodiment, a storage medium may be provided in this embodiment to implement the method. The storage medium stores a computer program; when the computer program is executed by a processor, any one of the data acquisition methods or base station maintenance methods in the above embodiment is implemented.

[0124] An embodiment of the present application also provides a base station processing unit, which is configured to implement any one of the data acquisition methods or base station maintenance methods in the above embodiments when executed.

[0125] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes each function or step performed by the baseband processing unit in the above method embodiment.

[0126] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0127] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0128] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0129] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A data acquisition method, characterized in that: At least a first thread and a second thread are run simultaneously, wherein the first thread is configured to process base station data sent and received by a physical layer of a baseband processing unit, a data probe point is provided at a node where the first thread performs a processing task for the base station data, and the second thread is configured in the physical layer, and the method includes: In the case where the first thread executes the processing task for the base station data, calling the data probe point to store the base station data; Sending an indication message to the second thread through the first thread, wherein the indication message includes location information of the data probe point; In response to the indication message, the second thread is controlled to obtain the base station data from the data probe point, wherein the base station data in the second thread is used for external transmission.

2. The data acquisition method according to claim 1, characterized in that: The number of the data probe points is set according to the number of the nodes, and each of the nodes corresponds to at least one data probe point; In the case where the first thread executes the processing task for the base station data, calling the data probe point to store the base station data includes: When it is detected that the first thread is processing a task on the node, controlling the first thread to send a call instruction to the data probe point corresponding to the node; In response to the calling instruction, the data probe is called to store the base station data on the node.

3. The data acquisition method according to claim 1, characterized in that: The sending an indication message to the second thread through the first thread includes: After the data probe stores the base station data, the data probe is controlled by the first thread to send an indication message to the second thread, and the indication message is transmitted between the data probe and the second thread in the form of a semaphore.

4. The data acquisition method according to claim 1, characterized in that: The nodes for processing the tasks include an interface for transmitting the base station data between the physical layer and the protocol stack, an interface for transmitting the base station data between the physical layer and the radio remote unit, and / or a service module within the physical layer.

5. The data acquisition method according to any one of claims 1 to 4, characterized in that: The base station data includes first base station data transmitted between the physical layer and the protocol stack of the baseband processing unit, second base station data transmitted between the physical layer and the radio remote unit, and / or The third base station data is processed by the service module within the physical layer.

6. A base station maintenance method, characterized in that: The method comprises: Acquire the base station data from the second thread; the base station data in the second thread is acquired by using the data acquisition method described in any one of claims 1 to 5; Parsing the base station data according to a parsing rule corresponding to a preset communication protocol to obtain parsing information; The working state of the physical layer is determined according to the parsed information.

7. The base station maintenance method according to claim 6, characterized in that: The acquiring the base station data from the second thread includes: Establishing a communication connection with the baseband processing unit; In a case where the second thread obtains the base station data from the first thread, the base station data sent by the baseband processing unit through the second thread is received.

8. The base station maintenance method according to claim 6, characterized in that: The acquiring the base station data from the second thread includes: The base station data stored in the form of logs is obtained from the memory of the baseband processing unit, wherein the base station data is obtained by the second thread from the data probe point of the first thread and then cached in the memory.

9. A data acquisition device, characterized in that: include: A storage module, configured to call a data probe point to store the base station data when the first thread executes a processing task for the base station data; A communication module, configured to send an indication message to a second thread through the first thread, wherein the indication message includes location information of the data probe point; The acquisition module is used to control the second thread to acquire the base station data from the data probe point, wherein the base station data in the second thread is used for external transmission.

10. A baseband processing unit, comprising a physical layer and a protocol stack, characterized in that: The physical layer is configured to execute the data acquisition method described in any one of claims 1 to 5, or to execute the base station maintenance method described in any one of claims 6 to 8.

11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the data acquisition method described in any one of claims 1 to 5, or to execute the base station maintenance method described in any one of claims 6 to 8.

12. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the data acquisition method according to any one of claims 1 to 5, or the base station maintenance method according to any one of claims 6 to 8 when running.

Citation Information

Patent Citations

  • Method and device for obtaining data packet in network

    CN104184659A

  • 5G base station forward transmission lossless packet capturing method based on 10-gigabit Ethernet port

    CN113254202A

  • Base station monitoring analysis method, device and system, electronic equipment and storage medium

    CN113950088A

  • Packet capture processing method and device based on DPDK

    CN114070900A