Signal processing method, electronic device and storage medium
By acquiring the frequency and time domain characteristics of the signal and identifying the signal modulation method, the problem of insufficient prior information in the prior art is solved, and a more accurate signal modulation method recognition is achieved.
Patent Information
- Application Number
- CN202011017955.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2040-09-24
AI Technical Summary
In the prior art, the signal modulation method identification algorithm requires multiple prior information, and the third-party monitoring receiver can only obtain rough carrier frequency and signal bandwidth, resulting in inaccurate identification results.
通过获取待识别信号的频域特征和时域特征,包括频谱的峰值个数和平缓程度、包络的离散电平数和平缓程度,与预设调制方式的特征进行比较,识别信号的调制方式。
The signal modulation method can be accurately identified without accurate prior information. The frequency domain features are less affected by noise in data transmission. Combining the frequency domain and time domain feature recognition methods improve the accuracy of the recognition results.
Smart Images

Figure CN114330409B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a signal processing method, an electronic device and a storage medium. Background Art
[0002] In communication technology, different modulation methods can be used to improve transmission efficiency. Therefore, it is often necessary to identify the modulation type based on the received signal at the receiving end in order to recover the original signal.
[0003] In related technologies, the modulation mode recognition algorithm requires a lot of prior information, such as carrier frequency, signal bandwidth, symbol rate, and even synchronization point. However, in engineering practice, third-party monitoring receivers can generally only obtain a rough carrier frequency and signal bandwidth, and cannot accurately obtain the above-mentioned prior information, resulting in inaccurate recognition results. Summary of the invention
[0004] The present application provides a signal processing method, an electronic device and a storage medium, which are used to solve the problem in the prior art that too much prior information is obtained and cannot be accurately obtained, resulting in inaccurate recognition results.
[0005] In a first aspect, an embodiment of the present application provides a signal processing method, the method being used for identifying a signal modulation mode, comprising:
[0006] Acquire frequency domain features and time domain features of the signal to be identified, wherein the frequency domain features include the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, and the time domain features include the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope;
[0007] Comparing the frequency domain feature and the time domain feature with a preset frequency domain feature and a preset time domain feature of a preset modulation mode to obtain a comparison result;
[0008] According to the comparison result, the modulation mode of the signal to be identified is obtained.
[0009] Optionally, the acquiring frequency domain features and time domain features of the signal to be identified includes:
[0010] Acquire time domain data of the signal to be identified;
[0011] Performing Fourier transform on the time domain data to obtain frequency domain data of the signal to be identified, and calculating the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution according to the frequency domain data;
[0012] The time domain data is modulo-operated to obtain the time domain envelope of the signal to be identified, and the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope are calculated according to the time domain envelope.
[0013] Optionally, performing Fourier transform on the time domain expression to obtain frequency domain data of the signal to be identified includes:
[0014] Performing an even-power operation on the time domain data;
[0015] The time domain data before and after the operation are respectively subjected to Fourier transformation to obtain the first-order and even-order frequency domain data of the signal to be identified.
[0016] Optionally, calculating the number of peaks of the spectrum of the signal to be identified according to the frequency domain data includes:
[0017] Dividing the frequency domain data into a preset number of frequency band intervals;
[0018] Calculate the maximum value of the spectrum amplitude in each of the frequency bands;
[0019] Determine a frequency band interval in which the maximum value is greater than the preset amplitude threshold value in the frequency band interval;
[0020] The adjacent frequency band intervals are merged, and the number of the merged frequency band intervals is determined, and used as the number of peak values of the frequency spectrum of the signal to be identified.
[0021] Optionally, calculating the flatness of the frequency spectrum distribution of the signal to be identified according to the frequency domain data includes:
[0022] Calculating the ratio of the eighth-order center distance to the square of the fourth-order origin moment of the spectrum;
[0023] The ratio is normalized to obtain the flatness of the spectrum distribution.
[0024] Optionally, calculating the number of discrete levels of the envelope of the signal to be identified according to the envelope includes:
[0025] Calculating an envelope maximum value and an envelope minimum value of the envelope;
[0026] Determine the value range of each envelope interval according to the envelope maximum value, the envelope minimum value and the number of envelope intervals;
[0027] Counting the number of times the envelope appears in each of the envelope intervals;
[0028] Determining the probability of the number of times the envelope appears in each of the envelope intervals according to the number of times the envelope appears and the length of the time domain data;
[0029] Determine, in the envelope interval, an envelope interval in which the probability is greater than a preset probability threshold;
[0030] The adjacent envelope intervals are merged, and the number of the merged envelope intervals is determined and used as the number of discrete levels of the envelope.
[0031] Optionally, calculating the flatness of the envelope of the signal to be identified according to the envelope includes:
[0032] The ratio of the mean of the square of the envelope to the square of the mean of the envelope is calculated and used as the flatness of the envelope.
[0033] Optionally, the comparing the frequency domain feature and the time domain feature with a preset frequency domain feature and a preset time domain feature of a preset modulation mode to obtain a comparison result includes:
[0034] Acquire preset frequency domain characteristics and preset time domain characteristics of a preset modulation mode;
[0035] Compare the frequency domain features of the signal to be identified with the preset frequency domain features to determine the first category of the preset modulation mode to which the signal to be identified belongs;
[0036] Compare the time domain characteristics of the signal to be identified with the preset time domain characteristics of the preset modulation mode in the first category, and determine a target preset modulation mode corresponding to the preset time domain characteristics consistent with the time domain characteristics of the signal to be identified;
[0037] The target preset modulation mode is used as the comparison result.
[0038] In a second aspect, an embodiment of the present application provides a signal processing device, including:
[0039] An acquisition module, used to acquire frequency domain features and time domain features of the signal to be identified, wherein the frequency domain features include the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, and the time domain features include the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope;
[0040] A comparison module, used to compare the frequency domain feature and the time domain feature with a preset frequency domain feature and a preset time domain feature of a preset modulation mode to obtain a comparison result;
[0041] The determination module is used to obtain the modulation mode of the signal to be identified according to the comparison result.
[0042] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0043] The memory is used to store computer programs;
[0044] The processor is used to execute the program stored in the memory to implement the signal processing method described in the first aspect.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the signal processing method described in the first aspect.
[0046] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application obtains the frequency domain characteristics and time domain characteristics of the signal to be identified, the frequency domain characteristics include the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, and the time domain characteristics include the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope, compares the frequency domain characteristics and the time domain characteristics with the preset frequency domain characteristics and the preset time domain characteristics of the preset modulation mode, obtains the comparison result, and obtains the modulation mode of the signal to be identified according to the comparison result. In this process, it is not necessary to obtain accurate prior information, and the modulation mode of the signal to be identified can be determined by the frequency domain characteristics and the time domain characteristics of the signal to be identified; in addition, since the frequency domain characteristics of the data are less affected by noise during the data transmission process, when identifying the modulation mode of the signal to be identified, the number of peaks of the spectrum of the signal to be identified, the flatness of the spectrum distribution, and the number of discrete levels of the envelope and the flatness of the envelope are used. In this way, the recognition result of the modulation mode of the signal to be identified can be made more accurate by jointly identifying the frequency domain characteristics and the time domain characteristics. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0049] Figure 1 A flowchart of a signal processing method provided by an embodiment of the present application;
[0050] Figure 2 A flow chart of calculating the number of peaks of the spectrum of a signal to be identified and / or the flatness of the spectrum distribution in a signal processing method provided in an embodiment of the present application;
[0051] Figure 3 A flowchart of obtaining frequency domain data of a signal to be identified in a signal processing method provided in an embodiment of the present application;
[0052] Figure 4 A flow chart of calculating the number of peaks of a spectrum of a signal to be identified based on frequency domain data in a signal processing method provided in an embodiment of the present application;
[0053] Figure 5 A flow chart of calculating the flatness of the frequency spectrum distribution of a signal to be identified based on frequency domain data in a signal processing method provided in an embodiment of the present application;
[0054] Figure 6 A flow chart of calculating the number of discrete levels of a signal envelope to be identified according to an envelope in a signal processing method provided in an embodiment of the present application;
[0055] Figure 7 A flowchart of obtaining a comparison result in a signal processing method provided in an embodiment of the present application;
[0056] Figure 8 A structural diagram of a signal processing device provided in one embodiment of the present application;
[0057] Fig. 9 A structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0059] In one embodiment of the present application, a signal processing method is provided, which can be applied to any form of electronic equipment, such as a terminal and a server. Figure 1 As shown, the signal processing method, which is used for identifying the signal modulation mode, includes:
[0060] Step 101, obtaining frequency domain features and time domain features of the signal to be identified, wherein the frequency domain features include the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, and the time domain features include the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope.
[0061] In some embodiments, there are multiple types of frequency domain features and time domain features of the signal to be identified. In this application, the number of peaks of the spectrum that changes less during data transmission and the flatness of the spectrum distribution, as well as the number of discrete levels of the envelope and the flatness of the envelope are used as features for identifying the signal to be identified.
[0062] Specifically, the process of calculating the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution is as follows:
[0063] Step 201: Obtain time domain data of a signal to be identified.
[0064] Step 202: Perform Fourier transform on the time domain data to obtain frequency domain data of the signal to be identified, and calculate the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution according to the frequency domain data.
[0065] In some embodiments, the time domain data may be the initial time domain data of the signal to be identified. In order to better identify the modulation method of the signal to be identified, in this embodiment, the time domain data may also include the time domain data obtained after performing multiple power operations on the initial time domain data.
[0066] Further, the time domain expression is subjected to Fourier transform to obtain frequency domain data of the signal to be identified, and the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution are calculated according to the frequency domain data, which can be specifically:
[0067] Step 301: Perform an even-power operation on the time domain data.
[0068] In some embodiments, the even power can be one or more, which can be set according to actual conditions and is not limited here. For example, the time domain data can be subjected to quadratic, quartic, and octal operations in sequence to obtain quadratic time domain data, quartic time domain data, and octal time domain data.
[0069] Step 302: Perform Fourier transform on each time domain data before and after the operation to obtain the first-order frequency domain data and the even-order frequency domain data of the signal to be identified.
[0070] In some embodiments, after the time domain data is raised to an even power, it is necessary to perform Fourier transform on each obtained time domain data to obtain corresponding frequency domain data. Based on the above-mentioned related embodiments, after obtaining the secondary time domain data, the fourth time domain data and the eighth time domain data, the first time domain data, the second time domain data, the fourth time domain data and the eighth time domain data are respectively Fourier transformed to obtain the first frequency domain data, the second frequency domain data, the fourth frequency domain data and the eighth frequency domain data.
[0071] Step 303: Calculate the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution according to the frequency domain data.
[0072] Specifically, when calculating the number of peaks of the spectrum of the signal to be identified based on the frequency domain data, the frequency domain data is the frequency domain data of the corresponding power obtained after the time domain data is raised to an even power. When calculating the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, the frequency domain data is the frequency domain data of the first order and the frequency domain data of the corresponding power.
[0073] Furthermore, the number of peaks of the spectrum of the signal to be identified is calculated based on the frequency domain data, specifically including:
[0074] Step 401: Divide the frequency domain data into a preset number of frequency band intervals.
[0075] Step 402: Calculate the maximum value of the spectrum amplitude in each frequency band.
[0076] Step 403: Determine a frequency band interval in which the maximum value is greater than a preset amplitude threshold value.
[0077] Step 404: merge adjacent frequency bands, determine the number of the merged frequency bands, and use the number as the number of peaks of the spectrum of the signal to be identified.
[0078] Among them, the preset number of frequency band intervals and amplitude threshold values can be set according to actual conditions and are not limited here.
[0079] Furthermore, the flatness of the spectrum distribution of the signal to be identified is calculated based on the frequency domain data, specifically including:
[0080] Step 501: Calculate the ratio of the eighth-order center distance and the fourth-order origin moment square of the frequency domain data.
[0081] Step 502: Normalize the ratio to obtain the flatness of the spectrum distribution.
[0082] Specifically, the ratio is normalized by dividing the obtained ratio by the length of the frequency domain data to obtain the flatness of the spectrum distribution (expressed as kur). It should be noted that the value range of kur is 0 to 1. The smaller the value of kur, the flatter the data spectrum distribution. The larger the value of kur, the more likely it is that a prominent peak will appear: when the value of kur is close to 0, the spectrum peak will be many small peaks and the distribution will be very flat. When the value of kur is close to 0.5, it is possible that there are two prominent peaks. When the value of kur is close to 1, it is possible that there is one prominent peak.
[0083] The process of calculating the number of discrete levels of the envelope of the signal to be identified and the flatness of the envelope is as follows:
[0084] Step 203: Take the modulus of the time domain data to obtain the envelope of the time domain data, and calculate the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope according to the envelope.
[0085] The time domain data is the initial time domain data of the signal to be identified.
[0086] Further, the number of discrete levels of the envelope of the signal to be identified is calculated according to the envelope, specifically including:
[0087] Step 601: Calculate the maximum value and the minimum value of the envelope of the time domain data envelope.
[0088] Step 602: Determine the value range of each envelope interval according to the envelope maximum value, the envelope minimum value and the number of envelope intervals.
[0089] Step 603: Count the number of times the envelope appears in each envelope interval.
[0090] Step 604: Determine the probability of the number of envelope occurrences in each envelope interval according to the number of envelope occurrences and the length of the time domain data.
[0091] Step 605: Determine the envelope intervals in the envelope intervals whose probabilities are greater than a preset probability threshold.
[0092] Step 606: merge adjacent envelope intervals, determine the number of merged envelope intervals, and use the number as the discrete level number of the envelope.
[0093] The number of envelope intervals and the probability threshold value can be set according to actual conditions and are not limited here. In addition, the number of envelope intervals can be the same as the number of frequency band intervals divided by the above spectrum data.
[0094] Furthermore, the flatness of the envelope of the signal to be identified is calculated according to the envelope, specifically including:
[0095] The ratio of the mean of the square of the envelope to the square of the mean of the envelope is calculated and used as the flatness of the envelope.
[0096] The variance of variable x is defined as D(x)=E(x 2 )-E(x) 2 , the mean is E(x), and the smoothness of the envelope can be expressed as:
[0097]
[0098]
[0099] Where: R represents the flatness of the envelope, D(s_env 2 ) represents the variance of the envelope, E(s_env) 2 represents the square of the envelope mean, and E(s_env) represents the mean of the envelope.
[0100] It should be noted that the minimum value of R is 1. The smaller the value of R is, the smoother the fluctuation of the data envelope distribution is. The larger the value of R is, the steeper the fluctuation of the data envelope distribution is, and the more likely it is multi-level data.
[0101] Step 102: compare the frequency domain characteristics and the time domain characteristics with the preset frequency domain characteristics and the preset time domain characteristics of the preset modulation mode to obtain a comparison result.
[0102] In some embodiments, common digital signal modulation methods mainly include: Amplitude ShiftKeying (ASK), Frequency Shift Keying (FSK), Phase Shift Keying (PSK), Quadrature Amplitude Modulation (QAM), Minimum Shift Keying (MSK), Offset Quadrature Phase Shift Keying (OQPSK) and Differential Quadrature Phase Shift Keying (π / 4-Different Quadrature Phase Shift Keying, π / 4DQPSK)
[0103] In this embodiment, the preset modulation modes of 2ASK, 2FSK, 2PSK, QPSK, 8PSK, 16QAM, MSK, OQPSK, and π / 4DQPSK are taken as examples for description.
[0104] It is understandable that, for each of the above preset modulation modes, the number of corresponding preset spectrum peaks, the flatness of preset spectrum distribution, the number of discrete levels of the preset envelope and the flatness of the preset envelope need to be calculated first.
[0105] The number of peaks of the preset spectrum of the preset modulation mode has the characteristics listed in Table 1:
[0106]
[0107] Table 1
[0108] In Table 1, peak1, peak2, peak4, and peak8 represent the number of spectrum peaks of the signal to be identified under the first power, second power, fourth power, and eighth power, respectively, and \ indicates that no judgment is required under this modulation mode.
[0109] The flatness of the preset spectrum distribution of the preset modulation mode has the characteristics listed in Table 2:
[0110]
[0111] Table 2
[0112] In Table 2, kur1, kur2, kur4, and kur8 respectively represent the flatness of the spectrum distribution of the signal to be identified under the first power, second power, fourth power, and eighth power, and \ indicates that no judgment is required under this modulation mode.
[0113] The discrete level number (amp) of the preset envelope of the preset modulation mode has the characteristics as listed in Table 3:
[0114]
[0115]
[0116] Table 3
[0117] The flatness (R) of the preset envelope of the preset modulation mode has the characteristics as listed in Table 4:
[0118] Signal Type R 2ASK big 2FSK Small BPSK Small QPSK Small 8PSK Small 16QAM big MSK Small OQPSK Small π / 4DQPSK Small
[0119] Table 4
[0120] It can be understood that the characteristics of each preset modulation method in the above four tables are different. Therefore, the modulation method of the signal to be identified can be determined based on the number of peaks of the spectrum of the signal to be identified, the flatness of the spectrum distribution, the number of discrete levels of the envelope and the flatness of the envelope.
[0121] In the process of identifying the signal to be identified according to the above four characteristics, the characteristics of the signal to be identified can be compared with the characteristics of the preset modulation mode in sequence, and the comparison order of the four characteristics can be set according to actual conditions.
[0122] Preferably, step 102 specifically includes:
[0123] Step 701: Obtain preset frequency domain characteristics and preset time domain characteristics of a preset modulation method.
[0124] Step 702: Compare the frequency domain characteristics of the signal to be identified with the preset frequency domain characteristics to determine the first category of the preset modulation mode to which the signal to be identified belongs.
[0125] Step 703: compare the time domain characteristics of the signal to be identified with the preset time domain characteristics of the preset modulation mode in the first category, and determine the target preset modulation mode corresponding to the preset time domain characteristics consistent with the time domain characteristics of the signal to be identified.
[0126] Step 704: Use the target preset modulation mode as the comparison result.
[0127] Specifically, according to the above embodiment, the number of peaks of the spectrum of the signal to be identified and the degree of smoothness of the spectrum distribution are calculated after the first power, second power, fourth power and eighth power. When comparing the characteristics of the signal to be identified, the degree of smoothness of the spectrum distribution of the signal to be identified under the first power, second power, fourth power and eighth power can be compared with the degree of smoothness of the preset spectrum distribution in turn, and then the number of peaks of the spectrum of the signal to be identified under the first power, second power, fourth power and eighth power can be compared with the number of peaks of the preset spectrum, so as to determine the first category of the preset modulation mode to which the signal to be identified belongs. Furthermore, the time domain characteristics of the signal to be identified are compared with the preset time domain characteristics of the preset modulation mode in the first category, and the target preset modulation mode corresponding to the preset time domain characteristics consistent with the time domain characteristics of the signal to be identified is determined, and the target preset modulation mode is used as the comparison result.
[0128] In a specific embodiment, the signals with prominent and non-prominent spectrum peaks can be classified according to kur1 in Table 2. In the two categories of prominent and non-prominent spectrum peaks, the signals to be identified are classified according to the values of peak1, peak2, peak4, and peak8 respectively. Under peak1, peak2, peak4, and peak8, the signals are classified according to the values of kur2, kur4, kur8, amp, and R parameters respectively, thereby obtaining the classification results of the signals to be identified.
[0129] Step 103: Obtain the modulation mode of the signal to be identified according to the comparison result.
[0130] In this embodiment, after the comparison result is determined, the modulation mode of the signal to be identified can be determined.
[0131] In the present application, it is not necessary to obtain accurate prior information. The modulation mode of the signal to be identified can be determined through the frequency domain characteristics and time domain characteristics of the signal to be identified. In addition, since the frequency domain characteristics of the data are less affected by noise during the signal transmission process, when identifying the modulation mode of the signal to be identified, the number of peaks of the spectrum of the signal to be identified, the flatness of the spectrum distribution, and the number of discrete levels of the envelope and the flatness of the envelope are used. In this way, the recognition result of the modulation mode of the signal to be identified can be made more accurate by jointly identifying the frequency domain characteristics and the time domain characteristics. In addition, since the frequency domain is more stable and the robustness of the characteristics is better than that of the time domain, the recognition method provided by the present application is based on the principle of frequency domain priority and time domain assistance when comprehensively judging the recognition data.
[0132] Based on the same concept, a signal processing device is provided in the embodiment of the present application. The specific implementation of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 8 As shown, the device mainly includes:
[0133] An acquisition module 801 is used to acquire frequency domain features and time domain features of the signal to be identified, wherein the frequency domain features include the number of peaks of the spectrum of the signal to be identified and the flatness of the spectrum distribution, and the time domain features include the number of discrete levels of the envelope of the signal to be identified and the flatness of the envelope;
[0134] A comparison module 802 is used to compare the frequency domain characteristics and the time domain characteristics with the preset frequency domain characteristics and the preset time domain characteristics of the preset modulation mode to obtain a comparison result;
[0135] The determination module 803 is used to obtain the modulation mode of the signal to be identified according to the comparison result.
[0136] Based on the same concept, an electronic device is provided in an embodiment of the present application, such as Fig. 9 As shown, the electronic device mainly includes: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 communicate with each other through the communication bus 904. The memory 903 stores a program that can be executed by the processor 901, and the processor 901 executes the program stored in the memory 903 to implement the following steps:
[0137] Acquire frequency domain features and time domain features of the signal to be identified, wherein the frequency domain features include the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, and the time domain features include the number of discrete levels of the envelope of the signal to be identified and / or the flatness of the envelope;
[0138] Comparing the frequency domain features and the time domain features with the preset frequency domain features and the preset time domain features of the preset modulation mode to obtain a comparison result;
[0139] According to the comparison result, the modulation mode of the signal to be identified is obtained.
[0140] The communication bus 904 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 904 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0141] The communication interface 902 is used for communication between the electronic device and other devices.
[0142] The memory 903 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 901.
[0143] The above-mentioned processor 901 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0144] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the signal processing method described in the above embodiment.
[0145] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0146] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0147] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A signal processing method, the method being used for identifying a signal modulation mode, characterized in that: include: Acquire frequency domain features and time domain features of the signal to be identified, wherein the frequency domain features include the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution, and the time domain features include the number of discrete levels of the envelope of the signal to be identified; Comparing the frequency domain feature and the time domain feature with a preset frequency domain feature and a preset time domain feature of a preset modulation mode to obtain a comparison result; According to the comparison result, obtaining the modulation mode of the signal to be identified; The number of discrete levels of the envelope is obtained by the following steps: Acquire time domain data of the signal to be identified; Taking a modulus of the time domain data to obtain a time domain envelope of the signal to be identified; Calculating the maximum value and the minimum value of the time domain envelope; Determine the value range of each envelope interval according to the envelope maximum value, the envelope minimum value and the number of envelope intervals; Counting the number of times the envelope appears in each of the envelope intervals; Determining the probability of the number of times the envelope appears in each of the envelope intervals according to the number of times the envelope appears and the length of the time domain data; Determine, in the envelope interval, an envelope interval in which the probability is greater than a preset probability threshold; The adjacent envelope intervals are merged, and the number of the merged envelope intervals is determined and used as the number of discrete levels of the envelope.
2. The signal processing method according to claim 1, characterized in that: The time domain feature also includes the flatness of the envelope of the signal to be identified. The step of obtaining the frequency domain feature and the time domain feature of the signal to be identified includes: Acquire time domain data of the signal to be identified; Performing Fourier transform on the time domain data to obtain frequency domain data of the signal to be identified, and calculating the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution according to the frequency domain data; The time domain data is modulo-operated to obtain the time domain envelope of the signal to be identified, and the number of discrete levels of the envelope of the signal to be identified and the flatness of the envelope are calculated according to the time domain envelope.
3. The signal processing method according to claim 2, characterized in that: The performing Fourier transform on the time domain expression to obtain frequency domain data of the signal to be identified includes: Performing an even-power operation on the time domain data; Performing Fourier transform on each time domain data before and after the operation to obtain the first power frequency domain data and the even power frequency domain data of the signal to be identified; The step of calculating the number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution according to the frequency domain data includes: The number of peaks of the spectrum of the signal to be identified and / or the flatness of the spectrum distribution are calculated according to the first-order frequency domain data and the even-order frequency domain data.
4. The signal processing method according to claim 2 or 3, characterized in that: Calculating the number of peaks of the spectrum of the signal to be identified according to the frequency domain data includes: Dividing the frequency domain data into a preset number of frequency band intervals; Calculate the maximum value of the spectrum amplitude in each of the frequency bands; Determine a frequency band interval in which the maximum value is greater than a preset amplitude threshold value in the frequency band interval; The adjacent frequency band intervals are merged, and the number of the merged frequency band intervals is determined, and used as the number of peak values of the frequency spectrum of the signal to be identified.
5. The signal processing method according to claim 2 or 3, characterized in that: Calculating the flatness of the frequency spectrum distribution of the signal to be identified according to the frequency domain data includes: Calculate the ratio of the eighth-order center distance and the fourth-order origin moment square of the frequency domain data; The ratio is normalized to obtain the flatness of the spectrum distribution.
6. The signal processing method according to claim 2, characterized in that: Calculating the flatness of the envelope of the signal to be identified according to the envelope includes: The ratio of the mean of the square of the envelope to the square of the mean of the envelope is calculated and used as the flatness of the envelope.
7. The signal processing method according to claim 1, characterized in that: The comparing the frequency domain feature and the time domain feature with a preset frequency domain feature and a preset time domain feature of a preset modulation mode to obtain a comparison result includes: Acquire preset frequency domain characteristics and preset time domain characteristics of a preset modulation mode; Compare the frequency domain features of the signal to be identified with the preset frequency domain features to determine the first category of the preset modulation mode to which the signal to be identified belongs; Compare the time domain characteristics of the signal to be identified with the preset time domain characteristics of the preset modulation mode in the first category, and determine a target preset modulation mode corresponding to the preset time domain characteristics consistent with the time domain characteristics of the signal to be identified; The target preset modulation mode is used as the comparison result.
8. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the signal processing method according to any one of claims 1 to 7.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the signal processing method according to any one of claims 1 to 7 is implemented.
