Interference detection method of received signal, terminal and storage device

文档序号:537014 发布日期:2021-06-01 浏览:4次 中文

阅读说明:本技术 接收信号的干扰检测方法、终端及存储装置 (Interference detection method of received signal, terminal and storage device ) 是由 龙学焜 胡立坤 欧飞飞 于 2020-12-30 设计创作,主要内容包括:本申请公开了一种接收信号的干扰检测方法、终端及存储装置。其中,接收信号的干扰检测方法包括:对接收的调制数据进行采样,得到至少一组采样数据组,其中,每组采样数据组包括在码元周期内采样的至少一个采样数据;确定每组采样数据组所匹配的消息码,并统计匹配的消息码分布情况;基于匹配的消息码分布情况,确定调制数据的干扰检测结果。上述方案,可实现对调制数据的干扰检测。(The application discloses a method for detecting interference of a received signal, a terminal and a storage device. The interference detection method of the received signal comprises the following steps: sampling the received modulation data to obtain at least one group of sampling data groups, wherein each group of sampling data groups comprises at least one sampling data sampled in a code element period; determining the matched message codes of each group of sampling data groups, and counting the distribution condition of the matched message codes; and determining the interference detection result of the modulation data based on the matched message code distribution condition. According to the scheme, interference detection on the modulation data can be realized.)

1. A method for interference detection of a received signal, the method comprising:

sampling the received modulation data to obtain at least one group of sampling data groups, wherein each group of sampling data groups comprises at least one sampling data sampled in a code element period;

determining the matched message codes of each group of the sampling data groups, and counting the distribution condition of the matched message codes;

and determining an interference detection result of the modulation data based on the matched message code distribution condition.

2. The method of claim 1, wherein sampling the received modulated data to obtain at least one set of sampled data comprises:

acquiring at least one sampling data in a first time window from the received modulation data to obtain a group of the sampling data, wherein the time length of the first time window is the code element period;

and moving the first time window, and repeatedly executing the step of obtaining at least one sampling data in the first time window from the received modulation data to obtain a group of the sampling data.

3. The method of claim 1, wherein determining the message code matched to each of the sets of sampled data comprises:

determining a probability of a match of the sampled data set to each of the message codes;

determining a message code matched with the sampled data set based on the match probability.

4. The method of claim 3,

the determining the matching probability of the sampled data set with each message code comprises:

acquiring the energy of the sampling data group and the correlation degree of the sampling data group and each message code;

obtaining the matching probability of the sampling data group and each message code by using the energy and the correlation;

the determining the message code matched with the sample data group based on the matching probability comprises:

selecting a message code with a matching probability with the sampling data group meeting a preset condition as the message code matched with the sampling data group, wherein the preset condition comprises at least one of the following conditions: the matching probability with the sampling data group is the largest, and the matching probability with the sampling data group is larger than a first preset probability threshold value.

5. The method of claim 4,

the acquiring the energy of the sample data set comprises:

taking the sum of squares of each sample data in the sample data set as the energy of the sample data set;

the obtaining of the correlation degree between the sample data set and each message code includes:

reading a standard data group of the message code from the local storage information, wherein the standard data group comprises at least one standard data;

acquiring products between each sampling data in the sampling data group and the conjugate of the corresponding standard data in the standard data group, and taking the sum of the products corresponding to each sampling data as the correlation degree of the sampling data group and the message code;

the obtaining, by using the energy and the correlation, a matching probability between the sampled data set and each of the message codes includes:

and taking the ratio of the correlation degree of the sampling data group and the message code and the energy of the sampling data group as the matching probability of the sampling data group and the message code.

6. The method of claim 1, wherein the counting the distribution of the matched message codes comprises:

counting the message codes matched with each group of sampling data groups in the second time window to obtain the matching number of each message code;

determining the matching ratio of each message code by using the matching number of each message code;

the determining an interference detection result of the modulated data based on the matched message code distribution condition includes:

and determining the interference detection result of the modulation data by utilizing the matching ratio of each message code.

7. The method of claim 6, wherein the determining the interference detection result of the modulated data by using the matching fraction of each message code comprises:

acquiring the matching ratio sum of the message codes with the maximum ratio and the preset number;

if the matching ratio sum is greater than a preset ratio threshold, determining that the interference detection result of the modulation data is as follows: the message codes with interference, interference points of the preset number and interference positions in the modulation data of the maximum ratio are the message codes with the preset number; and/or the presence of a gas in the gas,

before the determining the match percentage of each message code by using the match number of each message code, the method further includes:

judging whether the sum of the matching number of each message code is greater than a preset matching number;

if so, determining the modulation data as effective data, and executing the matching ratio of each message code determined by using the matching number of each message code;

otherwise, determining the modulation data as invalid data.

8. The method of claim 1, wherein the modulated data is obtained by frequency shift keying modulation.

9. The method of claim 1, wherein after determining the interference detection result of the modulated data based on the matched message code distribution, the method further comprises:

if the interference detection result indicates that the modulation data has interference, switching a receiving channel; or, based on the interference detection result, demodulating the modulated data.

10. The method of claim 9, wherein demodulating the modulated data based on the interference detection result comprises:

respectively taking each sampling data group in the modulation data as data to be demodulated:

if the interference detection result of the modulation data is that no interference exists, taking the message code matched with the data to be demodulated as the demodulation result of the data to be demodulated;

if the interference detection result of the modulation data is that interference exists, determining a non-interference message code with the maximum matching probability with the data to be demodulated, and judging whether the matching probability corresponding to the non-interference message code is greater than a second preset probability threshold, wherein the non-interference message code is a message code located outside an interference position;

if the non-interference message code is larger than the second preset probability threshold, the non-interference message code with the maximum matching probability is used as the demodulation result of the data to be demodulated;

