A method, device and electronic device for processing verification code

By dynamically adjusting the number of iterations of LDPC decoding and according to changes in system throughput, the LDPC decoding performance is optimized, solving the problem of insufficient utilization of hardware resources in the existing technology, and improving the performance of the communication system.

CN111355494BActive Publication Date: 2024-09-20ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811581246.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-24
Publication Date
2024-09-20
Estimated Expiration
2038-12-24

AI Technical Summary

Technical Problem

The LDPC decoding performance in the existing technology is poor, resulting in poor performance of the communication system. This is mainly due to the inability to effectively utilize hardware resources and the fixed number of iterations cannot adapt to changes in system throughput.

Method used

By obtaining the number of users scheduled in a predetermined time slot, dynamically adjust the number of iterations according to the matrix size, spreading factor and number of code blocks of each user, and determine the average and maximum number of iterations for each user to optimize LDPC decoding performance.

Benefits of technology

By dynamically adjusting the number of iterations, the LDPC decoding performance is improved, hardware resources are effectively utilized, and the overall performance of the communication system is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111355494B
    Figure CN111355494B
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device and electronic device for processing a check code, the method comprising: obtaining the number of users scheduled in a predetermined time slot; determining the input time, one-time iterative decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user; determining the time for iterative decoding according to the input time and output time of the code block scheduled by the new transmission user among the users, and the input time and output time of the code block scheduled by the retransmission user among the users; determining the average number of iterations corresponding to each user according to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the new transmission user and one-time iterative decoding time of the code block scheduled by the retransmission user; determining the maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user.
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 method, device and electronic device for processing a verification code. Background Art

[0002] Since the performance of low-density parity-check code (LDPC) is close to the Shannon limit, LDPC is used in many wireless communication systems, such as the 3rd Generation Partnership Project New Radio (3GPP NR) and Advanced Television Systems Committee 3.0 (ATSC 3.0). However, the power consumption and decoding delay of LDPC increase with the number of iterations. Therefore, various early stopping mechanisms are usually set in LDPC decoders to improve energy efficiency and increase system throughput.

[0003] When decoding LDPC, there is a large relationship between the decoding performance of LDPC and the number of iterations. Generally speaking, the more iterations, the better the performance. When the system throughput is large, the number of available iterations is small; when the system throughput is small, the number of available iterations is large. Usually, a fixed number of iterations can be used to decode LDPC. However, the above method cannot effectively utilize hardware resources, resulting in poor LDPC decoding performance and poor communication system performance. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device and electronic device for processing a check code to solve the problem in the prior art that hardware resources cannot be effectively utilized, resulting in poor LDPC decoding performance and poor communication system performance.

[0005] To solve the above technical problems, the embodiments of the present application are implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for processing a verification code, the method comprising:

[0007] Obtain the number of users scheduled in a predetermined time slot;

[0008] Determine the input time, one iteration decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user;

[0009] Determine a time for iterative decoding according to an input time and an output time of a code block scheduled by a new transmission user among the users, and an input time and an output time of a code block scheduled by a retransmission user among the users;

[0010] Determine an average number of iterations corresponding to each user according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user, and one iterative decoding time of the code block scheduled by the retransmission user;

[0011] According to the average number of iterations corresponding to each user, a maximum number of iterations corresponding to each user is determined.

[0012] Optionally, determining the maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user includes:

[0013] If the average number of iterations is greater than or equal to a predetermined iteration threshold, the maximum number of iterations corresponding to the new transmitting user and the retransmitting user is the predetermined iteration threshold.

[0014] Optionally, determining the maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user includes:

[0015] If the average number of iterations is less than a predetermined iteration number threshold, the maximum number of iterations of the new user is the predetermined iteration number threshold.

[0016] Optionally, the method further comprises:

[0017] Acquire an iterative decoding time for the retransmitting user;

[0018] The maximum number of iterations corresponding to each retransmitting user is determined according to the iterative decoding time for the retransmitting user.

[0019] Optionally, the step of determining the input time, one-iteration decoding time, and output time of the code blocks scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user includes:

[0020] Determine the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user;

[0021] The iterative decoding time of the code blocks scheduled by each user is determined according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

[0022] Optionally, determining the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user includes:

[0023] Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula:

[0024] cyclc0 j =C j *ceil(8*Z j / 512)*kb j

[0025] Calculate and obtain the input time of the code block scheduled by each user;

[0026] Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula:

[0027] cyclc2 j =C j *ceil(1*Z j / 128)*(1+kb j -mb j )

[0028] Calculate and get the output time of the code block scheduled by each user, where cyclc0 j represents the input time of the code block scheduled by the jth user, cyclc2 j represents the output time of the code block scheduled by the jth user, C j represents the number of code blocks scheduled by the jth user, Z j represents the expansion factor of the matrix scheduled by the j-th user, and mbj*kbj represents the size value of the matrix scheduled by the j-th user.

[0029] Optionally, determining one iterative decoding time of the code blocks scheduled by each user according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index includes:

[0030] Substitute the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index into the following formula:

[0031] cyclc1 j =C j*ceil(MatrixCycle(mb j ))

[0032] Calculate and get the iterative decoding time of each user-scheduled code block, where cyclc1 j represents one iterative decoding time of the code block scheduled by the jth user, and MatrixCycle represents the time required for decoding the check code constructed by the matrix row number index.

[0033] Optionally, determining the time for iterative decoding according to the input time and the output time of the code blocks scheduled by the new transmission user among the users, and the input time and the output time of the code blocks scheduled by the retransmission user among the users, includes:

[0034] Subtract the input time and output time of the code block scheduled by the new transmission user and the input time and output time of the code block scheduled by the retransmission user from the maximum duration supported in the predetermined time slot to obtain the corresponding difference, and use the obtained difference as the time for iterative decoding.

[0035] Optionally, determining the average number of iterations corresponding to each user according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user, and one iterative decoding time of the code block scheduled by the retransmission user includes:

[0036] Substitute the time for iterative decoding, the time for one iterative decoding of the code block scheduled by the new transmission user, and the time for one iterative decoding of the code block scheduled by the retransmission user into the following formula:

[0037] IterationNum=min(floor(TmpCycle / (cyclc1New+cyclc1Old)),31)-1

[0038] Calculation is performed to obtain the average number of iterations; wherein, IterationNum represents the average number of iterations, cyclc1New represents the iterative decoding time of the code block scheduled by the new transmission user, cyclc1Old represents the iterative decoding time of the code block scheduled by the retransmission user, and TmpCycle represents the time that can be used for iterative decoding.

[0039] In a second aspect, an embodiment of the present application provides a verification code processing device, the device comprising:

[0040] A user number acquisition module, used to obtain the number of users scheduled in a predetermined time slot;

[0041] A first time determination module, used to determine the input time, one iteration decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user;

