Method and device for generating scrambling code of broadband code division multiple access system and electronic equipment
By directly determining the real and imaginary index values of the scrambling code of the WCDMA system, the scrambling code generation process is simplified, and the problems of time-consuming and occupancy of storage resources in the prior art are solved, and the system performance and stability are improved.
Patent Information
- Application Number
- CN202510474193.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-04-16
AI Technical Summary
The scrambling code generation method of the existing WCDMA system is time-consuming to calculate and takes up a lot of storage resources, resulting in a degradation of system performance.
By directly determining the real-part index value and imaginary index value based on the maximum scrambling number and frame length of the downlink scrambling code, the scrambling code generation process is simplified and the cyclic calculation and storage requirements are reduced.
It significantly reduces the amount of computing and storage resources, improves computing efficiency and system stability, and is suitable for implementation in resource-constrained devices.
Smart Images

Figure CN120017201A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device and electronic equipment for generating a scrambling code of a wideband code division multiple access system. Background Art
[0002] In the Wide Band Code Division Multiple Access (WCDMA) system, the base station determines the coverage of the cell by broadcasting the coverage of the message. Different base stations are distinguished mainly by different downlink scrambling codes. Each cell uses a different scrambling code sequence to scramble the downlink signal.
[0003] The 3rd Generation Partner Project (3GPP TS 25.213) stipulates that the scrambling code sequence is an m sequence composed of two 18-order shift registers X / Y, and then the two m sequences are added together to form a Gold code sequence. The Gold code sequence is a composite code sequence of the m sequence. Every time the relative phase of the two m sequences is changed, a new Gold code sequence will be obtained. The WCDMA system has many downlink scrambling code numbers. The scrambling code number is used as the relative phase difference between the two m sequences to generate different Gold code sequences, and then the two Gold code real sequences are composited into scrambling codes, that is, different downlink scrambling code numbers correspond to different scrambling code sequences.
[0004] Currently, the WCDMA system only uses 8192 scrambling codes, and the scrambling code sequence number is k = 0, 1, ..., 8191. However, the current scrambling code generation method has many disadvantages. The calculation process of initialization sequence X and Y involves too many cycles, the calculation is time-consuming, and occupies more storage resources. Summary of the invention
[0005] The present invention provides a method, device and electronic device for generating scrambling codes of a wideband code division multiple access system, which are used to solve the problems that the existing scrambling code generation method is time-consuming to calculate and occupies more storage resources, and realizes rapid generation of downlink scrambling code sequences, reduces cyclic calculations and unnecessary storage, and saves storage resources.
[0006] The present invention provides a method for generating a scrambling code of a wideband code division multiple access system, comprising: determining a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; the downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; Determine the imaginary index value according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and the M value; the M value is a constant value in the WCDMA system protocol; Generate a scrambling code real part according to the scrambling code number and the real part index value; Generate an imaginary part of a scrambling code according to the scrambling code number and the imaginary part index value; A target scrambling code is obtained according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0007] Optionally, the maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400.
[0008] Optionally, the real index value includes realX; The calculation formula of realX is as follows:
[0009] Wherein, index=1: 38400+8192, X is the initialization X sequence in the WCDMA system.
[0010] Optionally, the real index value includes realY; The calculation formula of realY is as follows: realY=Y(index) Among them, index=1: 38400, Y is the initialization Y sequence in the WCDMA system.
[0011] Optionally, the imaginary index value includes imagX; The calculation formula of imagX is as follows: imagX=X(index) Wherein, index=M+1: 38400+8192+M, M=131072, and X is the initialization X sequence in the WCDMA system.
[0012] Optionally, the imaginary index value includes imagY; The calculation formula of imagY is as follows: imagY=Y(index) Among them, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system.
[0013] Optionally, the calculation formula of the real part of the scrambling code is as follows:
[0014] Wherein, realScr is the real part of the scrambling code, xor represents an exclusive OR operation, realX is the real part index value, realY is the real part index value, and n is the scrambling code number.
[0015] Optionally, the calculation formula of the imaginary part of the scrambling code is as follows:
[0016] Among them, imagScr is the imaginary part of the scrambling code, xor represents an exclusive OR operation, imagX is the imaginary part index value, imagY is the imaginary part index value, and n is the scrambling code number.
[0017] The present invention also provides a device for generating a scrambling code of a wideband code division multiple access system, comprising the following modules: A real part index determination module, which determines a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; the downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; An imaginary index determination module determines an imaginary index value according to a maximum scrambling code number of the downlink scrambling code, a frame length of the downlink scrambling code and an M value; the M value is a constant value in the WCDMA system protocol; A scrambling code real part generating module, generating a scrambling code real part according to the scrambling code number and the real part index value; A scrambling code imaginary part generating module, generating a scrambling code imaginary part according to the scrambling code number and the imaginary part index value; The target scrambling code generating module obtains the target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0018] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for generating a scrambling code for a wideband code division multiple access system as described in any one of the above is implemented.
[0019] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for generating a scrambling code for a wideband code division multiple access system as described in any one of the above is implemented.
[0020] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for generating a scrambling code for a wideband code division multiple access system as described in any one of the above is implemented.
[0021] The method, device and electronic device for generating a scrambling code for a wideband code division multiple access system provided by the present invention directly determine a real index value and an imaginary index value according to a maximum scrambling code number and a frame length, thereby avoiding a complicated cyclic calculation process in a traditional method and significantly reducing the amount of calculation; in the traditional method, the calculation of initialization sequences X and Y involves a large number of cycles, while the method for generating a scrambling code for a wideband code division multiple access system provided by the present invention directly generates an index value, thereby reducing the number of cycles and improving the calculation efficiency; by simplifying the index value calculation and scrambling code generation process, reducing the demand for hardware computing resources, and being suitable for implementation in a resource-constrained device, such as a base station or a terminal; reducing the occupation of computing and storage resources, reducing the system load, and thus improving the stability and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 The present invention provides a flowchart of a method for generating a scrambling code for a wideband code division multiple access system.
[0024] Figure 2 A schematic structural diagram of a device for generating scrambling codes for a wideband code division multiple access system provided by the present invention.
[0025] Figure 3 An example physical structure diagram of an electronic device is provided.
[0026] Reference numerals: Device 20 for generating scrambling code of wideband code division multiple access system; real index determination module 201; imaginary index determination module 202; scrambling code real part generation module 203; scrambling code imaginary part generation module 204; target scrambling code generation module 205; processor 310; communication interface 320; memory 330; communication bus 340. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] In the WCDMA system, downlink scrambling code is one of the key technologies used to distinguish different base stations. Downlink scrambling code scrambles the data of the downlink channel to ensure that the signals between different base stations do not interfere with each other, and helps the mobile terminal (UE) identify and lock the target base station.
[0029] Each base station uses a unique downlink scrambling code. Mobile terminals identify and distinguish different base stations by detecting the scrambling code. Scrambling can reduce interference between adjacent base stations and improve signal quality. Mobile terminals synchronize with base stations by detecting the downlink scrambling code.
[0030] The downlink scrambling code is generated by two 18-order linear feedback shift registers (LFSRs), which are called X-sequence generator and Y-sequence generator respectively. The initial states of X and Y sequence generators are different. A pseudo-random sequence is generated by a specific polynomial. The X sequence and Y sequence are added modulo 2 (XOR operation) to generate a Gold code sequence. The first 38,400 chips of the generated Gold code sequence are intercepted as the downlink scrambling code.
[0031] Different downlink scrambling code numbers correspond to different scrambling code sequences. The way the WCDMA downlink scrambling code is generated determines that the WCDMA scrambling code sequence has good autocorrelation and cross-correlation characteristics. The X and Y sequence construction method and scrambling code generation process are as follows: (1) Initial conditions: X sequence: X(0) = 1, X(1) = X(2) = … X(16) = X(17) = 0; Y sequence: Y(0) = Y(1) =... = Y(16) = Y(17) = 1; (2) Other values of the X / Y sequence are obtained by the following calculation method: X(i+18) = (X(i+7)+X(i))mod2 Y(i+18) = (Y(i+10)+Y(7)+Y(i+5)+Y(i))mod2 in, .
[0032] (3) The scrambling code sequence Zn is defined as: .
[0033] in, .
[0034] (4) The scrambling code corresponding to the scrambling code number n is calculated as follows: .
[0035] Among them, Sdl,n(i) is the scrambling code corresponding to the scrambling code number n, j represents the imaginary unit, M = 131072, and the sequence can generate a total of There are scrambling codes, of which only 8192 are currently used, with the scrambling code sequence number k = 0,1,…,8191.
[0036] In the current scrambling code generation method, the calculation process of initialization sequence X and Y involves too many cycles, the calculation is time-consuming, and occupies more storage resources.
[0037] Based on the above reasons, the present invention provides a method for generating scrambling codes of a wideband code division multiple access system, which is used to avoid the complex cyclic calculation process in the traditional method, reduce the amount of calculation, improve the calculation efficiency, and reduce the demand for hardware computing resources.
[0038] Figure 1 A flowchart of a method for generating a scrambling code for a wideband code division multiple access system provided by the present invention is shown in FIG. Figure 1 As shown, the method for generating the scrambling code of the wideband code division multiple access system is used in devices such as servers, desktop computers, and notebook computers, and includes the following steps.
[0039] In step 101, a real index value is determined according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code.
[0040] The downlink scrambling code is a downlink scrambling code in a WCDMA system, and the real index value includes realX and realY.
[0041] In the WCDMA system, the initialization X sequence and Y sequence are known. In addition, the maximum scrambling code number of the downlink scrambling code is 8191. The generation of the downlink scrambling code is only related to the scrambling code number and the scrambling code length. The downlink scrambling code is generated in units of one frame length, that is, the length of the scrambling code generated each time is 38400 chips, that is, the frame length of the downlink scrambling code is 38400.
[0042] Exemplarily, according to the maximum scrambling code number 8191 and the frame length 38400, the index value index is calculated, and the index is used to determine the starting position or offset of the current scrambling code, and realX is calculated and saved according to the following formula; the calculation formula of realX is as follows:
[0043] Among them, index=1: 38400+8192, indicating that the value range of index is 1 to 38400+8192; X is the initialization X sequence in the WCDMA system.
[0044] Exemplarily, according to the frame length 38400, the index value index is calculated, and the index is used to determine the starting position or offset of the current scrambling code, and realY is calculated and saved according to the following formula; The calculation formula of realY is as follows: realY=Y(index) Among them, index=1: 38400 means that the value range of index is 1 to 38400; Y is the initialization Y sequence in the WCDMA system.
[0045] By directly determining the real index value according to the maximum scrambling code number and the frame length, the complex cyclic calculation process in the traditional method is avoided, and the amount of calculation is significantly reduced; in the traditional method, the calculation of the initialization sequence X and Y involves a large number of cycles, while the present method reduces the number of cycles by directly generating the index value, thereby improving the calculation efficiency.
[0046] In step 102, an imaginary index value is determined according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and the M value.
[0047] The M value is a constant value in the WCDMA system protocol; the imaginary index value includes imagX and imagY.
[0048] Exemplarily, according to the maximum scrambling code number 8191 and the frame length 38400, the index value index is calculated, and imagX is calculated and saved according to the following formula; the calculation formula of imagX is as follows: imagX=X(index) Among them, index=M+1: 38400+8192+M, indicating that the value range of index is M+1 to 38400+8192+M; M is a constant value in the WCDMA25211 protocol, M=131072; and X is the initialization X sequence in the WCDMA system.
[0049] Exemplarily, according to the frame length 38400, the index value index is calculated, and imagY is calculated and saved according to the following formula; the imaginary index value includes imagY; The calculation formula of imagY is as follows: imagY=Y(index) Among them, index=M+1: M+38400 means that the value range of index is M+1 to M+38400; M is a constant value in the WCDMA25211 protocol, M=131072, and Y is the initialization Y sequence in the WCDMA system.
[0050] By directly determining the imaginary index value according to the maximum scrambling code number and the frame length, the complex cyclic calculation process in the traditional method is avoided, and the amount of calculation is significantly reduced; in the traditional method, the calculation of the initialization sequence X and Y involves a large number of cycles, while the present method reduces the number of cycles by directly generating the index value, thereby improving the calculation efficiency.
[0051] In step 103, a real part of a scrambling code is generated according to the scrambling code number and the real part index value.
[0052] Exemplarily, the calculation formula of the real part of the scrambling code is as follows:
[0053] Among them, realScr is the real part of the scrambling code, xor represents an exclusive OR operation, realX is the real part index value, realY is the real part index value, and n is the scrambling code number.
[0054] By calculating the real part of the scrambling code in real time, the need to pre-store a large number of scrambling code sequences is avoided, thus saving storage space.
[0055] In step 104, the imaginary part of the scrambling code is generated according to the scrambling code number and the imaginary part index value.
[0056] Exemplarily, the calculation formula of the imaginary part of the scrambling code is as follows:
[0057] Among them, imagScr is the imaginary part of the scrambling code, xor represents the exclusive OR operation, imagX is the imaginary part index value, imagY is the imaginary part index value, and n is the scrambling code number.
[0058] By calculating the imaginary part of the scrambling code in real time, the need to pre-store a large number of scrambling code sequences is avoided, thus saving storage space.
[0059] In step 105, a target scrambling code is obtained according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0060] Exemplarily, the target scrambling code is calculated as follows:
[0061] Wherein, scrCode is the target scrambling code; realScr is the real part of the scrambling code; imagScr is the imaginary part of the scrambling code; and i represents the imaginary unit.
[0062] The real and imaginary parts of the scrambling code are calculated in real time, and the target scrambling code is generated as needed, avoiding the need to pre-store a large number of scrambling code sequences and saving storage space; by optimizing the calculation process, the scrambling code can be generated quickly, reducing the system initialization time and improving the system response speed.
[0063] The method for generating a scrambling code for a wideband code division multiple access system provided by the present invention is based on the Gold code sequence generation principle specified in the 3GPP TS 25.213 specification, ensuring that the generated scrambling code meets the standard requirements and is compatible with the existing WCDMA system; since it complies with the 3GPP standard, the method can be directly applied to the existing WCDMA system without large-scale modification of the system.
[0064] The method, device and electronic device for generating a scrambling code of a wideband code division multiple access system provided by the present invention determine a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code, determine an imaginary part index value according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and an M value, wherein the M value is a constant value in the WCDMA system protocol, generate a real part of the scrambling code according to the scrambling code number and the real part index value, generate an imaginary part of the scrambling code according to the scrambling code number and the imaginary part index value, and obtain a target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code; by directly determining the real part according to the maximum scrambling code number and the frame length The invention provides a method for generating a scrambling code for a wideband code division multiple access system by directly generating an index value, thereby reducing the number of cycles and improving the calculation efficiency; by simplifying the index value calculation and the scrambling code generation process, the demand for hardware computing resources is reduced, and the invention is suitable for being implemented in resource-constrained devices, such as base stations or terminals; the occupation of computing and storage resources is reduced, the system load is reduced, and the stability and reliability of the system are improved.
[0065] The device for generating a scrambling code for a wideband code division multiple access system provided by the present invention is described below. The device for generating a scrambling code for a wideband code division multiple access system described below and the method for generating a scrambling code for a wideband code division multiple access system described above can be referred to each other.
[0066] Figure 2 The present invention provides a schematic diagram of the structure of a device for generating a scrambling code for a wideband code division multiple access system. The device for generating a scrambling code for a wideband code division multiple access system is applied to devices such as servers, desktop computers, and notebook computers. Figure 2 The device 20 for generating a scrambling code for a wideband code division multiple access system includes a real part index determination module 201, an imaginary part index determination module 202, a scrambling code real part generation module 203, a scrambling code imaginary part generation module 204 and a target scrambling code generation module 205.
[0067] The real index determination module 201 is configured to determine the real index value according to the maximum scrambling code number of the downlink scrambling code and the frame length of the downlink scrambling code; the downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; The imaginary index determination module 202 is configured to determine the imaginary index value according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and the M value; the M value is a constant value in the WCDMA system protocol; The scrambling code real part generating module 203 is configured to generate the scrambling code real part according to the scrambling code number and the real part index value; The scrambling code imaginary part generating module 204 is configured to generate the scrambling code imaginary part according to the scrambling code number and the imaginary part index value; The target scrambling code generating module 205 is configured to obtain a target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0068] Optionally, the maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400.
[0069] Optionally, the real index value includes realX; The calculation formula of realX is as follows:
[0070] Wherein, index=1: 38400+8192, X is the initialization X sequence in the WCDMA system.
[0071] Optionally, the real index value includes realY; The calculation formula of realY is as follows: realY=Y(index) Among them, index=1: 38400, Y is the initialization Y sequence in the WCDMA system.
[0072] Optionally, the imaginary index value includes imagX; The calculation formula of imagX is as follows: imagX=X(index) Wherein, index=M+1: 38400+8192+M, M=131072, and X is the initialization X sequence in the WCDMA system.
[0073] Optionally, the imaginary index value includes imagY; The calculation formula of imagY is as follows: imagY=Y(index) Among them, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system.
[0074] Optionally, the calculation formula of the real part of the scrambling code is as follows:
[0075] Wherein, realScr is the real part of the scrambling code, xor represents an exclusive OR operation, realX is the real part index value, realY is the real part index value, and n is the scrambling code number.
[0076] Optionally, the calculation formula of the imaginary part of the scrambling code is as follows:
[0077] Among them, imagScr is the imaginary part of the scrambling code, xor represents an exclusive OR operation, imagX is the imaginary part index value, imagY is the imaginary part index value, and n is the scrambling code number.
[0078] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the method for generating a scrambling code of a wideband code division multiple access system, the method comprising: determining a real index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; the downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; determining an imaginary index value according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and an M value; the M value is a constant value in the WCDMA system protocol; generating a real part of a scrambling code according to the scrambling code number and the real index value; generating an imaginary part of a scrambling code according to the scrambling code number and the imaginary index value; and obtaining a target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0079] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0080] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the method for generating a wideband code division multiple access system scrambling code provided by the above methods, the method including: determining a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; the downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; determining an imaginary part index value according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and an M value; the M value is a constant value in the WCDMA system protocol; generating a real part of a scrambling code according to the scrambling code number and the real part index value; generating an imaginary part of a scrambling code according to the scrambling code number and the imaginary part index value; and obtaining a target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0081] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for generating a scrambling code for a wideband code division multiple access system provided by the above methods is implemented, the method comprising: determining a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; the downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; determining an imaginary part index value according to the maximum scrambling code number of the downlink scrambling code, the frame length of the downlink scrambling code and an M value; the M value is a constant value in the WCDMA system protocol; generating a real part of a scrambling code according to the scrambling code number and the real part index value; generating an imaginary part of a scrambling code according to the scrambling code number and the imaginary part index value; and obtaining a target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code.
[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a scrambling code for a wideband code division multiple access system, characterized in that: include: Determine a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; The downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; Determine an imaginary index value according to a maximum scrambling code number of the downlink scrambling code, a frame length of the downlink scrambling code, and an M value; The M value is a constant value in the WCDMA system protocol; Generate a scrambling code real part according to the scrambling code number and the real part index value; Generate an imaginary part of a scrambling code according to the scrambling code number and the imaginary part index value; A target scrambling code is obtained according to the real part of the scrambling code and the imaginary part of the scrambling code.
2. The method according to claim 1, characterized in that The maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400; the real index value includes realX; The calculation formula of realX is as follows: ; Wherein, index=1: 38400+8192, X is the initialization X sequence in the WCDMA system.
3. The method according to claim 1, characterized in that The maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400; the real index value includes realY; The calculation formula of realY is as follows: realY=Y(index); Among them, index=1: 38400, Y is the initialization Y sequence in the WCDMA system.
4. The method according to claim 1, characterized in that: The maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400; the imaginary index value includes imagX; The calculation formula of imagX is as follows: imagX=X(index); Wherein, index=M+1: 38400+8192+M, M=131072, and X is the initialization X sequence in the WCDMA system.
5. The method according to claim 1, characterized in that The maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400; the imaginary index value includes imagY; The calculation formula of imagY is as follows: imagY=Y(index); Among them, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system.
6. The method according to claim 1, characterized in that The calculation formula of the real part of the scrambling code is as follows: ; Wherein, realScr is the real part of the scrambling code, xor represents an exclusive OR operation, realX is the real part index value, realY is the real part index value, and n is the scrambling code number.
7. The method according to claim 1, characterized in that The calculation formula of the imaginary part of the scrambling code is as follows: ; Among them, imagScr is the imaginary part of the scrambling code, xor represents an exclusive OR operation, imagX is the imaginary part index value, imagY is the imaginary part index value, and n is the scrambling code number.
8. A device for generating scrambling codes for a wideband code division multiple access system, characterized in that: include: A real part index determination module, which determines a real part index value according to a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; The downlink scrambling code is a downlink scrambling code in a wideband code division multiple access WCDMA system; An imaginary index determination module, which determines an imaginary index value according to a maximum scrambling code number of the downlink scrambling code, a frame length of the downlink scrambling code, and an M value; The M value is a constant value in the WCDMA system protocol; A scrambling code real part generating module, generating a scrambling code real part according to the scrambling code number and the real part index value; A scrambling code imaginary part generating module, generating a scrambling code imaginary part according to the scrambling code number and the imaginary part index value; The target scrambling code generating module obtains the target scrambling code according to the real part of the scrambling code and the imaginary part of the scrambling code.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method for generating a scrambling code for a wideband code division multiple access system according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a scrambling code for a wideband code division multiple access system according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Compound scrambling generators
CN101136649A
Scrambling method of downlink channel
CN105024778A
Method and device for rapidly generating WCDMA scrambling code sequence
CN114024645A
Apparatus for production of scrambling codes and preambles
US20050152265A1
Method and apparatus for generation of downlink scrambling code in wideband CDMA mobile devices
US7286589B1