A method, device and computer-readable storage medium for improving frame synchronization rate
By selecting and inserting the optimal synchronization code of the voice superframe in the frame synchronization scheme, the problem of low frame synchronization pass rate is solved, the transmission quality and user experience are improved, and voice interruptions and freezes are reduced.
Patent Information
- Application Number
- CN202110553968.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-05-20
AI Technical Summary
The frame synchronization pass rate of existing frame synchronization solutions is low, resulting in interruptions and freezes in voice transmission, especially when the signal is weak and the performance is insufficient.
By generating a standard synchronization code group, the optimal synchronization code with better synchronization performance is selected and inserted into the empty data area in the F frame of the voice superframe to improve the frame synchronization rate, reduce the frame loss rate, and improve transmission quality.
It improves the frame synchronization rate and synchronization pass rate, reduces voice interruptions and lagging, enhances user call experience, and improves the transmission quality of communication links.
Smart Images

Figure CN115378533B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device and computer-readable storage medium for improving a frame synchronization rate. Background Art
[0002] The current frame synchronization scheme generally has a frame synchronization pass rate of only about 60%, and about 40% of the frames will be lost, resulting in the inability to receive voice or intermittent received voice. The current optimization of synchronization frames can only improve the access success rate at the beginning of voice, and cannot guarantee the performance of subsequent received voice. In the case of weak signals, the frame synchronization pass rate is still very low, and there are still problems of voice interruption or freeze during voice transmission. Summary of the invention
[0003] The present application provides a method, device and computer-readable storage medium for improving frame synchronization rate, which can improve the frame synchronization rate and avoid voice interruption or freeze.
[0004] To solve the above technical problems, the technical solution adopted in this application is: to provide a method for improving the frame synchronization rate, the method comprising determining the optimal synchronization code based on the standard synchronization code group; inserting the optimal synchronization code into the F frame of the voice superframe; sending a data packet to a receiving terminal, wherein the data packet includes a voice superframe.
[0005] In order to solve the above-mentioned technical problems, another technical solution adopted in the present application is: to provide a device for improving the frame synchronization rate, the device for improving the frame synchronization rate includes a memory and a processor connected to each other, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the above-mentioned method for improving the frame synchronization rate.
[0006] To solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, it is used to implement the above method for improving the frame synchronization rate.
[0007] Through the above scheme, the beneficial effects of the present application are: first, standard synchronization codes are collected to generate a standard synchronization code group; then, the standard synchronization code group is used to select the optimal synchronization code with better synchronization performance, and the obtained optimal synchronization code is inserted into the empty data area in the F frame of the voice superframe, so that the empty data area in the F frame is not wasted, thereby improving the utilization rate of the F frame; and then sending a data packet containing the voice superframe to the receiving terminal; because the sent voice superframe contains the optimal synchronization code with better synchronization performance, the frame synchronization rate of the communication link can be improved, that is, the synchronization pass rate can be improved, and the frame loss rate can be reduced, thereby improving the transmission quality, increasing the user call experience, and avoiding voice interruption or freeze problems during calls. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0009] Figure 1 It is a flow chart of an embodiment of a method for improving frame synchronization rate provided by the present application;
[0010] Figure 2 yes Figure 1 A schematic diagram of a standard synchronization code group in the embodiment shown;
[0011] Figure 3 yes Figure 1 A schematic diagram of the structure of a burst subframe in the embodiment shown;
[0012] Figure 4 It is a schematic diagram of the structure of a superframe;
[0013] Figure 5 yes Figure 1 A schematic diagram of the structure of the optimized superframe in the embodiment shown;
[0014] Figure 6 yes Figure 1 A schematic diagram of the structure of a data packet in the embodiment shown;
[0015] Figure 7 is a flow chart of another embodiment of the method for improving the frame synchronization rate provided by the present application;
[0016] Figure 8 yes Figure 7 A schematic diagram of the process of step 22 in the embodiment shown;
[0017] Fig. 9 yes Figure 7 A schematic diagram of the flow chart of step 23 in the embodiment shown;
[0018] FIG10( a) is a schematic diagram of a waveform of a standard synchronization code;
[0019] FIG10( b ) is a schematic diagram of the waveform of the optimal synchronization code;
[0020] FIG11( a ) is a waveform diagram of an autocorrelation result corresponding to a standard synchronization code;
[0021] FIG11( b ) is a waveform diagram of the autocorrelation result corresponding to the optimal synchronization code;
[0022] Fig.12 It is a comparison chart of the synchronization rate between the optimal synchronization code and the standard synchronization code;
[0023] Fig.13 This is a comparison chart of the single-frame error-free probability of the optimal synchronization code and the standard synchronization code;
[0024] Fig.14 It is a structural schematic diagram of an embodiment of a device for improving frame synchronization rate provided by the present application;
[0025] Fig.15 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 creative work are within the scope of protection of this application.
[0027] See also Figure 1 , Figure 1 1 is a flow chart of an embodiment of a method for improving frame synchronization rate provided by the present application, the method comprising:
[0028] Step 11: Determine the optimal synchronization code based on the standard synchronization code group.
[0029] There is a standard synchronization code group in the communication system, which includes at least one standard synchronization code, such as Figure 2 A standard synchronization code group is shown, which includes hexadecimal (Hex) and binary (Binary) expressions of 10 groups of commonly used standard synchronization codes. It can be seen from the expressions in the figure that the binary expression of each group of standard synchronization codes includes 48 symbols, while the general synchronization code only includes 24 symbols. Therefore, before determining the optimal synchronization code based on the standard synchronization code group, the number of symbol bits of the standard synchronization code is first converted to 24. Take the BS soureced Voice standard synchronization code in the standard synchronization code group as an example, record it as S, and its binary expression is as follows:
[0030] S={0,1,1,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1}
[0031] The sequence consists of 48 characters in total, which are then converted into decimal to obtain a new decimal sequence, denoted as S*, which is expressed as follows:
[0032] S*={1,3,1,1,1,1,3,3,3,1,1,3,3,1,3,3,1,3,1,1,3,3,1,3}
[0033] The new sequence contains 24 symbols, which is the same as the number of sequence bits of the synchronization code, so that the optimal synchronization code can be selected based on the decimal standard synchronization code group; specifically, in order to improve the frame synchronization rate of the communication link, based on the standard synchronization code in the standard synchronization code group, the optimal synchronization code with better synchronization performance than the quasi-synchronous code is selected, and the optimal synchronization code can be a synchronization code with a smaller sidelobe value.
[0034] Step 12: Insert the optimal synchronization code into the F frame of the speech superframe.
[0035] When voice communication is performed in communication systems such as digital mobile radio (DMR) and police digital trunking (PDT), the sending terminal sends voice information to the receiving terminal in superframes. The transmitting terminal or the receiving terminal can be a device that supports voice communication, such as a receiver or a mobile phone.
[0036] Furthermore, a voice superframe includes 6 burst subframes, which are identified by letters A to F, and occupy a total of 360ms. The frame structure of each burst subframe is as follows: Figure 3 As shown, it includes two 108-bit payload information areas and a 48-bit data area located between the two payload information areas; specifically, the payload information area of each burst subframe contains voice payload information (voicepayload), which is used to carry the content information of voice communication. The data area of each burst subframe contains different contents from the payload information area, and may contain information related to the voice payload information such as synchronization signaling or embedded signaling; specifically, Figure 4 As shown, frame A is the start frame of the voice superframe, and its data area contains frame synchronization information (SYNC). The data areas in frames B to E can carry embedded information emb1 to emb4 for link control, respectively. In addition to storing corresponding information in the data area of frame F during channel inversion and encryption, the data area of frame F is generally an empty data area (null), and only frame A in a superframe carries frame synchronization information. After determining the optimal synchronization code, the obtained optimal synchronization code is inserted into the empty data area of frame F of the voice superframe to improve the frame synchronization rate, while preventing the originally idle area of frame F from being wasted. After inserting the optimal synchronization code, the voice superframe can be Figure 5 As shown in the figure, the optimal synchronization code is recorded as new sync.
[0037] Step 13: Send the data packet to the receiving terminal.
[0038] After inserting the optimal synchronization code into the F frame in the voice superframe, the data packet containing the voice superframe is sent to the receiving terminal. Specifically, in the DMR system, the transmitting terminal transmits the data packet to the receiving terminal in a half-duplex mode, that is, it is divided into two time slots, such as Figure 6 As shown, in the current transmission link, a signal can be sent in the first time slot, and a signal can be received in the second time slot or in an idle state. The transmitting terminal can send voice information in the first time slot, that is, the voice header (Hdr) and A frame to F frame in the figure. The F frame contains the optimal synchronization code. The transmitting terminal can send the voice information to the receiving terminal, and then receive the information returned by the receiving terminal in the second time slot. Furthermore, the three Hdrs sent by the transmitting terminal before sending the voice superframe contain information such as the source address, the destination address or the call type, so that the receiving terminal can receive the call of the transmitting terminal based on this information and can return information to the transmitting terminal.
[0039] In this embodiment, standard synchronization codes are first collected to generate a standard synchronization code group; then the standard synchronization code group is used to select the optimal synchronization code with better synchronization performance, and the obtained optimal synchronization code is inserted into the empty data area in the F frame of the voice superframe, so that the empty data area in the F frame is not wasted, thereby improving the utilization rate of the F frame; then the data packet containing the voice superframe is sent to the receiving terminal; because the sent voice superframe contains the optimal synchronization code with better synchronization performance, the frame synchronization rate of the communication link can be improved, and the frame loss rate can be reduced, thereby improving the transmission quality, increasing the user experience, and avoiding voice interruption or freeze problems during calls.
[0040] See also Figure 7 , Figure 7 : is a flow chart of another embodiment of a method for improving a frame synchronization rate provided by the present application, the method comprising:
[0041] Step 21: Pre-establish a preset synchronization code table.
[0042] A preset synchronization code table is pre-established, and the preset synchronization code table includes multiple synchronization codes. The synchronization code has 24 symbols, and the number of synchronization codes can be 2 24 In the synchronization code range, the synchronization codes corresponding to all standard synchronization codes in the standard synchronization code group are eliminated, and the remaining synchronization codes are added to the preset synchronization code table to establish a preset synchronization code table, so as to select the optimal synchronization code from multiple synchronization codes based on multiple synchronization codes in the preset synchronization code table and at least one standard synchronization code. The specific scheme is shown in steps 22-23.
[0043] Step 22: Select a synchronization code from the preset synchronization code table, whose symbol difference value with each standard synchronization code exceeds a preset difference threshold, as a candidate synchronization code.
[0044] After the preset synchronization code table is established, each synchronization code in the preset synchronization code table is compared with each standard synchronization code, and the symbol difference value between each synchronization code and the standard synchronization code is calculated. Then, according to the calculation result, the synchronization code whose symbol difference value with each standard synchronization code exceeds the preset difference threshold is taken as a candidate synchronization code. The specific scheme is as follows: Figure 8 As shown, the following steps are included:
[0045] Step 221: Select a synchronization code from the preset synchronization code table in sequence as the current synchronization code.
[0046] After the preset synchronization code table is established, one synchronization code is selected from the preset synchronization code table in the order of arrangement of the synchronization codes as the current synchronization code, and then the current synchronization code is compared with the standard synchronization code until every synchronization code in the preset synchronization code table is compared with the standard synchronization code; it can be understood that the order of selecting the current synchronization code from the preset synchronization code table can also be randomly selected according to a certain rule, and the specific selection rule can be set according to actual conditions.
[0047] Step 222: Determine whether the symbol difference value between the current synchronization code and the standard synchronization code exceeds a preset difference threshold.
[0048] During the transmission process, in order to avoid the selected optimal synchronization code from being identified as a standard synchronization code during the communication process, it is necessary to screen out synchronization codes with larger symbol differences from the standard synchronization code from the preset synchronization code group. Specifically, the symbol difference value between the current synchronization code and each standard synchronization code in the standard synchronization code group can be calculated, and then it is determined whether the symbol difference value exceeds the preset difference threshold to determine whether the difference between the current synchronization code and the standard synchronization code is large enough. The preset difference threshold can be set to 6 or more. The specific value of the preset difference threshold can be selected according to the fault tolerance number and actual conditions. The fault tolerance number is the number of symbol differences that can be allowed when the synchronization code to be identified is identified as the target synchronization code. The fault tolerance number is generally 5, that is, when the symbol difference value between the synchronization code to be identified and the standard synchronization code is within 5, the synchronization code to be identified is determined to be a standard synchronization code. Therefore, in order to distinguish the optimal synchronization code from the standard synchronization code, the preset difference threshold is generally set to be greater than the fault tolerance number.
[0049] Further, the current synchronization code includes a plurality of first symbol values, the standard synchronization code includes a plurality of second symbol values, and the symbol difference value is the number of different symbol values obtained by comparing the first symbol value with the second symbol value bit by bit.
[0050] Taking the current synchronization code of {1,3,1,1,1,1,1,3,3,3,1,1,3,3,3,1,3,3,1,3,3,1,3,1,3} and the standard synchronization code of {3,3,3,3,3,1,1,1,3,3,1,1,1,3,3,1,3,1,3,1,1,3,1,1,3} as an example, it can be seen that the current synchronization code includes 24 first symbol values and the standard synchronization code includes 24 second symbol values; the first symbol values and the second symbol values corresponding to the first to 24th bits in the current synchronization code and the standard synchronization code are compared bit by bit, and the number of differences between the first symbol values and the second symbol values is counted to obtain the symbol difference value between the current synchronization code and the standard synchronization code. In this example, the symbol difference value is 12. After calculating the symbol difference value, the symbol difference value is compared with the preset difference threshold to determine whether the symbol difference value between the current synchronization code and the standard synchronization code exceeds the preset difference threshold.
[0051] Step 223: If the symbol difference value between the current synchronization code and the standard synchronization code exceeds the preset difference threshold, the current synchronization code is used as a candidate synchronization code.
[0052] If the symbol difference value between the current synchronization code and any standard synchronization code in the standard synchronization code group exceeds the preset difference threshold, the current synchronization code is used as a candidate synchronization code, and then the symbol difference value between the next synchronization code of the current synchronization code in the preset synchronization code table and the standard synchronization code group is judged.
[0053] It can be understood that there may be multiple synchronization codes that satisfy the requirement that the symbol difference value between the synchronization codes and any standard synchronization code exceeds the preset difference threshold, that is, there may be multiple candidate synchronization codes that meet the condition screened out from the preset synchronization code table.
[0054] If the symbol difference value between the current synchronization code and each standard synchronization code in the standard synchronization code group does not exceed the preset difference threshold, the current synchronization code will not be selected as a candidate synchronization code, and the next synchronization code in the preset synchronization code table will be directly judged, that is, the next synchronization code of the current synchronization code in the preset synchronization code table will be used as the current synchronization code, and then it will be judged whether the symbol difference value between the current synchronization code and the standard synchronization code exceeds the preset difference threshold, until the preset synchronization code table is traversed, all the synchronization codes in the preset synchronization code table are screened, and all candidate synchronization codes are obtained.
[0055] Step 23: Based on the candidate synchronization codes and the preset maximum sidelobe threshold, a candidate synchronization code is selected from the candidate synchronization codes as the optimal synchronization code.
[0056] After comparing the symbol difference values in the preset synchronization code table and screening out the candidate synchronization codes, the optimal synchronization code is selected from the candidate synchronization codes; specifically, according to the characteristics of the synchronization performance and the sidelobe size of the synchronization signal, the smaller the sidelobe of the synchronization code, the better its synchronization performance, so a candidate synchronization code with a small sidelobe value (i.e., good synchronization performance) is selected from the candidate synchronization codes as the optimal synchronization code. The specific scheme is as follows: Fig. 9 As shown, the following steps are included:
[0057] Step 231: Calculate the autocorrelation coefficient sequence of each candidate synchronization code.
[0058] Taking the candidate synchronization code {1,3,1,1,1,1,1,3,3,3,1,1,3,3,3,1,3,3,1,3,1,1,3,3,1,3} as an example, it contains 24 symbols, and the symbols 1 and 3 represent the corresponding frequency deviations of +3 and -3 respectively. In order to simplify the calculation of the subsequent autocorrelation coefficient sequence, the original candidate synchronization code is first converted into a new sequence containing 47 symbols. Specifically, the frequency deviations +3 and -3 are replaced with symbols 1 and -1 respectively, that is, the symbol 3 of the candidate synchronization code is replaced with the symbol -1, and then 23 zeros are added to the end of the replaced sequence to form a new sequence, which is recorded as X[1:47], as shown below:
[0059] X[1:47]={1,-1,1,1,1,1,-1,-1,-1,1,1,-1,-1,1,-1,-1,1,-1,1,1,-1,-1,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
[0060] After obtaining the new sequence X[1:47], substitute it into the calculation formula of the autocorrelation coefficient sequence:
[0061]
[0062] Among them, n=1,2,3,…,24.
[0063] Substituting the new sequence X[1:47] into the calculation formula, the autocorrelation coefficient sequence of the candidate synchronization code can be calculated. The calculated autocorrelation coefficient series is:
[0064] R(n)={24,-3,-6,3,-4,-1,6,-3,-2,5,-2,-3,-4,3,2,-1,2,-1,-2,1,0,-3,2,-1}
[0065] It can be seen from the above formula that the autocorrelation coefficient sequence includes multiple autocorrelation coefficients.
[0066] Step 232: taking the autocorrelation coefficient with the second largest absolute value in the autocorrelation coefficient sequence as the maximum sidelobe value.
[0067] Continuing with the candidate synchronization code {1,3,1,1,1,1,1,3,3,3,1,1,3,3,1,3,3,1,3,1,1,3,3,1} as an example, the calculated autocorrelation coefficient sequence is:
[0068] R(n)={24,-3,-6,3,-4,-1,6,-3,-2,5,-2,-3,-4,3,2,-1,2,-1,-2,1,0,-3,2,-1}.
[0069] Among them, R(1) is the main lobe, the autocorrelation coefficient of the main lobe is 24, R(2) to R(24) are side lobes, the maximum sidelobe value of the candidate synchronization code is the maximum value of the absolute values of all side lobes, and the autocorrelation coefficient with the second largest absolute value in the autocorrelation coefficient sequence R(n) is taken as the maximum sidelobe value of the candidate synchronization code, that is, the maximum sidelobe value of the candidate synchronization code is 6.
[0070] Step 233: Determine whether the maximum sidelobe value of the candidate synchronization code is less than a preset maximum sidelobe threshold.
[0071] After calculating the maximum sidelobe value of each candidate synchronization code, the maximum sidelobe value of each candidate synchronization code is compared with the preset maximum sidelobe value in turn to determine whether it is less than the preset maximum sidelobe value, so as to determine the synchronization performance of each candidate synchronization code based on the comparison result; specifically, the value of the preset maximum sidelobe value can be set to 5, that is, to determine whether the maximum sidelobe value of each candidate synchronization code is less than 5.
[0072] Step 234: If the maximum sidelobe value of the candidate synchronization code is less than the preset maximum sidelobe threshold, the candidate synchronization code is recorded as a candidate synchronization code, and it is determined whether the number of the candidate synchronization codes is greater than the preset number.
[0073] If the maximum sidelobe value of the candidate synchronization code is less than the preset maximum sidelobe value, it means that the maximum sidelobe value of the candidate synchronization code is small and its synchronization performance is high, and the candidate synchronization code is recorded as the synchronization code to be selected.
[0074] It can be understood that there may be multiple candidate synchronization codes. When selecting a synchronization code to be selected from multiple candidate synchronization codes, each candidate synchronization code can be compared with a preset maximum sidelobe value in turn according to a certain rule to obtain at least one synchronization code to be selected, and then it is determined whether the number of obtained synchronization codes to be selected is greater than a preset number, and the optimal synchronization code is selected based on the number of synchronization codes to be selected. The preset number can be 1, that is, it is determined whether the number of synchronization codes to be selected is greater than 1.
[0075] Step 235: If the number of synchronization codes to be selected is not greater than the preset number, the synchronization code to be selected is used as the optimal synchronization code.
[0076] If the number of the selected synchronization codes is 1, the selected synchronization code is directly selected as the optimal synchronization code.
[0077] Step 236: If the number of the synchronization codes to be selected is greater than the preset number, the synchronization code with the smallest maximum sidelobe value among all the synchronization codes to be selected is selected as the optimal synchronization code.
[0078] If the number of candidate synchronization codes is greater than one, that is, the number of candidate synchronization codes is 2, 3 or more than 3, then the candidate synchronization code with the smallest maximum sidelobe value is selected from all the candidate synchronization codes as the optimal synchronization code, that is, the candidate synchronization code with the best synchronization performance is selected as the optimal synchronization code.
[0079] In another specific embodiment, when selecting the optimal synchronization code from multiple synchronization codes based on multiple synchronization codes and at least one standard synchronization code, the sidelobe value can be used for screening first, and then the symbol difference value can be used for screening, that is, the synchronization code with a smaller than a preset maximum sidelobe threshold is first selected from the preset synchronization code table as the candidate synchronization code, and then the candidate synchronization code with the largest symbol difference value between the candidate synchronization code and each standard synchronization code is selected from all the candidate synchronization codes as the optimal synchronization code. The specific implementation scheme is similar to the scheme of first screening by symbol difference value and then screening by sidelobe value in the above-mentioned embodiment, and will not be repeated here.
[0080] Step 24: Insert the optimal synchronization code into the F frame of the speech superframe.
[0081] After the optimal synchronization code is calculated, the optimal synchronization code is inserted into the 48-bit empty data area in the F frame of the voice superframe.
[0082] Step 25: Send the data packet to the receiving terminal.
[0083] To verify the effectiveness of this solution, a test can be conducted. Taking the standard synchronization code {1,3,1,1,1,1,1,3,3,3,1,1,3,3,1,3,3,1,3,1,1,3,3,1,3} with a maximum sidelobe value of 6 as an example, its waveform is shown in Figure 10(a). The following optimal synchronization code is obtained through the above calculation method:
[0084] {3,3,3,3,3,1,1,1,3,3,1,1,1,3,1,3,1,3,1,1,3,1,1,3}
[0085] The maximum sidelobe value of the optimal synchronization code is 1, and the symbol difference values with the 10 groups of standard synchronization codes are all greater than 9. The waveform diagram of the optimal synchronization code is shown in FIG10( b ).
[0086] Furthermore, in order to intuitively compare the synchronization performance of the optimal synchronization code and the standard synchronization code through the waveform diagram, the optimal synchronization code and the standard synchronization code are upsampled 5 times to obtain root raised cosine waves, and then the autocorrelation coefficients of the two are calculated respectively, and the waveform diagrams shown in Figures 11(a) and 11(b) are obtained respectively; from the comparison of the waveform diagrams, it can be obtained that the waveform autocorrelation main lobe peak threshold of the optimal synchronization code is 6056, and the correlation side lobe value is -1319~533; the waveform autocorrelation main lobe peak threshold of the standard synchronization code is 5938, and the correlation side lobe value is -2541~1495, that is, the waveform autocorrelation main lobe peak threshold of the optimal synchronization code is higher than the waveform autocorrelation main lobe peak threshold of the standard synchronization code, and its autocorrelation side lobe value is more convergent than the autocorrelation side lobe value of the standard synchronization code, indicating that the synchronization performance of the optimal synchronization code is better, compared with the standard synchronization code, it can be better distinguished from the non-synchronous signal, and a lower peak threshold can be set to obtain a synchronization pass rate under a lower signal-to-noise ratio.
[0087] The comparison of synchronization pass rate between standard synchronization code and optimal synchronization code is as follows: Fig.12 As shown by Fig.12 It can be seen that when the synchronization pass rate is 0.85, the signal strength corresponding to the standard synchronization code is -120.5dbm, and the signal strength corresponding to the optimal synchronization code is -123dbm, which is 2.5dB higher than the standard synchronization code. Statistics show that when the synchronization pass rate is the same, the signal strength corresponding to the optimal synchronization code is 2dB higher than the signal strength corresponding to the standard synchronization code on average, that is, the optimal synchronization code can receive a signal with a smaller signal strength when the synchronization pass rate is the same, and the synchronization pass rate when the signal strength is smaller is higher than the synchronization pass rate of the standard synchronization code; the single-frame error-free probability comparison of the standard synchronization code and the optimal synchronization code is as follows: Fig.13 As shown by Fig.13 It can be seen that when the probability of error-free bit in a single frame is equal, the signal strength value corresponding to the optimal synchronization code is increased by an average of 0.5 to 0.7 dB compared with the signal strength value corresponding to the standard synchronization code.
[0088] To sum up, the optimal synchronization code calculated in this embodiment has better synchronization performance, higher synchronization pass rate, and higher single-frame error-free rate than the standard synchronization code. At the same time, it can obtain better accuracy during synchronization, so that the bit error rate is smaller when restoring the optimal sampling point, thereby achieving better sound quality and communication distance when receiving voice.
[0089] In this embodiment, by calculating the symbol difference value between the current synchronization code in the preset synchronization code table and each standard synchronization code, and comparing it with the preset difference threshold, the candidate synchronization code with a larger symbol difference from the current synchronization code is screened out; then the candidate synchronization code with the smallest sidelobe value is selected as the optimal synchronization code; since the optimal synchronization code is selected by the sidelobe value and the symbol difference value, the screened optimal synchronization code has a higher synchronization pass rate and is greatly different from the standard synchronization code, and can be distinguished from the non-synchronous signal during the transmission process, further improving the frame synchronization pass rate, optimizing the synchronization performance, and improving the transmission quality. At the same time, the receiving terminal can also obtain a better optimal sampling point accuracy through the optimal synchronization code, so as to obtain a better sound quality effect and a longer communication distance under a low signal-to-noise ratio.
[0090] See also Fig.14 , Fig.14 It is a structural diagram of an embodiment of a device for improving a frame synchronization rate provided in the present application. The device 140 for improving a frame synchronization rate includes a memory 141 and a processor 142 connected to each other. The memory 141 is used to store a computer program. When the computer program is executed by the processor 142, it is used to implement the method for improving a frame synchronization rate in the above-mentioned embodiment.
[0091] See also Fig.15 , Fig.15 It is a structural diagram of an embodiment of a computer-readable storage medium provided in the present application. The computer-readable storage medium 150 is used to store a computer program 151. When the computer program 151 is executed by a processor, it is used to implement the method for improving the frame synchronization rate in the above embodiment.
[0092] The computer-readable storage medium 150 may be a server, a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other media that can store program codes.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0095] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0096] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for improving frame synchronization rate, characterized in that: include: Determine the optimal synchronization code based on the standard synchronization code group; wherein the standard synchronization code group includes at least one standard synchronization code, and the step of determining the optimal synchronization code based on the standard synchronization code group includes: pre-establishing a preset synchronization code table, wherein the preset synchronization code table includes multiple synchronization codes; based on the multiple synchronization codes and the at least one standard synchronization code, selecting the optimal synchronization code from the multiple synchronization codes; the symbol difference value between the optimal synchronization code and each of the standard synchronization codes exceeds a preset difference threshold; Inserting the optimal synchronization code into the F frame of the voice superframe; wherein the A frame of the voice superframe contains a target synchronization code, and the optimal synchronization code is different from the target synchronization code; A data packet is sent to a receiving terminal, wherein the data packet includes the voice superframe.
2. The method for improving the frame synchronization rate according to claim 1, characterized in that: The step of selecting the optimal synchronization code from the multiple synchronization codes based on the multiple synchronization codes and the at least one standard synchronization code comprises: Selecting, from the preset synchronization code table, a synchronization code whose symbol difference value with each of the standard synchronization codes exceeds the preset difference threshold as a candidate synchronization code; Based on the candidate synchronization codes and a preset maximum sidelobe threshold, a candidate synchronization code is selected from the candidate synchronization codes as the optimal synchronization code.
3. The method for improving the frame synchronization rate according to claim 2, characterized in that: The step of selecting a synchronization code whose symbol difference value with each of the standard synchronization codes exceeds the preset difference threshold from the preset synchronization code table as a candidate synchronization code comprises: Selecting a synchronization code from the preset synchronization code table in sequence as the current synchronization code; Determine whether the symbol difference value between the current synchronization code and the standard synchronization code exceeds the preset difference threshold; If so, the current synchronization code is used as the candidate synchronization code.
4. The method for improving the frame synchronization rate according to claim 3, characterized in that: The current synchronization code includes a plurality of first symbol values, the standard synchronization code includes a plurality of second symbol values, and the symbol difference value is the number of different symbol values obtained by comparing the first symbol value with the second symbol value in bit order.
5. The method for improving frame synchronization rate according to claim 2, characterized in that: The step of selecting a candidate synchronization code from the candidate synchronization codes as the optimal synchronization code based on the candidate synchronization codes and a preset maximum sidelobe threshold comprises: Calculating an autocorrelation coefficient sequence of each candidate synchronization code, wherein the autocorrelation coefficient sequence includes a plurality of autocorrelation coefficients; Taking the autocorrelation coefficient with the second largest absolute value in the autocorrelation coefficient sequence as the maximum sidelobe value; Determine whether the maximum sidelobe value of the candidate synchronization code is less than the preset maximum sidelobe threshold; If so, the candidate synchronization codes are recorded as candidate synchronization codes, and the optimal synchronization code is selected based on the number of the candidate synchronization codes.
6. The method for improving frame synchronization rate according to claim 5, characterized in that: The step of recording the candidate synchronization codes as candidate synchronization codes and selecting the optimal synchronization code based on the number of the candidate synchronization codes comprises: Determining whether the number of the synchronization codes to be selected is greater than a preset number; If not, taking the selected synchronization code as the optimal synchronization code; If so, the selected synchronization code with the smallest maximum sidelobe value among all the selected synchronization codes is selected as the optimal synchronization code.
7. The method for improving frame synchronization rate according to claim 1, characterized in that: The step of selecting the optimal synchronization code from the multiple synchronization codes based on the multiple synchronization codes and the at least one standard synchronization code comprises: Selecting a synchronization code smaller than a preset maximum sidelobe threshold from the preset synchronization code table as a candidate synchronization code; A candidate synchronization code having the largest symbol difference value with each of the standard synchronization codes is selected from all the candidate synchronization codes as the optimal synchronization code.
8. A device for improving frame synchronization rate, characterized in that: It comprises a memory and a processor connected to each other, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the method for improving the frame synchronization rate according to any one of claims 1 to 7.
9. A computer-readable storage medium for storing a computer program, characterized in that: When the computer program is executed by a processor, it is used to implement the method for improving the frame synchronization rate according to any one of claims 1 to 7.