[0042] A second time determination module, used to determine the time for iterative decoding according to the input time and output time of the code block scheduled by the new transmission user among the users, and the input time and output time of the code block scheduled by the retransmission user among the users;

[0043] An average number determination module, used to determine the average number of iterations corresponding to each user according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user and one iterative decoding time of the code block scheduled by the retransmission user;

[0044] The maximum number determination module is used to determine the maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user.

[0045] Optionally, the maximum number determination module is used to, if the average number of iterations is greater than or equal to a predetermined number of iterations threshold, then the maximum number of iterations corresponding to the new transmission user and the retransmission user is the predetermined number of iterations threshold.

[0046] Optionally, the maximum number determination module is used to, if the average number of iterations is less than a predetermined number of iterations threshold, then the maximum number of iterations of the new user is the predetermined number of iterations threshold.

[0047] Optionally, the device further comprises:

[0048] A third time determination module, used to obtain an iterative decoding time for the retransmitting user;

[0049] The retransmitting user iteration determination module is used to determine the maximum number of iterations corresponding to each retransmitting user according to the iterative decoding time for the retransmitting user.

[0050] Optionally, the first time determination module includes:

[0051] A first time determination unit, used to determine the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user;

[0052] The second time determination unit is used to determine the iterative decoding time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

[0053] In a third aspect, an electronic device provided by an embodiment of the present application is characterized in that it includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the verification code processing method described in the first aspect above are implemented.

[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the verification code processing method described in the first aspect above are implemented.

[0055] It can be seen from the technical solution provided by the above embodiments of the present application that the embodiments of the present application obtain the number of users scheduled in a predetermined time slot, and then determine the input time, one-time iterative decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user. Then, according to the input time and output time of the code block scheduled by the newly transmitted user in the user, and the input time and output time of the code block scheduled by the retransmitted user in the user, the time for iterative decoding is determined. According to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the newly transmitted user and the input time and output time of the code block scheduled by the retransmitted user in the user, the time for iterative decoding is determined. The iterative decoding time of the code block is used to determine the average number of iterations corresponding to each user. Finally, the maximum number of iterations corresponding to each user is determined according to the average number of iterations corresponding to each user. In this way, the time for iterative decoding is determined by the input time and output time of the code block scheduled by the new transmission user and the input time and output time of the code block scheduled by the retransmission user in the user. Then, the average number of iterations corresponding to each user is determined to determine the maximum number of iterations corresponding to each user. The number of iterations corresponding to each user can be dynamically adjusted according to the system throughput to optimize the LDPC decoding performance, thereby effectively utilizing hardware resources and improving the performance of the communication system. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present application 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, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0057] Figure 1 An embodiment of a method for processing a verification code is provided for this application;

[0058] Figure 2A schematic diagram of the structure of a verification code processing system for this application;

[0059] Figure 3 Another embodiment of a method for processing a verification code of the present application;

[0060] Figure 4 An embodiment of a device for processing a verification code is provided for the present application;

[0061] Figure 5 This application discloses an electronic device embodiment. DETAILED DESCRIPTION

[0062] The embodiments of the present application provide a method, device and electronic device for processing a verification code.

[0063] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0064] Embodiment 1

[0065] like Figure 1 As shown, an embodiment of the present application provides a method for processing a verification code, and the execution subject of the method may be an electronic device, and the electronic device may be a terminal device or a server on the network side, etc., wherein the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer or a television. The server on the network side may be a base station or other network side device, etc., wherein the server may be an independent server or a server cluster composed of multiple servers, and the electronic device may be an electronic device in a communication network based on a certain communication protocol, etc. The method can be used in applications such as dynamically configuring the number of verification code iterations to improve the performance of the communication system. The method may specifically include the following steps:

[0066] In step S102, the number of users scheduled in a predetermined time slot is obtained.

[0067] The predetermined time slot may be a time slot in the field of communication technology, such as one or more time slots in LTE (Long Term Evolution). In this embodiment, the predetermined time slot may be a slot.

[0068] In practice, the performance of low-density parity-check codes (LDPC) is close to the Shannon limit. LDPC is used in many wireless communication systems, such as Figure 2 As shown in the figure, LDPC can be applied to the 3rd Generation Partnership Project New Radio (3GPP NR) and Advanced Television Systems Committee 3.0 (ATSC 3.0). However, the power consumption and decoding delay of LDPC will increase with the increase of the number of iterations. For this reason, various early stopping mechanisms are usually set in the LDPC decoder to improve energy efficiency and increase system throughput. The early stopping mechanism can be implemented by methods such as the maximum number of iterations, the check matrix method and the cyclic redundancy check method.

[0069] When decoding LDPC, there is a large relationship between the decoding performance of LDPC and the number of iterations. Generally speaking, the more iterations, the better the performance. When the system throughput is large, the number of available iterations is small; when the system throughput is small, the number of available iterations is large. Usually, a fixed number of iterations can be used to decode LDPC. However, the above method cannot effectively utilize hardware resources, resulting in poor LDPC decoding performance. In order to optimize the LDPC decoding performance, it is necessary to dynamically adjust the number of iterations according to the system throughput. To this end, the embodiment of the present application provides a technical solution that can dynamically adjust the number of check code iterations, which may specifically include the following contents:

[0070] When it is necessary to adjust the number of iterations of the user scheduling check code in a certain time slot (i.e., a predetermined time slot), since the number of iterations of the adjustment check code can be for each user in the time slot, the number of users scheduled in the time slot can be obtained first, for example, the number of users that can be scheduled in a certain time slot includes 1 or 5, etc. Among them, the users that can be scheduled in the time slot can include new transmission users and / or retransmission users, etc.

[0071] In step S104, the input time, one iteration decoding time and output time of each user-scheduled code block are determined according to the size value of each user scheduling matrix, the expansion factor of each user scheduling matrix and the number of code blocks of each user scheduling check code.

[0072] The user scheduling matrix may be a check matrix in a check code. With respect to the expansion factor of the user scheduling matrix, in order to achieve low-complexity coding and construct an LDPC code with linear coding complexity and a quasi-cyclic structure, the check matrix may be expanded (such as performing a secondary expansion, etc.), which may make the hardware implementation simple and the code length and code rate flexible and variable. Therefore, an expansion factor is generated during the above expansion process. One iteration decoding time may be the length of time required for one iteration decoding, etc.

