Method, device and electronic device for generating scrambling code of wideband code division multiple access system

By directly determining the index value of the scrambling code, the scrambling code generation process of the WCDMA system is simplified, the calculation time-consuming and storage resource occupation problems are solved, and the system performance is improved.

CN120017201BActive Publication Date: 2025-08-08NEXWISE INTELLIGENCE CHINA LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510474193.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-08
Estimated Expiration
2045-04-16

AI Technical Summary

Technical Problem

The existing WCDMA system scrambling code generation method is time-consuming and takes up a lot of storage resources, resulting in limited system performance.

Method used

By directly determining the real and imaginary index values based on the maximum scrambling number and frame length of the downlink scrambling code, the scrambling code generation process is simplified and cyclic calculation is reduced.

Benefits of technology

Improves computing efficiency, reduces hardware resource requirements, enhances system stability and reliability, and is suitable for devices with resource-constrained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017201B_ABST
    Figure CN120017201B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and electronic equipment for generating a scrambling code of a wideband code division multiple access system, and relates to the field of communication technology. The method comprises: determining a real part index value according to a maximum scrambling code number and a frame length of a downlink scrambling code, wherein 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, the frame length and an M value of the downlink scrambling code, wherein the M value is a constant value in the WCDMA system protocol; generating a real part of the scrambling code according to the scrambling code number and the real part index value; generating an imaginary part of the 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 and the imaginary part of the scrambling code. The method achieves rapid generation of a downlink scrambling code sequence, reduces cyclic calculations and unnecessary storage, and saves storage resources.
Need to check novelty before this filing date? Find Prior Art

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 for a wideband code division multiple access system. Background Art

[0002] In a Wideband Code Division Multiple Access (WCDMA) system, base stations determine the coverage area of their cells by broadcasting their messages. Different base stations are distinguished primarily by their downlink scrambling codes, with each cell using a different scrambling code sequence to scramble downlink signals.

[0003] The 3rd Generation Partnership Project (3GPP TS 25.213) specifies that the scrambling code sequence is an m-sequence composed of two 18-step shift registers (X / Y), followed by the sum of the two m-sequences to form a Gold code sequence. A Gold code sequence is a composite of m-sequences; each change in the relative phase of the two m-sequences yields a new Gold code sequence. WCDMA systems have a large number of 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. The two Gold code sequences are then combined to form a scrambling code, allowing different downlink scrambling code numbers to correspond to different scrambling code sequences.

[0004] Currently, WCDMA systems use only 8192 of these scrambling codes, numbered k = 0, 1, …, 8191. However, current scrambling code generation methods have many drawbacks. The calculation of initialization sequences X and Y involves too many loops, is time-consuming, and consumes significant memory resources. Summary of the Invention

[0005] The present invention provides a method, device and electronic device for generating scrambling codes for a wideband code division multiple access system, which are used to solve the problems of time-consuming calculation and large storage resource occupation in existing scrambling code generation methods, realize rapid generation of downlink scrambling code sequences, reduce cyclic calculations and unnecessary storage, and save storage resources.

[0006] The present invention provides a method for generating a scrambling code in a wideband code division multiple access (WCDMA) 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;

[0007] 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 the M value; the M value is a constant value in the WCDMA system protocol;

[0008] Generate a scrambling code real part according to the scrambling code number and the real part index value;

[0009] Generate a scrambling code imaginary part according to the scrambling code number and the imaginary part index value;

[0010] A target scrambling code is obtained according to the real part of the scrambling code and the imaginary part of the scrambling code.

[0011] Optionally, the maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400.

[0012] Optionally, the real index value includes realX;

[0013] The calculation formula of realX is as follows:

[0014]

[0015] Wherein, index=1: 38400+8192, X is the initialization X sequence in the WCDMA system.

[0016] Optionally, the real index value includes realY;

[0017] The calculation formula of realY is as follows:

[0018] realY=Y(index)

[0019] Wherein, index=1: 38400, Y is the initialization Y sequence in the WCDMA system.

[0020] Optionally, the imaginary index value includes imagX;

[0021] The calculation formula of imagX is as follows:

[0022] imagX=X(index)

[0023] Wherein, index=M+1: 38400+8192+M, M=131072, and X is the initialization X sequence in the WCDMA system.

[0024] Optionally, the imaginary index value includes imagY;

[0025] The calculation formula of imagY is as follows:

[0026] imagY=Y(index)

[0027] Wherein, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system.

[0028] Optionally, the calculation formula for the real part of the scrambling code is as follows:

[0029]

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

[0031] Optionally, the calculation formula of the imaginary part of the scrambling code is as follows:

[0032]

