WO2020155224A1 - Method and device for calculating modulus of complex number based on modem - Google Patents
Method and device for calculating modulus of complex number based on modem Download PDFInfo
- Publication number
- WO2020155224A1 WO2020155224A1 PCT/CN2019/075687 CN2019075687W WO2020155224A1 WO 2020155224 A1 WO2020155224 A1 WO 2020155224A1 CN 2019075687 W CN2019075687 W CN 2019075687W WO 2020155224 A1 WO2020155224 A1 WO 2020155224A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- value
- complex number
- modulus
- preset
- atan
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/60—Methods or arrangements for performing computations using a digital non-denominational number representation, i.e. number representation without radix; Computing devices using combinations of denominational and non-denominational quantity representations, e.g. using difunction pulse trains, STEELE computers, phase computers
- G06F7/72—Methods or arrangements for performing computations using a digital non-denominational number representation, i.e. number representation without radix; Computing devices using combinations of denominational and non-denominational quantity representations, e.g. using difunction pulse trains, STEELE computers, phase computers using residue arithmetic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/26—Systems using multi-frequency codes
Definitions
- This application relates to the field of digital signal processing, in particular to a modem-based complex number modulus method, device, computer equipment and storage medium.
- the main purpose of this application is to provide a modem-based method, device, computer equipment, and storage medium for modulating a complex number, which aims to reduce computing resources while ensuring the accuracy of the modulus of the complex number.
- This application proposes a modem-based complex number modulus method, including the following steps:
- the modulus of the complex number I+jQ is calculated according to the preset modulus formula.
- This application provides a modem-based complex number modulus device, including:
- the complex number generating unit is used to obtain the cosine value and the sine value of the radio frequency carrier signal to be processed, and use one of the cosine value and the sine value as the real part and the other as the imaginary part to generate a complex number I+ jQ;
- the rotation processing unit is used to convert the complex number I+jQ into coordinate points (I, Q) in a rectangular coordinate system, and use a preset algorithm to rotate the coordinate points to obtain a rotating coordinate point ( I1,Q1);
- the preset angle range judgment unit judges whether the value of atan (Q1/I1) is within the preset angle range
- the complex modulus calculation unit is configured to calculate the modulus of the complex number I+jQ according to the preset modulus formula if the value of atan(Q1/I1) is within the preset angle range.
- the present application provides a computer device including a memory and a processor, the memory stores a computer program, and the processor implements the steps of any one of the foregoing methods when the computer program is executed.
- the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
- the modem-based complex modulus method, device, computer equipment and storage medium provided in the present application obtain the cosine value and the sine value of the radio frequency carrier signal to be processed, and One of the cosine value and the sine value is used as the real part, and the other is used as the imaginary part to generate a complex number I+jQ;
- the complex number I+jQ is correspondingly converted into a coordinate point (I, Q), and use a preset algorithm to rotate the coordinate points to obtain the rotated coordinate points (I1, Q1); determine whether the value of atan(Q1/I1) is within the preset angle range; if atan(Q1/ If the value of I1) is within the preset angle range, the modulus of the complex number I+jQ is calculated according to the preset modulus formula. Therefore, under the premise of ensuring the accuracy of the modulus of the complex number, the consumption of computational resources is reduced.
- FIG. 1 is a schematic flowchart of a modem-based complex number modulus method according to an embodiment of this application;
- FIG. 2 is a schematic block diagram of the structure of a modem-based complex number modulus apparatus according to an embodiment of the application;
- FIG. 3 is a structural block diagram of a storage medium according to an embodiment of the application.
- Fig. 4 is a structural block diagram of a computer device according to an embodiment of the application.
- an embodiment of the present application provides a modem-based complex number modulus method, including the following steps:
- step S1 obtain the cosine value and the sine value of the radio frequency carrier signal to be processed, and use one of the cosine value and the sine value as the real part, and the other as the imaginary part to generate a complex number I +jQ.
- a modem is a kind of computer hardware that can translate the digital signal of the computer into an analog signal, and these analog signals can be received by another modem at the other end and translated into a language that the computer can recognize. This simple process completes the communication between the two computers. Among them, in the process of processing the signal, it is often necessary to calculate the modulus of the complex number.
- the signal transmission generally uses a radio frequency carrier to transmit the radio frequency carrier signal.
- the received radio frequency carrier signal can come from another modem.
- the cosine value and the sine value of the radio frequency carrier signal to be processed and use one of the cosine value and the sine value as a real part and the other as an imaginary part to generate a complex number I+jQ.
- the only parameters that can be changed for the RF carrier signal are cosine, frequency and sine. And sine is related to frequency. Therefore, the cosine and sine in the carrier signal are generally used as the two main modulation variables. Accordingly, the values of cosine and sine in the radio frequency carrier signal are extracted and recorded as complex numbers I+jQ.
- I is the cosine in the radio frequency carrier signal
- Q is the sine in the radio frequency carrier signal
- I is the sine in the radio frequency carrier signal
- Q is the all The cosine in the radio frequency carrier signal is acceptable.
- the complex number I+jQ is correspondingly converted into coordinate points (I, Q) in a rectangular coordinate system, and a preset algorithm is used to rotate the coordinate points to obtain a rotated coordinate point (I1, Q1).
- the preset algorithm for rotation processing can be any algorithm, preferably the CORDIC algorithm (Coordinate Rotation Digital Computer), where the CORDIC algorithm is the coordinate rotation digital calculation method, which replaces the multiplication operation by the basic addition and shift operation to make the vector rotation
- the calculation of sum orientation no longer needs functions such as trigonometric function, multiplication, square root, inverse trigonometry, and exponent.
- the CORDIC algorithm has multiple modes, among which the vector mode refers to the mode in which the direction of rotation is determined by judging the positive or negative of the Y axis of the coordinate point. Specifically, the CORDIC algorithm is used to perform rotation processing on the coordinate point (I, Q), so that the angle between the rotated coordinate point and the X axis of the planar rectangular coordinate system is reduced.
- the X axis reading of the coordinate point is the modulus of the complex number I+jQ, that is Wherein, In is the X-axis direction reading of the coordinate point when the angle between the coordinate point and the X-axis approaches 0.
- I+jQ the complex number
- In the X-axis direction reading of the coordinate point when the angle between the coordinate point and the X-axis approaches 0.
- the coordinate point at this time can be used as a basis for approximately calculating the modulus of the complex number I+jQ, and the computer resources consumed are greatly reduced.
- the preset angle is, for example, (0, atan0.3), (0, atan0.25).
- atan is the arctangent function, that is, the inverse function of the tangent function.
- the modulus of the complex number I+jQ is calculated according to the preset modulus formula.
- the preset modulus formula can be any formula, preferably:
- alpha ⁇ max(
- alpha ⁇ max(
- ) can use appropriate parameters alpha, beta, predict
- the parameters alpha and beta are obtained by querying the correspondence between the prestored angle and the parameter.
- the corresponding relationship between the pre-stored angle and the parameter is, for example, (0,A) corresponding to the parameters alpha and beta are a1, b1, respectively, and [A, B) corresponding to the parameters alpha and beta are a2, b2, respectively.
- the setting angle (0, atan0.25) corresponding to alpha and beta are 0.864458929403047 and 0.106419757324935 respectively.
- this embodiment first uses a preset algorithm to perform rotation processing on the coordinate points corresponding to the complex number. After the rotation, if the value of atan(Q1/I1) is within the preset angle range, then the preset modulus formula is used to calculate Calculate the modulus of the complex number. Therefore, the number of rotations of the CORDIC algorithm is reduced under the premise of ensuring the accuracy of the modulus of the complex number.
- the method includes:
- the cosine value and the sine value of the radio frequency carrier signal to be processed are obtained, and one of the cosine value and the sine value is used as the real part, and the other is used as the imaginary part to generate a complex number I+jQ
- the step S1 includes:
- the complex number I+jQ is generated.
- the smaller value of the absolute value of cosine and sine is recorded as Q, and the larger value is recorded as I.
- the initial complex number I+jQ is transformed into the line between the coordinate point and the origin in the rectangular coordinate system, and the angle with the X axis is smaller, thereby reducing the number of rotations of the subsequent CORDIC algorithm.
- sine may be negative, the absolute value is compared.
- the complex number I+jQ is correspondingly converted into coordinate points (I, Q) in a plane rectangular coordinate system, and a preset algorithm is used to rotate the coordinate points to obtain a rotated coordinate point
- Step S2 of (I1, Q1) includes:
- x i+1 K i [x i -y i ⁇ d i ⁇ 2 -i ]
- Ki cos( ⁇ i)
- i is the number of rotations
- ⁇ i is the angle of rotation during the i-th rotation
- di -sign(yi).
- the computer can use shift operations to perform rotation operations, which eliminates more multiplication operations and saves computing power compared to other rotation angles.
- ⁇ atan 2 -i respectively represent clockwise rotation atan 2 -i degrees and counterclockwise rotation atan 2 -i degrees.
- the CORDIC algorithm has multiple modes, among which the vector mode refers to the mode of determining the direction of rotation by judging the positive or negative of the Y axis of the coordinate point, that is, judging the direction of rotation by the positive or negative of the Q value.
- the vector mode using the CORDIC algorithm performs rotation processing on the coordinate point (I, Q) around the origin to obtain the rotated coordinate point (I1, Q1) after the rotation processing, wherein the rotation processing
- the step S202 where the single rotation angle of is ⁇ atan 2 -i includes:
- the vector mode using the CORDIC algorithm is implemented to rotate the coordinate point (I, Q) around the origin. If the Q value is positive, the coordinate point (I, Q) should be rotated clockwise, that is, the rotation angle of atan 2 -i should be performed around the origin, so that the coordinate point (I, Q) is close to the X axis; if the Q value is negative, the coordinate point (I, Q) should be rotated counterclockwise, that is, the rotation angle of -atan 2 -i is performed around the origin to make The coordinate point (I, Q) is close to the X axis.
- the step S4 of calculating the modulus of the complex number I+jQ according to a preset modulus formula includes:
- alpha ⁇ max(
- ) is used to calculate the modulus of the complex number. If the value of atan(Q1/I1) is within the preset angle range, it indicates that the values of the parameters alpha and beta can be obtained according to the corresponding relationship between the prestored angle and the parameters, and then the values of the parameters alpha and beta are inserted into the formula
- alpha ⁇ max(
- the step S4 of calculating the modulus of the complex number I+jQ according to a preset modulus formula includes:
- the calculation accuracy of the modulus of the complex number is further improved.
- the more the number of rotations of the preset algorithm such as CORDIC algorithm the higher the precision of the complex number modulus obtained by the subsequent processing. If the number of rotations of the rotation processing is greater than the preset rotation threshold, it indicates that sufficient computing resources have been consumed, and the rotation should not be continued to consume computing resources.
- the preset modulus formula can already be used, for example, the formula:
- alpha ⁇ max(
- the rotation threshold is, for example, 3-10 times.
- the modem-based complex number modulus method of the present application obtains the cosine value and the sine value of the radio frequency carrier signal to be processed, and uses one of the cosine value and the sine value as the real part and the other as the imaginary part.
- the part generates a complex number I+jQ; correspondingly transforms the complex number I+jQ into a coordinate point (I, Q) in a rectangular coordinate system, and uses a preset algorithm to rotate the coordinate point to obtain a rotated coordinate point (I1,Q1); Determine whether the value of atan(Q1/I1) is within the preset angle range; if the value of atan(Q1/I1) is within the preset angle range, calculate the value according to the preset modulus formula The modulus of the complex number I+jQ. Therefore, under the premise of ensuring the accuracy of the modulus of the complex number, the consumption of computational resources is reduced.
- an embodiment of the present application provides a modem-based complex number modulus device, including:
- the complex number generating unit 1 is used to obtain the cosine value and the sine value of the radio frequency carrier signal to be processed, and use one of the cosine value and the sine value as the real part and the other as the imaginary part to generate a complex number I +jQ;
- the rotation processing unit 2 is configured to correspondingly convert the complex number I+jQ into coordinate points (I, Q) in a plane rectangular coordinate system, and use a preset algorithm to rotate the coordinate points to obtain a rotating coordinate point (I1,Q1);
- the preset angle range judgment unit 3 judges whether the value of atan (Q1/I1) is within the preset angle range
- the complex modulus calculation unit 4 is configured to calculate the modulus of the complex number I+jQ according to the preset modulus formula when the value of atan(Q1/I1) is in the preset angle range.
- a modem is a kind of computer hardware that can translate the digital signal of the computer into an analog signal, and these analog signals can be received by another modem at the other end and translated into a language that the computer can recognize. This simple process completes the communication between the two computers. Among them, in the process of processing the signal, it is often necessary to calculate the modulus of the complex number.
- the signal transmission generally uses a radio frequency carrier to transmit the radio frequency carrier signal. The received radio frequency carrier signal can come from another modem.
- the cosine value and the sine value of the radio frequency carrier signal to be processed and use one of the cosine value and the sine value as a real part and the other as an imaginary part to generate a complex number I+jQ.
- the only parameters that can be changed for the RF carrier signal are cosine, frequency and sine. And sine is related to frequency. Therefore, the cosine and sine in the carrier signal are generally used as the two main modulation variables. Accordingly, the values of cosine and sine in the radio frequency carrier signal are extracted and recorded as complex numbers I+jQ.
- I is the cosine in the radio frequency carrier signal
- Q is the sine in the radio frequency carrier signal
- I is the sine in the radio frequency carrier signal
- Q is the all The cosine in the radio frequency carrier signal is acceptable.
- the complex number I+jQ is correspondingly converted into coordinate points (I, Q) in a rectangular coordinate system, and the coordinate points are rotated by a preset algorithm to obtain the rotated coordinate points (I1, Q1).
- the preset algorithm for rotation processing can be any algorithm, preferably the CORDIC algorithm (Coordinate Rotation Digital Computer), where the CORDIC algorithm is the coordinate rotation digital calculation method, which replaces the multiplication operation by the basic addition and shift operation to make the vector rotation
- the calculation of sum orientation no longer needs functions such as trigonometric function, multiplication, square root, inverse trigonometry, and exponent.
- the CORDIC algorithm has multiple modes, among which the vector mode refers to the mode in which the direction of rotation is determined by judging the positive or negative of the Y axis of the coordinate point. Specifically, the CORDIC algorithm is used to perform rotation processing on the coordinate point (I, Q), so that the angle between the rotated coordinate point and the X axis of the planar rectangular coordinate system is reduced.
- the X axis reading of the coordinate point is the modulus of the complex number I+jQ, that is Wherein, In is the X-axis direction reading of the coordinate point when the angle between the coordinate point and the X-axis approaches 0.
- I+jQ the complex number
- In the X-axis direction reading of the coordinate point when the angle between the coordinate point and the X-axis approaches 0.
- the coordinate point at this time can be used as a basis for approximately calculating the modulus of the complex number I+jQ, and the computer resources consumed are greatly reduced.
- the preset angle is, for example, (0, atan0.3), (0, atan0.25).
- atan is the arctangent function, that is, the inverse function of the tangent function.
- the modulus of the complex number I+jQ is calculated according to the preset modulus formula.
- the preset modulus formula can be any formula, preferably:
- alpha ⁇ max(
- alpha ⁇ max(
- ) can use appropriate parameters alpha, beta, predict
- the parameters alpha and beta are obtained by querying the correspondence between the prestored angle and the parameter.
- the corresponding relationship between the pre-stored angle and the parameter is, for example, (0,A) corresponding to the parameters alpha and beta are a1, b1, respectively, and [A, B) corresponding to the parameters alpha and beta are a2, b2, respectively.
- the setting angle (0, atan0.25) corresponding to alpha and beta are 0.864458929403047 and 0.106419757324935 respectively.
- this embodiment first uses a preset algorithm to perform rotation processing on the coordinate points corresponding to the complex number. After the rotation, if the value of atan(Q1/I1) is within the preset angle range, then the preset modulus formula is used to calculate Find the modulus of the complex number. Therefore, the number of rotations of the CORDIC algorithm is reduced under the premise of ensuring the accuracy of the modulus of the complex number.
- the device includes:
- the continuous rotation unit is configured to continue to use the preset algorithm to perform rotation processing on the coordinate points (I1, Q1) when the value of the atan(Q1/I1) is not within the preset angle range.
- the complex number generating unit 1 includes:
- An absolute value judging subunit for judging whether the absolute value of the cosine value is greater than the absolute value of the sine value
- the first complex number generating subunit is configured to use I as the cosine value in the radio frequency carrier signal and Q as the cosine value in the radio frequency carrier signal when the absolute value of the cosine value is greater than the absolute value of the sine value.
- the second complex number generating subunit is used for when the absolute value of the cosine value is not greater than the absolute value of the sine value, using I as the sine value in the radio frequency carrier signal and Q as the radio frequency carrier signal The sine value of, thereby generating a complex number I+jQ.
- the complex number I+jQ is generated.
- the smaller value of the absolute value of cosine and sine is recorded as Q, and the larger value is recorded as I.
- the initial complex number I+jQ is transformed into the line between the coordinate point and the origin in the rectangular coordinate system, and the angle with the X axis is smaller, thereby reducing the number of rotations of the subsequent CORDIC algorithm.
- sine may be negative, the absolute value is compared.
- the rotation processing unit 2 includes:
- the plane rectangular coordinate establishment subunit is used to establish a plane rectangular coordinate system, with the cosine or the sine as the X axis, the sine or the cosine as the Y axis, and correspondingly transform the complex number I+jQ into the The coordinate point (I, Q) in the plane rectangular coordinate system;
- the rotation processing subunit is used to perform rotation processing on the coordinate point (I, Q) around the origin using the vector mode of the CORDIC algorithm to obtain the rotation coordinate point (I1, Q1) after the rotation processing, wherein the rotation processing
- the single rotation angle of is ⁇ atan 2 -i , and the number of rotations is recorded as i times.
- x i+1 K i [x i -y i ⁇ d i ⁇ 2 -i ]
- Ki cos( ⁇ i)
- i is the number of rotations
- ⁇ i is the angle of rotation during the i-th rotation
- di -sign(yi).
- the computer can use shift operations to perform rotation operations, which eliminates more multiplication operations and saves computing power compared to other rotation angles.
- ⁇ atan 2 -i respectively represent clockwise rotation atan 2 -i degrees and counterclockwise rotation atan 2 -i degrees.
- the CORDIC algorithm has multiple modes, among which the vector mode refers to the mode of determining the direction of rotation by judging the positive or negative of the Y axis of the coordinate point, that is, judging the direction of rotation by the positive or negative of the Q value.
- the rotation processing sub-unit includes:
- the Q value judgment module is used to judge whether the Q value is a positive number
- the first rotation processing module is used for when the Q value is positive, the vector mode of the CORDIC algorithm is used to rotate the coordinate point (I, Q) around the origin by a rotation angle of atan 2 -i to obtain The rotation coordinate point (I1, Q1) after the rotation processing;
- the second rotation processing module is used for when the Q value is not a positive number, the vector mode of the CORDIC algorithm is used to perform rotation processing on the coordinate point (I, Q) around the origin by an angle of -atan 2 -i , Obtain the rotation coordinate point (I1, Q1) after the rotation processing.
- the vector mode using the CORDIC algorithm is implemented to rotate the coordinate point (I, Q) around the origin. If the Q value is positive, the coordinate point (I, Q) should be rotated clockwise, that is, the rotation angle of atan 2 -i should be performed around the origin, so that the coordinate point (I, Q) is close to the X axis; if the Q value is negative, the coordinate point (I, Q) should be rotated counterclockwise, that is, the rotation angle of -atan 2 -i is performed around the origin to make The coordinate point (I, Q) is close to the X axis.
- the complex number modulus calculation unit 4 includes:
- alpha ⁇ max(
- ) is used to calculate the modulus of the complex number. If the value of atan(Q1/I1) is within the preset angle range, it indicates that the values of the parameters alpha and beta can be obtained according to the corresponding relationship between the prestored angle and the parameters, and then the values of the parameters alpha and beta are inserted into the formula
- alpha ⁇ max(
- the complex number modulus calculation unit 4 includes:
- the number of rotations threshold judging subunit is used to determine whether the number of rotations of the rotation processing is greater than the preset number of rotations threshold when the value of atan(Q1/I1) is within the preset angle range;
- the complex modulus calculation subunit is configured to calculate the modulus of the complex number I+jQ according to the preset modulus calculation formula when the rotation number of the rotation processing is greater than a preset rotation number threshold.
- the calculation accuracy of the modulus of the complex number is further improved.
- the more the number of rotations of the preset algorithm such as CORDIC algorithm the higher the precision of the complex number modulus obtained by the subsequent processing. If the number of rotations of the rotation processing is greater than the preset rotation threshold, it indicates that sufficient computing resources have been consumed, and the rotation should not be continued to consume computing resources.
- the preset modulus formula can already be used, for example, the formula:
- alpha ⁇ max(
- the rotation threshold is, for example, 3-10 times.
- the modem-based complex number modulus device of the present application obtains the cosine value and the sine value of the radio frequency carrier signal to be processed, and uses one of the cosine value and the sine value as the real part and the other as the imaginary part.
- the part generates a complex number I+jQ; correspondingly transforms the complex number I+jQ into a coordinate point (I, Q) in a rectangular coordinate system, and uses a preset algorithm to rotate the coordinate point to obtain a rotated coordinate point (I1,Q1); Determine whether the value of atan(Q1/I1) is within the preset angle range; if the value of atan(Q1/I1) is within the preset angle range, calculate the value according to the preset modulus formula The modulus of the complex number I+jQ. Therefore, under the premise of ensuring the accuracy of the modulus of the complex number, the consumption of computational resources is reduced.
- the present application also provides a computer-readable storage medium 10 on which a computer program 11 is stored.
- the computer program 11 is executed by a processor, the modem-based complex number request as described in the above embodiment is implemented.
- the steps of the model method are described in the above embodiment.
- the present application also provides a computer device 20, including a memory 22 and a processor 21, the memory stores a computer program 221, the processor executes the computer program 221 as described in the above embodiment Describe the steps of the modem-based complex number modulus method.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a storage medium, or transmitted from one storage medium to another storage medium.
- the computer instructions may be sent from a website, computer, server, or data center through wired (such as coaxial cable, optical fiber) , Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
- wired such as coaxial cable, optical fiber
- DSL Digital Subscriber Line
- wireless such as infrared, wireless, microwave, etc.
- the storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or data center integrated with one or more available media.
- the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
- Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-rate data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
Abstract
Description
Claims (15)
- 一种基于调制解调器的复数求模方法,其特征在于,包括:A modem-based complex number modulus method, which is characterized in that it includes:获取待处理的射频载波信号的余弦数值和正弦数值,并将所述余弦数值和所述正弦数值中的一个数值作为实部,另一个作为虚部生成复数I+jQ;Obtain the cosine value and the sine value of the radio frequency carrier signal to be processed, and use one of the cosine value and the sine value as a real part and the other as an imaginary part to generate a complex number I+jQ;将所述复数I+jQ对应转化为平面直角坐标系中的坐标点(I,Q),并采用预设算法对所述坐标点进行旋转处理,以得到旋转坐标点(I1,Q1);Correspondingly convert the complex number I+jQ into coordinate points (I, Q) in a rectangular coordinate system, and use a preset algorithm to rotate the coordinate points to obtain a rotated coordinate point (I1, Q1);判断atan(Q1/I1)的值是否处于预设角度范围内;Determine whether the value of atan(Q1/I1) is within the preset angle range;若atan(Q1/I1)的值处于预设角度范围内,则根据预设求模公式计算出所述复数I+jQ的模。If the value of atan(Q1/I1) is within the preset angle range, the modulus of the complex number I+jQ is calculated according to the preset modulus formula.
- 根据权利要求1所述的基于调制解调器的复数求模方法,其特征在于,所述判断atan(Q1/I1)的值是否处于预设角度范围内的步骤之后,包括:The modem-based complex number modulus method according to claim 1, wherein after the step of judging whether the value of atan(Q1/I1) is within a preset angle range, the method comprises:若所述atan(Q1/I1)的值不处于所述预设角度范围中,则继续采用所述预设算法对所述坐标点(I1,Q1)进行旋转处理。If the value of atan(Q1/I1) is not in the preset angle range, then continue to use the preset algorithm to perform rotation processing on the coordinate points (I1, Q1).
- 根据权利要求1所述的基于调制解调器的复数求模方法,其特征在于,所述获取待处理的所述射频载波信号的余弦数值和正弦数值,并将所述余弦数值和所述正弦数值中的一个数值作为实部,另一个作为虚部生成复数I+jQ的步骤,包括:The modem-based complex number modulus method according to claim 1, wherein said obtaining the cosine value and the sine value of the radio frequency carrier signal to be processed, and combining the cosine value and the sine value One value is used as the real part, and the other is used as the imaginary part. The steps to generate a complex number I+jQ include:判断所述余弦数值的绝对值是否大于所述正弦数值的绝对值;Judging whether the absolute value of the cosine value is greater than the absolute value of the sine value;若所述余弦数值的绝对值大于所述正弦数值的绝对值,则将I作为所述射频载波信号中的余弦数值,将Q作为所述射频载波信号中的正弦数值,从而生成复数I+jQ;If the absolute value of the cosine value is greater than the absolute value of the sine value, use I as the cosine value in the radio frequency carrier signal and Q as the sine value in the radio frequency carrier signal, thereby generating a complex number I+jQ ;若所述余弦数值的绝对值不大于所述正弦数值的绝对值,则将I作为所述射频载波信号中的正弦数值,将Q作为所述射频载波信号中的正弦数值,从而生成复数I+jQ。If the absolute value of the cosine value is not greater than the absolute value of the sine value, use I as the sine value in the radio frequency carrier signal and Q as the sine value in the radio frequency carrier signal, thereby generating a complex number I+ jQ.
- 根据权利要求1所述的基于调制解调器的复数求模方法,其特征在于,所述将所述复数I+jQ对应转化为平面直角坐标系中的坐标点(I,Q),并采用预设算法对所述坐标点进行旋转处理,以得到旋转坐标点(I1,Q1)的步骤, 包括:The modem-based complex number modulus method according to claim 1, wherein the said complex number I+jQ is correspondingly transformed into coordinate points (I, Q) in a rectangular coordinate system, and a preset algorithm is used The step of performing rotation processing on the coordinate point to obtain a rotating coordinate point (I1, Q1) includes:建立平面直角坐标系,以所述余弦或者所述正弦作为X轴,所述正弦或者所述余弦作为Y轴,将所述复数I+jQ对应转化为所述平面直角坐标系中的坐标点(I,Q);Establish a plane rectangular coordinate system, take the cosine or the sine as the X axis, and the sine or the cosine as the Y axis, and transform the complex number I+jQ into coordinate points in the plane rectangular coordinate system ( I,Q);采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1),其中所述旋转处理的单次旋转角度为±atan 2 -i,其中进行旋转的次数记为i次。 The vector mode of the CORDIC algorithm is used to rotate the coordinate point (I, Q) around the origin to obtain the rotated coordinate point (I1, Q1) after the rotation processing, wherein the single rotation angle of the rotation processing is ± atan 2 -i , where the number of rotations is recorded as i times.
- 根据权利要求4所述的基于调制解调器的复数求模方法,其特征在于,所述采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1),其中所述旋转处理的单次旋转角度为±atan 2 -i的步骤,包括: The modem-based complex modulus method according to claim 4, wherein the vector mode of the CORDIC algorithm is used to rotate the coordinate point (I, Q) around the origin to obtain the rotated The step of rotating the coordinate point (I1, Q1), wherein the single rotation angle of the rotation processing is ±atan 2 -i , includes:判断所述Q值是否为正数;Determine whether the Q value is a positive number;若是,则采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转角度为atan 2 -i的旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1); If yes, use the vector mode of the CORDIC algorithm to perform rotation processing on the coordinate point (I, Q) around the origin with a rotation angle of atan 2 -i to obtain the rotated coordinate point (I1, Q1) after the rotation processing;若否,则采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转角度为-atan 2 -i的旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1)。 If not, use the vector mode of the CORDIC algorithm to rotate the coordinate point (I, Q) around the origin with a rotation angle of -atan 2 -i to obtain the rotated coordinate point (I1, Q1) after the rotation process .
- 根据权利要求1所述的基于调制解调器的复数求模方法,其特征在于,所述若atan(Q1/I1)的值处于预设角度范围内,则根据预设求模公式计算出所述复数I+jQ的模处于预设角度范围内的步骤,包括:The modem-based complex number modulus method according to claim 1, wherein if the value of atan(Q1/I1) is within a preset angle range, the complex number I is calculated according to a preset modulus formula. The steps for +jQ's modulus to be within the preset angle range include:若atan(Q1/I1)的值处于预设角度范围内,则采用公式:|I+jQ|=alpha×max(|I1|,|Q1|)+beta×min(|I1|,|Q1|),计算出所述复数的模,其中,|I+jQ|为复数I+jQ的模,参数alpha、beta通过查询预存的角度与参数对应关系获得。If the value of atan(Q1/I1) is within the preset angle range, use the formula: |I+jQ|=alpha×max(|I1|,|Q1|)+beta×min(|I1|,|Q1| ), calculate the modulus of the complex number, where |I+jQ| is the modulus of the complex number I+jQ, and the parameters alpha and beta are obtained by querying the prestored angle and parameter correspondence.
- 根据权利要求1所述的基于调制解调器的复数求模方法,其特征在于,所述若atan(Q1/I1)的值处于预设角度范围内,则根据预设求模公式计算出所述复数I+jQ的模处于预设角度范围内的步骤,包括:The modem-based complex number modulus method according to claim 1, wherein if the value of atan(Q1/I1) is within a preset angle range, the complex number I is calculated according to a preset modulus formula. The steps for +jQ's modulus to be within the preset angle range include:若atan(Q1/I1)的值处于预设角度范围内,则判断所述旋转处理的旋转次数是否大于预设的旋转次数阈值;If the value of atan(Q1/I1) is within the preset angle range, it is determined whether the number of rotations of the rotation processing is greater than the preset threshold of the number of rotations;若是,则根据所述预设求模公式计算出所述复数I+jQ的模。If yes, the modulus of the complex number I+jQ is calculated according to the preset modulus formula.
- 一种基于调制解调器的复数求模装置,其特征在于,包括:A modem-based complex number modulus device, characterized in that it comprises:复数生成单元,用于获取待处理的射频载波信号的余弦数值和正弦数值,并将所述余弦数值和所述正弦数值中的一个数值作为实部,另一个作为虚部生成复数I+jQ;A complex number generating unit, configured to obtain the cosine value and the sine value of the radio frequency carrier signal to be processed, and use one of the cosine value and the sine value as the real part, and the other as the imaginary part to generate the complex number I+jQ;旋转处理单元,用于将所述复数I+jQ对应转化为平面直角坐标系中的坐标点(I,Q),并采用预设算法对所述坐标点进行旋转处理,以得到旋转坐标点(I1,Q1);The rotation processing unit is used to convert the complex number I+jQ into coordinate points (I, Q) in a rectangular coordinate system, and use a preset algorithm to rotate the coordinate points to obtain a rotating coordinate point ( I1,Q1);预设角度范围判断单元,判断atan(Q1/I1)的值是否处于预设角度范围内;The preset angle range judgment unit judges whether the value of atan (Q1/I1) is within the preset angle range;复数的模计算单元,用于当atan(Q1/I1)的值处于预设角度范围内时,根据预设求模公式计算出所述复数I+jQ的模。The complex modulus calculation unit is configured to calculate the modulus of the complex number I+jQ according to the preset modulus formula when the value of atan(Q1/I1) is within the preset angle range.
- 根据权利要求8所述的基于调制解调器的复数求模装置,其特征在于,所述装置,包括:The modem-based complex number modulus device according to claim 8, wherein the device comprises:继续旋转单元,用于当所述atan(Q1/I1)的值不处于预设角度范围内时,继续采用所述预设算法对所述坐标点(I1,Q1)进行旋转处理。The continuous rotation unit is configured to continue to use the preset algorithm to perform rotation processing on the coordinate points (I1, Q1) when the value of the atan(Q1/I1) is not within the preset angle range.
- 根据权利要求8所述的基于调制解调器的复数求模装置,其特征在于,所述复数生成单元,包括:The modem-based complex number modulus device according to claim 8, wherein the complex number generating unit comprises:绝对值判断子单元,用于判断所述余弦数值的绝对值是否大于所述正弦数值的绝对值;An absolute value judging subunit for judging whether the absolute value of the cosine value is greater than the absolute value of the sine value;第一复数生成子单元,用于当所述余弦数值的绝对值大于所述正弦数值的绝对值时,则将I作为所述射频载波信号中的余弦数值,并将Q作为所述射频载波信号中的正弦数值,从而生成复数I+jQ;The first complex number generating subunit is configured to use I as the cosine value in the radio frequency carrier signal and Q as the radio frequency carrier signal when the absolute value of the cosine value is greater than the absolute value of the sine value The sine value in, thereby generating a complex number I+jQ;第二复数生成子单元,用于当所述余弦数值的绝对值不大于所述正弦数值的绝对值时,则将I作为所述射频载波信号中的正弦数值,并将Q作为所述射频载波信号中的正弦数值,从而生成复数I+jQ。The second complex number generating subunit is configured to use I as the sine value in the radio frequency carrier signal and Q as the radio frequency carrier when the absolute value of the cosine value is not greater than the absolute value of the sine value The sine value in the signal, which generates the complex number I+jQ.
- 根据权利要求8所述的基于调制解调器的复数求模装置,其特征在于,所述旋转处理单元,包括:8. The modem-based complex modulus device according to claim 8, wherein the rotation processing unit comprises:平面直角坐标建立子单元,用于建立平面直角坐标系,以所述余弦或者所 述正弦作为X轴,所述正弦或者所述余弦作为Y轴,将所述复数I+jQ对应转化为所述平面直角坐标系中的坐标点(I,Q);The plane rectangular coordinate establishment subunit is used to establish a plane rectangular coordinate system, using the cosine or the sine as the X axis, the sine or the cosine as the Y axis, and correspondingly transforming the complex number I+jQ into the The coordinate point (I, Q) in the plane rectangular coordinate system;旋转处理子单元,用于采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1),其中所述旋转处理的单次旋转角度为±atan 2 -i,其中进行旋转的次数记为i次。 The rotation processing subunit is used to perform rotation processing on the coordinate point (I, Q) around the origin using the vector mode of the CORDIC algorithm to obtain the rotation coordinate point (I1, Q1) after the rotation processing, wherein the rotation processing The single rotation angle of is ±atan 2 -i , and the number of rotations is recorded as i times.
- 根据权利要求11所述的基于调制解调器的复数求模装置,其特征在于,所述旋转处理子单元,包括:11. The modem-based complex modulus device according to claim 11, wherein the rotation processing sub-unit comprises:Q值判断模块,用于判断所述Q值是否为正数;The Q value judgment module is used to judge whether the Q value is a positive number;第一旋转处理模块,用于当所述Q值为正数时,则采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转角度为atan 2 -i的旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1); The first rotation processing module is used for when the Q value is positive, the vector mode of the CORDIC algorithm is used to rotate the coordinate point (I, Q) around the origin by a rotation angle of atan 2 -i to obtain The rotation coordinate point (I1, Q1) after the rotation processing;第二旋转处理模块,用于当所述Q值不为正数时,则采用CORDIC算法的矢量模式对所述坐标点(I,Q)绕原点进行旋转角度为-atan 2 -i的旋转处理,获得旋转处理后的所述旋转坐标点(I1,Q1)。 The second rotation processing module is used for when the Q value is not a positive number, the vector mode of the CORDIC algorithm is used to perform rotation processing on the coordinate point (I, Q) around the origin by an angle of -atan 2 -i , Obtain the rotation coordinate point (I1, Q1) after the rotation processing.
- 根据权利要求8所述的基于调制解调器的复数求模装置,其特征在于,所述复数的模计算单元,包括:The modem-based complex number modulus device according to claim 8, wherein the complex number modulus calculation unit comprises:复数的模计算子单元,用于当atan(Q1/I1)的值处于预设角度范围内时,则采用公式:|I+jQ|=alpha×max(|I1|,|Q1|)+beta×min(|I1|,|Q1|),计算出所述复数的模,其中,|I+jQ|为复数I+jQ的模,参数alpha、beta通过查询预存的角度与参数对应关系获得。Complex number modulus calculation subunit, used when the value of atan(Q1/I1) is within the preset angle range, the formula is used: |I+jQ|=alpha×max(|I1|,|Q1|)+beta ×min(|I1|,|Q1|), calculate the modulus of the complex number, where |I+jQ| is the modulus of the complex number I+jQ, and the parameters alpha and beta are obtained by querying the prestored angle and parameter correspondence.
- 根据权利要求8所述的基于调制解调器的复数求模装置,其特征在于,所述复数的模计算单元,包括:The modem-based complex number modulus device according to claim 8, wherein the complex number modulus calculation unit comprises:旋转次数阈值判断子单元,用于当atan(Q1/I1)的值处于预设角度范围内时,则判断所述旋转处理的旋转次数是否大于预设的旋转次数阈值;The number of rotations threshold judging subunit is used to determine whether the number of rotations of the rotation processing is greater than the preset number of rotations threshold when the value of atan(Q1/I1) is within the preset angle range;复数的模计算子单元,用于当所述旋转处理的旋转次数大于预设的旋转次数阈值时,则根据所述预设求模公式计算出所述复数I+jQ的模。The complex modulus calculation subunit is configured to calculate the modulus of the complex number I+jQ according to the preset modulus calculation formula when the rotation number of the rotation processing is greater than a preset rotation number threshold.
- 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程 序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7中任一项所述的基于调制解调器的复数求模方法的步骤。A computer device, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the modem-based method according to any one of claims 1 to 7 when the computer program is executed. Steps of complex number modulus method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910104578.4 | 2019-02-01 | ||
CN201910104578.4A CN109918047A (en) | 2019-02-01 | 2019-02-01 | Plural modulus method and apparatus based on modem |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020155224A1 true WO2020155224A1 (en) | 2020-08-06 |
Family
ID=66961312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/075687 WO2020155224A1 (en) | 2019-02-01 | 2019-02-21 | Method and device for calculating modulus of complex number based on modem |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109918047A (en) |
WO (1) | WO2020155224A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1375150A (en) * | 1998-12-10 | 2002-10-16 | 艾利森公司 | QAM modulator for radio communications |
US20030165203A1 (en) * | 2001-08-10 | 2003-09-04 | Rishi Mohindra | Quadrature gain and phase imbalance correction in a receiver |
CN101938253A (en) * | 2009-06-30 | 2011-01-05 | 瑞昱半导体股份有限公司 | Carrier reconstructing device and method |
CN105426340A (en) * | 2015-11-10 | 2016-03-23 | 江苏商贸职业学院 | Polar-harmonic sine and cosine transformation algorithm |
CN107347044A (en) * | 2017-07-19 | 2017-11-14 | 上海航天测控通信研究所 | Multi-carrier modulation demodulation method in a kind of VDES systems |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19950577C2 (en) * | 1999-10-20 | 2002-08-22 | Siemens Ag | Complex CORDIC procedure for signal processing tasks as well as radio communication system for the implementation of the procedure |
CN1965292A (en) * | 2004-06-04 | 2007-05-16 | Lm爱立信电话有限公司 | Complex logarithmic ALU |
CN103150137A (en) * | 2013-03-01 | 2013-06-12 | 北京理工大学 | Implementation method of single-precision floating point trigonometric function covering full circumferential angle |
GB2537371B (en) * | 2015-04-13 | 2019-10-02 | Imagination Tech Ltd | Modulo calculation using polynomials |
-
2019
- 2019-02-01 CN CN201910104578.4A patent/CN109918047A/en active Pending
- 2019-02-21 WO PCT/CN2019/075687 patent/WO2020155224A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1375150A (en) * | 1998-12-10 | 2002-10-16 | 艾利森公司 | QAM modulator for radio communications |
US20030165203A1 (en) * | 2001-08-10 | 2003-09-04 | Rishi Mohindra | Quadrature gain and phase imbalance correction in a receiver |
CN101938253A (en) * | 2009-06-30 | 2011-01-05 | 瑞昱半导体股份有限公司 | Carrier reconstructing device and method |
CN105426340A (en) * | 2015-11-10 | 2016-03-23 | 江苏商贸职业学院 | Polar-harmonic sine and cosine transformation algorithm |
CN107347044A (en) * | 2017-07-19 | 2017-11-14 | 上海航天测控通信研究所 | Multi-carrier modulation demodulation method in a kind of VDES systems |
Also Published As
Publication number | Publication date |
---|---|
CN109918047A (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019128567A1 (en) | Data auditing method and device | |
US20210256537A1 (en) | Methods, apparatuses, devices, and systems for asset transfer | |
WO2020119264A1 (en) | Block chain-based screen recording evidence collection method and system, and electronic device | |
WO2020119271A1 (en) | Block chain-based screen recording evidence obtaining method, system, and electronic device | |
CN112508200B (en) | Method, apparatus, device, medium, and program for processing machine learning model file | |
WO2022100028A1 (en) | Interface traffic anomaly detection method and apparatus, terminal device, and storage medium | |
WO2023005164A1 (en) | Face key point detection method and apparatus, device, and computer-readable storage medium | |
CN112818387B (en) | Method, apparatus, storage medium and program product for model parameter adjustment | |
WO2023197955A1 (en) | Signal processing method and apparatus, electronic device, and medium | |
WO2020155224A1 (en) | Method and device for calculating modulus of complex number based on modem | |
WO2021012563A1 (en) | File encryption management method and system, and computer readable storage medium | |
CN112149141B (en) | Model training method, device, equipment and medium | |
CN113610709B (en) | Model quantization method, apparatus, electronic device, and computer-readable storage medium | |
WO2020042938A1 (en) | Clustering-based frequency deviation determination and elimination method and device, and electronic apparatus | |
CN112732468B (en) | Data processing method, data interaction system and computing equipment | |
WO2022057545A1 (en) | File transfer method and apparatus, electronic device and computer-readable medium | |
CN117633835A (en) | Data processing method, device, equipment and storage medium | |
CN115859749B (en) | Constraint building method and device of three-dimensional model, electronic equipment and storage medium | |
WO2020119477A1 (en) | Identity authentication method employing blockchain, and terminal apparatus | |
CN111951349A (en) | Method and device for adjusting graph vertex type and electronic equipment | |
CN115659110A (en) | Trigonometric function calculation method, device, equipment and storage medium | |
CN114398678A (en) | Registration verification method and device for preventing electronic file from being tampered, electronic equipment and medium | |
US10904003B2 (en) | Validation of short authentication data with a zero knowledge proof | |
Atkinson et al. | Multivariate quadrature of a singular integrand | |
WO2020094023A1 (en) | Road thinning algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19912653 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19912653 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.01.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19912653 Country of ref document: EP Kind code of ref document: A1 |