and if the probability is not greater than the second preset probability threshold, taking the message code which is positioned in the interference position and has the maximum matching probability with the data to be demodulated as the demodulation result of the data to be demodulated.

11. A communication terminal comprising a processor and a memory and communication circuitry respectively coupled to the processor, wherein the processor is configured to execute a computer program stored by the memory to perform the method of any of claims 1 to 10.

12. A storage device storing a computer program executable by a processor to perform the method of any one of claims 1-10.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a method, a terminal, and a storage device for detecting interference of a received signal.

Background

In data transmission in the communication field, different message code elements are mapped into corresponding carrier frequencies at a transmitting end, and after transmission, a receiving signal is recovered to the message code element transmitted by the transmitting end at a receiving end, so that data transmission between the transmitting end and the receiving end is realized.

Because interference signals such as man-made interference, natural interference and the like exist in a communication space and appear in a continuous or burst mode and the like, transmission signals are interfered in a data transmission process, and data of a receiving end are further influenced.

In the face of a complex electromagnetic environment and various interference signals, how to detect the interference signals in the transmission data becomes a problem to be solved urgently.

Disclosure of Invention

The application provides a method for detecting interference of a received signal, a terminal and a storage device.

A first aspect of the present application provides a method for detecting interference of a received signal, including: sampling the received modulation data to obtain at least one group of sampling data groups, wherein each group of sampling data groups comprises at least one sampling data sampled in a code element period; determining the matched message codes of each group of the sampling data groups, and counting the distribution condition of the matched message codes; and determining an interference detection result of the modulation data based on the matched message code distribution condition.

Wherein the sampling the received modulation data to obtain at least one group of sampling data includes: acquiring at least one sampling data in a first time window from the received modulation data to obtain a group of the sampling data, wherein the time length of the first time window is the code element period; and moving the first time window, and repeatedly executing the step of obtaining at least one sampling data in the first time window from the received modulation data to obtain a group of the sampling data.

Wherein the determining the message code matched with each group of the sampling data group comprises: determining a probability of a match of the sampled data set to each of the message codes; determining a message code matched with the sampled data set based on the match probability.

Wherein said determining a probability of a match of said sample data set with each of said message codes comprises: acquiring the energy of the sampling data group and the correlation degree of the sampling data group and each message code; obtaining the matching probability of the sampling data group and each message code by using the energy and the correlation; the determining the message code matched with the sample data group based on the matching probability comprises: selecting a message code with a matching probability with the sampling data group meeting a preset condition as the message code matched with the sampling data group, wherein the preset condition comprises at least one of the following conditions: the matching probability with the sampling data group is the largest, and the matching probability with the sampling data group is larger than a first preset probability threshold value.

Wherein said obtaining the energy of the sampled data set comprises: taking the sum of squares of each sample data in the sample data set as the energy of the sample data set; the obtaining of the correlation degree between the sample data set and each message code includes: reading a standard data group of the message code from the local storage information, wherein the standard data group comprises at least one standard data; acquiring products between each sampling data in the sampling data group and the conjugate of the corresponding standard data in the standard data group, and taking the sum of the products corresponding to each sampling data as the correlation degree of the sampling data group and the message code; the obtaining, by using the energy and the correlation, a matching probability between the sampled data set and each of the message codes includes: and taking the ratio of the correlation degree of the sampling data group and the message code and the energy of the sampling data group as the matching probability of the sampling data group and the message code.

Wherein, the counting the distribution of the matched message codes includes: counting the message codes matched with each group of sampling data groups in the second time window to obtain the matching number of each message code; determining the matching ratio of each message code by using the matching number of each message code; the determining an interference detection result of the modulated data based on the matched message code distribution condition includes: and determining the interference detection result of the modulation data by utilizing the matching ratio of each message code.

Wherein, the determining the interference detection result of the modulated data by using the matching ratio of each message code includes: acquiring the matching ratio sum of the message codes with the maximum ratio and the preset number; if the matching ratio sum is greater than a preset ratio threshold, determining that the interference detection result of the modulation data is as follows: the message codes with interference, interference points of the preset number and interference positions in the modulation data of the maximum ratio are the message codes with the preset number; and/or before the determining the matching proportion of each message code by using the matching number of each message code, the method further comprises the following steps: judging whether the sum of the matching number of each message code is greater than a preset matching number; if so, determining the modulation data as effective data, and executing the matching ratio of each message code determined by using the matching number of each message code; otherwise, determining the modulation data as invalid data.

The modulation data is obtained by modulation in a frequency shift keying modulation mode.

Wherein after determining an interference detection result of the modulated data based on the matched message code distribution, the method further comprises: if the interference detection result indicates that the modulation data has interference, switching a receiving channel; and/or demodulating the modulated data based on the interference detection result.

Wherein the demodulating the modulated data based on the interference detection result comprises: respectively taking each sampling data group in the modulation data as data to be demodulated: if the interference detection result of the modulation data is that no interference exists, taking the message code matched with the data to be demodulated as the demodulation result of the data to be demodulated; if the interference detection result of the modulation data is that interference exists, determining a non-interference message code with the maximum matching probability with the data to be demodulated, and judging whether the matching probability corresponding to the non-interference message code is greater than a second preset probability threshold, wherein the non-interference message code is a message code located outside an interference position; if the non-interference message code is larger than the second preset probability threshold, the non-interference message code with the maximum matching probability is used as the demodulation result of the data to be demodulated; and if the probability is not greater than the second preset probability threshold, taking the message code which is positioned in the interference position and has the maximum matching probability with the data to be demodulated as the demodulation result of the data to be demodulated.