[0033] Wherein, 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.

[0034] The present invention also provides a device for generating a scrambling code for a wideband code division multiple access system, comprising the following modules:

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

[0036] an imaginary part index determination module, which determines an imaginary part 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;

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

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

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

[0040] 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. When the processor executes the computer program, the method for generating a scrambling code for a wideband code division multiple access system as described above is implemented.

[0041] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. 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 above is implemented.

[0042] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above methods for generating a scrambling code for a wideband code division multiple access system.

[0043] The present invention provides a method, device, and electronic device for generating a scrambling code for a wideband code division multiple access system. By directly determining the real index value and the imaginary index value based on the maximum scrambling code number and the frame length, the method avoids the complex cyclic calculation process in conventional methods and significantly reduces the amount of computation. In conventional methods, the calculation of initialization sequences X and Y involves a large number of cycles. However, the method for generating a scrambling code for a wideband code division multiple access system provided by the present invention directly generates the index value, thereby reducing the number of cycles and improving computational efficiency. By simplifying the index value calculation and scrambling code generation process, the method reduces the demand for hardware computing resources and is suitable for implementation in resource-constrained devices, such as base stations or terminals. The method also reduces the usage of computing and storage resources, reduces the system load, and thus improves the stability and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to 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 any creative work.

[0045] Figure 1 The present invention provides a flowchart of a method for generating a scrambling code for a wideband code division multiple access system.

[0046] Figure 2 The present invention provides a schematic structural diagram of a device for generating scrambling codes for a wideband code division multiple access system.

[0047] Figure 3 The following is a schematic diagram of the physical structure of an electronic device.

[0048] Reference numerals:

[0049] Device for generating a scrambling code for a wideband code division multiple access system 20; real part index determination module 201; imaginary part 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

[0050] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0051] In WCDMA systems, downlink scrambling codes are a key technology used to distinguish different base stations. By scrambling data on the downlink channel, downlink scrambling codes prevent signals from interfering with each other and help mobile terminals (UEs) identify and lock onto a target base station.

[0052] Each base station uses a unique downlink scrambling code. Mobile terminals identify and distinguish different base stations by detecting the scrambling code. Scrambling reduces interference between adjacent base stations and improves signal quality. Mobile terminals synchronize with base stations by detecting the downlink scrambling code.

[0053] The downlink scrambling code is generated by two 18th-order linear feedback shift registers (LFSRs), called the X-sequence generator and the Y-sequence generator. The X and Y-sequence generators have different initial states. A pseudorandom sequence is generated using a specific polynomial. The X and Y sequences are modulo-2 added (XORed) to generate the Gold code sequence. The first 38,400 chips of the generated Gold code sequence are truncated and used as the downlink scrambling code.

[0054] Different downlink scrambling code numbers correspond to different scrambling code sequences. The way WCDMA downlink scrambling codes are generated determines that the WCDMA scrambling code sequences have good autocorrelation and cross-correlation characteristics. The X and Y sequence construction methods and scrambling code generation process are as follows:

[0055] (1) Initial conditions:

[0056] X sequence: X(0) = 1, X(1) = X(2) = ... X(16) = X(17) = 0;

[0057] Y sequence: Y(0) = Y(1) =... = Y(16) = Y(17) = 1;

[0058] (2) Other values of the X / Y sequence are obtained by the following calculation method:

[0059] X(i+18) = (X(i+7)+X(i))mod2

[0060] Y(i+18) = (Y(i+10)+Y(7)+Y(i+5)+Y(i))mod2

[0061] in, .

[0062] (3) The scrambling sequence Zn is defined as:

[0063] .

[0064] in, .

[0065] (4) The scrambling code corresponding to the scrambling code number n is calculated as follows:

[0066] .

[0067] 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 numbers k = 0, 1, … , 8191.

[0068] In the current scrambling code generation method, the calculation process of initialization sequences X and Y involves too many cycles, which is time-consuming and occupies a lot of storage resources.

[0069] Based on the above reasons, the present invention provides a method for generating scrambling codes for a wideband code division multiple access system, which is used to avoid the complex cyclic calculation process in traditional methods, reduce the amount of calculation, improve calculation efficiency, and reduce the demand for hardware computing resources.

[0070] Figure 1 The present invention provides a flow chart of a method for generating a scrambling code for a wideband code division multiple access system, such as Figure 1 As shown, the method for generating a scrambling code of a wideband code division multiple access system is used in devices such as servers, desktop computers, and notebook computers, and includes the following steps.

[0071] In step 101, a real part 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.

[0072] The downlink scrambling code is a downlink scrambling code in a WCDMA system, and the real index value includes realX and realY.