[0073] During implementation, within a certain time slot, the size value of each user scheduling matrix within the time slot can be obtained, such as 46*68 or 5*27, etc. In addition, the expansion factor of each user scheduling matrix can also be obtained, such as 384, etc. At the same time, the number of code blocks of each user scheduling check code can also be obtained, such as 10 or 8, etc. Through the above method, after obtaining the size value of each user scheduling matrix in the time slot, the expansion factor of each user scheduling matrix and the number of code blocks of each user scheduling check code, calculations can be performed based on the above data to obtain the input time of each user scheduled code block, the one-time iterative decoding time of each user scheduled code block and the output time of each user scheduled code block. Specifically, an algorithm for calculating the input time of each user scheduled code block can be pre-set. The setting of the algorithm can be set or selected according to actual conditions. The algorithm can be an algorithm determined based on one or more of the size value of the user scheduling matrix, the expansion factor of the user scheduling matrix and the number of code blocks of the user scheduling check code. For example, the algorithm can be an algorithm for determining the input time of the user scheduled code block based on the size value of the user scheduling matrix, the expansion factor of the user scheduling matrix and the number of code blocks of the user scheduling check code. Then, the size value of each user scheduling matrix in the time slot, the expansion factor of each user scheduling matrix and the number of code blocks of each user scheduling check code can be input into the formula of the above-mentioned algorithm for calculation to obtain the input time of each user scheduled code block. In addition, the algorithm can also be an algorithm that determines the input time of the user-scheduled code blocks based on the size value of the user scheduling matrix and the number of code blocks of the user scheduling check code. The size value of each user scheduling matrix in the time slot and the number of code blocks of each user scheduling check code can be input into the formula of the above-mentioned algorithm for calculation to obtain the input time of each user-scheduled code block, etc. Alternatively, the algorithm can also be an algorithm that determines the input time of the user-scheduled code blocks based on any one of the size value of the user scheduling matrix, the expansion factor of the user scheduling matrix and the number of code blocks of the user scheduling check code, etc. The embodiments of the present application do not limit this.

[0074] Similarly, an algorithm for calculating the time of one iteration decoding of the code block scheduled by each user can be preset, and the setting of the algorithm can be specifically set or selected according to the actual situation, and the algorithm can be an algorithm determined based on one or more of the size value of the user scheduling matrix, the expansion factor of the user scheduling matrix, and the number of code blocks of the user scheduling check code. In addition, an algorithm for calculating the output time of the code block scheduled by each user can also be preset, and the setting of the algorithm can be specifically set or selected according to the actual situation, and the algorithm can be an algorithm determined based on one or more of the size value of the user scheduling matrix, the expansion factor of the user scheduling matrix, and the number of code blocks of the user scheduling check code. For the specific processing process, please refer to the above content and examples, which will not be repeated here.

[0075] In step S106, the time for iterative decoding is determined according to the input time and output time of the code blocks scheduled by the new transmission users among the users and the input time and output time of the code blocks scheduled by the retransmission users among the users.

[0076] The users that can be scheduled within the predetermined time slot may include new transmission users and / or retransmission users.

[0077] In implementation, the input time and output time of the code blocks scheduled by the new transmission user in the predetermined time slot, and the input time and output time of the code blocks scheduled by the retransmission user in the predetermined time slot can be obtained from the input time and output time of the code blocks scheduled by each user obtained in the above step S104. Then, the maximum duration supported in the predetermined time slot can be obtained. The input time and output time of the code blocks scheduled by the new transmission user, and the input time and output time of the code blocks scheduled by the retransmission user can be subtracted from the maximum duration. The remaining duration can be used as the time for iterative decoding, that is, the input time and output time of the code blocks scheduled by the new transmission user, and the input time and output time of the code blocks scheduled by the retransmission user can be subtracted from the maximum duration, and the difference obtained can be used as the time for iterative decoding.

[0078] For example, the maximum duration supported in the reserved time slot is 100000, the input time of the code block scheduled by the new transmission user is 4896, the output time of the code block scheduled by the new transmission user is 828, the input time of the code block scheduled by the retransmission user is 8160, and the output time of the code block scheduled by the retransmission user is 1380, then the time used for iterative decoding is 100000-4896-828-8160-1380=84736.

[0079] In step S108, the average number of iterations corresponding to each user is determined according to the time for iterative decoding, the time for one iterative decoding of the code blocks scheduled by the new transmission user, and the time for one iterative decoding of the code blocks scheduled by the retransmission user.

[0080] In implementation, the iterative decoding time of the code blocks scheduled by the new transmission user and the iterative decoding time of the code blocks scheduled by the retransmission user in the predetermined time slot can be obtained from the iterative decoding time of the code blocks scheduled by each user obtained in the above step S104, and then, the algorithm for the average number of iterations for each user can be set. The setting method of the algorithm can be set or selected according to the actual situation, and the embodiment of the present application does not limit this. The iterative decoding time of the code blocks scheduled by the new transmission user and the iterative decoding time of the code blocks scheduled by the retransmission user in the predetermined time slot obtained above can be substituted into the formula corresponding to the above algorithm for calculation to obtain the average number of iterations for each user.

[0081] For example, the sum of the time for one iteration decoding of the code block scheduled by the new transmission user and the time for one iteration decoding of the code block scheduled by the retransmission user in the predetermined time slot may be calculated, and the value of the sum may be used as the time for one iteration decoding of the code block scheduled by the user, and then the time for iterative decoding may be divided by the time for one iteration decoding of the code block scheduled by the user to obtain a corresponding quotient. The average number of iterations per user may be calculated based on the obtained quotient.

[0082] In step S110, the maximum number of iterations corresponding to each user is determined according to the average number of iterations corresponding to each user.

[0083] In implementation, for the iteration number of each user scheduling check code in the predetermined time slot, a threshold of the iteration number of each user scheduling check code in the predetermined time slot can be pre-set, and then the average number of iterations of each user obtained above can be compared with the iteration number threshold, and the maximum number of iterations of each user can be determined based on the comparison result. The specific processing methods can be various. For example, if the average number of iterations of each user is greater than the iteration number threshold, the maximum number of iterations of each user is set to the value of the average number of iterations. If the average number of iterations of each user is less than the iteration number threshold, the maximum number of iterations of each new transmitting user is set to the iteration number threshold, and the retransmitting user may not adjust the number of iterations, etc.

[0084] The embodiment of the present application provides a method for processing a check code, which obtains the number of users scheduled in a predetermined time slot, and then determines the input time, one-time iterative decoding time, and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user. Then, according to the input time and output time of the code block scheduled by the newly transmitted user in the user, and the input time and output time of the code block scheduled by the retransmitted user in the user, the time for iterative decoding is determined, and according to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the newly transmitted user, and the code block scheduled by the retransmitted user The average number of iterations for each user is determined based on the time of one iterative decoding. Finally, the maximum number of iterations for each user is determined based on the average number of iterations for each user. In this way, the time for iterative decoding is determined through the input time and output time of the code blocks scheduled by the new transmission user and the input time and output time of the code blocks scheduled by the retransmission user in the user. The average number of iterations for each user is then determined to determine the maximum number of iterations for each user. The number of iterations for each user can be dynamically adjusted based on the system throughput to optimize the LDPC decoding performance, thereby effectively utilizing hardware resources and improving the performance of the communication system.