A second aspect of the present application provides a communication terminal, comprising: a memory and a processor coupled to each other; the processor is configured to execute the program instructions stored in the memory to implement the interference detection method for the received signal of the first aspect.

A third aspect of the present application provides a storage device having stored thereon program instructions executable by a processor for implementing the method for interference detection of a received signal of the first aspect.

In the scheme, the received modulation data are sampled to obtain at least one group of sampling data groups, and each group of sampling data groups comprises at least one sampling data sampled in a code element period, so that the number of the sampling data groups can be set as required, and basic data are provided for interference detection; and then, determining the message codes matched with each group of the sampling data groups, and counting the distribution condition of the matched message codes, so that the interference detection result of the modulation data can be determined based on the distribution condition of the matched message codes because the distribution condition of the message codes of the normal modulation data is different from the distribution condition of the message codes of the interfered modulation data, and the interference detection of the received modulation data can be realized.

Drawings

Fig. 1 is a flowchart illustrating an embodiment of a method for detecting interference of a received signal according to the present application;

fig. 2 is a flowchart illustrating an interference detection method for a received signal according to another embodiment of the present application;

fig. 3 is a flowchart illustrating an interference detection method for a received signal according to still another embodiment of the present disclosure;

fig. 4 is a flowchart illustrating a step S304 of a method for detecting interference of a received signal according to still another embodiment of the present application;

FIG. 5 is a block diagram of an embodiment of a communication terminal according to the present application;

FIG. 6 is a schematic structural diagram of an embodiment of a communication terminal according to the present application;

FIG. 7 is a block diagram of an embodiment of a memory device according to the present application.

Detailed Description

The following describes in detail the embodiments of the present application with reference to the drawings attached hereto.

Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for detecting interference of a received signal according to the present application. Specifically, the method of the present embodiment includes the following steps:

step S101: the received modulated data is sampled to obtain at least one group of sampled data groups.

The modulated data is obtained by modulating a digital signal, and the communication space includes wired and wireless communication, and the transmission rate may be high, medium, or low, which is not limited specifically herein. For example, the modulation data is obtained by frequency shift keying modulation, so that the modulation of the digital signal is easily realized, and the noise resistance and the attenuation resistance are good. The modulation data includes message codes corresponding to the carry numbers according to different carry numbers of the digital signal modulation mode, for example, if the digital signal modulation mode is octal frequency shift keying modulation, the modulation data includes eight message codes. The received modulation data may be a digital signal obtained by subjecting an air interface signal of the receiver to radio frequency acquisition, amplification, channel filtering, and down-conversion and then digitizing, and the processes of radio frequency acquisition, amplification, channel filtering, and down-conversion are not particularly limited. It can be understood that the message codes of the modulated data transmitting end are distributed uniformly at random, so that the message codes correctly decoded by the receiver should be distributed uniformly for a long enough time when there is no or little interference signal at the receiving end, and the message code distribution decoded by the receiver will not be distributed uniformly but be concentrated in several message codes when there is interference signal at the modulated data.

The received modulated data is sampled to obtain at least one set of sampled data, and each set of sampled data includes at least one sampled data sampled in a symbol period. A number of sample data are collected for one symbol period corresponding to the sampling rate, so that the sample data group includes at least one sample data sampled in the symbol period. And sampling the received modulation data, moving the received modulation data to the current time along the time sequence of the modulation data, and circularly sampling the received modulation data to obtain a plurality of groups of sampling data groups.

In one embodiment, the sampling data set is obtained by obtaining at least one sampling data within a first time window from the received modulation data to obtain a set of sampling data; and moving the first time window, and repeatedly executing the step of obtaining at least one sampling data in the first time window from the received modulation data to obtain a group of sampling data, namely obtaining a plurality of sampling data groups from the received modulation data.

The first time window has a time length of a symbol period, so that one sample data group corresponds to one symbol period, and one sample data group includes sample data in one symbol period. The first time window moves to the current time along the time sequence of the modulation data, and the received modulation data are sampled circularly to obtain a plurality of groups of sampling data groups. The movement of the first time window steps through the sampled data corresponding to one symbol period. Under the condition that the receiver is not synchronized, the movement of the first time window is stepped into one sample data or one symbol period of sample data, specifically, whether the receiver is synchronized with the time point of the symbol period is judged, if not, the movement of the first time window is stepped into one sample data until the receiver is synchronized with the time point of the symbol period, and the movement of the first time window corresponds to one symbol period of sample data.

Step S102: and determining the matched message codes of each group of sampling data groups, and counting the distribution condition of the matched message codes.

The message code to which the sampled data set is matched is most correlated with the message code of the actual signal data, and is one of the message codes of the modulated data. Each sampling data group corresponds to a matched message code, and the message codes corresponding to different sampling data groups may be the same or different, so that the distribution condition of the message codes is counted, the message codes corresponding to all the sampling data groups are classified into different message codes, the total number of the message codes corresponding to each message code and matched with the sampling data groups can be obtained, and the distribution condition of the matched message codes is obtained.

When the message code matched with each group of sampling data groups is determined, the matching probability of the sampling data groups and each message code is determined; based on the match probability, a message code that matches the sampled data set is determined. And when the distribution condition of the matched message codes is counted, counting the message codes matched with each group of sampling data groups in the interference detection time period to obtain the matching number of each message code, and obtaining the distribution condition of the matched message codes based on the matching number of each message code. The number of statistical objects of the distribution of the message codes can be customized, and is not particularly limited herein.

In an embodiment, the method of the present application may be performed in real time to achieve real-time interference detection of received signals.

Step S103: and determining the interference detection result of the modulation data based on the matched message code distribution condition.