[0073] In a WCDMA system, the initialization X and Y sequences are known. The maximum downlink scrambling code number is 8191. Downlink scrambling code generation depends solely on the scrambling code number and length. Downlink scrambling code generation is based on a frame length. Each generated scrambling code is 38,400 chips long, meaning the downlink scrambling code frame length is 38,400.

[0074] For example, based on the maximum scrambling code number 8191 and the frame length 38400, the index value index is calculated. 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:

[0075]

[0076] Where index=1: 38400+8192 indicates that the value range of index is 1 to 38400+8192; X is the initialization X sequence in the WCDMA system.

[0077] For example, based on the frame length of 38400, the index value index is calculated, and the index is used to determine the starting position or offset of the current scrambling code. Then, realY is calculated and saved according to the following formula. The calculation formula of realY is as follows:

[0078] realY=Y(index)

[0079] Where index=1:38400 indicates that the value range of index is 1 to 38400; Y is the initialization Y sequence in the WCDMA system.

[0080] By directly determining the real index value based on the maximum scrambling code number and frame length, the complex cyclic calculation process in traditional methods is avoided, significantly reducing the amount of computation. In traditional methods, the calculation of the initialization sequences X and Y involves a large number of loops, while this method reduces the number of loops by directly generating the index value, thereby improving computational efficiency.

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

[0082] The M value is a constant value in the WCDMA system protocol; the imaginary index value includes imagX and imagY.

[0083] For example, based on 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:

[0084] imagX=X(index)

[0085] In the field "index=M+1: 38400+8192+M", the value range of index is from M+1 to 38400+8192+M. M is a constant value in the WCDMA25211 protocol, M=131072. X is the initialization X sequence in the WCDMA system.

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

[0087] The calculation formula for imagY is as follows:

[0088] imagY=Y(index)

[0089] In the example, index=M+1:M+38400 indicates that the index value range is from 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.

[0090] By directly determining the imaginary index value based on the maximum scrambling code number and frame length, the complex cyclic calculation process in traditional methods is avoided, significantly reducing the amount of calculation. In traditional methods, the calculation of the initialization sequences X and Y involves a large number of loops, while this method reduces the number of loops by directly generating the index value, thereby improving computational efficiency.

[0091] In step 103, a real part of a scrambling code is generated according to the scrambling code number and the real part index value.

[0092] Exemplarily, the calculation formula of the real part of the scrambling code is as follows:

[0093]

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

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

[0096] In step 104, the imaginary part of the scrambling code is generated according to the scrambling code number and the imaginary part index value.

[0097] Exemplarily, the calculation formula of the imaginary part of the scrambling code is as follows:

[0098]

[0099] Wherein, 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.

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

[0101] In step 105, a target scrambling code is obtained according to the real part and the imaginary part of the scrambling code.

[0102] Exemplarily, the target scrambling code is calculated as follows:

[0103]

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

[0105] 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 system initialization time and improving system response speed.

[0106] The method for generating scrambling codes 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 codes meet standard requirements and are compatible with existing WCDMA systems. Since the method complies with the 3GPP standard, it can be directly applied to existing WCDMA systems without requiring large-scale system modifications.

[0107] The present invention provides a method, device, and electronic device for generating a scrambling code for a wideband code division multiple access system. The method, device, and electronic device 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 and the imaginary part of the scrambling code; and directly determine the real part according to the maximum scrambling code number and the frame length. The invention provides a method for generating scrambling codes for a wideband code division multiple access system by directly generating index values, thereby reducing the number of cycles and improving computational efficiency. The invention also simplifies the index value calculation and scrambling code generation processes, thereby reducing the demand for hardware computing resources and being suitable for implementation in resource-constrained devices such as base stations or terminals. The invention also reduces the usage of computing and storage resources, reduces the system load, and thus improves the stability and reliability of the system.

[0108] The following describes a device for generating a scrambling code for a wideband CDMA system provided by the present invention. The device for generating a scrambling code for a wideband CDMA system described below and the method for generating a scrambling code for a wideband CDMA system described above can refer to each other.

[0109] Figure 2 This is a schematic diagram of the structure of a device for generating scrambling codes for a wideband code division multiple access system provided by the present invention. The device for generating scrambling codes for a wideband code division multiple access system is used in 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.

[0110] The real part index determination module 201 is configured to 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;

[0111] The imaginary index determining module 202 is configured to 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;

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

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

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

[0115] Optionally, the maximum scrambling code number of the downlink scrambling code is 8191, and the frame length of the downlink scrambling code is 38400.

[0116] Optionally, the real index value includes realX;

[0117] The calculation formula of realX is as follows:

[0118]

