Signal-to-noise ratio calculation method, device, electronic device and storage medium

By obtaining the target synchronization sequence and channel estimates after frame synchronization, signal reconstruction and noise calculation are performed, the target signal-to-noise ratio is determined, which solves the accuracy of signal-to-noise ratio calculation in the prior art, and improves communication quality and channel bandwidth. Matchability.

CN118555025BActive Publication Date: 2024-11-15GUANGZHOU HAIGE COMMUNICATION GROUP INCORPORATED COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411017497.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

In the prior art, how to accurately calculate the signal-to-noise ratio is an important issue, which affects the communication quality, especially in wireless communication systems, the existence of noise signals will affect the communication quality. An effective method is needed to reduce the impact of noise signals and improve the Communication quality.

Method used

By obtaining the target synchronization sequence and channel estimates after frame synchronization, signal reconstruction is carried out to obtain ideal received information, calculate noise information and determine the target signal-to-noise ratio, and then determine the target bandwidth, generate control instructions and send them to the terminal, so that it can be based on the target bandwidth Transfer data.

Benefits of technology

This method ensures that the data of the transceiver end is consistent through the target synchronization sequence and channel estimation after frame synchronization, and performs signal reconstruction without noise influence, calculates noise information and ideal reception information to obtain an accurate target signal-to-noise ratio, which improves the The matching of communication quality and channel bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555025B_ABST
    Figure CN118555025B_ABST
Patent Text Reader

Abstract

This application relates to a signal-to-noise ratio (SNR) calculation method, apparatus, electronic device, and storage medium, which are applied in the field of communication technology. The method includes: acquiring a target synchronization sequence and a channel estimate after frame synchronization; reconstructing a signal based on the target synchronization sequence and the channel estimate to obtain ideal reception information; calculating noise information based on the actual reception information and the ideal reception information; and determining a target SNR based on the ideal reception information and the noise information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a signal-to-noise ratio calculation method, device, electronic device and storage medium. Background Art

[0002] In wireless communication systems, the presence of noise signals will affect the communication quality. Processing based on the signal-to-noise ratio can reduce the impact of noise signals and improve communication quality.

[0003] The signal-to-noise ratio is a major technical indicator for measuring the reliability of the communication quality of a communication system. Therefore, it is very important to accurately determine the signal-to-noise ratio. Summary of the invention

[0004] The present application provides a signal-to-noise ratio calculation method, device, electronic device and storage medium to solve the problem of how to calculate the signal-to-noise ratio in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a method for calculating a signal-to-noise ratio, including:

[0006] Acquire a target synchronization sequence and a channel estimation value after frame synchronization;

[0007] Perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information;

[0008] Calculate noise information based on actual received information and the ideal received information;

[0009] A target signal-to-noise ratio is determined based on the ideal reception information and the noise information.

[0010] Optionally, the performing signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information includes:

[0011] constructing a synchronization matrix based on the channel length and the symbols in the target synchronization sequence;

[0012] The synchronization matrix and the channel estimation value are multiplied to obtain the ideal reception information.

[0013] Optionally, constructing a synchronization matrix based on the channel length and the symbols in the target synchronization sequence includes:

[0014] Starting from the first symbol in the target synchronization sequence, each adjacent symbol of the channel length is sequentially used as a row of the synchronization matrix; and

[0015] Using the symbols of each row as columns of the synchronization matrix in order from back to front in the target synchronization sequence;

[0016] Until the last symbol in the target synchronization sequence, the synchronization matrix is ​​obtained.

[0017] Optionally, determining a target signal-to-noise ratio based on the ideal received information and the noise information includes:

[0018] Calculating a first square sum of each symbol in the ideal received information;

[0019] Calculate the second square sum of each symbol in the noise information;

[0020] calculating a ratio of the first sum of squares to the second sum of squares;

[0021] The ratio is determined to be the target signal-to-noise ratio.

[0022] Optionally, the target synchronization sequence after frame synchronization is obtained, including:

[0023] Acquire an initial synchronization sequence obtained after frame synchronization according to a preset communication protocol, where the initial synchronization sequence is at least one;

[0024] At least one of the initial synchronization sequences is determined as the target synchronization sequence.

[0025] Optionally, when there are more than two target synchronization sequences, an average value of the target signal-to-noise ratio determined based on all the target synchronization sequences is determined as the target signal-to-noise ratio.

[0026] Optionally, calculating the noise information based on the actual received information and the ideal received information includes:

[0027] The difference between the actual received information and the ideal received information is determined as the noise information.