The energy of the mono-tone or multi-tone interference signal distributed in the frequency range of the modulated data channel is mainly concentrated on the carrier frequency points corresponding to some message codes and appears in a continuous or burst form, so that when the interference signal falls in the region related to the carrier frequency of the modulated data, the distribution of the matched message codes is unbalanced. The message codes are equally distributed, the modulated data has no interference, and if the message codes are concentrated in a few message codes, the modulated data has interference. And determining the interference detection result of the modulation data according to the matched message code distribution condition. And the interference detection result of the modulation data is the position and the number of the message code with interference and interference in the modulation data. When the distribution of the matched message codes is concentrated in a preset number of message codes, the interference detection result is as follows: the interference exists, the interference points number is a preset number, and the positions where the interference exists in the modulation data are message codes corresponding to the preset number.

In one embodiment, after determining the interference detection result of the modulated data based on the matched message code distribution condition, if the interference detection results indicate that the modulated data has interference, the receiving channel is switched. And a reserve channel exists between the receiver and the transmitter, so that when the modulated data has interference, the current receiving channel is switched to the reserve channel. The carrier frequency is transferred by directly switching channels, and interference frequency points in a channel frequency range are avoided. Because the transceiver adopts a channel scanning mechanism, when the interference detection result is that the modulation data has interference, the error synchronization is cut off and the channel is switched in time, so that the two parties can avoid the channel access in the presence of the interference and can switch to a cleaner channel in time for communication, and the false alarm phenomenon hardly occurs any more.

In another embodiment, after determining the interference detection result of the modulated data based on the matched message code distribution condition, if a plurality of interference detection results indicate that the modulated data has interference, the modulated data is demodulated based on the interference detection result. Under the condition that the modulated data has interference, the interference detection result comprises the position and the number of the interfered message codes, so that the method provides assistance for the demodulation of the modulated data and can reduce error codes caused by the interference. When single-tone or multi-tone interference is detected, the position of the interference is used for demodulation assistance, so that the probability of error codes can be reduced.

Sampling the received modulation data in the above manner to obtain at least one group of sample data groups, each group of sample data groups including at least one sample data sampled in a symbol period, therefore, the number of the sampling data groups can be set according to the requirement, basic data is provided for interference detection, and then by determining the message code matched with each group of the sampling data groups, and the matched message code distribution condition is counted, so as to respectively determine the message codes of the sampling data groups and count the message codes, since the message code distribution of normal modulated data is different from the message code distribution of interfered modulated data, for example, the normal modulated data is generally distributed with message codes in a balanced manner, the message code distribution of the interfered modulation data is not balanced, so that the message code distribution can be adjusted based on the matched message code distribution, and determining the interference detection result of the modulation data, thereby realizing the detection of the interference signal in the modulation data. The interference detection result is determined according to the distribution condition of the matched message codes, so that the robustness is good, the method is suitable for single-tone and multi-tone interference scenes, and can adapt to continuous or burst interference patterns. In addition, in an application embodiment, the interference detection method of the received signal can be executed in a circulating mode, and real-time interference detection of the modulation data is achieved.

Referring to fig. 2, fig. 2 is a flowchart illustrating an interference detection method for a received signal according to another embodiment of the present application. Specifically, the method of the present embodiment includes the following steps:

step S201: the received modulated data is sampled to obtain at least one group of sampled data groups.

The acquisition mode of the sampling data group is to acquire at least one sampling data in a first time window from the received modulation data to obtain a group of sampling data; and moving the first time window, and repeatedly executing the step of obtaining at least one sampling data in the first time window from the received modulation data to obtain a group of sampling data, namely obtaining a plurality of sampling data groups from the received modulation data.

The first time window has a time length of a symbol period, so that one sample data group corresponds to one symbol period, and one sample data group includes sample data in one symbol period. The first time window moves to the current time along the time sequence of the modulation data, and the received modulation data are sampled circularly to obtain a plurality of groups of sampling data groups. The movement of the first time window steps through the sampled data corresponding to one symbol period. Under the condition that the receiver is not synchronized, the movement of the first time window is stepped into one sample data or one symbol period of sample data, specifically, whether the receiver is synchronized with the time point of the symbol period is judged, if not, the movement of the first time window is stepped into one sample data until the receiver is synchronized with the time point of the symbol period, and the movement of the first time window corresponds to one symbol period of sample data.

Step S202: a probability of a match of the sampled data set to each message code is determined.

After at least one set of sampled data sets is obtained, a probability of matching each sampled data set to each message code is determined. Specifically, the energy of a sampling data group and the correlation degree of the sampling data group and each message code are obtained; and obtaining the matching probability of the sampled data set and each message code by using the energy and the correlation.

In one embodiment, when the energy of the sampling data group is obtained, the sum of squares of each sampling data in the sampling data group is used as the energy of the sampling data group; when the correlation degree of the sampling data set and each message code is obtained, a standard data set of the message code is read from the local storage information, wherein the standard data set comprises at least one standard data; and acquiring products between each sampling data in the sampling data group and the conjugate of the corresponding standard data in the standard data group, and taking the sum of the products corresponding to each sampling data as the correlation degree of the sampling data group and the message code, so as to take the ratio of the correlation degree of the sampling data group and the message code to the energy of the sampling data group as the matching probability of the sampling data group and the message code. It is understood that the number of sample data in the sample data group is the same as the number of standard data in the standard data group. The standard data set of the message code in the locally stored information is derived from the baseband data of the transmitted modulated data.

In an application scenario, the probability of matching the sampled data set to each message code is determined by:

first, the energy of the sampled data set is acquired. Specifically, the sample data group includes N sample data, and the calculation formula of the energy of the sample data group is:

where pow represents the energy of the sample data group, x (i) represents the ith sample data, and i is 0,1, 2 … Nsample-1. And calculating the sum of squares of each sampling data in the sampling data group by the formula 1 to obtain the energy of the sampling data group.