[0085] Embodiment 2

[0086] like Figure 3 As shown, an embodiment of the present application provides a method for processing a verification code, and the execution subject of the method may be an electronic device, and the electronic device may be a terminal device or a server on the network side, etc., wherein the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer or a television. The server on the network side may be a base station or other network side device, etc., wherein the server may be an independent server or a server cluster composed of multiple servers, and the electronic device may be an electronic device in a communication network based on a certain communication protocol, etc. The method can be used in applications such as dynamically configuring the number of verification code iterations to improve the performance of the communication system. The method may specifically include the following steps:

[0087] In step S302, the number of users scheduled in a predetermined time slot is obtained.

[0088] The step content of the above step S302 is the same as the step content of step S102 in the above embodiment 1. The specific processing process of step S302 can refer to the relevant content of step S102 in the above embodiment 1, which will not be repeated here.

[0089] In step S304, the input time and output time of the code block scheduled by each user are determined according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user.

[0090] Among them, the check code scheduled by the user can be a low-density parity check code, etc. The embodiment of the present application takes the check code as a low-density parity check code as an example for detailed description. For other types of check codes, they can be processed according to the following related content, which will not be repeated here.

[0091] In the implementation, for the input time of the code block scheduled by each user, if the number of users that can be scheduled in the predetermined time slot is N, the size of each user scheduling matrix is ​​mb 0 *kb 0 , mb 1 *kb 1 , ..., mb N-1 *kb N-1 , the expansion factor of each user scheduling matrix can be Z 0 , Z 1 , ..., Z N-1 , the number of code blocks scheduled by each user can be C 0 , C 1 , ..., C N-1 , the time required for decoding the low-density parity check code constructed according to the above matrix row number index is MatrixCycle, then the size of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the parity check code scheduled by each user can be substituted into the following formula (1):

[0092] cyclc0 j =C j *ceil(8*Z j / 512)*kb j (1)

[0093] Calculate and obtain the input time of the code block scheduled by each user.

[0094] The size of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user can be substituted into the following formula (2):

[0095] cyclc2 j =C j *ceil(1*Z j / 128)*(1+kb j -mb j ) (2)

[0096] Calculate and get the output time of the code block scheduled by each user, where cyclc0 j represents the input time of the code block scheduled by the jth user, cyclc2 j represents the output time of the code block scheduled by the jth user, C j represents the number of code blocks scheduled by the jth user, Z j represents the expansion factor of the matrix scheduled by the j-th user, and mbj*kbj represents the size value of the matrix scheduled by the j-th user.

[0097] For example, the number of users that can be scheduled in the predetermined time slot is 1, the size of the user scheduling matrix is ​​46*68, the expansion factor of the user scheduling matrix can be 384, the number of code blocks scheduled by the user can be 12, and the time required for decoding the low-density parity check code constructed according to the matrix row number index is MatrixCycle. Then, the size of the user scheduling matrix 46*68, the expansion factor of the user scheduling matrix 384 and the number of code blocks of the user scheduling check code 12 are substituted into the above formula (1) to obtain cyclc0 0 =12*ceil(8*384 / 512)*68=4896, then 4896 is the input time of the code block scheduled by the user. The size of the matrix scheduled by the user (46*68), the expansion factor of the matrix scheduled by the user (384) and the number of code blocks of the user scheduled check code (12) can be substituted into the above formula (2) to obtain cyclc2 0 =12*ceil(1*384 / 128)*(1+68-46)=828, then 828 is the output time of the code block scheduled by the user.

[0098] In step S306, the iterative decoding time of the code blocks scheduled by each user is determined according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

[0099] In implementation, the size of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index can be substituted into the following formula (3):

[0100] cyclc1 j =C j *ceil(MatrixCycle(mb j )) (3)

[0101] Calculate and get the iterative decoding time of each user-scheduled code block, where cyclc1 jrepresents the iterative decoding time of the code block scheduled by the jth user, and MatrixCycle represents the time required for decoding the check code constructed by the above matrix row number index.

[0102] For example, based on the example of step S304, the number of users that can be scheduled in the predetermined time slot is 1, the size value of the user scheduling matrix is ​​46*68, the expansion factor of the user scheduling matrix can be 384, the number of code blocks scheduled by the user can be 12, and the time required for decoding the low-density parity check code constructed according to the matrix row number index is MatrixCycle. Then, the size value of the user scheduling matrix 46*68, the number of code blocks of the user scheduling check code 12, and the time required for decoding the check code constructed by the matrix row number index MatrixCycle are substituted into the above formula (3) to obtain cyclc1. 0 =12*472=5664, then 5664 is the iterative decoding time of the code block scheduled by the user.

[0103] In step S308, the time for iterative decoding is determined according to the input time and output time of the code blocks scheduled by the new transmission users among the users and the input time and output time of the code blocks scheduled by the retransmission users among the users.

[0104] In implementation, the sum of the input times of the code blocks scheduled by all new transmission users and the sum of the output times of the code blocks scheduled by all new transmission users can be calculated. Similarly, the sum of the input times of the code blocks scheduled by all retransmission users and the sum of the output times of the code blocks scheduled by all retransmission users can be calculated. Then, the sum of the input time and the output time of the code blocks scheduled by the new transmission users and the sum of the input time and the output time of the code blocks scheduled by all retransmission users can be subtracted from the total time of the predetermined time slot, and the difference obtained can be the time used for iterative decoding.

[0105] For example, if there is one user that can be scheduled in the predetermined time slot, and the user is a new transmission user, and the size value of the user scheduling matrix is ​​46*68, the expansion factor of the user scheduling matrix can be 384, the number of code blocks scheduled by the user can be 12, and the time required for decoding the low-density parity check code constructed according to the above matrix row number index is MatrixCycle, then based on the processing of the above steps S304 and S306, the input time of the code block scheduled by the user is 4896, and the output time of the code block scheduled by the user is 828. Therefore, the sum of the input time of the code blocks scheduled by all new transmission users is 4896, and the sum of the output time is 828. The sum of the input time of the code blocks scheduled by all retransmission users is 0, and the sum of the output time is 0. Then, the total number of cycles available for decoding the check code can be determined, wherein the processing time length reserved by the system for the processing chip is different, and the total number of cycles available for decoding the check code can be different. If the maximum number of cycles supported by the processing chip in the predetermined time slot is 100000, the time for iterative decoding is 100000-4896-828=94276.