[0028] In a second aspect, an embodiment of the present application provides a signal-to-noise ratio calculation device, including:

[0029] An acquisition module, used for acquiring a target synchronization sequence and a channel estimation value after frame synchronization;

[0030] A signal reconstruction module, used to perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information;

[0031] A calculation module, used for calculating noise information based on actual received information and the ideal received information;

[0032] A determination module is used to determine a target signal-to-noise ratio based on the ideal reception information and the noise information.

[0033] 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;

[0034] The memory is used to store computer programs;

[0035] The processor is used to execute the program stored in the memory to implement the signal-to-noise ratio calculation method described in the first aspect.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the signal-to-noise ratio calculation method described in the first aspect is implemented.

[0037] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: the method provided by the embodiment of the present application obtains the target synchronization sequence and channel estimation value after frame synchronization; performs signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal reception information; calculates noise information based on actual reception information and the ideal reception information; determines the target signal-to-noise ratio based on the ideal reception information and the noise information; determines the target bandwidth corresponding to the target signal-to-noise ratio; generates a control instruction based on the target bandwidth, and sends the control instruction to the terminal so that the terminal transmits data according to the target bandwidth. In this way, the target synchronization sequence and channel estimation value are obtained, and the target synchronization sequence is obtained after frame synchronization. Therefore, it can ensure that the data at both ends of the transmitter and receiver are consistent, and the ideal reception information is obtained without the influence of noise by performing signal reconstruction between the two, and then the target signal-to-noise ratio is obtained by calculating the noise information and the ideal reception information. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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.

[0039] 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.

[0040] Figure 1 A diagram of an application scenario of a method for calculating a signal-to-noise ratio provided in an embodiment of the present application;

[0041] Figure 2 A flowchart of a method for calculating a signal-to-noise ratio provided in an embodiment of the present application;

[0042] Figure 3 A flowchart of a method for calculating a signal-to-noise ratio provided in another embodiment of the present application;

[0043] Figure 4 A structural diagram of a signal-to-noise ratio calculation device provided in one embodiment of the present application;

[0044] Figure 5 A structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0045] 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.

[0046] According to an embodiment of the present application, a method for calculating a signal-to-noise ratio is provided. Optionally, in the embodiment of the present application, the above-mentioned method for calculating a signal-to-noise ratio can be applied to Figure 1 In the hardware environment composed of the terminal 101 and the server 102 shown in FIG. Figure 1 As shown, the server 102 is connected to the terminal 101 via a network, and can be used to provide services (such as communication services, application services, etc.) for the terminal or a client installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for the server 102. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a base station, etc.

[0047] The signal-to-noise ratio calculation method of the embodiment of the present application may be executed by the server 102, or by the terminal 101, or by both the server 102 and the terminal 101. The signal-to-noise ratio calculation method of the embodiment of the present application may be executed by the terminal 101, or by a client installed thereon.

[0048] Taking the base station executing the signal-to-noise ratio calculation method of the embodiment of the present application as an example, Figure 2 is a flow chart of an optional signal-to-noise ratio calculation method according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0049] Step 201: Acquire a target synchronization sequence and a channel estimation value after frame synchronization.

[0050] In some embodiments, the channel estimation value may be calculated using a least squares algorithm, a linear filter algorithm, a Kalman filter algorithm, or the like provided in the relevant technology.

[0051] After the base station performs frame synchronization, it can obtain an initial synchronization sequence, which can be used directly as a target synchronization sequence, or the initial synchronization sequence can be split to obtain multiple target synchronization sequences.

[0052] In an optional embodiment, acquiring a target synchronization sequence after frame synchronization includes:

[0053] Acquire an initial synchronization sequence obtained after frame synchronization according to a preset communication protocol, where the initial synchronization sequence is at least one;

[0054] At least one of the initial synchronization sequences is determined as the target synchronization sequence.

[0055] In some embodiments, the number of initial synchronization sequences obtained after frame synchronization varies according to different communication protocols. One of the synchronized initial synchronization sequences may be used as the target synchronization sequence, or multiple may be used as the target synchronization sequences.

[0056] In order to improve the accuracy of the signal-to-noise ratio calculation result, the obtained initial synchronization sequences can be used as target synchronization sequences, and the signal-to-noise ratio is calculated based on each target synchronization sequence, and the target signal-to-noise ratio is obtained by calculating the average.

[0057] Exemplarily, an initial synchronization sequence of 48 bits obtained by frame synchronization is divided into two segments, each segment having 24 symbols, for example, and a specific description is given.

