A spectrum processing method, system, electronic device and storage medium
By determining the first frequency band and its corresponding first spectrum resolution based on user operation information, the problem that the signal frequency is not an integer multiple cannot be accurately analyzed in the prior art, and the accurate analysis of arbitrary frequency signals is achieved.
Patent Information
- Application Number
- CN202011019940.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2040-09-24
AI Technical Summary
In the prior art, when the signal frequency to be analyzed is not an integer multiple of the spectrum resolution, the signal to be analyzed cannot be accurately determined from the frequency band.
By receiving the user's operation information on the preset frequency band, the first frequency band is determined, and the first spectrum resolution corresponding to the first frequency band is determined based on the correspondence between the bandwidth of the frequency band and the preset bandwidth and the spectrum resolution, the first frequency band is displayed.
Based on user operation information, it is possible to display the frequency band at a first spectrum resolution different from the preset spectrum resolution, thereby accurately determining the signal to be analyzed even if the signal frequency is not an integer multiple of the preset spectrum resolution.
Smart Images

Figure CN114252698B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of radio, and in particular to a spectrum processing method, system, electronic device and storage medium. Background Art
[0002] In the prior art, a frequency band with a larger bandwidth corresponds to a larger spectral resolution. When a signal in the frequency band needs to be analyzed, if the signal frequency of the signal to be analyzed is not an integer multiple of the spectral resolution, the signal to be analyzed cannot be accurately determined from the frequency band. Summary of the invention
[0003] In order to solve the technical problem that when the signal frequency of the signal to be analyzed is not an integer multiple of the spectrum resolution, the signal to be analyzed cannot be accurately determined from the frequency band, the present application provides a spectrum processing method, system, electronic device and storage medium.
[0004] In a first aspect, a spectrum processing method is provided, comprising:
[0005] Receive user operation information on preset frequency bands;
[0006] In response to the operation information, determining a first frequency band, where the first frequency band is included in the preset frequency band;
[0007] Determine a first spectrum resolution corresponding to the first frequency band according to a predetermined rule, wherein the first spectrum resolution is different from a preset spectrum resolution corresponding to a preset frequency band;
[0008] Controlling display of the first frequency band according to the first spectrum resolution.
[0009] Optionally, determining a first spectrum resolution corresponding to the first frequency band according to a predetermined rule includes:
[0010] The first spectrum resolution corresponding to the first frequency band is determined according to the bandwidth of the first frequency band and a correspondence between a preset bandwidth and a spectrum resolution.
[0011] Optionally, the receiving operation information of the user on the preset frequency band includes:
[0012] Acquire a first parameter input by the user in the first input module and a second parameter input by the user in the second input module, wherein the first parameter corresponds to a starting frequency value of the first frequency band, and the second parameter corresponds to an ending frequency value of the first frequency band;
[0013] In response to the operation information, determining a first frequency band includes:
[0014] The first frequency band is determined using the first parameter and the second parameter.
[0015] Optionally, before receiving the user's operation information on the preset frequency band, the method further includes:
[0016] Controlling the display of the preset frequency band;
[0017] The operation information includes:
[0018] The user performs a selection operation on the first frequency band in the displayed preset frequency bands.
[0019] Optionally, the determining the first frequency band in response to the operation information includes:
[0020] Determine a first frequency value and a second frequency value based on the selection operation, the first frequency value and the second frequency value being frequency values in the preset frequency band;
[0021] The first frequency band is determined using the first frequency value and the second frequency value.
[0022] Optionally, determining the first frequency value and the second frequency value based on the selected operation includes:
[0023] Determining a first data point and a second data point from a plurality of data points based on the selection operation, wherein the plurality of data points are obtained by dividing the number of pre-sampled points in the preset frequency band by using the preset spectrum resolution;
[0024] The first frequency value and the second frequency value are determined using the first data point, the second data point, and the preset spectrum resolution.
[0025] Optionally, before displaying the first frequency band according to the first spectrum resolution, the method further includes:
[0026] The sampling rate corresponding to the first frequency band is updated using the first spectrum resolution.
[0027] In a second aspect, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein:
[0028] Memory, used to store computer programs;
[0029] A processor is used to execute the method steps described in any one of the first aspects by running a program stored in a memory.
[0030] In a third aspect, a spectrum processing system is provided, comprising:
[0031] a controller, an electronic device in communication with said controller;
[0032] The controller is used to execute the method described in any one of the first aspects;
[0033] The electronic device is used to generate operation information based on user operations and send the operation information to the controller; based on the control of the controller, display the first frequency band with a first spectrum resolution.
[0034] According to a fourth aspect, a storage medium is provided, characterized in that the storage medium includes a stored program, wherein the program executes the method steps described in any one of the first aspects when running.
[0035] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0036] The technical solution provided in the embodiment of the present application is that since the first spectral resolution corresponds to the bandwidth of the first frequency band, when the bandwidth of the first frequency band changes, the determined first spectral resolution is also different, and thus for a signal of any frequency in the preset frequency band, it can be displayed with the first spectral resolution that is different from the preset spectral resolution through the user's operation information. Therefore, even if the signal frequency of the signal to be analyzed is not an integer multiple of the preset spectral resolution, the first spectral resolution can be used to accurately determine the signal to be analyzed from the preset frequency band. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 A schematic diagram of a flow chart of a spectrum processing method provided in an embodiment of the present application;
[0040] Figure 2 Another schematic diagram of a spectrum processing method provided in an embodiment of the present application;
[0041] Figure 3 Another schematic diagram of a spectrum processing method provided in an embodiment of the present application;
[0042] Figure 4 Another schematic diagram of a spectrum processing method provided in an embodiment of the present application;
[0043] Figure 5 A schematic diagram of the structure of a spectrum processing system provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0046] The present application embodiment provides a spectrum processing method, such as Figure 1 As shown, the method may at least include the following steps:
[0047] Step 101: Receive user operation information on a preset frequency band.
[0048] In the embodiment of the present application, the user's operation information on the preset frequency band includes two categories, one is the user's selection operation, and the other is the user's input operation.
[0049] When the user's operation information on the preset frequency band is a selection operation of the user, before receiving the user's operation information on the preset frequency band, the preset frequency band is controlled to be displayed on the electronic device so that the user can select the displayed preset frequency band.
[0050] In actual applications, when a user performs a selection operation from the displayed preset frequency bands, the selection operation may be completed by completely selecting the input device, or by clicking the input device.
[0051] It is understandable that the input device may be a mouse or a stylus pen, etc., which is not limited in this embodiment.
[0052] When the user's operation information on the preset frequency band is an input operation of the user, the user may input parameters in an input module of the electronic device.
[0053] Step 102: In response to the operation information, determine a first frequency band, where the first frequency band is included in a preset frequency band.
[0054] When the user's operation information on the preset frequency band is completed in a manner that the user completes the operation information by using an input device to fully select the frequency band, the first frequency band determined in response to the operation information is the first frequency band fully selected by the user through the input device.
[0055] When the user's operation information on the preset frequency band is completed by the user by clicking on the input device, the first frequency band determined in response to the operation information is the frequency band between the first frequency value and the second frequency value, wherein the first frequency value and the second frequency value are obtained by the user clicking on the preset frequency band by the input device.
[0056] In actual applications, when the user determines the first frequency value and the second frequency value by clicking the selection operation of the input device, such as Figure 2 As shown, the following steps may be specifically included:
[0057] Step 201: determining a first data point and a second data point from a plurality of data points based on a selection operation, wherein the plurality of data points are obtained by dividing a number of pre-sampled points in a preset frequency band by using a preset spectrum resolution;
[0058] Step 202: Determine a first frequency value and a second frequency value using the first data point, the second data point and a preset spectrum resolution.
[0059] The following takes the preset frequency band of 30MHz to 3GHz, the preset spectrum resolution of 6.25KHz, the sampling rate of 102.4M, and the number of pre-sampling points of 16384 as an example to illustrate the implementation of determining the first frequency value and the second frequency value by the user through the selection operation of clicking the input device:
[0060] First determine multiple data points:
[0061]
[0062] Where N is the number of data points.
[0063] After the number of data points is obtained, the data points may be numbered, and the numbered data points may be displayed on an electronic device.
[0064] Assuming that the first data point selected by the user is numbered 100000 and the second data point is numbered 103200, the determined first frequency value is 100000*6.25=655MHz, and the determined second frequency value is 103200*6.25=675MHz. Correspondingly, the first frequency band is the frequency band corresponding to the bandwidth of 655MHz to 675MHz.
[0065] When the user's operation information for the preset frequency band is the user's input operation, in response to the operation information, the user can input a first parameter in the first input module, input a second parameter in the second input module, and use the frequency band between the first parameter and the second parameter as the first frequency band, the first parameter corresponds to the starting frequency value of the first frequency band, and the second parameter corresponds to the ending frequency value of the first frequency band.
[0066] Step 103: Determine a first spectrum resolution corresponding to the first frequency band according to a predetermined rule, where the first spectrum resolution is different from a preset spectrum resolution corresponding to the preset frequency band.
[0067] Step 104: Control to display the first frequency band according to the first spectrum resolution.
[0068] It is understandable that when the electronic device displays the first frequency band according to the first spectrum resolution, the frequency bands other than the first frequency band in the preset frequency bands are still displayed according to the preset resolution.
[0069] The technical solution provided in the embodiment of the present application is that since the first spectral resolution corresponds to the bandwidth of the first frequency band, when the bandwidth of the first frequency band changes, the determined first spectral resolution is also different, and thus for a signal of any frequency in the preset frequency band, it can be displayed with the first spectral resolution that is different from the preset spectral resolution through the user's operation information. Therefore, even if the signal frequency of the signal to be analyzed is not an integer multiple of the preset spectral resolution, the first spectral resolution can be used to accurately determine the signal to be analyzed from the preset frequency band.
[0070] In another embodiment of the present application, step 103 may include:
[0071] A first spectrum resolution corresponding to the first frequency band is determined according to the bandwidth of the first frequency band and a correspondence between a preset bandwidth and a spectrum resolution.
[0072] In the embodiment of the present application, the first spectrum resolution determined is different according to the different bandwidths of the first frequency band.
[0073] In practical applications, since the bandwidth of the first frequency band is smaller than the bandwidth of the preset frequency band, the resolution of the first spectrum is greater than the resolution of the preset spectrum.
[0074] In the embodiment of the present application, the corresponding relationship between the bandwidth and the spectrum resolution can be preset. After the first frequency band is determined, the first spectrum resolution corresponding to the first frequency band is determined based on the bandwidth of the first frequency band and the corresponding relationship.
[0075] Exemplarily, the correspondence between the bandwidth and the spectrum resolution pre-set in the embodiment of the present application may be:
[0076] When the bandwidth is 60M, the spectrum resolution is 3.725KHz; when the bandwidth changes by a certain multiple based on 60M, the spectrum resolution changes by the same multiple.
[0077] It should be noted that the bandwidth and the spectrum resolution in the above corresponding relationship in the embodiment of the present application can be determined according to actual conditions, and the above examples are only optional implementation modes of the present invention.
[0078] Based on the specific implementation of the above step 103, Figure 3 As shown, the embodiment of the present application provides a spectrum processing method, including:
[0079] Step 301, receiving user operation information on a preset frequency band;
[0080] Step 302, in response to the operation information, determining a first frequency band, the first frequency band being included in a preset frequency band;
[0081] Step 303: Determine a first spectrum resolution corresponding to the first frequency band according to the bandwidth of the first frequency band and a correspondence between a preset bandwidth and a spectrum resolution;
[0082] Step 304: Control the display of the first frequency band according to the first spectrum resolution.
[0083] In another embodiment of the present application, when the user's operation information is the user's input in the first input module and the second input module, such as Figure 4 As shown, the spectrum processing method may include the following steps:
[0084] Step 401: obtaining a first parameter input by a user in a first input module and a second parameter input by a user in a second input module, wherein the first parameter corresponds to a starting frequency value of a first frequency band, and the second parameter corresponds to an ending frequency value of the first frequency band;
[0085] Step 402: Determine a first frequency band using the first parameter and the second parameter;
[0086] Step 403: Determine a first spectrum resolution corresponding to the first frequency band according to the bandwidth of the first frequency band and a correspondence between a preset bandwidth and a spectrum resolution;
[0087] Step 404: Control to display the first frequency band according to the first spectrum resolution.
[0088] In yet another embodiment of the present application, before displaying the first frequency band according to the first spectrum resolution, the sampling rate corresponding to the preset frequency band may be updated using the first spectrum resolution.
[0089] Since the sampling rate is proportional to the resolution when the number of pre-sampling points is constant, after determining the first spectrum resolution, the sampling rate corresponding to the preset frequency band can be updated by using the proportional relationship between the sampling rate and the resolution.
[0090] Specifically:
[0091] The updated sampling rate = the first spectrum resolution / the preset spectrum resolution * the sampling rate before the update.
[0092] Based on the same inventive concept, the embodiment of the present application also provides a spectrum processing system, such as Figure 5 As shown, including:
[0093] A controller 501, an electronic device 502 communicating with the controller 501;
[0094] The controller 501 is used to execute the spectrum processing method in the above embodiment of the claims;
[0095] The electronic device 502 is used to generate operation information based on the user's operation and send the operation information to the controller 501; based on the control of the controller 501, display the first frequency band with the first spectrum resolution.
[0096] The present application also provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0097] Memory 603, used for storing computer programs;
[0098] The processor 601 is configured to implement the spectrum processing method in the above embodiment when executing the program stored in the memory 603 .
[0099] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0100] The communication interface is used for communication between the above terminal and other devices.
[0101] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0102] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0103] In another embodiment provided in the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the spectrum processing method described in any one of the above embodiments.
[0104] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0105] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
[0106] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A spectrum processing method, characterized in that: include: Receive user operation information on preset frequency bands; In response to the operation information, determining a first frequency band, where the first frequency band is included in a preset frequency band, includes: When the user's operation information on the preset frequency band is completed by the user through clicking of an input device, the first frequency band determined in response to the operation information is a frequency band between a first frequency value and a second frequency value, wherein the first frequency value and the second frequency value are obtained by the user clicking the preset frequency band through the input device; When the user determines the first frequency value and the second frequency value by clicking a selection operation on an input device, the following steps are included: Determining a first data point and a second data point from a plurality of data points based on the selection operation, wherein the plurality of data points are obtained by dividing a number of pre-sampled points in a preset frequency band using a preset spectrum resolution; Determine a first frequency value and a second frequency value using the first data point, the second data point and a preset spectrum resolution; When the user's operation information on the preset frequency band is an input operation of the user, in response to the operation information, the user inputs a first parameter in the first input module, inputs a second parameter in the second input module, and uses the frequency band between the first parameter and the second parameter as the first frequency band, the first parameter corresponds to the starting frequency value of the first frequency band, and the second parameter corresponds to the ending frequency value of the first frequency band; Determine a first spectrum resolution corresponding to the first frequency band according to a predetermined rule, the first spectrum resolution being different from a preset spectrum resolution corresponding to the preset frequency band; Determining a first spectrum resolution corresponding to the first frequency band according to the bandwidth of the first frequency band and a correspondence between a preset bandwidth and a spectrum resolution; Controlling display of a first frequency band according to a first spectrum resolution; Before receiving the user's operation information on the preset frequency band, the method further includes: Controlling the display of the preset frequency band.
2. The spectrum processing method according to claim 1, characterized in that: Before displaying the first frequency band according to the first spectrum resolution, the method further includes: The sampling rate corresponding to the first frequency band is updated using the first spectrum resolution.
3. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the steps of the spectrum processing method according to any one of claims 1 to 2 by running a program stored in a memory.
4. A spectrum processing system, characterized in that: include: a controller, an electronic device in communication with said controller; The controller is used to execute the spectrum processing method according to any one of claims 1 to 2; The electronic device is used to generate operation information based on the user's operation and send the operation information to the controller; Based on the control of the controller, a first frequency band is displayed at a first spectrum resolution.
5. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the steps of the spectrum processing method described in any one of claims 1 to 2 when running.
Citation Information
Patent Citations
Engineering vehicle vibration signal frequency spectrum zooming method
CN108334685A