[0106] For another example, there are 3 users that can be scheduled in the predetermined time slot, including 1 new transmission user and 2 retransmission users, and the size values ​​of the 3 user scheduling matrices are 5*27, 46*68, and 46*68 respectively, the expansion factors of the 3 user scheduling matrices are 384, 384, and 384 respectively, and the number of code blocks scheduled by the 3 users is 10, 10, and 10 respectively. The time required for decoding the low-density parity-check code constructed according to the above matrix row number index is MatrixCycle, then based on the processing of the above steps S304 and S306, the following are obtained respectively: the input time cyclc0 of the code block scheduled by the 0th user 0 =10*ceil(8*384 / 512)*27=1620, output time cyclc2 0 =10*ceil(1*384 / 128)*(1+27-5)=690, the input time of the code block scheduled by the first user cyclc0 1 =10*ceil(8*384 / 512)*68=4080, output time cyclc2 1 =10*ceil(1*384 / 128)*(1+68-46)=690, the input time of the code block scheduled by the second user cyclc0 2 =10*ceil(8*384 / 512)*68=4080, output time cyclc2 2=10*ceil(1*384 / 128)*(1+68-46)=690. If the new transmission user index is 0 and the retransmission user index is 1 and 2, the input time of all the code blocks scheduled by the new transmission users in the scheduled time slot is accumulated to obtain cyclc0New=1620, and the output time is accumulated to obtain cyclc2New=690. The input time of all the retransmission users in the scheduled time slot is accumulated to obtain cyclc0Old=4080+4080=8160, and the output time is accumulated to obtain cyclc2Old=690+690=1380. Therefore, the time for iterative decoding is 100000-1620-690-8160-1380=88150.

[0107] In step S310, the average number of iterations corresponding to each user is determined according to the above-mentioned time for iterative decoding, one iterative decoding time of the code blocks scheduled by the new transmission user and one iterative decoding time of the code blocks scheduled by the retransmission user.

[0108] In implementation, the time for iterative decoding, the time for one iterative decoding of a code block scheduled by a new transmission user, and the time for one iterative decoding of a code block scheduled by a retransmission user can be substituted into the following formula (4):

[0109] IterationNum=min(floor(TmpCycle / (cyclc1New+cyclc1Old)),31)–1 (4)

[0110] Calculation is performed to obtain the average number of iterations; where IterationNum represents the average number of iterations, cyclc1New represents the iterative decoding time of a code block scheduled by a new transmission user, cyclc1Old represents the iterative decoding time of a code block scheduled by a retransmission user, and TmpCycle represents the time available for iterative decoding.

[0111] For example, based on the example of step S308, if there is one user that can be scheduled in the scheduled time slot, and the user is a new transmission user, and the size value of the user scheduling matrix is ​​46*68, the expansion factor of the user scheduling matrix can be 384, and the number of code blocks scheduled by the user can be 12. The time required for decoding the low-density parity-check code constructed according to the above matrix row number index is MatrixCycle, and the time for one iterative decoding is accumulated to obtain cyclc1=5664, and the time that can be used for iterative decoding is 94276. The time for iterative decoding 94276 and the accumulated time for one iterative decoding 5664 can be substituted into the above formula (4) for calculation to obtain the average number of iterations corresponding to the user IterationNum=min(floor(94276 / 5664),31)-1=15.

[0112] Based on the example of step S308, there are 3 users that can be scheduled in the predetermined time slot, including 1 new transmission user and 2 retransmission users, and the size values ​​of the 3 user scheduling matrices are 5*27, 46*68, 46*68, respectively. The expansion factors of the 3 user scheduling matrices are 384, 384, 384, respectively. The number of code blocks scheduled by the 3 users is 10, 10, 10, respectively. The time required for decoding the low-density parity-check code constructed according to the above matrix row number index is MatrixCycle, and the time required for one iteration decoding of the code block scheduled by the 0th user is cyclc1. 0 =10*121=1210, the iterative decoding time of the code block scheduled by the first user is cyclc1 1 =10*472=4720, the iterative decoding time of the code block scheduled by the second user is cyclc1 2 =10*472=4720, the iterative decoding time corresponding to all new transmission users in the scheduled time slot is accumulated to obtain cyclc1New=1210, and the iterative decoding time corresponding to all retransmission users in the scheduled time slot is accumulated to obtain cyclc1Old=4720+4720=9440. Therefore, the average number of iterations corresponding to each user is IterationNum=min(floor(88150 / (1210+9440)),31)-1=7.

[0113] In step S312, if the above average number of iterations is greater than or equal to a predetermined number of iterations threshold, the maximum number of iterations corresponding to the new transmitting user and the retransmitting user is the predetermined number of iterations threshold.

[0114] The predetermined iteration number threshold may be set according to actual conditions, such as 12 or 8.

[0115] In implementation, based on the example of step S308 above, if there is one user that can be scheduled in the scheduled time slot, and the user is a new user, if the predetermined iteration number threshold is 12, then since the average number of iterations corresponding to the user is 15, the maximum number of iterations corresponding to the new user is 15.

[0116] If the above average number of iterations is less than a predetermined iteration number threshold, the process may be performed based on the following steps S314 to S318.

[0117] In step S314, if the above average number of iterations is less than the predetermined number of iterations threshold, the maximum number of iterations of the new user is the predetermined number of iterations threshold.

[0118] In implementation, for example, based on the example of step S308 above, there are 3 users that can be scheduled in the predetermined time slot, including 1 new transmission user and 2 retransmission users. If the predetermined iteration number threshold is 8, since the average number of iterations corresponding to each user is 7, the maximum number of iterations corresponding to the new transmission user can be 8. The maximum number of iterations corresponding to the retransmission user can be determined in a variety of ways, or the number of iterations corresponding to the retransmission user can be not adjusted. The following provides a method for determining the maximum number of iterations corresponding to the retransmission user, and the specific details can be referred to the processing of the following steps S316 and S318.

[0119] In step S316, the iterative decoding time for the retransmitting user is obtained.

[0120] In implementation, for retransmitting users, the retransmitting users can be arranged in ascending order according to the block error rate of the check code. For example, based on the example of step S308 above, there are 3 users that can be scheduled in the predetermined time slot, including 1 new transmission user and 2 retransmitting users, and the 2 retransmitting users are arranged in ascending order to be 0 and 1. Then, the iterative decoding time that can be used for the retransmitting users is calculated, that is, TmpCycle'=MaxCycle-cyclc0New-cyclc2New-cyclc1New*(Threshold+1), and TmpCycle'=100000-1620-690-1210*9=86800 is obtained, where Threshold represents the threshold of the number of iterations.

[0121] In step S318, the maximum number of iterations corresponding to each retransmitting user is determined according to the iterative decoding time for the retransmitting user.

[0122] In implementation, if the retransmitting users are arranged in ascending order according to the code block packet error rate as follows: ue0, ue1, ..., uei, the maximum number of iterations corresponding to the retransmitting users is calculated as follows: that is, take index = ue0, ue1, ..., or uei respectively, and calculate T' = TmpCycle'-cyclc0index-cyclc2index-cyclc1index*(Threshold+1), where TmpCycle' = MaxCycle-cyclc0New-cyclc2New-cyclc1New*(Threshold+1). If T'>0, the maximum number of iterations of user index is the iteration number threshold. Otherwise, the user corresponding to index is not scheduled to user uei. That is, based on the example of step S316 above, it can be obtained that the maximum number of iterations corresponding to retransmitting user 0 is 8, and the number of iterations corresponding to retransmitting user 1 is not scheduled.