[0058] The two sets of target synchronization sequences TSC and TSC length are obtained. .

[0059] Correspondingly, the two sets of target synchronization sequences are: and , where each or Represents the symbol at the i-th position in the target synchronization sequence.

[0060] Step 202: Perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information.

[0061] In some embodiments, under ideal conditions, there is no noise in the signal during transmission, so the target synchronization sequence and channel estimation value are used to reconstruct the signal, estimate the received information, and obtain ideal received information in the absence of noise.

[0062] In an optional embodiment, performing signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information includes:

[0063] Constructing a synchronization matrix based on the channel length and the symbols in the target synchronization sequence, wherein the synchronization matrix is ​​used to represent the transmission information of the transmitting end;

[0064] The synchronization matrix and the channel estimation value are multiplied to obtain the ideal reception information.

[0065] In some embodiments, the channel length can be determined according to the channel characteristics. Usually, three symbols can estimate one received symbol. Therefore, the channel length It can be set to 3. Further, a synchronization matrix is ​​constructed for the symbols in the target synchronization sequence according to the channel length, so that the channel estimation value is multiplied by the synchronization matrix to obtain dimensional matrix.

[0066] In an optional embodiment, constructing a synchronization matrix based on the channel length and the symbols in the target synchronization sequence includes:

[0067] Starting from the first symbol in the target synchronization sequence, each adjacent symbol of the channel length is sequentially used as a row of the synchronization matrix; and

[0068] Using the symbols of each row as columns of the synchronization matrix in order from back to front in the target synchronization sequence;

[0069] Until the last symbol in the target synchronization sequence, the synchronization matrix is ​​obtained.

[0070] Based on the above-mentioned related embodiments, the length of the target synchronization sequence is 24, the channel length is 3, and the two groups of target synchronization sequences are respectively: and For example, the constructed synchronization matrix is:

[0071] .

[0072] in, is a synchronization matrix, j is 0 or 1, when j is 0, it represents a synchronization matrix constructed by the first group of synchronization sequences, and when j is 1, it represents a synchronization matrix constructed by the second group of synchronization sequences.

[0073] Furthermore, the constructed synchronization matrix is ​​matrix-multiplied with the channel estimation value to obtain ideal received information.

[0074] Among them, the ideal receiving information ,in, is the synchronization matrix, Represents the channel estimation value.

[0075] Step 203: Calculate noise information based on the actual received information and the ideal received information.

[0076] In some embodiments, after the ideal reception information is obtained, since the noise effect is not considered in the constructed ideal reception information, the noise information can be obtained by calculating the difference between the actual reception information and the ideal reception information.

[0077] Noise Information ,in Indicates actual reception of information.

[0078] Step 204: Determine a target signal-to-noise ratio based on the ideal received information and the noise information.

[0079] In some embodiments, the signal-to-noise ratio is obtained by calculating the ratio of the signal to the noise. Therefore, the target signal-to-noise ratio is calculated using the calculated noise information and the ideal received information.

[0080] In an optional embodiment, determining a target signal-to-noise ratio based on the ideal received information and the noise information includes:

[0081] Calculating a first square sum of each symbol in the ideal received information;

[0082] Calculate the second square sum of each symbol in the noise information;

[0083] calculating a ratio of the first sum of squares to the second sum of squares;

[0084] The ratio is determined to be the target signal-to-noise ratio.

[0085] Specifically, the target signal ratio can be calculated by the following formula:

[0086] Target signal-to-noise ratio .

[0087] Furthermore, when there is one target synchronization sequence, the signal-to-noise ratio calculated by the above formula can be used as the final target signal-to-noise ratio for subsequent processing; when there are more than two target synchronization sequences, the average value of the target signal-to-noise ratios determined based on all the target synchronization sequences is determined as the target signal-to-noise ratio.

[0088] Exemplarily, if there are two target synchronization sequences, the target signal-to-noise ratio is .

[0089] Furthermore, after the target signal-to-noise ratio is calculated, a target communication parameter corresponding to the target signal-to-noise ratio may be determined, a control instruction may be generated based on the target communication parameter, and the control instruction may be sent to the terminal so that the terminal transmits data according to the target communication parameter.

[0090] In some embodiments, after the target signal-to-noise ratio is calculated, the size of the target signal-to-noise ratio can reflect the quality of the current channel. The larger the target signal-to-noise ratio, the better the channel quality. Therefore, corresponding communication parameters can be configured in advance according to the signal-to-noise ratio.