Second, the correlation of the sampled data set with each message code is obtained. Specifically, the calculation formula of the correlation degree between the sampled data set and each message code is as follows:

wherein, cm(i) Marking data which represents the ith message code in the standard data group in the local storage information, wherein M is 0,1, 2 … M-1, and M is the number of the standard data and is equal to the number of the sampling data; conj [ c ]m(i)]A conjugate value representing standard data; x (i) denotes the ith sample data and i is 0,1, 2 … Nsample-1;corrmIndicating the correlation of the mth message code with the sampled data set. And acquiring products between each sample data in the sample data group and the conjugate of the corresponding standard data in the standard data group through the formula 2, and taking the sum of the products corresponding to each sample data as the correlation degree of the sample data group and the message code.

Finally, based on the energy and the correlation, the matching probability of the sampled data set with each message code is determined. Specifically, the calculation formula of the matching probability of the sampled data set and each message code is as follows:

wherein, corrmRepresenting the correlation of the mth message code with the sampled data set; pow represents the energy of the sampled data set; p _ mauchmRepresenting the probability of a match of the sampled data set with each message code. After the energy of the sampled data set and the correlation degree between the sampled data set and each message code are obtained, the ratio between the correlation degree between the sampled data set and the message code and the energy of the sampled data set is used as the matching probability between the sampled data set and the message code according to the formula 3.

The energy of the sampling data group is the total energy of the data of each message code, and the correlation is the correlation value of each message code and the standard data group. Because the matching probability of the message codes is the ratio of the energy to the correlation degree, the correlation degree of each message code is normalized, so that the influence of the strength factor of the digital signal on the interference detection is removed, and the subsequent interference detection is more accurate.

In one embodiment, the received modulated data may be sampled to obtain a set of sampled data sets, the match probability between the sampled data set and each message code may be determined, and then the next set of sampled data sets and their match probabilities may be obtained. Acquiring at least one sampling data in a first time window from the received modulation data to obtain a group of sampling data groups; determining the matching probability of the sampled data set and each message code, moving a first time window, and circularly executing to obtain at least one sampled data in the first time window from the received modulated data to obtain a group of sampled data sets; and determining the matching probability of the sampled data groups and each message code, thereby obtaining a plurality of sampled data groups and the corresponding matching probabilities thereof.

Step S203: based on the match probability, a message code that matches the sampled data set is determined.

And selecting the message code with the matching probability meeting the preset condition with the sampling data group as the matched message code of the sampling data group, so that each sampling data group corresponds to one matched message code. The preset conditions include at least one of: the matching probability with the sampling data group is the largest, and the matching probability with the sampling data group is larger than a first preset probability threshold value.

When the message code matched with the sampling data group is determined, the matching probability of each message code in the sampling data group can be obtained, and the message code with the maximum matching probability is used as the message code matched with the sampling data group; the matching probability of each message code in the sampling data group can be obtained, whether the matching probability of each message code is larger than a first preset probability threshold value or not is judged, if yes, the message code with the matching probability larger than the first preset probability threshold value is used as the message code matched with the sampling data group, or when a plurality of message codes with the matching probability larger than the first preset probability threshold value exist, the message code with the maximum matching probability is used as the message code matched with the sampling data group; and further judging whether the matching probability is greater than a first preset probability threshold value or not, and if so, taking the message code with the matching probability greater than the first preset probability threshold value as the message code matched with the sampling data group. It is understood that the matching probabilities of the message codes in the sample data set may be sorted in descending order or ascending order to obtain the message code with the highest matching probability.

The first predetermined probability threshold may be predetermined according to user settings, through simulation and actual testing, and is used to indicate the correlation between the data and the message code. As mentioned above, the matching probability of the message codes is the ratio of the energy to the correlation, and the correlation of each message code is normalized, so as to remove the influence of the strong and weak factors of the digital signal on the interference detection, so that the setting of the first preset probability threshold is not influenced by the signal power.

Step S204: and counting the distribution situation of the matched message codes.

Counting the message codes matched with each group of sampling data groups in the second time window to obtain the matching number of each message code; and determining the matching ratio of each message code by using the matching number of each message code to obtain the distribution condition of the matched message codes. Specifically, the message codes matched with each group of sampling data groups in the second time window are obtained, the message codes matched with the sampling data groups are matched with the message codes of the modulation data, if the matching is successful, the corresponding message code count is increased by one, and the step of matching the message codes matched with the sampling data groups with the message codes of the modulation data is repeatedly executed, so that the matching number of the message codes can be obtained. And acquiring the sum of the matching number of each message code, and taking the quotient of the matching number of each message code and the sum of the matching number of each message code as the matching proportion of each message code.

After the application scenario in step S202 is received, after the matching probability between the sampled data set and the message code is obtained, the message code matched with the sampled data set is determined based on the matching probability, so that the matching percentage of each message code can be determined. The matching proportion of each message code is determined by the following mode:

firstly, the message codes matched with each group of sampling data groups in the second time window are counted to obtain the matching number of each message code.

Then, the sum of the matching numbers of the message codes is obtained. The specific calculation formula is as follows:

wherein N ismThe number of the message codes M successfully matched in the second time window is 0,1, 2 … M-1; n is a radical ofsumIs the sum of the matching numbers of the message codes. The sum of the matching numbers of the message codes can be obtained by the formula 4.

And finally, determining the matching ratio of each message code. Specifically, the calculation formula of the matching proportion of the message code m is as follows:

wherein N ismThe number of successfully matched message codes m in the second time window, NsumThe sum of the matching number of each message code; ratio (R)mIs the matching proportion of the message code m. And calculating the quotient of the sum of the matching number of each message code and the matching number of each message code through the formula 5, so as to obtain the matching ratio of each message code.