[0123] The embodiment of the present application provides a method for processing a check code, which obtains the number of users scheduled in a predetermined time slot, and then determines the input time, one-time iterative decoding time, and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user. Then, according to the input time and output time of the code block scheduled by the newly transmitted user in the user, and the input time and output time of the code block scheduled by the retransmitted user in the user, the time for iterative decoding is determined, and according to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the newly transmitted user, and the code block scheduled by the retransmitted user The average number of iterations for each user is determined based on the time of one iterative decoding. Finally, the maximum number of iterations for each user is determined based on the average number of iterations for each user. In this way, the time for iterative decoding is determined through the input time and output time of the code blocks scheduled by the new transmission user and the input time and output time of the code blocks scheduled by the retransmission user in the user. The average number of iterations for each user is then determined to determine the maximum number of iterations for each user. The number of iterations for each user can be dynamically adjusted based on the system throughput to optimize the LDPC decoding performance, thereby effectively utilizing hardware resources and improving the performance of the communication system.

[0124] Embodiment 3

[0125] The above is a method for processing a check code provided in an embodiment of the present application. Based on the same idea, an embodiment of the present application also provides a device for processing a check code, such as Figure 4 shown.

[0126] The verification code processing device includes: a user number acquisition module 401, a first time determination module 402, a second time determination module 403, an average number of times determination module 404 and a maximum number of times determination module 405, wherein:

[0127] A user number acquisition module 401, used to acquire the number of users scheduled in a predetermined time slot;

[0128] A first time determination module 402, configured to determine the input time, one iteration decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user;

[0129] A second time determination module 403, configured to determine a time for iterative decoding according to an input time and an output time of a code block scheduled by a new transmission user among the users, and an input time and an output time of a code block scheduled by a retransmission user among the users;

[0130] The average number determination module 404 is used to determine the average number of iterations corresponding to each user according to the time for iterative decoding, the time for one iterative decoding of the code block scheduled by the new transmission user and the time for one iterative decoding of the code block scheduled by the retransmission user;

[0131] The maximum number determination module 405 is used to determine the maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user.

[0132] In the embodiment of the present application, the maximum number determination module 405 is used to determine that if the average number of iterations is greater than or equal to a predetermined number of iterations threshold, the maximum number of iterations corresponding to the new transmitting user and the retransmitting user is the predetermined number of iterations threshold.

[0133] In the embodiment of the present application, the maximum number determination module 405 is used to, if the average number of iterations is less than a predetermined number of iterations threshold, then the maximum number of iterations of the new user is the predetermined number of iterations threshold.

[0134] In the embodiment of the present application, the device further includes:

[0135] A third time determination module, used to obtain an iterative decoding time for the retransmitting user;

[0136] The retransmitting user iteration determination module is used to determine the maximum number of iterations corresponding to each retransmitting user according to the iterative decoding time for the retransmitting user.

[0137] In the embodiment of the present application, the first time determination module 402 includes:

[0138] A first time determination unit, used to determine the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user;

[0139] The second time determination unit is used to determine the iterative decoding time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

[0140] In the embodiment of the present application, the first time determination unit is used to:

[0141] Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula:

[0142] cyclc0 j =C j*ceil(8*Z j / 512)*kb j

[0143] Calculate and obtain the input time of the code block scheduled by each user;

[0144] Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula:

[0145] cyclc2 j =C j *ceil(1*Z j / 128)*(1+kb j -mb j )

[0146] Calculate and get the output time of the code block scheduled by each user, where cyclc0 j represents the input time of the code block scheduled by the jth user, cyclc2 j represents the output time of the code block scheduled by the jth user, C j represents the number of code blocks scheduled by the jth user, Z j represents the expansion factor of the matrix scheduled by the j-th user, and mbj*kbj represents the size value of the matrix scheduled by the j-th user.

[0147] In the embodiment of the present application, the second time determination unit is used to:

[0148] Substitute the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index into the following formula:

[0149] cyclc1 j =C j *ceil(MatrixCycle(mb j ))

[0150] Calculate and get the iterative decoding time of each user-scheduled code block, where cyclc1 j represents one iterative decoding time of the code block scheduled by the jth user, and MatrixCycle represents the time required for decoding the check code constructed by the matrix row number index.

[0151] In an embodiment of the present application, the second time determination module 403 is used to subtract the input time and output time of the code block scheduled by the new transmission user, and the input time and output time of the code block scheduled by the retransmission user from the maximum duration supported in the predetermined time slot to obtain the corresponding difference, and use the obtained difference as the time for iterative decoding.

[0152] In the embodiment of the present application, the average number determination module 404 is used to:

[0153] Substitute the time for iterative decoding, the time for one iterative decoding of the code block scheduled by the new transmission user, and the time for one iterative decoding of the code block scheduled by the retransmission user into the following formula:

[0154] IterationNum=min(floor(TmpCycle / (cyclc1New+cyclc1Old)),31)-1 is used for calculation to obtain the average number of iterations; wherein, IterationNum represents the average number of iterations, cyclc1New represents the iterative decoding time of the code block scheduled by the new transmission user, cyclc1Old represents the iterative decoding time of the code block scheduled by the retransmission user, and TmpCycle represents the time that can be used for iterative decoding.

[0155] The embodiment of the present application provides a processing device for a check code, which obtains the number of users scheduled in a predetermined time slot, and then determines the input time, one-time iterative decoding time, and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user. Then, according to the input time and output time of the code block scheduled by the newly transmitted user in the user, and the input time and output time of the code block scheduled by the retransmitted user in the user, the time for iterative decoding is determined, and according to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the newly transmitted user, and the code block scheduled by the retransmitted user The average number of iterations for each user is determined based on the time of one iterative decoding. Finally, the maximum number of iterations for each user is determined based on the average number of iterations for each user. In this way, the time for iterative decoding is determined through the input time and output time of the code blocks scheduled by the new transmission user and the input time and output time of the code blocks scheduled by the retransmission user in the user. The average number of iterations for each user is then determined to determine the maximum number of iterations for each user. The number of iterations for each user can be dynamically adjusted based on the system throughput to optimize the LDPC decoding performance, thereby effectively utilizing hardware resources and improving the performance of the communication system.

[0156] Embodiment 4

[0157] Figure 5A schematic diagram of the hardware structure of an electronic device for implementing each embodiment of the present application is provided below.

[0158] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0159] The processor 510 is configured to obtain the number of users scheduled in a predetermined time slot;