[0091] The communication parameters are used to indicate the performance and efficiency of the communication process. The communication parameters may be, but are not limited to, bandwidth, modulation mode, and transmission power.

[0092] Bandwidth: refers to the frequency range occupied by the signal, which affects the communication speed and capacity. Modulation method: determines how the signal is encoded on the carrier, which is a key factor affecting the communication quality and efficiency. Transmit power: affects the distance and coverage of signal transmission.

[0093] It can be understood that when the communication parameters are different, corresponding relationships between different communication parameters and signal-to-noise ratios can be established respectively.

[0094] In an optional embodiment, taking the communication parameter as bandwidth as an example, determining the target bandwidth corresponding to the target signal-to-noise ratio includes:

[0095] Obtain the corresponding relationship between the signal-to-noise ratio range and the bandwidth;

[0096] Determine a target signal-to-noise ratio range within which the target signal-to-noise ratio lies;

[0097] The bandwidth corresponding to the target signal-to-noise ratio range is determined from the corresponding relationship as the target bandwidth.

[0098] In some embodiments, by pre-configuring corresponding bandwidths for different signal-to-noise ratio ranges, a correspondence between the signal-to-noise ratio range and the bandwidth is obtained, so that after the target signal-to-noise ratio is calculated, the target signal-to-noise ratio range in which the target signal-to-noise ratio is located is first determined, and then the target bandwidth corresponding to the target signal-to-noise ratio is determined from the correspondence.

[0099] Exemplarily, the corresponding relationship between the signal-to-noise ratio range and the bandwidth can be seen in Table 1 below.

[0100] Table 1

[0101]

[0102] It is understandable that when the signal-to-noise ratio is high, if there is no high throughput requirement, a narrower bandwidth can also be selected. For example, when the signal-to-noise ratio is 14dB, the selectable bandwidths include 25kHz, 50kHz or 100kHz. When there is no high throughput requirement, the target bandwidth can be selected as 25kHz.

[0103] In some embodiments, after the target bandwidth is obtained, indication information of the target bandwidth may be written into a control frame of the base station. For example, 2 bits may be configured in the control frame to represent different bandwidths based on different values.

[0104] Different communication protocols may use different control frames. The communication protocol may be an EPDT protocol, or a private network communication protocol such as PDT, DMR, or TETRA.

[0105] Exemplarily, taking the communication protocol as the EPDT protocol as an example, the specific content of the control frame can be seen in Table 2 below.

[0106] Table 2

[0107]

[0108] By setting a 2-bit space in the CHSP field in the control frame, when the value of the space is 00, it indicates that the bandwidth in the sent control frame is a 25kHz service channel bandwidth; when the value is 01, it indicates that the bandwidth in the sent control frame is a 50kHz service channel bandwidth; when the value is 10, it indicates that the bandwidth in the sent control frame is a 100kHz service channel bandwidth; if there are no more bandwidth settings, the value can be kept at 11 and configured when other bandwidths are available.

[0109] In an optional embodiment, taking the communication parameter as a modulation mode as an example, determining a target modulation mode corresponding to the target signal-to-noise ratio includes:

[0110] Obtain the correspondence between the signal-to-noise ratio range and the modulation mode;

[0111] Determine a target signal-to-noise ratio range within which the target signal-to-noise ratio lies;

[0112] Determine from the corresponding relationship that the modulation mode corresponding to the target signal-to-noise ratio range is the target modulation mode.

[0113] In some embodiments, a correspondence relationship between different signal-to-noise ratio ranges and different modulation modes may be pre-established, so that a target modulation mode corresponding to a target signal-to-noise ratio may be determined from the correspondence relationship.

[0114] Exemplarily, the correspondence between the signal-to-noise ratio range and the modulation mode can be seen in Table 3 below.

[0115] Table 3

[0116]

[0117] It is understandable that, when the signal-to-noise ratio is high, if there is no high throughput requirement, a slower modulation mode can also be selected. For example, when the signal-to-noise ratio is 14dB, the modulation modes that can be selected include GMSK, 8PSK or 16QAM. When there is no high throughput requirement, the target modulation mode can be selected as GMSK.

[0118] In some embodiments, after the target modulation mode is obtained, indication information of the target modulation mode may be written into a control frame of the base station. For example, 2 bits may be configured in the control frame to represent different modulation modes based on different values.

[0119] For example, the specific content of the control frame can be found in Table 4 below.

[0120] Table 4

[0121]

