Signal descrambling method and device, terminal equipment and storage medium
By directly searching for descrambling parameters using a preset descrambling lookup table in 5G systems, the problem of slow signal descrambling speed is solved and the uplink rate of signal transmission is improved.
Patent Information
- Application Number
- CN202311340644.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-16
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2043-10-16
Smart Images

Figure CN119853852A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a signal descrambling method, apparatus, terminal equipment and storage medium. Background Art
[0002] In the 5th Generation Mobile Communication Technology New Radio (5G NR), the channel-coded data and signaling bits are scrambled by a pseudo-random sequence, that is, before transmitting the data, the data sequence is converted into "random data", similar to the form of adding noise to the data, which is more conducive to improving the channel capacity. In the 5G system, the scrambling module adds additional randomness to the coded bits to provide coding gain for interference suppression. Signal descrambling is the reverse process of scrambling. In the relevant descrambling technical scheme, the initial value of the scrambling code sequence is generated according to the time unit number corresponding to the frame structure parameter used by the transmission signal, and the descrambling code sequence is generated according to the initial value of the scrambling code sequence. Finally, the scrambling code sequence is used to descramble the signal.
[0003] In the related art, when descrambling a signal, it is necessary to generate a full-length scrambling sequence according to the initial value of the scrambling sequence, and finally use the full-length scrambling sequence to descramble the signal. In this process, the scrambling sequence needs to perform a bit shift operation on each bit of data, which is time-consuming, and the slow descrambling speed affects the decoding process, resulting in a bottleneck in the uplink rate during signal transmission. Summary of the invention
[0004] In view of this, the embodiments of the present application hope to provide a signal descrambling method, apparatus, terminal device and storage medium, which can improve the descrambling speed and thereby improve the uplink rate during signal transmission.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a signal descrambling method, the method comprising:
[0007] Obtaining a first target scrambling code sequence corresponding to the signal to be descrambled; and determining a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence;
[0008] A first descrambling parameter is obtained by searching a preset descrambling lookup table based on the serial number; and the first descrambling parameter is used to descramble the signal to be descrambled; wherein the preset descrambling lookup table includes multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a serial number.
[0009] In a second aspect, an embodiment of the present application provides a signal descrambling device, the signal descrambling device comprising:
[0010] A determination unit, configured to obtain a first target scrambling code sequence corresponding to the signal to be descrambled; and determine a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence;
[0011] The descrambling unit is used to search a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter; and use the first descrambling parameter to descramble the signal to be descrambled; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a sequence number.
[0012] In a third aspect, an embodiment of the present application provides a terminal device, the terminal device comprising: a processor, a memory and a communication bus; when the processor executes a running program stored in the memory, the above-mentioned signal de-jamming method is implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned signal descrambling method is implemented.
[0014] An embodiment of the present application provides a signal descrambling method, an apparatus, a terminal device and a storage medium, the method comprising: obtaining a first target scrambling code sequence corresponding to a signal to be descrambled; and determining a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence; searching a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter; and descrambling the signal to be descrambled using the first descrambling parameter; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a sequence number. With the above implementation scheme, since the preset descrambling lookup table contains multiple groups of descrambling parameters and the serial numbers corresponding to each group of descrambling parameters, when the signal to be descrambled is descrambled, it is only necessary to directly search the descrambling lookup table according to the serial number of the first target scrambling code sequence generated by the signal to be descrambled, and the descrambling parameters corresponding to the serial number of the signal to be descrambled in the descrambling lookup table can be found directly. It is not necessary to calculate the descrambling parameters corresponding to the signal to be descrambled when the signal is descrambled, thereby simplifying the calculation time for shifting each bit of data in the signal descrambling process, thereby shortening the descrambling time of the signal, improving the signal descrambling speed, and further improving the uplink rate during signal transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flow chart of a signal descrambling method;
[0016] Figure 2 A signal descrambling method provided in an embodiment of the present application is shown in FIG. Figure 1 ;
[0017] Figure 3A signal descrambling method provided in an embodiment of the present application is shown in FIG. Figure 2 ;
[0018] Figure 4 A schematic diagram of the structure of a signal descrambling device 1 provided in an embodiment of the present application;
[0019] Figure 5 A schematic diagram of the structure of a terminal device 2 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the technical solution of the present application is further elaborated in detail below in combination with the drawings and specific embodiments of the specification. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0022] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first / second / third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0023] Flowchart of signal descrambling method involved in related technology, such as Figure 1 As shown, a scrambling sequence of the total length is first generated according to the initial value of the scrambling code sequence, and finally the data is moved bit by bit according to the scrambling sequence of the total length to perform full-length signal descrambling. This will cause the signal descrambling time to be too long, the decoding efficiency to be low, and cause a bottleneck in the uplink rate.
[0024] In order to solve the technical problems in the related art, the present application embodiment provides a signal descrambling method, such as Figure 2 As shown, the method may include:
[0025] S101. Acquire a first target scrambling code sequence corresponding to a signal to be descrambled; and determine a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence.
[0026] In the embodiment of the present application, the signal descrambling process is to change the sign of the soft bits after demodulation according to the scrambling sequence, which mainly includes two processes: the first is to generate the scrambling sequence, and the second is to perform signal descrambling.
[0027] In the embodiment of the present application, the scrambling code sequence may be generated by using a Gold pseudo-random sequence as the scrambling code sequence according to the protocol.
[0028] It should be noted that the process of generating a scrambling code sequence from a Gold pseudo-random sequence may refer to the implementation method in the related art, which will not be described in detail here.
[0029] In the embodiment of the present application, when descrambling the signal to be descrambled, a first target scrambling code sequence corresponding to the signal to be descrambled is first generated using a Gold pseudo-random sequence according to a protocol.
[0030] It should be noted that the first target scrambling code sequence corresponding to the signal to be descrambled is the same as the scrambling code sequence of the transmitting end.
[0031] In the embodiment of the present application, after the first target scrambling code sequence is obtained, since the first target scrambling code sequence is usually binary data composed of 0 and 1, the first target scrambling code sequence can be converted into a sequence number having the same form as the sequence number contained in the preset descrambling lookup table. If the sequence number contained in the descrambling lookup table is decimal data converted from a binary data combination, the first target scrambling code sequence is converted into decimal data corresponding thereto. Exemplarily, if the first target scrambling code sequence is 00000001, the corresponding decimal data is 1, and the sequence number corresponding to the first target scrambling code sequence is 1.
[0032] S102: Search a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter; and descramble the signal to be descrambled using the first descrambling parameter.
[0033] The preset descrambling lookup table includes multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a sequence number.
[0034] In the embodiment of the present application, after obtaining the sequence number corresponding to the first target scrambling code sequence, a search may be performed in the descrambling lookup table according to the sequence number of the first target sequence. Specifically, a sequence number identical to the sequence number corresponding to the first target scrambling code sequence is searched in the descrambling lookup table. Since each sequence number corresponds to a set of descrambling parameters in the descrambling lookup table, when the same sequence number is found in the descrambling lookup table, the descrambling parameter corresponding to the sequence number is the first descrambling parameter for descrambling the signal to be descrambled.
[0035] In the embodiment of the present application, after obtaining the first descrambling parameter, the first descrambling parameter can be directly multiplied by the LLR according to the calculation method in formula (1), so as to realize descrambling the signal to be descrambled by using the first descrambling parameter. Formula (1) is as follows:
[0036] y=LLR·(1-2c) (1)
[0037] Among them, c is the same scrambling code sequence as the transmitting end; LLR is the soft bit information after demodulation. When the soft bit information after demodulation is descrambled, LLR is the signal to be descrambled, the result calculated by 1-2c is the descrambling parameter, and y is the descrambled signal.
[0038] It should be noted that, in the above embodiment, the number of bits of the first target scrambling code sequence may be the same as the number of bits of the binary data combination. For example, if the binary data combination is 8 bits, the number of bits of the first target scrambling code may also be 8 bits. The number of bits of the first target scrambling code sequence may be different from the number of bits of the binary data combination. For example, if the binary data combination is 8 bits, the number of bits of the first target scrambling code may be 16 bits, 32 bits, 64 bits, etc.
[0039] In an embodiment of the present application, before searching a preset descrambling lookup table based on a sequence number to obtain a first descrambling parameter, the method further includes: when the number of scrambling code search bits is less than or equal to the preset scrambling code search bit number, setting the number of scrambling code search bits when searching for a preset scrambling code sequence based on the number of scrambling code bits of the preset scrambling code sequence; and determining a plurality of binary data combinations corresponding to the number of scrambling code search bits; using the preset descrambling parameters to perform operations on the plurality of binary data combinations respectively to obtain a plurality of groups of descrambling parameters; and arranging each group of descrambling parameters in rows in sequence according to the corresponding sequence numbers to generate a preset descrambling lookup table; wherein the sequence number of each group of descrambling parameters is a data value corresponding to the binary data combination of each group of descrambling parameters.
[0040] In the embodiment of the present application, when the number of scrambling code search bits is less than or equal to the preset number of scrambling code search bits, the number of scrambling code search bits when searching for the preset scrambling code sequence is set based on the number of scrambling code bits of the preset scrambling code sequence; and determining the multiple binary data combinations corresponding to the number of scrambling code search bits specifically includes:
[0041] In the embodiment of the present application, the preset scrambling code sequence may be generated using a Gold pseudo-random sequence, or the preset scrambling code sequence may be pre-set according to actual conditions.
[0042] In the embodiment of the present application, before the communication system is operated, the number of scrambling bits of the generated preset scrambling sequence needs to be obtained. For example, if a 32-bit signal to be descrambled is to be descrambled, when setting the preset scrambling sequence, a 32-bit scrambling sequence can be set, and correspondingly, it can be known that the number of scrambling bits of the preset scrambling sequence is 32 bits, or a 32-bit preset scrambling sequence can be generated using a Gold pseudo-random sequence, and the corresponding number of scrambling bits can be obtained.
[0043] In the embodiment of the present application, the number of scrambling code search bits is the number of bits that can be searched each time when the signal to be descrambled is descrambled. For example, if the scrambling code number of the preset scrambling code sequence is 32 bits, the number of scrambling code search bits can be 32 bits, 16 bits, 8 bits, 4 bits, etc.
[0044] It should be noted that the setting of the number of scrambling code search bits can be the same as the number of scrambling code bits of the preset scrambling code sequence, or can be less than the number of scrambling code bits of the preset scrambling code sequence. Specifically, it can be the number of scrambling code bits corresponding to any divisor of the number of scrambling code bits of the preset scrambling code sequence. In the embodiment of the present application, the number of scrambling code search bits can be taken as 8 bits for example.
[0045] In the embodiment of the present application, different scrambling code search bit numbers correspond to different binary data combinations. For example, if the scrambling code search bit number is 8, the binary data combination can be 00000000, 00000001, 00000010, ..., 11111111, and the corresponding combination number is 2 8 possibilities.
[0046] It should be noted that all possibilities included in the multiple binary data combinations corresponding to other scrambling code search bit numbers can be determined according to the above-mentioned method for determining the binary data combinations corresponding to the scrambling code search bit number of 8 bits, which will not be repeated here.
[0047] In the embodiment of the present application, using preset descrambling parameters and multiple binary data combinations to perform operations respectively to obtain multiple groups of descrambling parameters; and arranging each group of descrambling parameters in rows in sequence according to corresponding sequence numbers, generating a preset descrambling lookup table may specifically include:
[0048] When descrambling the signal, the above formula (1) is used for descrambling. The purpose of (1-2c) in formula (1) is to change the sign of LLR to positive or negative. When the scrambling code is 0, the original sequence is not changed; when the scrambling code is 1, the sequence is changed to positive or negative. Take one bit in the scrambling code sequence as an example as shown in Table 1 below:
[0049] Table 1
[0050]
[0051] In an embodiment of the present application, the preset descrambling parameters may be the parameter "1" and the parameter "2" involved in formula (1), and c represents one bit in a plurality of binary data combinations. Each bit in the plurality of binary data combinations is substituted into 1-2c in the above formula (1) for data transformation, and the descrambling parameters corresponding to each group of binary data combinations can be obtained. For example, each bit in the 8-bit binary data combination 00000001 is substituted into the above formula 1-2c as c, and the descrambling parameters obtained after the sign transformation are expressed as 00000001, 00000001, 00000001, 00000001, 00000001, 00000001, 00000001, 11111111.
[0052] It should be noted that when "1" in the 8-bit binary data combination in the above example is substituted into 1-2c, the result represented by the corresponding descrambling parameter is the inverse of the complement of the corresponding negative number plus "1".
[0053] In an embodiment of the present application, each set of descrambling parameters corresponds to a serial number, and the serial number can be obtained by converting each set of binary data when generating the descrambling parameters into a decimal data, and using the converted decimal data as the serial number of the corresponding descrambling parameter. For example, if the binary data combination is 00000001 and its corresponding decimal data is 1, the sequence number can be represented by the number 1, and the descrambling parameters after the binary data combination is sign-converted are 00000001, 00000001, 00000001, 00000001, 00000001, 00000001, 11111111, then the descrambling parameters 00000001, 00000001, 00000001, 000000001, 000000001, 00000001, 11111111 correspond to the sequence number 1.
[0054] In the embodiment of the present application, according to the above-mentioned operation method, all binary data combinations corresponding to the number of scrambling code search bits can be operated to obtain multiple groups of descrambling search parameters corresponding to the number of scrambling code search bits. For example, when the number of scrambling code search bits is 8, the corresponding binary data combinations are 2 8 = 256, then there are 256 descrambling parameters corresponding to each descrambling parameter and the serial number of binary data conversion are arranged in correspondence to form a descrambling lookup table.
[0055] It should be noted that the descrambling lookup table is composed of descrambling parameters and their corresponding serial numbers, and the descrambling parameters corresponding to the serial number corresponding to the signal to be descrambled can be found in the descrambling lookup table by the serial number. For example, if the target serial number is 2, the target serial number 2 and the descrambling parameters corresponding to the target serial number 2 can be found in the descrambling lookup table, and the descrambling parameters can be obtained without calculation. It is better to avoid the problem that the signal descrambling function is implemented completely according to the above formula in the related art, and the scrambling code c of the total length of the data needs to be calculated in advance, and then each bit of data is descrambled and shifted, and the processing speed is slow.
[0056] In the embodiment of the present application, after the descrambling lookup table is calculated in the above manner, when the communication system is initialized, the generated descrambling lookup table is read into a global variable so that it can be directly used in subsequent signal descrambling.
[0057] It should be noted that the sequence number corresponding to each set of descrambling parameters is obtained based on the data size determined by the binary data combination corresponding to each set of descrambling parameters.
[0058] In the embodiment of the present application, a new optimization algorithm is proposed to achieve a higher speed of descrambling.
[0059] It can be understood that in a signal descrambling method provided in an embodiment of the present application, since a preset descrambling lookup table contains multiple groups of descrambling parameters and serial numbers corresponding to each group of descrambling parameters, when descrambling the signal to be descrambled, it is only necessary to directly search the descrambling lookup table according to the serial number of the first target scrambling code sequence generated by the signal to be descrambled, and find the descrambling parameter corresponding to the serial number of the signal to be descrambled in the descrambling lookup table. There is no need to calculate the descrambling parameter corresponding to the signal to be descrambled during signal descrambling, thereby simplifying the calculation time for shifting each bit of data during the signal descrambling process, thereby shortening the descrambling time of the signal, improving the signal descrambling speed, and thereby improving the uplink rate during signal transmission.
[0060] In an embodiment of the present application, before the first descrambling parameter is obtained by searching from a preset descrambling lookup table based on the sequence number, the method further includes: when the number of scrambling code search bits is greater than the preset scrambling code search bit number, setting the number of scrambling code search bits when searching for the preset scrambling code sequence based on the number of scrambling code bits of the preset scrambling code sequence; and dividing the number of scrambling code search bits based on the preset scrambling code search bit number, and determining the corresponding multiple target binary data combinations using the divided scrambling code search bit number; using the multiple target binary data combinations and the preset descrambling parameters to perform operations to obtain multiple groups of descrambling parameters; and arranging each group of descrambling parameters in rows in sequence according to the corresponding sequence number to generate a preset descrambling lookup table; wherein the sequence number of each group of descrambling parameters is the data value corresponding to the binary data combination of each group of descrambling parameters.
[0061] In the embodiment of the present application, if the number of scrambling code search bits is set to be large, the memory occupied by the generated descrambling lookup table after it is generated will be relatively large. Therefore, when the number of scrambling code search bits is greater than the preset number of scrambling code search bits, the more possible combinations of binary data corresponding to the number of scrambling code search bits, the more rows occupied in the table, which can indicate that the generated descrambling lookup table will occupy a large amount of memory. For example, if the number of scrambling code search bits is 32 bits, the possibility of a binary data combination determined based on the number of scrambling code search bits of 32 bits is 2 32 There are a total of 2 possibilities in the descrambling lookup table generated by using the above-mentioned method of generating the descrambling lookup table. 32 possibilities, the number of rows occupied in the descrambling lookup table is 2 32 It can be seen that it occupies a large amount of memory.
[0062] It should be noted that the preset number of scrambling code lookup bits can be selected according to actual conditions, and is not specifically limited in the embodiments of the present application. Preferably, the design of the descrambling lookup table in the embodiments of the present application adopts an 8-bit lookup table.
[0063] In the embodiment of the present application, when the number of scrambling code search bits is greater than the preset number of scrambling code search bits, the number of scrambling code search bits may be first divided into multiple segments. For example, the number of scrambling code search bits is 32 bits, the preset number of scrambling code search bits is 8 bits, and it is divided into 4 segments according to the preset number of scrambling code search bits. It can be searched in the table 4 times, and the number of scrambling code search bits in each segment is 8 bits. When generating the descrambling lookup table, the descrambling lookup table is generated according to the binary data combination corresponding to the 8-bit scrambling code search bit. For example, 8 is a binary data combination with a total of 2 8 possibilities, occupying a total of 2 in the table 8 line, thus changing the memory usage to 2 32 The table of rows is converted to occupy 2 8 A table of rows.
[0064] In the embodiment of the present application, in order to reduce the size of the lookup table from the MB level to the KB level, thereby reducing memory occupancy, the above-mentioned 8-bit descrambling lookup table is used for search, and the generated descrambling lookup table occupies less memory.
[0065] In an embodiment of the present application, the number of scrambling code search bits after segmentation is used to determine the corresponding multiple target binary data combinations, and then operations are performed based on the target binary data combinations and preset descrambling parameters to obtain multiple groups of descrambling parameters, and each group of descrambling parameters is arranged in rows according to the corresponding sequence numbers to generate a preset descrambling lookup table. The specific implementation method can refer to the implementation process of the above embodiment, which will not be repeated here.
[0066] In an embodiment of the present application, after obtaining the first target scrambling code sequence corresponding to the signal to be descrambled, the method further includes setting a first target scrambling code bit number; and dividing the first target scrambling code sequence based on the first target scrambling code bit number to obtain a plurality of scrambling code sequences to be found and a number of searches corresponding to the target scrambling code sequence; based on the plurality of scrambling code sequences to be found, determining sequence numbers respectively corresponding to the plurality of scrambling code sequences to be found; correspondingly, searching from a preset descrambling lookup table based on the sequence number to obtain the first descrambling parameter may be based on the number of searches, searching from a preset descrambling lookup table in sequence according to the sequence number corresponding to each scrambling code sequence to be found, to obtain a plurality of first descrambling parameters corresponding to the plurality of scrambling code sequences to be found.
[0067] In an embodiment of the present application, if the number of scrambling code search bits is large, a first target scrambling code bit number that is smaller than the number of scrambling code search bits can be set, and then the first target scrambling code bit number is used to segment the first target scrambling code sequence of the signal to be descrambled. For example, if the number of scrambling code search bits is 64 bits, the first target scrambling code bit number can be set to 32 bits, 16 bits, 8 bits, etc. Preferably, 8 bits are taken here. The first target scrambling code sequence is segmented using 8 bits. If the first target scrambling code sequence is 32 bits, the first target scrambling code sequence can be segmented into 4 scrambling code sequences to be searched, and 4 segments are formed after segmentation, which means that the search can be performed in 4 times, each time 8 bits in the first target scrambling code sequence are searched. For example, if the first target scrambling code sequence is 1-32 bits, the first search is 1-8 bits, the second search is 9-16, and so on, until the 32-bit search is completed.
[0068] In the embodiment of the present application, after the first target scrambling code sequence is divided into four scrambling code sequences to be found, each scrambling code sequence to be found has the same number of scrambling code bits, and the scrambling code sequence to be found is composed of binary data, then the corresponding sequence number is determined according to the binary data corresponding to the scrambling code sequence to be found.
[0069] It should be noted that the serial number can be binary data converted into decimal data, or other data, and can be consistent with the serial number format in the descrambling lookup table. Specifically, it can be selected according to actual conditions, and no specific limitation is made in the embodiments of the present application.
[0070] Exemplarily, if the first target scrambling code sequence has 32 bits and is divided into 4 scrambling code sequences to be found, each scrambling code sequence to be found has 8 bits, then the first scrambling code sequence to be found may be 00000000, the second scrambling code sequence to be found may be 00000001, the third scrambling code sequence to be found may be 00000010, and the fourth scrambling code sequence to be found may be 00000011. The corresponding sequence number after the first scrambling code sequence to be found is converted to decimal may be 0, and the corresponding sequence number after the second scrambling code sequence to be found is converted to decimal may be 1, and so on.
[0071] In the embodiment of the present application, after obtaining multiple scrambling code sequences to be searched, the descrambling lookup table is searched in sequence according to the sequence numbers corresponding to the multiple scrambling code sequences to be searched, and multiple first descrambling parameters corresponding to the multiple scrambling code sequences to be searched are found.
[0072] It should be noted that the number of searches is the same as the number of scrambling code sequences to be searched. For example, if there are four scrambling code sequences to be searched, four searches may be performed.
[0073] It should be noted that the descrambling parameters corresponding to each scrambling code sequence to be found may be spliced once, and the descrambling signal to be descrambled may be descrambled using the spliced descrambling parameters.
[0074] In one embodiment of the present application, after descrambling the signal to be descrambled using the first descrambling parameter, the method also includes determining whether the descrambling of the signal to be descrambled is completed; when it is determined that the descrambling of the signal to be descrambled is completed, outputting the descrambled signal; when it is determined that the descrambling of the signal to be descrambled is not completed, determining the remaining signal to be descrambled; and descrambling the remaining signal to be descrambled based on a preset descrambling lookup table.
[0075] In the embodiment of the present application, after the signal to be descrambled is descrambled using the first descrambling parameter, it is possible that the number of bits of the scrambling code sequence generated each time is less than the number of bits of the first target scrambling code sequence of the signal to be descrambled. For example, there are as many c bits as there are LLR bits, where c has the same meaning as c in formula (1). If the LLR has 64 bits and c has 32 bits, there will be a situation where the descrambling cannot be completed when the signal to be descrambled is descrambled. Therefore, after the signal to be descrambled is descrambled, it is necessary to further determine whether the descrambling of the signal to be descrambled is completed. If the descrambling is not completed, it is necessary to generate a 32-bit descrambling completion signal.
[0076] In an embodiment of the present application, if it is determined that the descrambling of the signal to be descrambled is completed, the descrambled signal after the descrambling is completed is directly output; if it is determined that the descrambling of the signal to be descrambled is not completed, it is necessary to further determine the remaining signal to be descrambled, and further descramble the remaining signal to be descrambled. After determining that the descrambling is completed, the descrambled signal after descrambling is output.
[0077] In one embodiment of the present application, based on a preset descrambling lookup table, descrambling the remaining signals to be descrambled may be performed by updating a first target scrambling code sequence to obtain a second target scrambling code sequence corresponding to the remaining signals to be descrambled; and based on the second target scrambling code sequence, determining a sequence number corresponding to the second target scrambling code sequence; searching the preset descrambling lookup table based on the sequence number corresponding to the second target scrambling code sequence to obtain a second descrambling parameter; and using the second descrambling parameter to descramble the remaining signals to be descrambled.
[0078] In an embodiment of the present application, when the descrambling of the signal to be descrambled is not completed, it is necessary to continue to descramble the remaining part of the signal to be descrambled. First, an updated second target scrambling code sequence is generated according to the protocol, and the first target scrambling code sequence used in the initial descrambling is updated by using the updated scrambling code sequence, so that the remaining signal to be descrambled can be continued to be descrambled by using the updated second target scrambling code sequence.
[0079] In the embodiment of the present application, when the remaining to-be-descrambled signals are descrambled using the second target scrambling code sequence, the corresponding sequence number of the second target scrambling code sequence is determined in the same manner as above, which will not be described in detail here.
[0080] In the embodiment of the present application, after determining one or more sequence numbers corresponding to the second target scrambling code sequence, the descrambling lookup table is searched in sequence according to the sequence numbers to obtain second descrambling data corresponding to the one or more sequence numbers, and finally the remaining signals to be descrambled are descrambled using the descrambling data and the calculation method in formula (1), that is, multiplying the second descrambling parameter by the LLR.
[0081] It should be noted that after descrambling the remaining signals to be descrambled, it is necessary to further determine whether the descrambling of the remaining signals to be descrambled is completed. If the descrambling is completed, the descrambled signal is output; if the descrambling of the remaining signals to be descrambled is not completed, continue to determine the part of the remaining signals to be descrambled that has not been descrambled, and so on, until the descrambling of the entire signal to be descrambled is completed.
[0082] In one embodiment of the present application, the signal to be descrambled is descrambled using the first descrambling parameter, and the bit width of the instruction set when processing the signal to be descrambled and the number of descrambling bits of the signal to be descrambled are obtained; based on the ratio of the bit width and the number of descrambling bits, the number of signals to be descrambled to be descrambled each time is determined; and multiple first descrambling parameters equal to the number are used to descramble multiple numbers of signals to be descrambled at the same time.
[0083] In the embodiment of the present application, in order to further improve the descrambling speed, multiple signals to be descrambled may be descrambled simultaneously based on the bit width of the instruction set when descrambling the signals to be descrambled.
[0084] In the embodiment of the present application, the bit width of the instruction set may be acquired actively from the processor, or the bit width of the instruction set may be acquired upon receiving a bit width acquisition instruction.
[0085] In the embodiment of the present application, the number of descrambling bits of the signal to be descrambled needs to be obtained when the instruction set bit width is obtained. For example, if the instruction set bit width is 128 bits and the descrambling bit number is 8 bits, the ratio of the instruction set bit width to the descrambling bit number, i.e., 128 / 32=4, can be further used, i.e., 4 signals to be descrambled can be processed simultaneously using the 128-bit bit width.
[0086] In the embodiment of the present application, a first descrambling parameter corresponding to each signal to be descrambled is determined. The process of determining the descrambling parameter can refer to the implementation process in the above example, which will not be repeated here.
[0087] In the embodiment of the present application, after determining a plurality of first parameters to be descrambled, the plurality of signals to be descrambled are descrambled simultaneously using the current instruction set bit width.
[0088] Based on the above embodiments, the signal descrambling method provided in the present application enables descrambling to have a higher speed, and by reducing the number of search bits of the descrambling lookup table, the memory occupancy of the descrambling lookup table is lower than that in the related art.
[0089] Based on the above embodiments, a signal descrambling method is also provided in the embodiments of the present application, taking into account the search speed and the memory occupied by the descrambling lookup table, such as Figure 3 As shown, the specific steps include:
[0090] Step 1: Before the communication system is operated, use formula 1-2c to generate a descrambling lookup table;
[0091] It should be noted that this method can reduce the time for performing positive and negative conversion and shifting on each bit of data, and the size of the descrambling lookup table can be 256*64, which can be selected according to actual conditions.
[0092] Step 2: When the communication system is initialized, the generated lookup table is read into a global variable;
[0093] It should be noted that the information read into the global variable can be used in the subsequent descrambling process of the signal to be descrambled.
[0094] Step 3: During the descrambling process, an initial 32-bit scrambling code sequence is first generated according to the protocol.
[0095] Step 4: Determine whether the descrambling of all the signals to be descrambled is completed.
[0096] Step 5: If completed, output the descrambled signal; if not completed, execute steps 6 and 7.
[0097] When judging whether the descrambling is completed, the descrambling of all data may be completed when the counter reaches the total descrambling length, and when it is not reached, it indicates that it is not completed.
[0098] Step 6: Each generated scrambling sequence is 32 bits, and each table lookup corresponds to 8 data to be descrambled, so the scrambling sequence needs to be looked up in the table 4 times. After the table lookup, you need to The results of the table lookups are combined into a length of y bits, and then the y-bit instruction set is used in parallel to Therefore, a total of 32 data can be descrambled in each cycle.
[0099] Step 7: Update the 32-bit scrambling code sequence according to the protocol, and return to step 4 to determine whether the descrambling of all the signals to be descrambled is completed. If completed, execute step 5 to output the descrambled signal; if not completed, continue to execute steps 6 and 7.
[0100] Exemplarily, assume that the number of quantization bits of the input data of the signal to be descrambled is x (x is generally 8 or 16), where the number of quantization bits means that each descrambled data has x bits. For example, there are 10 descrambled data in total, and the total length is 10x bits. The input data is the scrambled data.
[0101] The instruction set bit width used by the processor is y (y is generally 128 or 256 or 512), and the scrambling sequence generated by the protocol at one time is 32 bits, which corresponds to 32 data.
[0102] In order to reduce the size of the lookup table from MB to KB, thereby reducing memory usage, an 8-bit lookup table is designed, so each lookup has a total of 2 8 Possibility, 2 8 That is, the number of rows in the lookup table. The 32-bit scrambling code sequence is searched in 4 times, and each search is designed to correspond to 8 data, that is, the lookup table is 8x columns. In order to further improve the speed of descrambling and make full use of the instruction set bit width, each instruction set operation is designed to be processed in parallel The descrambling of the codewords. 8 In the lookup table of row 8x column, each descrambling code word is pre-generated according to the method 1-2c.
[0103] As shown in the flowchart, assuming that the quantization bit number x of the descrambled input data is 8, the instruction set bit width y used by the processor is 128, and the descrambled signal is 8, it can be concluded that the size of the lookup table is 2 8 ×8x=256×64, the scrambling sequence is looked up 4 times in each cycle, and the results of the 2 table lookups need to be combined into a length of 128 bits after every 2 table lookups, and then the 128-bit instruction set is used to descramble 8 code words in parallel. Because the cycle is 4 times, the 128-bit instruction set can descramble a total of 32 code words in each cycle.
[0104] Compared with the related art, the signal descrambling method in this application has the following advantages:
[0105] (1) In the process of implementing descrambling, the related art needs to perform a bit shift operation on each bit of data. However, in the embodiment of the present application, a method of pre-generating a descrambling lookup table is adopted to reduce the time for descrambling and shifting each bit of data, thereby improving the descrambling speed.
[0106] (2) The related technical solution needs to generate a scrambling sequence of the total length according to the initial value of the scrambling sequence, and finally use this sequence for descrambling. Generating and storing the scrambling sequence of the total length also occupies a large memory space. In the embodiment of the present application, a scrambling sequence is generated in segments, and the descrambling lookup table is split to reduce the size of the lookup table, thereby reducing the memory occupancy.
[0107] (3) According to the bit width of the processor instruction set, the design can perform parallel descrambling on multiple codewords in each search, thereby further improving the descrambling speed.
[0108] Based on the above embodiment, a signal descrambling device 1 is provided in another embodiment of the present application. Figure 4 As shown, the signal descrambling device 1 comprises:
[0109] The determination unit 10 is configured to obtain a first target scrambling code sequence corresponding to the signal to be descrambled; and determine a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence.
[0110] The descrambling unit 11 is used to search a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter; and use the first descrambling parameter to descramble the signal to be descrambled; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a sequence number.
[0111] Optionally, the signal descrambling device 1 may further include: a generating unit,
[0112] The determining unit 10 is further configured to, when the number of scrambling code search bits is less than or equal to the preset number of scrambling code search bits, set the number of scrambling code search bits when searching for the preset scrambling code sequence based on the number of scrambling code bits of the preset scrambling code sequence; and determine a plurality of binary data combinations corresponding to the number of scrambling code search bits.
[0113] The generating unit is used to use the preset descrambling parameters to respectively perform operations with multiple binary data combinations to obtain multiple groups of descrambling parameters; and arrange each group of descrambling parameters in rows in sequence according to the corresponding sequence numbers to generate a preset descrambling lookup table; wherein the sequence number of each group of descrambling parameters is the data value corresponding to the binary data combination of each group of descrambling parameters.
[0114] Optionally, the signal descrambling device 1 may further include: a segmentation unit, a calculation unit,
[0115] a segmentation unit, configured to set the number of scrambling code search bits when searching for the preset scrambling code sequence based on the number of scrambling code bits of the preset scrambling code sequence when the number of scrambling code search bits is greater than the number of preset scrambling code search bits; and segment the number of scrambling code search bits based on the preset number of scrambling code search bits;
[0116] A determination unit 10, configured to determine a plurality of corresponding target binary data combinations by using the divided scrambling code search bit number;
[0117] The operation unit is used to perform operations based on the target binary data combination and the preset descrambling parameters to obtain multiple groups of descrambling parameters; and each group of descrambling parameters is arranged in rows according to the corresponding serial numbers to generate a preset descrambling lookup table; wherein the serial number of each group of descrambling parameters is the data value corresponding to the binary data combination of each group of descrambling parameters.
[0118] Optionally, the signal descrambling device 1 may further include: a setting unit, a searching unit,
[0119] The setting unit is used to set the first target scrambling code bit number; and divide the first target scrambling code sequence based on the first target scrambling code bit number to obtain multiple scrambling code sequences to be searched and the number of searches corresponding to the target scrambling code sequence.
[0120] The determining unit 10 is further configured to determine the sequence numbers corresponding to the plurality of scrambling code sequences to be searched, based on the plurality of scrambling code sequences to be searched.
[0121] The searching unit is used to search in sequence from a preset descrambling search table according to the number of searches corresponding to each scrambling code sequence to be searched, so as to obtain a plurality of first descrambling parameters corresponding to the plurality of scrambling code sequences to be searched.
[0122] Optionally, the signal descrambling device 1 may further include: an output unit,
[0123] The determining unit 10 is further configured to determine whether the descrambling of the signal to be descrambled is completed.
[0124] The output unit is used to output the descrambled signal after descrambling when it is determined that the descrambling of the signal to be descrambled is completed.
[0125] The determining unit 10 is further configured to determine remaining signals to be descrambled if it is determined that descrambling of the signals to be descrambled is not completed; and descramble the remaining signals to be descrambled based on a preset descrambling lookup table.
[0126] Optionally, the signal descrambling device 1 may further include: an updating unit,
[0127] The updating unit is configured to update the first target scrambling code sequence to obtain a second target scrambling code sequence corresponding to the remaining signal to be descrambled; and determine a sequence number corresponding to the second target scrambling code sequence based on the second target scrambling code sequence.
[0128] The descrambling unit 11 is further configured to search a preset descrambling lookup table based on the sequence number corresponding to the second target scrambling code sequence to obtain a second descrambling parameter; and descramble the remaining signals to be descrambled using the second descrambling parameter.
[0129] Optionally, the signal descrambling device 1 may further include: an acquisition unit,
[0130] The acquisition unit is used to acquire the bit width of the instruction set when processing the signal to be descrambled and the number of descrambling bits of the signal to be descrambled.
[0131] The determination unit 10 is further configured to determine the number of signals to be descrambled each time the descrambling is performed based on the ratio of the bit width to the number of descrambling bits.
[0132] The descrambling unit 11 is further configured to simultaneously descramble a plurality of signals to be descrambled using a plurality of first descrambling parameters having the same number as the first descrambling parameters.
[0133] An embodiment of the present application provides a signal descrambling device, which obtains a first target scrambling code sequence corresponding to a signal to be descrambled; and based on the first target scrambling code sequence, determines a sequence number corresponding to the first target scrambling code sequence; searches a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter; and descrambles the signal to be descrambled using the first descrambling parameter; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a sequence number. It can be seen that a signal descrambling device proposed in an embodiment of the present application, because the preset descrambling lookup table contains multiple groups of descrambling parameters and the serial numbers corresponding to each group of descrambling parameters, when descrambling the signal to be descrambled, it is only necessary to directly search the descrambling lookup table according to the serial number of the first target scrambling code sequence generated by the signal to be descrambled, and find the descrambling parameters corresponding to the serial number of the signal to be descrambled in the descrambling lookup table. There is no need to calculate the descrambling parameters corresponding to the signal to be descrambled when descrambling the signal. Therefore, the calculation time for shifting each bit of data in the signal descrambling process is simplified, thereby shortening the descrambling time of the signal, improving the signal descrambling speed, and then improving the uplink rate during signal transmission.
[0134] Figure 5 This is a schematic diagram of the structure of a terminal device 2 provided in an embodiment of the present application. In practical applications, based on the same disclosed concept of the above embodiments, Figure 5 As shown, the terminal device 2 of the embodiment of the present application includes a processor 20, a memory 21 and a communication bus 22.
[0135] In the specific implementation process, the above-mentioned determination unit 10, descrambling unit 11, generation unit, segmentation unit, operation unit, setting unit, search unit, output unit, update unit, and acquisition unit can be implemented by a processor 20 located on the terminal device 2, and the above-mentioned processor 20 can be a specific application integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processor (DSP, Digital Signal Processor), a digital signal processing image processing device (DSPD, Digital Signal Processing Device), a programmable logic image processing device (PLD, Programmable Logic Device), a field programmable gate array (FPGA, Field Programmable Gate Array), a CPU, a controller, a microcontroller, and at least one of a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment is not specifically limited.
[0136] In the embodiment of the present application, the communication bus 22 is used to realize the connection communication between the processor 20 and the memory 21; when the processor 20 executes the running program stored in the memory 21, the following signal descrambling method is implemented:
[0137] Obtain a first target scrambling code sequence corresponding to the signal to be descrambled; and based on the first target scrambling code sequence, determine a sequence number corresponding to the first target scrambling code sequence; search a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter; and use the first descrambling parameter to descramble the signal to be descrambled; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a sequence number.
[0138] Further, the processor 20 is further configured to, when the number of scrambling code search bits is less than or equal to the preset number of scrambling code search bits, set the number of scrambling code search bits when searching for the preset scrambling code sequence based on the number of scrambling code bits of the preset scrambling code sequence; and determine a plurality of binary data combinations corresponding to the scrambling code search bits; use preset descrambling parameters to perform operations on the plurality of binary data combinations respectively to obtain a plurality of groups of descrambling parameters; and arrange each group of descrambling parameters in rows in sequence according to corresponding sequence numbers to generate a preset descrambling lookup table; wherein the sequence number of each group of descrambling parameters is a data value corresponding to the binary data combination of each group of descrambling parameters.
[0139] Further, the processor 20 is further configured to, when the number of scrambling code search bits is greater than a preset number of scrambling code search bits, set a number of scrambling code search bits when searching for the preset scrambling code sequence based on the number of scrambling code bits of the preset scrambling code sequence; and divide the number of scrambling code search bits based on the preset number of scrambling code search bits; determine a corresponding plurality of target binary data combinations using the divided number of scrambling code search bits; perform calculations using the plurality of target binary data combinations and preset descrambling parameters to obtain a plurality of groups of descrambling parameters; and arrange each group of descrambling parameters in rows in sequence according to corresponding sequence numbers to generate a preset descrambling lookup table; wherein the sequence number of each group of descrambling parameters is a data value corresponding to the binary data combination of each group of descrambling parameters.
[0140] Further, the processor 20 is further configured to set a first target scrambling code bit number; and divide the first target scrambling code sequence based on the first target scrambling code bit number to obtain a plurality of scrambling code sequences to be searched and a number of search times corresponding to the target scrambling code sequence; and determine, based on the plurality of scrambling code sequences to be searched, sequence numbers corresponding to the plurality of scrambling code sequences to be searched.
[0141] Furthermore, the processor 20 is further configured to sequentially search the preset descrambling lookup table according to the sequence number corresponding to each scrambling code sequence to be searched based on the number of searches, to obtain multiple first descrambling parameters corresponding to the multiple scrambling code sequences to be searched.
[0142] Furthermore, the processor 20 is also used to determine whether the descrambling of the signal to be descrambled is completed; when it is determined that the descrambling of the signal to be descrambled is completed, output the descrambled signal; when it is determined that the descrambling of the signal to be descrambled is not completed, determine the remaining signal to be descrambled; and descramble the remaining signal to be descrambled based on the preset descrambling lookup table.
[0143] Further, the processor 20 is further configured to update the first target scrambling code sequence to obtain a second target scrambling code sequence corresponding to the remaining signal to be descrambled; and determine a sequence number corresponding to the second target scrambling code sequence based on the second target scrambling code sequence; perform a search based on the sequence number corresponding to the second target scrambling code sequence from the preset descrambling lookup table to obtain a second descrambling parameter; and descramble the remaining signal to be descrambled using the second descrambling parameter.
[0144] Furthermore, the processor 20 is also used to obtain the bit width of the instruction set when processing the signal to be descrambled and the number of descrambling bits of the signal to be descrambled; determine the number of signals to be descrambled to be descrambled each time based on the ratio of the bit width to the number of descrambling bits; and use multiple first descrambling parameters equal to the number to simultaneously descramble multiple signals to be descrambled.
[0145] Based on the above embodiments, an embodiment of the present application provides a storage medium on which a computer program is stored. The above computer-readable storage medium stores one or more programs. The above one or more programs can be executed by one or more processors and applied to a terminal device. The computer program implements the signal descrambling method as described above.
[0146] It should be noted that in the embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling an image display device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A signal descrambling method, characterized in that: The method comprises: Acquire a first target scrambling code sequence corresponding to the signal to be descrambled; and determine a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence; A first descrambling parameter is obtained by searching a preset descrambling lookup table based on the serial number; and the signal to be descrambled is descrambled using the first descrambling parameter; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a serial number.
2. The method according to claim 1, characterized in that Before searching the preset descrambling lookup table based on the sequence number to obtain the first descrambling parameter, the method further includes: When the number of scrambling code search bits is less than or equal to the preset number of scrambling code search bits, the number of scrambling code search bits when searching for the preset scrambling code sequence is set based on the number of scrambling code search bits of the preset scrambling code sequence; and a plurality of binary data combinations corresponding to the number of scrambling code search bits are determined; Using preset descrambling parameters and the multiple binary data combinations to perform operations respectively, multiple groups of descrambling parameters are obtained; and each group of descrambling parameters is arranged in rows in sequence according to corresponding serial numbers to generate a preset descrambling lookup table; wherein the serial number of each group of descrambling parameters is a data value corresponding to the binary data combination of each group of descrambling parameters.
3. The method according to claim 1, characterized in that Before searching the preset descrambling lookup table based on the sequence number to obtain the first descrambling parameter, the method further includes: When the scrambling code search bit number is greater than the preset scrambling code search bit number, the number of scrambling code search bits when searching for the preset scrambling code sequence is set based on the number of scrambling code bits of the preset scrambling code sequence; and the number of scrambling code search bits is divided based on the preset number of scrambling code search bits; Using the divided scrambling code to find the number of bits, determine the corresponding multiple target binary data combinations; The multiple target binary data combinations are used to perform operations with preset descrambling parameters to obtain multiple groups of descrambling parameters; and each group of descrambling parameters is arranged in rows according to corresponding serial numbers to generate a preset descrambling lookup table; wherein the serial number of each group of descrambling parameters is a data value corresponding to the binary data combination of each group of descrambling parameters.
4. The method according to claim 1, characterized in that: After obtaining the first target scrambling code sequence corresponding to the signal to be descrambled, the method further includes: Setting a first target scrambling code bit number; and dividing the first target scrambling code sequence based on the first target scrambling code bit number to obtain a plurality of scrambling code sequences to be searched and a number of searches corresponding to the target scrambling code sequence; Based on the multiple scrambling code sequences to be searched, determining sequence numbers corresponding to the multiple scrambling code sequences to be searched respectively; The step of searching a preset descrambling lookup table based on the sequence number to obtain a first descrambling parameter includes: Based on the number of searches, searches are performed in sequence from the preset descrambling search table according to the sequence number corresponding to each of the scrambling code sequences to be searched, so as to obtain a plurality of first descrambling parameters corresponding to the plurality of scrambling code sequences to be searched.
5. The method according to claim 1, characterized in that: After descrambling the signal to be descrambled by using the first descrambling parameter, the method further includes: Determining whether the signal to be descrambled is descrambled; When it is determined that the descrambling of the signal to be descrambled is completed, outputting the descrambled signal after descrambling; In the case where it is determined that the descrambling of the signal to be descrambled is not completed, the remaining signal to be descrambled is determined; and based on the preset descrambling lookup table, the remaining signal to be descrambled is descrambled.
6. The method according to claim 5, characterized in that The descrambling the remaining to-be-descrambled signals based on the preset descrambling lookup table comprises: Updating the first target scrambling code sequence to obtain a second target scrambling code sequence corresponding to the remaining signal to be descrambled; and determining a sequence number corresponding to the second target scrambling code sequence based on the second target scrambling code sequence; The preset descrambling lookup table is searched based on the sequence number corresponding to the second target scrambling code sequence to obtain a second descrambling parameter; and the remaining signal to be descrambled is descrambled using the second descrambling parameter.
7. The method according to claim 1, characterized in that The descrambling the signal to be descrambled by using the first descrambling parameter includes: Acquire the bit width of the instruction set when processing the signal to be descrambled and the number of descrambling bits of the signal to be descrambled; Determining the number of signals to be descrambled for each descrambling based on the ratio of the bit width to the number of descrambling bits; Using a plurality of first descrambling parameters equal to the number, a plurality of signals to be descrambled are descrambled simultaneously.
8. A signal descrambling device, characterized in that: The signal descrambling device comprises: a determining unit, configured to obtain a first target scrambling code sequence corresponding to the signal to be descrambled; and determine a sequence number corresponding to the first target scrambling code sequence based on the first target scrambling code sequence; A descrambling unit is used to search a preset descrambling lookup table based on the serial number to obtain a first descrambling parameter; and use the first descrambling parameter to descramble the signal to be descrambled; wherein the preset descrambling lookup table contains multiple groups of descrambling parameters, and each group of descrambling parameters corresponds to a serial number.
9. A terminal device, characterized in that: The terminal device comprises: a processor, a memory and a communication bus; when the processor executes the running program stored in the memory, the method according to any one of claims 1 to 7 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for parallel scrambling
CN102932100A
Data sending method and device, data receiving method and device, and computer-readable storage medium
CN107483152A
Signal processing method, related equipment and LoRa wireless system
CN110071886A
Data scrambling method, data descrambling method, related device and storage medium
CN110138695A
Signal processing method and device and computer readable storage medium
CN115702556A