[0160] The processor 510 is further configured to determine the input time, one iteration decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user;

[0161] The processor 510 is further configured to determine a time for iterative decoding according to an input time and an output time of a code block scheduled by a new transmission user among the users, and an input time and an output time of a code block scheduled by a retransmission user among the users;

[0162] The processor 510 is further configured to determine an average number of iterations corresponding to each user according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user, and one iterative decoding time of the code block scheduled by the retransmission user;

[0163] The processor 510 is further configured to determine a maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user.

[0164] In addition, the processor 510 is further configured to, if the average number of iterations is greater than or equal to a predetermined number of iterations threshold, set the maximum number of iterations corresponding to the new transmitting user and the retransmitting user to the predetermined number of iterations threshold.

[0165] In addition, the processor 510 is further configured to, if the average number of iterations is less than a predetermined number of iterations threshold, set the maximum number of iterations of the new user to the predetermined number of iterations threshold.

[0166] In addition, the processor 510 is further configured to obtain an iterative decoding time for the retransmitting user; and determine a maximum number of iterations corresponding to each retransmitting user according to the iterative decoding time for the retransmitting user.

[0167] In addition, the processor 510 is further configured to determine the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user;

[0168] The processor 510 is further configured to determine an iterative decoding time of a code block scheduled by each user based on the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

[0169] In addition, the processor 510 is further configured to substitute the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user into the following formula:

[0170] cyclc0 j =C j *ceil(8*Z j / 512)*kb j

[0171] Calculate and obtain the input time of the code block scheduled by each user;

[0172] Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula:

[0173] cyclc2 j =C j *ceil(1*Z j / 128)*(1+kb j -mb j )

[0174] Calculate and get the output time of the code block scheduled by each user, where cyclc0 j represents the input time of the code block scheduled by the jth user, cyclc2 j represents the output time of the code block scheduled by the jth user, C j represents the number of code blocks scheduled by the jth user, Z j represents the expansion factor of the matrix scheduled by the j-th user, and mbj*kbj represents the size value of the matrix scheduled by the j-th user.

[0175] In addition, the processor 510 is further configured to substitute the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index into the following formula:

[0176] cyclc1j =C j *ceil(MatrixCycle(mb j ))

[0177] Calculate and get the iterative decoding time of each user-scheduled code block, where cyclc1 j represents one iterative decoding time of the code block scheduled by the jth user, and MatrixCycle represents the time required for decoding the check code constructed by the matrix row number index.

[0178] In addition, the processor 510 is also used to subtract the input time and output time of the code block scheduled by the new transmission user and the input time and output time of the code block scheduled by the retransmission user from the maximum duration supported in the predetermined time slot to obtain the corresponding difference, and use the obtained difference as the time for iterative decoding.

[0179] In addition, the processor 510 is further configured to substitute the time for iterative decoding, the time for one iterative decoding of the code block scheduled by the new transmission user, and the time for one iterative decoding of the code block scheduled by the retransmission user into the following formula:

[0180] IterationNum=min(floor(TmpCycle / (cyclc1New+cyclc1Old)),31)-1

[0181] Calculation is performed to obtain the average number of iterations; wherein, IterationNum represents the average number of iterations, cyclc1New represents the iterative decoding time of the code block scheduled by the new transmission user, cyclc1Old represents the iterative decoding time of the code block scheduled by the retransmission user, and TmpCycle represents the time that can be used for iterative decoding.

[0182] The embodiment of the present application provides an electronic device, which obtains the number of users scheduled in a predetermined time slot, and then determines the input time, one-time iterative decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user, and then determines the time for iterative decoding according to the input time and output time of the code block scheduled by the newly transmitted user in the user, and the input time and output time of the code block scheduled by the retransmitted user in the user, and determines the time for iterative decoding according to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the newly transmitted user and one-time iterative decoding time of the code block scheduled by the retransmitted user The iterative decoding time is determined to determine the average number of iterations for each user. Finally, the maximum number of iterations for each user is determined according to the average number of iterations for each user. In this way, the time for iterative decoding is determined by the input time and output time of the code blocks scheduled by the new transmission user, as well as the input time and output time of the code blocks scheduled by the retransmission user among the users. Then, the average number of iterations for each user is determined to determine the maximum number of iterations for each user. The number of iterations for each user can be dynamically adjusted according to the system throughput to optimize the LDPC decoding performance, thereby effectively utilizing hardware resources and improving the performance of the communication system.

[0183] It should be understood that in the embodiment of the present application, the radio frequency unit 501 can be used for receiving and sending signals during information transmission or calls. Specifically, after receiving downlink data from the base station, it is sent to the processor 510 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 501 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.

[0184] The electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0185] The audio output unit 503 can convert the audio data received by the RF unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 can also provide audio output related to a specific function performed by the electronic device 500 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, etc.

[0186] The input unit 504 is used to receive audio or video signals. The input unit 504 may include a graphics processor (GPU) 5041 and a microphone 5042. The graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 506. The image frame processed by the graphics processor 5041 can be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 501 in the case of a telephone call mode.

[0187] The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 5061 and / or the backlight when the electronic device 500 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 505 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0188] The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0189] The user input unit 507 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 5071 or near the touch panel 5071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 5071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 510, receives the command sent by the processor 510 and executes it. In addition, the touch panel 5071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0190] Furthermore, the touch panel 5071 may be overlaid on the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits the information to the processor 510 to determine the type of the touch event. Then, the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Figure 5 In the figure, the touch panel 5071 and the display panel 5061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0191] The interface unit 508 is an interface for connecting an external device to the electronic device 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 500 or may be used to transmit data between the electronic device 500 and an external device.

[0192] The memory 509 can be used to store software programs and various data. The memory 509 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 509 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0193] The processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 509 and calling data stored in the memory 509, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.

[0194] The electronic device 500 may also include a power supply 511 (such as a battery) for supplying power to each component. Preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0195] Preferably, an embodiment of the present application also provides an electronic device, including a processor 510, a memory 509, and a computer program stored in the memory 509 and executable on the processor 510. When the computer program is executed by the processor 510, each process of the above-mentioned verification code processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0196] Embodiment 5

[0197] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned verification code processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0198] The embodiment of the present application provides a computer-readable storage medium, which obtains the number of users scheduled in a predetermined time slot, and then determines the input time, one-time iterative decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user, and then determines the time for iterative decoding according to the input time and output time of the code block scheduled by the new transmission user in the user, and the input time and output time of the code block scheduled by the retransmission user in the user, and determines the time for iterative decoding according to the time for iterative decoding, one-time iterative decoding time of the code block scheduled by the new transmission user and the code block scheduled by the retransmission user. The iterative decoding time of the block is used to determine the average number of iterations corresponding to each user. Finally, the maximum number of iterations corresponding to each user is determined according to the average number of iterations corresponding to each user. In this way, the time for iterative decoding is determined by the input time and output time of the code block scheduled by the new transmission user, as well as the input time and output time of the code block scheduled by the retransmission user among the users. Then, the average number of iterations corresponding to each user is determined to determine the maximum number of iterations corresponding to each user. The number of iterations corresponding to each user can be dynamically adjusted according to the system throughput to optimize the LDPC decoding performance, thereby effectively utilizing hardware resources and improving the performance of the communication system.