[0122] By setting a 2-bit space in the CHMD field in the control frame, when the value of the space is 00, it indicates that the modulation mode in the sent control frame is the GMSK service channel modulation mode; when the value is 01, it indicates that the modulation mode in the sent control frame is the 8PSK service channel modulation mode; when the value is 10, it indicates that the modulation mode in the sent control frame is the 16QAM service channel modulation mode; if there are no more modulation modes to set, the value can be kept at 11 and configured when other modulation modes are available.

[0123] In an optional embodiment, taking the communication parameter as transmit power as an example, determining the target transmit power corresponding to the target signal-to-noise ratio includes:

[0124] Obtain the corresponding relationship between the signal-to-noise ratio range and the transmission power;

[0125] Determine a target signal-to-noise ratio range within which the target signal-to-noise ratio lies;

[0126] The transmit power corresponding to the target signal-to-noise ratio range is determined from the corresponding relationship as the target transmit power.

[0127] In some embodiments, a correspondence relationship between different signal-to-noise ratio ranges and different transmit powers may be pre-established, so that a target transmit power corresponding to a target signal-to-noise ratio may be determined from the correspondence relationship.

[0128] For example, the corresponding relationship between the signal-to-noise ratio range and the transmission power can be seen in the following Table 5. In Table 5, taking the maximum power of a handheld terminal of 5W as an example, it is divided into nine levels, and 50K bandwidth 8PSK modulation and SNR decoding threshold of 9 are used as an example.

[0129] Table 5

[0130]

[0131] Among them, the value of SNR may vary in actual use according to the modulation mode (GMSK, 8PSK, 16QAM, etc.). The bandwidth, modulation mode or transmission power to be used can be comprehensively determined based on the received signal strength indication (RSSI), real-time location and the amount of data to be sent.

[0132] Among them, find the corresponding transmit power level according to the SNR value. When the SNR value is between two levels, you can choose the value according to the end proximity principle (for example, 15.5 is close to 15, so choose 1.5W, etc.). The actual table will deviate according to the hardware characteristics. You can also configure the SNR of the table to be flexible and configurable for writing frequency.

[0133] In some embodiments, after the target transmit power is obtained, indication information of the target transmit power may be written into a control frame of the base station. For example, 5 bits may be configured in the control frame to represent different transmit powers based on different values.

[0134] For example, the specific content of the control frame can be found in Table 6 below.

[0135] Table 6

[0136]

[0137] By setting a 5-bit space in the Power_level field in the control frame, when the value of the space is 0000, it means that the transmit power in the control frame is level 1; when the value is 0001, it means that the transmit power in the control frame is level 2; and so on, when the value is 1001, it means that the transmit power in the control frame is level 9; if there are no more transmit power settings, the value can be kept in the range of 1010 to 1111, and configured when there are other levels or transmit powers.

[0138] In actual use, the transmit power will become lower and lower due to battery consumption, which will cause the receiver to be unable to effectively receive the data sent by the transmitter, resulting in service failure and failure to meet the requirements of stable and reliable transmission. Therefore, based on the determined target transmission level, the terminal makes a final decision on the actual transmit power according to the current battery power.

[0139] In a specific embodiment, see Figure 3 , the signal-to-noise ratio calculation method of the present application may include the following steps:

[0140] Get the frame-synchronized TSC sequence, get the channel estimation value, calculate the signal-to-noise ratio (SNR), make a communication parameter decision based on the SNR, and send the determined target communication parameters to the terminal, so that the terminal sends data according to the configured target communication parameters.

[0141] The process of calculating SNR includes signal reconstruction, noise calculation and SNR calculation.

[0142] The signal-to-noise ratio calculation method based on this application is divided into signal reconstruction, noise acquisition and signal-to-noise ratio calculation. The algorithm steps are clear and have real guiding significance for implementation. It can realize the adaptation of bandwidth, modulation mode and transmission power to ensure the timely, stable and reliable transmission of power collection, load control, distribution and other services. The ability to support multiple bandwidths in the power EPDT protocol is truly brought into play, and the actual operation of power facilities provides further theoretical and practical dual guarantees for the promotion of the protocol. To meet the relevant regulations, it is necessary to coordinate the safe supply of energy and electricity and the clean and low-carbon transformation, steadily and orderly promote the construction of a new power load management system, realize the precise control of loads under the requirements of safe power supply and the normalized and refined energy management requirements of users, and promote the development of new power private network communication systems. It is of great significance.

[0143] Based on the same concept, a signal-to-noise ratio calculation device is provided in the embodiment of the present application. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 4 As shown, the device mainly includes:

[0144] An acquisition module 401 is used to acquire a target synchronization sequence and a channel estimation value after frame synchronization;

[0145] A signal reconstruction module 402, configured to perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information;

[0146] A calculation module 403, configured to calculate noise information based on actual received information and the ideal received information;

[0147] The determination module 404 is configured to determine a target signal-to-noise ratio based on the ideal received information and the noise information.

[0148] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 5As shown, the electronic device mainly includes: a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503. The memory 502 stores a program executable by the processor 501, and the processor 501 executes the program stored in the memory 502 to implement the following steps:

[0149] Acquire a target synchronization sequence and a channel estimation value after frame synchronization;

[0150] Perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information;

[0151] Calculate noise information based on actual received information and the ideal received information;

[0152] A target signal-to-noise ratio is determined based on the ideal reception information and the noise information.

[0153] The communication bus 503 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 503 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 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.

[0154] The memory 502 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor 501 .

[0155] The above-mentioned processor 501 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 gate or transistor logic devices, discrete hardware components.

[0156] 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-to-noise ratio calculation method described in the above embodiment.

[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by 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 may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction may 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 may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may 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.

[0158] 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.

[0159] 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 method for calculating a signal-to-noise ratio, characterized in that: include: Acquire a target synchronization sequence and a channel estimation value after frame synchronization; Perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information; Calculate noise information based on actual received information and the ideal received information; determining a target signal-to-noise ratio based on the ideal received information and the noise information; The signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain the ideal received information includes: constructing a synchronization matrix based on the channel length and the symbols in the target synchronization sequence; multiplying the synchronization matrix and the channel estimation value to obtain the ideal received information; Among them, a synchronization matrix is ​​constructed based on the channel length and the symbols in the target synchronization sequence, including: starting from the first symbol in the target synchronization sequence, each adjacent symbol of the channel length is sequentially used as a row of the synchronization matrix; and the symbols of each row are sequentially used as columns of the synchronization matrix in the order from back to front in the target synchronization sequence; until the last symbol in the target synchronization sequence is obtained, the synchronization matrix is ​​obtained.

2. The method for calculating the signal-to-noise ratio according to claim 1, characterized in that: Determining a target signal-to-noise ratio based on the ideal reception information and the noise information includes: Calculating a first square sum of each symbol in the ideal received information; Calculate the second square sum of each symbol in the noise information; calculating a ratio of the first sum of squares to the second sum of squares; The ratio is determined to be the target signal-to-noise ratio.

3. The method for calculating the signal-to-noise ratio according to claim 1, characterized in that: Get the target synchronization sequence after frame synchronization, including: Acquire an initial synchronization sequence obtained after frame synchronization according to a preset communication protocol, where the initial synchronization sequence is at least one; At least one of the initial synchronization sequences is determined as the target synchronization sequence.

4. The method for calculating the signal-to-noise ratio according to claim 3, characterized in that: In the case that there are more than two target synchronization sequences, an average value of target signal-to-noise ratios determined based on all the target synchronization sequences is determined as the target signal-to-noise ratio.

5. The method for calculating the signal-to-noise ratio according to claim 1, characterized in that: The noise information is calculated based on the actual received information and the ideal received information, including: The difference between the actual received information and the ideal received information is determined as the noise information.

6. A signal-to-noise ratio calculation device, characterized in that: include: An acquisition module, used for acquiring a target synchronization sequence and a channel estimation value after frame synchronization; A signal reconstruction module, used to perform signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain ideal received information; A calculation module, used for calculating noise information based on actual received information and the ideal received information; A determination module, configured to determine a target signal-to-noise ratio based on the ideal received information and the noise information; The signal reconstruction based on the target synchronization sequence and the channel estimation value to obtain the ideal received information includes: constructing a synchronization matrix based on the channel length and the symbols in the target synchronization sequence; multiplying the synchronization matrix and the channel estimation value to obtain the ideal received information; Among them, a synchronization matrix is ​​constructed based on the channel length and the symbols in the target synchronization sequence, including: starting from the first symbol in the target synchronization sequence, each adjacent symbol of the channel length is sequentially used as a row of the synchronization matrix; and the symbols of each row are sequentially used as columns of the synchronization matrix in the order from back to front in the target synchronization sequence; until the last symbol in the target synchronization sequence is obtained, the synchronization matrix is ​​obtained.

7. 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-to-noise ratio calculation method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the signal-to-noise ratio calculation method according to any one of claims 1 to 5 is implemented.