[0119] Wherein, index=1: 38400+8192, X is the initialization X sequence in the WCDMA system.

[0120] Optionally, the real index value includes realY;

[0121] The calculation formula of realY is as follows:

[0122] realY=Y(index)

[0123] Wherein, index=1: 38400, Y is the initialization Y sequence in the WCDMA system.

[0124] Optionally, the imaginary index value includes imagX;

[0125] The calculation formula of imagX is as follows:

[0126] imagX=X(index)

[0127] Wherein, index=M+1: 38400+8192+M, M=131072, and X is the initialization X sequence in the WCDMA system.

[0128] Optionally, the imaginary index value includes imagY;

[0129] The calculation formula of imagY is as follows:

[0130] imagY=Y(index)

[0131] Wherein, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system.

[0132] Optionally, the calculation formula for the real part of the scrambling code is as follows:

[0133]

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

[0135] Optionally, the calculation formula of the imaginary part of the scrambling code is as follows:

[0136]

[0137] Wherein, 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.

[0138] Figure 3 An example of a physical structure diagram of an electronic device is shown below. Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330, and a communications bus 340, wherein the processor 310, the communications interface 320, and the memory 330 communicate with each other via the communications bus 340. The processor 310 may invoke logic instructions in the memory 330 to execute a method for generating a scrambling code for a wideband code division multiple access (WCDMA) system, the method comprising: determining a real part index value based on 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 based on 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 the scrambling code based on the scrambling code number and the real part index value; generating an imaginary part of the scrambling code based on the scrambling code number and the imaginary part index value; and obtaining a target scrambling code based on the real part and the imaginary part of the scrambling code.

[0139] Furthermore, the logic instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0140] On the other hand, the present invention further provides a computer program product, comprising a computer program, which may be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is capable of executing the methods for generating a scrambling code for a wideband code division multiple access system provided by the aforementioned methods. The method comprises: determining a real part index value based on a maximum scrambling code number of a downlink scrambling code and a frame length of the downlink scrambling code; the downlink scrambling code being a downlink scrambling code in a wideband code division multiple access (WCDMA) system; determining an imaginary part index value based on 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 being a constant value in the WCDMA system protocol; generating a real part of a scrambling code based on the scrambling code number and the real part index value; generating an imaginary part of a scrambling code based on the scrambling code number and the imaginary part index value; and obtaining a target scrambling code based on the real part and the imaginary part of the scrambling code.

[0141] In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program is implemented to perform the method for generating a scrambling code for a wideband code division multiple access system provided by each of the above methods. The method comprises: determining a real part index value based on 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 based on 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 the scrambling code based on the scrambling code number and the real part index value; generating an imaginary part of the scrambling code based on the scrambling code number and the imaginary part index value; and obtaining a target scrambling code based on the real part and the imaginary part of the scrambling code.

[0142] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0143] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0144] 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 various 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; Determining 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; 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 and imagY; 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; The calculation formula of imagY is as follows: imagY=Y(index); Wherein, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system; The real part of the scrambling code is generated according to the scrambling code number and the real part index value; the calculation formula of the real part of the scrambling code is as follows: realScr=1-2 xor( realX(n+[1:38400]), realY); 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; The imaginary part of the scrambling code is generated according to the scrambling code number and the imaginary part index value; the calculation formula of the imaginary part of the scrambling code is as follows: imagScr=1-2 xor( imagX(n+[1:38400]), imagY); Wherein, 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; 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 part index value includes realX; The calculation formula of realX is as follows: realX=1-2 X(index); 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 part index value includes realY; The calculation formula of realY is as follows: realY=Y(index); Wherein, index=1: 38400, Y is the initialization Y sequence in the WCDMA system.

4. A device for generating a scrambling code 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 part index determination module, which determines an imaginary part 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; 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 and imagY; 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; The calculation formula of imagY is as follows: imagY=Y(index); Wherein, index=M+1: M+38400, M=131072, and Y is the initialization Y sequence in the WCDMA system; The scrambling code real part generation module generates the scrambling code real part according to the scrambling code number and the real part index value; the calculation formula of the scrambling code real part is as follows: realScr=1-2 xor( realX(n+[1:38400]), realY); 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; The scrambling code imaginary part generation module generates the scrambling code imaginary part according to the scrambling code number and the imaginary part index value; the calculation formula of the scrambling code imaginary part is as follows: imagScr=1-2 xor( imagX(n+[1:38400]), imagY); Wherein, 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; 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.

5. 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 3 is implemented.

6. 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 3 is implemented.

Citation Information

Patent Citations

  • Method and device for rapidly generating WCDMA scrambling code sequence

    CN114024645A