[0199] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0200] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0201] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0202] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0203] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0204] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0205] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0206] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0207] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0208] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for processing a check code, It is characterized in that The method comprises: Obtain the number of users scheduled in a predetermined time slot; Determine the input time, one iteration decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user; Determine a time for iterative decoding according to an input time and an output time of a code block scheduled by a new transmission user among the users, and an input time and an output time of a code block scheduled by a retransmission user among the users; Determine an average number of iterations corresponding to each user according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user, and one iterative decoding time of the code block scheduled by the retransmission user; According to the average number of iterations corresponding to each user, a maximum number of iterations corresponding to each user is determined.

2. The method according to claim 1, It is characterized in that The determining, according to the average number of iterations corresponding to each user, the maximum number of iterations corresponding to each user, comprises: If the average number of iterations is greater than or equal to a predetermined iteration threshold, the maximum number of iterations corresponding to the new transmission user and the retransmission user is the average number of iterations.

3. The method according to claim 1, It is characterized in that The determining, according to the average number of iterations corresponding to each user, the maximum number of iterations corresponding to each user, comprises: If the average number of iterations is less than a predetermined iteration number threshold, the maximum number of iterations of the new user is the predetermined iteration number threshold.

4. The method according to claim 1, It is characterized in that The method further comprises: Acquire an iterative decoding time for the retransmitting user; The maximum number of iterations corresponding to each retransmitting user is determined according to the iterative decoding time for the retransmitting user.

5. The method according to claim 1, It is characterized in that The step of determining the input time, one-time iterative decoding time and output time of the code blocks scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user comprises: Determine the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user; The iterative decoding time of the code blocks scheduled by each user is determined according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

6. The method according to claim 5, It is characterized in that The step of determining the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user, and the number of code blocks of the check code scheduled by each user comprises: Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula: cyclc0 j = C j *ceil(8*Z j / 512)*kb j Calculate and obtain the input time of the code block scheduled by each user; Substitute the size of each user's scheduled matrix, the expansion factor of each user's scheduled matrix, and the number of code blocks of each user's scheduled check code into the following formula: cyclc2 j = C j *ceil(1*Z j / 128)*(1+kb j -mb j ) Calculate and get the output time of the code block scheduled by each user, where cyclc0 j represents the input time of the code block scheduled by the jth user, cyclc2 j represents the output time of the code block scheduled by the jth user, C j represents the number of code blocks scheduled by the jth user, Z j represents the expansion factor of the matrix scheduled by the j-th user, and mbj*kbj represents the size value of the matrix scheduled by the j-th user.

7. The method according to claim 6, It is characterized in that The method of determining an iterative decoding time of a code block scheduled by each user according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index comprises: Substitute the size of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index into the following formula: cyclc1 j = C j *ceil(MatrixCycle(mb j )) Calculate and get the iterative decoding time of each user-scheduled code block, where cyclc1 j represents one iterative decoding time of the code block scheduled by the jth user, and MatrixCycle represents the time required for decoding the check code constructed by the matrix row number index.

8. The method according to claim 1, It is characterized in that The determining the time for iterative decoding according to the input time and the output time of the code blocks scheduled by the new transmission user among the users and the input time and the output time of the code blocks scheduled by the retransmission user among the users comprises: Subtract the input time and output time of the code block scheduled by the new transmission user and the input time and output time of the code block scheduled by the retransmission user from the maximum duration supported in the predetermined time slot to obtain the corresponding difference, and use the obtained difference as the time for iterative decoding.

9. The method according to claim 1, It is characterized in that The determining, according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user, and one iterative decoding time of the code block scheduled by the retransmission user, an average number of iterations corresponding to each user comprises: Substitute the time for iterative decoding, the time for one iterative decoding of the code block scheduled by the new transmission user, and the time for one iterative decoding of the code block scheduled by the retransmission user into the following formula: IterationNum = min(floor(TmpCycle / (cyclc1New + cyclc1Old)), 31) - 1 Calculation is performed to obtain the average number of iterations; wherein, IterationNum represents the average number of iterations, cyclc1New represents the iterative decoding time of the code block scheduled by the new transmission user, cyclc1Old represents the iterative decoding time of the code block scheduled by the retransmission user, and TmpCycle represents the time that can be used for iterative decoding.

10. A device for processing a check code, It is characterized in that The device comprises: A user number acquisition module, used to obtain the number of users scheduled in a predetermined time slot; A first time determination module, used to determine the input time, one iteration decoding time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user; A second time determination module, used to determine the time for iterative decoding according to the input time and output time of the code block scheduled by the new transmission user among the users, and the input time and output time of the code block scheduled by the retransmission user among the users; An average number determination module, used to determine the average number of iterations corresponding to each user according to the time for iterative decoding, one iterative decoding time of the code block scheduled by the new transmission user and one iterative decoding time of the code block scheduled by the retransmission user; The maximum number determination module is used to determine the maximum number of iterations corresponding to each user according to the average number of iterations corresponding to each user.

11. The device according to claim 10, It is characterized in that The maximum number determination module is used to determine that if the average number of iterations is greater than or equal to a predetermined iteration number threshold, the maximum number of iterations corresponding to the new transmission user and the retransmission user is the average number of iterations.

12. The device according to claim 10, It is characterized in that The maximum number determination module is used to, if the average number of iterations is less than a predetermined number of iterations threshold, then the maximum number of iterations of the new user is the predetermined number of iterations threshold.

13. The device according to claim 10, It is characterized in that The device also includes: A third time determination module, used to obtain an iterative decoding time for the retransmitting user; The retransmitting user iteration determination module is used to determine the maximum number of iterations corresponding to each retransmitting user according to the iterative decoding time for the retransmitting user.

14. The device according to claim 10, It is characterized in that The first time determination module includes: A first time determination unit, used to determine the input time and output time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the expansion factor of the matrix scheduled by each user and the number of code blocks of the check code scheduled by each user; The second time determination unit is used to determine the iterative decoding time of the code block scheduled by each user according to the size value of the matrix scheduled by each user, the number of code blocks of the check code scheduled by each user, and the time required for decoding the check code constructed by the matrix row number index.

15. An electronic device, It is characterized in that The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for processing a verification code as claimed in any one of claims 1 to 9 are implemented.

16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for processing a verification code according to any one of claims 1 to 9 are implemented.