To improve the accuracy of the interference detection, the number of sampled data sets within the second time window may be increased. The second time window comprises at least two sampling data groups, and the more the sampling data groups of the second time window are, the more the modulation data can be judged to be distributed equally, so that the interference detection of the modulation data is facilitated by matching the distribution condition of the message codes. Therefore, when the distribution condition of the matched message codes is counted, the proportion of the sum of the matching number and the matching number of each message code in the message codes with the matching probability meeting the preset condition in the second time window is calculated.

In order to detect an interference signal in real time for the modulated data, in an embodiment, after counting a distribution condition of the matched message codes and performing subsequent determination of an interference detection result of the modulated data for a second time window, the second time window may be moved to the current time along a time sequence of the modulated data, and a sliding step of the second time window corresponds to one matched message code, so that the interference detection method for receiving a signal is performed on another part of the modulated data, and an interference detection result of the modulated data is determined, thereby implementing real-time interference detection of the modulated data, and adapting to a complex interference environment.

In an embodiment, before determining the matching percentage of each message code by using the matching number of each message code, it may be determined whether the sum of the matching number of each message code is greater than a preset matching number; if so, determining the modulation data as effective data, and determining the matching ratio of each message code and the subsequent steps thereof by using the matching number of each message code; otherwise, the modulation data is determined to be invalid data. The preset matching number may be preset according to simulation and actual testing, or may be directly set by a user, and the like, and is not specifically limited herein.

It is to be understood that the modulated data includes invalid data in the absence of any signal, including valid data such as pure valid signal data, pure interference signal data, data in which a valid signal is mixed with an interference signal, and in short, the invalid data is data in the absence of any signal, and the valid data is valid signal data and/or interference data. Before the matching proportion of each message code is determined, whether the sum of the matching quantity of each message code is greater than the preset matching quantity is judged, so that the modulation data is rapidly determined to be invalid data under the condition that the sum of the matching quantity of each message code is less than the preset matching quantity, the false alarm phenomenon caused by the missynchronization of a receiver and a transmitter can be further avoided, and the interference of the modulation data is further judged under the condition that the sum of the matching quantity of each message code is greater than the preset matching quantity, so that a part of invalid signals can be eliminated, and the subsequent computing resources are saved.

Step S205: and determining the interference detection result of the modulation data based on the matched message code distribution condition.

The message codes of the modulated data transmitting end are distributed randomly and uniformly, the distribution situation of the matched message codes is unbalanced due to the fact that single-tone or multi-tone interference signals are in the channel frequency range related to the carrier frequency of the modulated data, and the matching occupation ratio of all the message codes is different. And under the condition of acquiring the matching ratio of each message code, determining the interference detection result of the modulation data by using the matching ratio of each message code.

The specific steps of determining the interference detection result of the modulation data by utilizing the matching ratio of each message code comprise: acquiring the matching ratio sum of the message codes with the maximum ratio and the preset number; if the matching ratio sum is larger than the preset ratio threshold, determining that the interference detection result of the modulation data is as follows: the message codes with interference, interference points of preset number and interference positions in the modulation data of the maximum pre-set number exist.

The preset number can be set by self according to needs, and the size of the preset number is smaller than the message code type number of the modulation data, namely, the size of the preset number is smaller than the system number of the modulation data. When the preset number is 1, the interference detection method for the received signal can identify single-tone interference, when the preset number is larger than 1, the interference detection method for the received signal can identify multi-tone interference, the interference scrambling point number of the multi-tone interference is the preset number, and the position of the message code corresponding to the part of the preset number is used as the position where the interference occurs. The preset ratio threshold is determined according to the interference environment which needs to be faced in practice. Therefore, single-tone or multi-tone interference can be identified and its interference location can be determined.

The application scenario in step S204 is carried out, and after the matching percentage of each message code is obtained, the matching percentages of the message codes may be sorted in a descending order, specifically as follows:

ratioq=sortdescend(ratiom) q-0, 1, … M-1 … … (formula 6)

Wherein, ratiomIs the matching proportion of the message code m; sort (Sort)descendThe matching occupation ratios of q message codes are sorted in a descending order, and q is 0,1, 2 … M-1; ratio (R)qAnd the result of the descending sorting of the matching percentage of the message codes is shown. After the matching percentage of the message codes is sorted in a descending order by the formula 6, the matching percentage of the message codes with the largest percentage of the matching percentage of the message codes with the highest preset number can be conveniently obtained.

Then, obtaining the matching ratio sum of the message codes with the largest ratio and the front preset number, wherein the specific formula is as follows:

wherein, ratioqRepresenting the result of the descending order of the matching proportion of the message codes, wherein Q represents the preset number; ratio (R)sum_QAnd the matching ratio sum of the message codes with the largest ratio of the message codes with the preset number is represented.

And finally, comparing the matching ratio sum with a preset ratio threshold, and if the matching ratio sum is greater than the preset ratio threshold, determining that the interference detection result of the modulation data is as follows: the number of interference points is Q, and the positions where the interference exists in the modulated data are the message codes with the maximum pre-set number. For example, when the preset number is 1, the interference detection method for the received signal may identify single tone interference, specifically, after the matching ratios of the message codes are obtained, the matching ratios of the message codes may be sorted in a descending order, the matching ratio of the obtained message code 2 is the largest of the matching ratios of all the message codes, and the matching ratio of the message code 2 is greater than the preset ratio threshold, and then it is determined that the interference detection result of the modulated data is: interference exists, the number of interference points is 1, and the position where the interference exists in the modulated data is a message code 2. For another example, when the preset number is 2, the interference detection method for the received signals can identify multi-tone interference, and after the matching percentage of each message code is obtained, the matching percentages of the message codes can be sorted in a descending order to obtain the matching percentages of the message code 1 and the message code 2 which respectively lie in the first two of the descending order; then, calculating the matching ratio sum of the first two message codes with the largest ratio, namely calculating the matching ratio sum of the message code 1 and the message code 2, and if the matching ratio sum of the message code 1 and the message code 2 is greater than a preset ratio threshold, determining that the interference detection result of the modulation data is as follows: interference exists, the number of interference points is 2, and the positions where interference exists in the modulated data are message code 1 and message code 2.

