5G Signal Spectrum Detection Method, Device, Computer Equipment and Storage Medium
By performing signal detection on the acquisition card, using the acquisition card's central frequency and time to collect the target base station data and generate an intermediate array, the existing 5G signal detection equipment is solved, and portable detection and analysis are realized.
Patent Information
- Application Number
- CN202210391225.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-14
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-04-14
AI Technical Summary
Existing 5G signal detection equipment is large in size, high in cost and poor in portability, making it difficult to move for interference analysis.
Based on the central frequency of the acquisition card, the acquisition card collects the target base station data at a specified time and performs mathematical operations to generate an intermediate array to realize signal detection.
Portable signal detection is realized, equipment costs are reduced, and intermediate arrays are easy to store and secondary analysis.
Smart Images

Figure CN114828069B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method, device, computer equipment and storage medium for 5G signal spectrum detection, and belongs to the field of 5G signal measurement. Background Art
[0002] The fifth-generation mobile communication technology (5th generation mobile networks or 5th generation wireless systems, 5th-Generation, hereinafter referred to as 5G or 5G technology) is the latest generation of cellular mobile communication technology. Wireless signals are interfered during transmission, resulting in loss of communication quality. At present, by detecting the spectrum of each time slot of 5G signals, interference or base station problems can be clearly analyzed. However, the existing acquisition devices are usually large, costly, and not easy to move. Summary of the Invention
[0003] In view of this, the present invention provides a method, device, computer equipment and storage medium for 5G signal spectrum detection. Based on the center frequency of the acquisition card and according to the specified time, the acquisition card is used to collect target base station data, and then mathematical operations are performed on the target base station data to obtain an intermediate array capable of realizing signal detection.
[0004] The first object of the present invention is to provide a method for 5G signal spectrum detection.
[0005] The second object of the present invention is to provide a device for 5G signal spectrum detection.
[0006] The third object of the present invention is to provide a computer equipment.
[0007] The fourth object of the present invention is to provide a storage medium.
[0008] The first object of the present invention can be achieved by adopting the following technical solutions:
[0009] A method for 5G signal spectrum detection, the method comprising:
[0010] Determine the acquisition card parameters and spectrum parameters, and set the acquisition card clock;
[0011] Calculate the number of times the acquisition card should collect;
[0012] Initialize the number of times the acquisition card has collected;
[0013] Synchronize and time the acquisition card clock to set the time of the acquisition card clock to zero;
[0014] Calculate the specified time according to the current time of the acquisition card clock;
[0015] Calculate the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been acquired.
[0016] Based on the center frequency of the acquisition card and according to the specified time, use the acquisition card to collect data of the target base station.
[0017] According to the data of the target base station, obtain an intermediate array, and increment the number of times the acquisition card has been acquired by one.
[0018] Compare the sum of the acquired times and the number of times to be acquired, and output the judgment result.
[0019] Based on the judgment result, decide whether to detect the signal.
[0020] Furthermore, calculate the specified time according to the current time of the acquisition card clock as follows:
[0021]
[0022] where time represents the specified time, now represents the current time of the acquisition card clock, slot represents the time slot, and sleep represents the time delay.
[0023] Furthermore, calculate the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been acquired as follows:
[0024]
[0025] where c represents the center frequency of the acquisition card, freq represents the center frequency of the spectrum, span represents the span, bw represents the bandwidth of the acquisition card, and n represents the number of times the acquisition card has been acquired.
[0026] Furthermore, calculate the number of times the acquisition card should be acquired as follows:
[0027]
[0028] where m represents the number of times the acquisition card should be acquired, ceil() represents the ceiling function, span represents the span, and bw represents the bandwidth of the acquisition card.
[0029] Furthermore, the decision on whether to detect the signal based on the judgment result specifically includes:
[0030] If the judgment result is that the sum of the acquired times and the number of times to be acquired are equal, then display the intermediate array, implement signal detection according to the intermediate array, re-initialize the number of times the acquisition card has been acquired, and perform subsequent operations.
[0031] If the judgment result is that the sum of the collected times and the times to be collected is not equal, continue to calculate the specified time according to the current time of the acquisition card clock and perform subsequent operations.
[0032] Further, the target base station data is an IQ data set of the specified sampling points of the target base station, where I: In-phase represents the in-phase; Q: Quadrature represents the quadrature, with a 90-degree phase difference from the I phase.
[0033] Further, the acquisition card parameters include gain, sampling points, and acquisition card bandwidth, and the spectrum parameters include spectrum center frequency, span, time slot, and time delay.
[0034] The second object of the present invention can be achieved by adopting the following technical solutions:
[0035] A 5G signal spectrum detection device, the device includes:
[0036] A parameter determination module for determining acquisition card parameters and spectrum parameters and setting the acquisition card clock;
[0037] A first calculation module for calculating the times to be collected by the acquisition card;
[0038] A first reset module for initializing the collected times of the acquisition card;
[0039] A second reset module for synchronously timing the acquisition card clock to set the time of the acquisition card clock to zero;
[0040] A second calculation module for calculating the specified time according to the current time of the acquisition card clock;
[0041] A third calculation module for calculating the acquisition card center frequency according to the acquisition card parameters, spectrum parameters, and the collected times of the acquisition card;
[0042] A data acquisition module for collecting target base station data by the acquisition card based on the acquisition card center frequency and according to the specified time;
[0043] A data processing module for obtaining an intermediate array according to the target base station data and incrementing the collected times of the acquisition card by one;
[0044] A comparison and judgment module for comparing the sum of the collected times and the times to be collected and outputting a judgment result;
[0045] A signal detection module for deciding whether to detect the signal based on the judgment result.
[0046] The third object of the present invention can be achieved by adopting the following technical solutions:
[0047] A computer device includes a processor and a memory for storing programs executable by the processor. When the processor executes the programs stored in the memory, the above-mentioned 5G signal spectrum detection method is implemented.
[0048] The fourth object of the present invention can be achieved by adopting the following technical solutions:
[0049] A storage medium stores a program. When the program is executed by a processor, the above-mentioned 5G signal spectrum detection method is implemented.
[0050] The present invention has the following beneficial effects compared with the prior art:
[0051] Based on the center frequency of the acquisition card and according to the specified time, the present invention uses the acquisition card to collect data of the target base station, and then performs mathematical operations on the data of the target base station to obtain an intermediate array capable of signal detection. This method can be applied in a portable acquisition card and corresponding software, overcoming the disadvantages of the existing 5G signal detection devices, such as being too large in volume, too high in cost, and poor in portability. In addition, the intermediate array obtained by the present invention is convenient for storage and secondary analysis, and is also convenient for expansion. Description of the Drawings
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on the structures shown in these drawings.
[0053] Figure 1 It is a flowchart of the 5G signal spectrum detection method according to Embodiment 1 of the present invention.
[0054] Figure 2 It is a flowchart of the 5G signal spectrum detection device according to Embodiment 2 of the present invention.
[0055] Figure 3 It is a structural block diagram of the computer device according to Embodiment 3 of the present invention. Detailed Embodiments
[0056] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0057] Embodiment 1:
[0058] As Figure 1 shown, this embodiment provides a 5G signal spectrum detection method, which includes the following steps:
[0059] S101. Determine the acquisition card parameters and spectrum parameters, and set the acquisition card clock.
[0060] The global parameters in this embodiment include acquisition card parameters and spectrum parameters. The acquisition card parameters include gain, number of sampling points, and acquisition card bandwidth. The spectrum parameters include spectrum center frequency, span, time slot, and time delay.
[0061] Determine the spectrum parameters. For example: the spectrum center frequency is set to 2524.85 MHz; the span is set to 1000e6 Hz; the time slot, 0 - 279, such as CSI - RS: 12; the time delay, in seconds, such as 0.003 seconds. Specifically, the spectrum parameters in this embodiment are general parameters of the wireless signal spectrum.
[0062] Determine the acquisition card parameters. For example: the acquisition card bandwidth is set to be less than or equal to the maximum bandwidth supported by the acquisition card; the gain is set to 65.
[0063] In this embodiment, the number of sampling points of the acquisition card = bw / 280 * 0.01, where bw represents the acquisition card bandwidth.
[0064] S102. Calculate the number of times the acquisition card should be sampled.
[0065] In this embodiment, according to the span and acquisition card bandwidth set in step S101, calculate the number of times m that the acquisition card should be sampled, as shown in the following formula:
[0066]
[0067] where ceil() represents the ceiling function, span represents the span, and bw represents the acquisition card bandwidth.
[0068] S103. Initialize the number of times the acquisition card has been sampled.
[0069] In this embodiment, perform an initialization process on the number of times the acquisition card has been sampled, and obtain that the number of times n that the acquisition card has been sampled is 0.
[0070] S104. Synchronize and time the acquisition card clock to set the time of the acquisition card clock to zero.
[0071] In this embodiment, use the GPS positioning system to perform a GPS synchronous time - setting on the acquisition card clock once, so that the time of the acquisition card clock returns to 0.
[0072] In this embodiment, the purpose of using GPS synchronous timekeeping is that the target base station is also calibrated for time through the GPS positioning system. Therefore, both the acquisition card and the target base station are in the GPS synchronous state, and the acquisition card can collect correct and expected data sets, making it easier to detect problems with the target base station.
[0073] S105. Calculate the specified time according to the current time of the acquisition card clock.
[0074] The specific formula for the specified time in this embodiment is as follows:
[0075]
[0076] Where time represents the specified time, now represents the current time of the acquisition card clock, slot represents the time slot, and sleep represents the time delay.
[0077] S106. Calculate the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been collected.
[0078] The specific formula for the center frequency of the acquisition card in this embodiment is as follows:
[0079]
[0080] Where c represents the center frequency of the acquisition card, freq represents the center frequency of the spectrum, span represents the span, bw represents the bandwidth of the acquisition card, and n represents the number of times the acquisition card has been collected.
[0081] S107. Based on the center frequency of the acquisition card and according to the specified time, use the acquisition card to collect data of the target base station.
[0082] Based on the center frequency of the acquisition card, starting from the specified time, use the acquisition card to collect an IQ data set with a specified number of sampling points of the target base station, where I: in-phase represents the in-phase; Q: quadrature represents the quadrature, with a 90-degree phase difference from the I phase.
[0083] The above acquisition by the acquisition card is one acquisition.
[0084] The IQ data set with the specified number of sampling points of the target base station in this embodiment is the data of the target base station.
[0085] S108. According to the data of the target base station, obtain an intermediate array and increment the number of times the acquisition card has been collected by one.
[0086] In this embodiment, the array after performing the Fourier transform on the data of the target base station is stored in the intermediate array, and n = n + 1 is executed.
[0087] S109. Compare the added number of times the acquisition card has been collected with the number of times it should be collected, and output the judgment result.
[0088] S110. Determine whether to detect the signal based on the judgment result.
[0089] The specific steps of step S110 are as follows:
[0090] If the judgment result is that the sum of the number of times of collected data and the number of times of data to be collected are equal, then display the intermediate array, implement signal detection according to the intermediate array, re - execute step S103, and execute the subsequent steps;
[0091] If the judgment result is that the sum of the number of times of collected data and the number of times of data to be collected are not equal, then continue to execute step S105 and execute the subsequent steps.
[0092] Embodiment 2:
[0093] As Figure 2 shown, this embodiment provides a 5G signal spectrum detection device, which includes a parameter determination module 201, a first calculation module 202, a first reset module 203, a second reset module 204, a second calculation module 205, a third calculation module 206, a data acquisition module 207, a data processing module 208, a comparison and judgment module 209, and a signal detection module 210. The specific functions of each module are as follows:
[0094] The parameter determination module 201 is used to determine the acquisition card parameters and spectrum parameters, and set the acquisition card clock;
[0095] The first calculation module 202 is used to calculate the number of times of data to be collected by the acquisition card;
[0096] The first reset module 203 is used to initialize the number of times of data collected by the acquisition card;
[0097] The second reset module 204 is used to synchronize and time - set the acquisition card clock so that the time of the acquisition card clock is set to zero;
[0098] The second calculation module 205 is used to calculate the specified time according to the current time of the acquisition card clock;
[0099] The third calculation module 206 is used to calculate the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters, and the number of times of data collected by the acquisition card;
[0100] The data acquisition module 207 is used to collect target base station data by the acquisition card based on the center frequency of the acquisition card and according to the specified time;
[0101] The data processing module 208 is used to obtain the intermediate array according to the target base station data, and increment the number of times of data collected by the acquisition card by one;
[0102] A comparison and judgment module 209, configured to compare the sum of the collected times and the number of times to be collected, and output a judgment result;
[0103] A signal detection module 210, configured to determine whether to detect a signal based on the judgment result.
[0104] For the specific implementation of each module in this embodiment, reference may be made to Embodiment 1 above, which will not be elaborated here one by one; it should be noted that the device provided in this embodiment is only illustrated by the above division of each functional module. In practical applications, the above functions may be assigned to different functional modules as needed, that is, the internal structure is divided into different functional modules to complete all or part of the functions described above.
[0105] Embodiment 3:
[0106] As Figure 3 shown, this embodiment provides a computer device, which includes a processor 302, a memory, an input device 303, a display device 304, and a network interface 305 connected through a system bus 301. Among them, the processor 302 is used to provide computing and control capabilities. The memory includes a non-volatile storage medium 306 and an internal memory 307. The non-volatile storage medium 306 stores an operating system, a computer program, and a database. The internal memory 307 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 306. When the computer program is executed by the processor 302, the 5G signal spectrum detection method of Embodiment 1 above is implemented as follows:
[0107] Determine the acquisition card parameters and spectrum parameters, and set the acquisition card clock;
[0108] Calculate the number of times to be collected by the acquisition card;
[0109] Initialize the number of times the acquisition card has been collected;
[0110] Synchronize and time the acquisition card clock to set the time of the acquisition card clock to zero;
[0111] Calculate the specified time according to the current time of the acquisition card clock;
[0112] Calculate the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been collected;
[0113] Based on the center frequency of the acquisition card and according to the specified time, use the acquisition card to collect target base station data;
[0114] According to the target base station data, obtain an intermediate array, and increment the number of times the acquisition card has been collected by one;
[0115] Compare the sum of the collected times and the times to be collected, and output the judgment result;
[0116] Based on the judgment result, decide whether to detect the signal.
[0117] Embodiment 4:
[0118] This embodiment provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the 5G signal spectrum detection method of the above Embodiment 1 is implemented as follows:
[0119] Determine the acquisition card parameters and spectrum parameters, and set the acquisition card clock;
[0120] Calculate the times to be collected by the acquisition card;
[0121] Initialize the collected times of the acquisition card;
[0122] Synchronize and time the acquisition card clock to set the time of the acquisition card clock to zero;
[0123] Calculate the specified time according to the current time of the acquisition card clock;
[0124] Calculate the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters and the collected times of the acquisition card;
[0125] Based on the center frequency of the acquisition card and according to the specified time, use the acquisition card to collect the target base station data;
[0126] According to the target base station data, obtain the intermediate array and increment the collected times of the acquisition card by one;
[0127] Compare the sum of the collected times and the times to be collected, and output the judgment result;
[0128] Based on the judgment result, decide whether to detect the signal.
[0129] It should be noted that the computer-readable storage medium of this embodiment can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0130] In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In this embodiment, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable storage medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0131] The above computer-readable storage medium can be written in one or more programming languages or combinations thereof for executing the computer program of this embodiment. The above programming languages include object-oriented programming languages - such as Java, Python, C++, and also include conventional procedural programming languages - such as C language or similar programming languages. The program can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0132] In summary, the present invention is based on the center frequency of the acquisition card, and according to the specified time, uses the acquisition card to collect the data of the target base station, and then performs mathematical operations on the data of the target base station to obtain an intermediate array that can achieve signal detection. This method can be applied in a portable acquisition card and corresponding software, overcoming the disadvantages of the existing 5G signal detection equipment being too large in volume, too high in cost, and poor in portability; in addition, the intermediate array obtained by the present invention is convenient for storage and secondary analysis, and is also convenient for expansion.
[0133] The above is only a preferred embodiment of the present invention patent, but the protection scope of the present invention patent is not limited thereto. Any person skilled in the art within the scope disclosed by the present invention patent, according to the technical solution and inventive concept of the present invention patent, makes equivalent replacements or changes, and all belong to the protection scope of the present invention patent.
Claims
1. A 5G signal spectrum detection method, characterized in that, The method includes: Determine the acquisition card parameters and spectrum parameters, and set the acquisition card clock. The acquisition card parameters include gain, number of sampling points, and acquisition card bandwidth. The spectrum parameters include spectrum center frequency, span, time slot, and time delay; Calculate the number of times the acquisition card should acquire; Initialize the number of times the acquisition card has been acquired; Synchronize and time the acquisition card clock to set the time of the acquisition card clock to zero; Calculate the specified time according to the current time of the acquisition card clock; Calculate the acquisition card center frequency according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been acquired; Based on the acquisition card center frequency and according to the specified time, use the acquisition card to collect target base station data; Obtain an intermediate array according to the target base station data, and increment the number of times the acquisition card has been acquired by one; Compare the sum of the acquired times and the number of times the acquisition card should acquire, and output a judgment result; Based on the judgment result, decide whether to detect the signal; The calculation of the specified time according to the current time of the acquisition card clock is as follows: where time represents the specified time, now represents the current time of the acquisition card clock, slot represents the time slot, and sleep represents the time delay; The calculation of the acquisition card center frequency according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been acquired is as follows: where c represents the acquisition card center frequency, freq represents the spectrum center frequency, span represents the span, bw represents the acquisition card bandwidth, and n represents the number of times the acquisition card has been acquired; The decision on whether to detect the signal based on the judgment result specifically includes: If the judgment result is that the sum of the acquired times and the number of times the acquisition card should acquire are equal, display the intermediate array, implement signal detection according to the intermediate array, re-initialize the number of times the acquisition card has been acquired, and perform subsequent operations; If the judgment result is that the sum of the acquired times and the number of times the acquisition card should acquire are not equal, continue to calculate the specified time according to the current time of the acquisition card clock, and perform subsequent operations.
2. The 5G signal spectrum detection method according to claim 1, wherein The calculation of the number of times the acquisition card should acquire is as follows: where m represents the number of times the acquisition card should acquire, ceil() represents the ceiling function, span represents the span, and bw represents the acquisition card bandwidth.
3. The 5G signal spectrum detection method according to claim 1, characterized in that, The target base station data is an IQ data set of the specified number of sampling points of the target base station, where I: In-phase represents the in-phase; Q: Quadrature represents the quadrature, with a 90-degree phase difference from the I phase.
4. A 5G signal spectrum detection device, characterized in that, The device includes: A parameter determination module for determining the acquisition card parameters and spectrum parameters and setting the acquisition card clock; A first calculation module for calculating the number of times the acquisition card should acquire; A first reset module for initializing the number of times the acquisition card has been acquired; A second reset module for synchronizing and timing the acquisition card clock to set the time of the acquisition card clock to zero; A second calculation module for calculating the specified time according to the current time of the acquisition card clock; A third calculation module for calculating the acquisition card center frequency according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been acquired; A data acquisition module for collecting target base station data using the acquisition card based on the acquisition card center frequency and according to the specified time; A data processing module, configured to obtain an intermediate array according to the target base station data and increment the number of times the acquisition card has been acquired by one; A comparison and judgment module, configured to compare the incremented number of times the acquisition card has been acquired with the number of times that should be acquired, and output a judgment result; A signal detection module, configured to determine whether to detect a signal based on the judgment result; Calculating a specified time according to the current time of the acquisition card clock, as shown in the following formula: where time represents the specified time, now represents the current time of the acquisition card clock, slot represents a time slot, and sleep represents a time delay; Calculating the center frequency of the acquisition card according to the acquisition card parameters, spectrum parameters, and the number of times the acquisition card has been acquired, as shown in the following formula: where c represents the center frequency of the acquisition card, freq represents the center frequency of the spectrum, span represents the span, bw represents the bandwidth of the acquisition card, and n represents the number of times the acquisition card has been acquired; Determining whether to detect a signal based on the judgment result specifically includes: If the judgment result is that the incremented number of times the acquisition card has been acquired is equal to the number of times that should be acquired, display the intermediate array, implement signal detection according to the intermediate array, re-initialize the number of times the acquisition card has been acquired, and perform subsequent operations; If the judgment result is that the incremented number of times the acquisition card has been acquired is not equal to the number of times that should be acquired, continue to calculate the specified time according to the current time of the acquisition card clock, and perform subsequent operations.
5. A computer device, comprising a processor and a memory for storing processor-executable programs, characterized in that, When the processor executes the program stored in the memory, the 5G signal spectrum detection method described in any one of claims 1-3 is implemented.
6. A storage medium storing a program, which when executed by a processor, implements the 5G signal spectrum detection method described in any one of claims 1-3.
Citation Information
Patent Citations
Broadband burst signal spectrum analyzer and broadband burst signal analysis method
CN110988473A