In one embodiment, after determining the interference detection result of the modulated data based on the matched message code distribution condition, if the interference detection results indicate that the modulated data has interference, the receiving channel is switched. And a reserve channel exists between the receiver and the transmitter, so that when the modulated data has interference, the current receiving channel is switched to the reserve channel. The carrier frequency is transferred by directly switching channels, and interference frequency points in a channel frequency range are avoided. Because the transceiver adopts a channel scanning mechanism, when the interference detection result is that the modulation data has interference, the error synchronization is cut off and the channel is switched in time, so that the two parties can avoid the channel access in the presence of the interference and can switch to a cleaner channel in time for communication, and the false alarm phenomenon hardly occurs any more. In another embodiment, after determining the interference detection result of the modulated data based on the matched message code distribution condition, if a plurality of interference detection results indicate that the modulated data has interference, the modulated data is demodulated based on the interference detection result. For a description of demodulation reference may be made in detail to the following.

Sampling the received modulation data to obtain at least one group of sampling data groups, determining the matching probability of the sampling data groups and each message code, and determining the message code matched with the sampling data groups based on the matching probability; and counting the distribution condition of the matched message codes, and determining the interference detection result of the modulation data based on the distribution condition of the matched message codes, thereby realizing intelligent detection of the interference signals in the modulation data. Because the matched message codes are determined according to the matching probability, the interference detection result is determined according to the distribution condition of the matched message codes, the interference detection is carried out by utilizing the output result of the code element matching of the modulation data, the robustness is good, the method is suitable for single-tone and multi-tone interference scenes, and can adapt to continuous or burst interference patterns. In addition, in an application embodiment, the interference detection method of the received signal can be executed in a circulating mode, and real-time interference detection of the modulation data is achieved.

And after determining the interference detection result of the modulation data based on the matched message code distribution condition, demodulating the modulation data based on the interference detection result if a plurality of interference detection results indicate that the modulation data has interference. Under the condition that the modulated data has interference, the interference detection result comprises the position and the number of the interfered message codes, so that the method provides assistance for the demodulation of the modulated data and can reduce error codes caused by the interference. When single-tone or multi-tone interference is detected, the position of the interference is used for demodulation assistance, so that the probability of error codes can be reduced. Referring to fig. 3, fig. 3 is a flowchart illustrating a method for detecting interference of a received signal according to another embodiment of the present application. Specifically, the method of the present embodiment includes the following steps:

step S301: the received modulated data is sampled to obtain at least one group of sampled data groups.

Step S302: and determining the matched message codes of each group of sampling data groups, and counting the distribution condition of the matched message codes.

Step S303: and determining the interference detection result of the modulation data based on the matched message code distribution condition.

In this embodiment, the descriptions of step S301 to step S303 may refer to the detailed descriptions of step S101 to step S103 shown in fig. 1, and/or the detailed descriptions of the embodiment shown in fig. 2, which are not repeated herein.

Step S304: the modulated data is demodulated based on the interference detection result.

The demodulation method of the modulation data specifically comprises the following steps: respectively taking each sampling data group in the modulation data as data to be demodulated; if the interference detection result of the modulated data is that no interference exists, taking the message code matched with the data to be demodulated as the demodulation result of the data to be demodulated; if the interference detection result of the modulated data is that interference exists, determining a non-interference message code with the maximum matching probability with the data to be demodulated, and judging whether the matching probability corresponding to the non-interference message code is greater than a second preset probability threshold value or not, wherein the non-interference message code is a message code located outside an interference position; if the non-interference message code is larger than a second preset probability threshold, the non-interference message code with the maximum matching probability is used as a demodulation result of the data to be demodulated; and if the probability is not greater than a second preset probability threshold, taking the message code which is positioned in the interference position and has the maximum matching probability with the data to be demodulated as the demodulation result of the data to be demodulated.

It is to be understood that the sample data group corresponds to a symbol period, and the demodulation result of the modulated data in one symbol period corresponds to one message code. The second predetermined probability threshold may be predetermined according to user settings, through simulation and actual tuning, and the like, and is used to indicate the degree of correlation between the data and the message code. The second predetermined probability threshold may be the same as or different from the first predetermined probability threshold, and is not limited herein.

For a clear description of the method for demodulating the modulated data, referring to fig. 4, step S304 specifically includes the following steps:

step S401: and respectively taking each sampling data group in the modulation data as data to be demodulated.

Each sampling data group of the modulation data corresponds to one code element period, and each sampling data group in the modulation data is respectively used as data to be demodulated, so that the demodulation result of the data to be demodulated respectively corresponds to one message code.

Step S402: and judging whether the interference detection result of the data to be demodulated has interference.

And judging whether the interference detection result of the data to be demodulated has interference, namely judging the distribution condition of the message codes based on the matching, and determining whether the interference detection result of the obtained modulated data has interference. The interference detection result includes interference frequency point number and message code corresponding to interference position in the modulation data, so that according to whether there is interference, if not, the following step S403 is executed; if yes, go to step S404.

Step S403: and taking the message code matched with the data to be demodulated as a demodulation result of the data to be demodulated.

And if the interference detection result of the data to be demodulated is that no interference exists, taking the message code matched with the data to be demodulated as the demodulation result of the data to be demodulated. And under the condition that the interference detection result of the modulation data is that no interference exists, taking the message code matched with the sampling data group as the demodulation result of the data to be demodulated, namely taking the message code with the maximum matching probability as the demodulation result. And if the interference detection result shows that no interference exists, the modulation data is a pure effective signal, and the message code matched with the corresponding sampling data group is an effective message code.

Step S404: and determining the non-interference message code with the maximum matching probability with the data to be demodulated, and judging whether the matching probability corresponding to the non-interference message code is greater than a second preset probability threshold value.

The second predetermined probability threshold may be predetermined according to user settings, through simulation and actual tuning, and the like, and is used to indicate the degree of correlation between the data and the message code. The second predetermined probability threshold may be the same as or different from the first predetermined probability threshold, and is not limited herein.

Under the condition that the interference detection result of the modulation data is that interference exists, based on the interference position of the message code in the interference detection result, dividing the message code in the sampling data group into an interference message code and a non-interference message code, determining the non-interference message code with the maximum matching probability with the data to be demodulated, and judging whether the matching probability corresponding to the non-interference message code is greater than a second preset probability threshold value or not, thereby further determining the demodulation result, if so, executing step S4041; if not, the following step S4042 is executed.

Step S4041: and taking the non-interference message code with the maximum matching probability as the demodulation result of the data to be demodulated.

If the interfered message code and the effective message code are not the same message code, the matching probability of the effective message code is the maximum value, and now the matching probability of the interfered message code is larger than that of the effective message code due to the interference of the interfered message code, so that the interfered message code is eliminated, and the matching probability corresponding to the non-interfered message code is judged. And if the matching probability corresponding to the non-interference message codes is greater than a second preset probability threshold, taking the non-interference message code with the maximum matching probability as a demodulation result of the data to be demodulated, thereby eliminating the interference message codes and taking the message code with the maximum matching probability in the non-interference message codes as the demodulation result.

Step S4042: and taking the message code which is positioned in the interference position and has the maximum matching probability with the data to be demodulated as the demodulation result of the data to be demodulated.

If the interfered message code and the effective message code are the same message code, and the matching probability corresponding to the non-interfering message code is smaller than a second preset probability threshold value, the message code which is positioned in the interference position and has the maximum matching probability with the data to be demodulated is used as the demodulation result of the data to be demodulated, so that the actual effective message code can still be identified under the condition that the interference signal appears in the effective message code. Therefore, the non-interfered non-interference message codes are demodulated by adopting a strategy of preferentially judging with the second preset probability threshold, so that the demodulation error rate caused by interference is reduced.

Through the method, the interference detection result of the modulated data is determined based on the matched message code distribution condition, the detection of the interference signal in the modulated data can be realized, and the modulated data is demodulated based on the interference detection result, so that the influence of the interference signal on the transmitted data is reduced.

Referring to fig. 5, fig. 5 is a schematic diagram of a frame of an embodiment of a communication terminal according to the present application. Specifically, the communication terminal 500 in this embodiment includes a memory 510 and a processor 520 coupled to each other. Memory 510 stores program instructions and data that processor 520 may process.

The processor 520 controls the memory 510 and itself to implement the steps of any of the embodiments of the interference detection method for received signals described above. Processor 520 may also be referred to as a CPU (Central Processing Unit). Processor 520 may be an integrated circuit chip having signal processing capabilities. The Processor 520 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 520 may be implemented collectively by a plurality of circuit-forming chips.

Referring to fig. 6, fig. 6 is a schematic structural diagram of a communication terminal according to an embodiment of the present application. As shown in fig. 6, the communication terminal 600 includes a sampling module 610, a first determining module 620, a counting module 630, and a second determining module 640.

The sampling module 610 is configured to sample the received modulation data to obtain at least one group of sample data groups, where each group of sample data groups includes at least one sample data sampled in a symbol period.

The first determining module 620 is configured to determine a message code matched to each group of sampled data.

The statistic module 630 is used for counting the distribution of the matched message codes.

The second determining module 640 is configured to determine an interference detection result of the modulated data based on the matched message code distribution.

The sampling module 610 samples the received modulation data to obtain at least one group of sampling data groups, and sends the sampling data groups to the first determining module 620; the first determining module 620 determines the message code matched with each group of the sampled data groups and sends the message code to the counting module 630; the counting module 630 counts the distribution of the matched message codes based on the matched message codes of each group of the sampling data groups and sends the counted distribution to the second determining module 640; finally, the second determining module 640 determines the interference detection result of the modulated data based on the matched message code distribution condition, so that the communication terminal 600 can realize intelligent detection of the interference signal in the modulated data.

In an embodiment, the communication terminal 600 further includes a demodulation module 650, and the demodulation module 650 is configured to demodulate the modulated data based on the interference detection result.

The functions of the modules of this embodiment can be specifically described with reference to the corresponding steps of the above embodiment.

Through the mode, the communication terminal not only determines the interference detection result of the modulation data based on the matched message code distribution condition, and can realize the detection of the interference signal in the modulation data, but also demodulates the modulation data based on the interference detection result, and reduces the influence of the interference signal on the transmission data.

Referring to fig. 7, fig. 7 is a block diagram illustrating a memory device 700 according to an embodiment of the present disclosure. The memory device 700 of the present application stores program instructions 710 capable of being executed by a processor, where the program instructions 710 are used to implement any of the above-described steps of the method for detecting interference of a received signal.

The storage device 700 may be a medium that can store the program instructions 710, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, or may be a server that stores the program instructions 710, and the server may send the stored program instructions 710 to other devices for operation, or may self-operate the stored program instructions 710.

In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种高速突发信号的同步及均衡装置与方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类