Method, device, equipment and medium for identifying calling number identification signal
By dynamically calculating the signal energy threshold and judging the frequency domain characteristics, the problems of false start and missed synchronization caused by fixed energy threshold are solved, and the recognition accuracy and robustness of the caller number recognition signal are improved.
Patent Information
- Application Number
- CN202211012560.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-08-23
AI Technical Summary
The existing caller number identification signal recognition method has low robustness and accuracy due to the inappropriate setting of the fixed energy threshold, which leads to false start or missed synchronization.
By obtaining the energy and value of the sampling signal based on the preset sampling frequency, dynamically calculating the signal energy threshold, and combining the frequency domain feature judgment, the calling number signal can be recognized.
The accuracy and robustness of the caller number identification signal are improved in different signal-to-noise ratio environments, and the probability of false starts and missed synchronization is reduced.
Smart Images

Figure CN115379050B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a method, device, equipment and medium for identifying a calling number identification signal. Background Art
[0002] Caller ID recognition is a critical function in telephone communications. However, with the phasing out of production of mainstream chips for caller ID recognition, software is now the primary method for demodulating the caller ID information contained in the caller ID signal. The stability and reliability of signal capture are crucial for accurate demodulation of the caller ID information and are a prerequisite for achieving this goal.
[0003] Currently, existing methods for identifying caller ID signals typically employ a fixed energy threshold based on empirically determined values. Specifically, a threshold is set based on scenario experience, and the received signal's energy is compared with the threshold to determine whether the signal has arrived normally, thereby enabling identification of the caller ID signal. However, due to the inevitable occurrence of sudden interference and incoming call ringing signals on the channel, the existing technology employs a fixed energy threshold. If the fixed energy threshold is set too low, false signals can be easily captured, resulting in a false start. If the fixed energy threshold is set too high, the correct signal can be missed, resulting in missed synchronization. Consequently, existing methods for identifying caller ID signals suffer from poor robustness and low accuracy. Summary of the Invention
[0004] The present invention provides a method, device, equipment and medium for identifying a calling number identification signal, which can improve the accuracy and robustness of the identification of the calling number identification signal.
[0005] According to one aspect of the present invention, a method for identifying a calling number identification signal is provided, comprising:
[0006] Sampling the received signal based on a preset sampling frequency to obtain a first preset number of sampled signals, and obtaining a second preset number of energy and values corresponding to each of the sampled signals;
[0007] Obtaining a signal energy threshold corresponding to each of the sampled signals according to a second preset amount of energy sum values corresponding to each of the sampled signals;
[0008] When it is detected that the energy and value of the second preset amount are both greater than the signal energy threshold, the received signal is obtained as a calling number identification signal.
[0009] According to another aspect of the present invention, there is provided a device for identifying a calling number identification signal, comprising:
[0010] a sampling signal acquisition module, configured to sample the received signal based on a preset sampling frequency, obtain a first preset number of sampling signals, and obtain a second preset number of energy and values corresponding to each of the sampling signals;
[0011] a signal energy threshold acquisition module, configured to acquire a signal energy threshold corresponding to each sampled signal according to a second preset amount of energy sum value corresponding to each sampled signal;
[0012] The calling number identification signal acquisition module is configured to acquire the received signal as a calling number identification signal when it is detected that the energy and value of the second preset amount are both greater than the signal energy threshold.
[0013] According to another aspect of the present invention, an electronic device is provided, comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for identifying a calling number identification signal according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for identifying a calling number identification signal according to any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention is to obtain a first preset number of sampling signals by sampling the received signal based on a preset sampling frequency, and obtain a second preset number of energy sum values corresponding to each sampling signal; and then obtain the signal energy threshold corresponding to each sampling signal based on the second preset number of energy sum values corresponding to each sampling signal; when it is detected that the second preset number of energy sum values are all greater than the signal energy threshold, the received signal is obtained as a calling number identification signal, and by sampling the received signal and obtaining the corresponding signal energy threshold based on the energy sum value corresponding to each sampling signal, and then identifying the calling number identification signal based on the signal energy threshold, the problem of false start or missed synchronization caused by inappropriate setting of the fixed energy threshold can be avoided, and the accuracy and robustness of the identification of the calling number identification signal can be improved.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 This is a flow chart of a method for identifying a calling number identification signal according to Embodiment 1 of the present invention;
[0022] Figure 2A This is a flow chart of a method for identifying a calling number identification signal according to a second embodiment of the present invention;
[0023] Figure 2B 2 is a schematic diagram of the recognition effect of the calling number identification signal under a 0dB signal-to-noise ratio according to the second embodiment of the present invention;
[0024] Figure 2C 2 is a schematic diagram showing the recognition effect of a calling number identification signal at a 5dB signal-to-noise ratio according to the second embodiment of the present invention;
[0025] Figure 2D 1 is a schematic diagram of the recognition effect of the calling number recognition signal at a signal-to-noise ratio of 10 dB according to the second embodiment of the present invention;
[0026] Figure 2E 15dB signal-to-noise ratio according to the second embodiment of the present invention;
[0027] Figure 2F 2. This is a schematic diagram of the recognition effect of the calling number recognition signal at a signal-to-noise ratio of 20 dB according to the second embodiment of the present invention;
[0028] Figure 2G 2. This is a schematic diagram of the recognition effect of the calling number recognition signal at a signal-to-noise ratio of 25 dB according to the second embodiment of the present invention;
[0029] Figure 2H 3. This is a schematic diagram of the recognition effect of the calling number recognition signal at a signal-to-noise ratio of 30 dB according to the second embodiment of the present invention;
[0030] Figure 3 2 is a schematic diagram of the structure of a device for identifying a calling number identification signal according to a third embodiment of the present invention;
[0031] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing the method for identifying a calling number identification signal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first," "second," "target," and the like in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this way are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.
[0034] Example 1
[0035] Figure 1 A flowchart of a method for identifying a caller number identification signal is provided for the first embodiment of the present invention. This embodiment is applicable to the case of identifying a caller number identification signal. The method can be executed by a device for identifying a caller number identification signal. The device for identifying a caller number identification signal can be implemented in the form of hardware and / or software. The device for identifying a caller number identification signal can be configured in an electronic device. Typically, the electronic device can be a mobile terminal. Figure 1 As shown, the method includes:
[0036] S110 . Sample the received signal based on a preset sampling frequency to obtain a first preset number of sampled signals, and obtain a second preset number of energies and values corresponding to the sampled signals.
[0037] The preset sampling frequency may be a preset fixed sampling frequency; the first preset number may be a preset number of sampling points, for example, 512. In a specific example, the received signal may be sampled based on the preset sampling frequency to obtain 512 sampled signals. In this embodiment, the value of the preset sampling frequency may be adaptively set according to actual scenarios.
[0038] The second preset number may be a preset fixed value, for example, 64. In a specific example, the energy values of each of eight adjacent sampled signals may be added to obtain an energy sum value, so that for 512 sampled signals, 64 corresponding energy sum values may be obtained.
[0039] S120: Obtain a signal energy threshold corresponding to each of the sampled signals according to a second preset amount of energy sum values corresponding to each of the sampled signals.
[0040] Specifically, after obtaining the second preset number of energy sum values, the average value of each energy sum value can be calculated to serve as the signal energy threshold corresponding to each sampling signal; alternatively, a set proportion of the average value (for example, 80%, etc.) can be used as the signal energy threshold corresponding to each sampling signal.
[0041] In this embodiment, a corresponding signal energy threshold can be calculated for the current sampled signal. Thus, the signal energy threshold can be adaptively changed with the sampled signal, avoiding false starts and missed synchronizations caused by setting a fixed energy threshold. This allows accurate recognition of the caller number identification signal in both low and high signal-to-noise ratio channel environments.
[0042] Optionally, the signal energy threshold can be calculated using a sliding window. Specifically, the window length is a first preset number of sampled signals, and the window sliding step is a ratio of the first preset number to the second preset number of sampled signals. Thus, when a new sampled signal having a ratio of the first preset number to the second preset number is acquired, the current signal energy threshold is recalculated. Furthermore, each sampled signal in the current window can be judged based on the current signal energy threshold.
[0043] In a specific example, the window includes 512 sampling signals. When 8 new sampling signals are obtained, the window slides once, and the signal energy threshold corresponding to each sampling signal in the current window is recalculated. That is, the signal energy threshold is updated once every 8 new sampling signals are obtained.
[0044] The advantage of the above setting is that it can reduce the probability of missed detection of the caller number identification signal and improve the detection accuracy of the caller number identification signal.
[0045] S130: When it is detected that the energy and value of the second preset amount are both greater than the signal energy threshold, obtain the received signal as a calling number identification signal.
[0046] Specifically, when it is detected that each energy sum value is greater than a calculated signal energy threshold, it is determined that a caller number identification signal has arrived, and the current received signal and subsequently received signals can be determined to be caller number identification signals. Alternatively, after detecting that each energy sum value is greater than the calculated signal energy threshold, each sampled signal can be transformed into the frequency domain. When it is detected that the frequency domain characteristics of each sampled signal meet a preset signal detection condition, it is determined that a caller number identification signal has arrived.
[0047] The technical solution of the embodiment of the present invention is to obtain a first preset number of sampling signals by sampling the received signal based on a preset sampling frequency, and obtain a second preset number of energy sum values corresponding to each sampling signal; and then obtain the signal energy threshold corresponding to each sampling signal based on the second preset number of energy sum values corresponding to each sampling signal; when it is detected that the second preset number of energy sum values are all greater than the signal energy threshold, the received signal is obtained as a calling number identification signal, and by sampling the received signal and obtaining the corresponding signal energy threshold based on the energy sum value corresponding to each sampling signal, and then identifying the calling number identification signal based on the signal energy threshold, the problem of false start or missed synchronization caused by inappropriate setting of the fixed energy threshold can be avoided, and the accuracy and robustness of the identification of the calling number identification signal can be improved.
[0048] In an optional implementation of this embodiment, obtaining a second preset number of energies and values corresponding to each of the sampled signals may include:
[0049] Obtaining the self-energy value corresponding to each of the sampled signals;
[0050] The energy values corresponding to the third preset number of sampling signals are added to obtain the energy sum value of the second preset number corresponding to each sampling signal, where the third preset number is the ratio of the first preset number to the second preset number.
[0051] In a specific example, we can use the formula Get the energy and value E corresponding to each sampled signal i , where i = 1, 2, ..., 64, represents the second preset number, and X represents the amplitude of the sampled signal. Specifically, the self-energy value corresponding to the sampled signal can be the square of the amplitude of the sampled signal. When the first preset number is 512 and the second preset number is 64, the third preset number is 8. Thus, the self-energy values corresponding to eight adjacent sampled signals are added together to obtain 64 energy sum values.
[0052] In another optional implementation of this embodiment, obtaining the signal energy threshold corresponding to each sampled signal according to the second preset amount of energy and value corresponding to each sampled signal may include:
[0053] Obtaining an average value of the energy sum of the second preset number;
[0054] The signal energy threshold corresponding to each of the sampled signals is obtained according to the first preset proportional coefficient and the average value.
[0055] The first preset proportional coefficient may be a preset fixed proportional value, for example, 0.8. Specifically, the product of the first preset proportional coefficient and the average value may be used as the signal energy threshold corresponding to each sampled signal.
[0056] In a specific example, we can first use the formula The average value avgPower of each energy sum value is calculated; then, the signal energy threshold threshold can be calculated based on the formula threshold=avgPower×0.8, where 0.8 represents the first preset proportional coefficient.
[0057] Example 2
[0058] Figure 2A This is a flowchart of a method for identifying a calling number identification signal provided by Example 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with one or more of the above implementations. Figure 2A As shown, the method includes:
[0059] S210 . Sample the received signal based on a preset sampling frequency to obtain a first preset number of sampled signals, and obtain a second preset number of energies and values corresponding to the sampled signals.
[0060] S220 : Obtain a signal energy threshold corresponding to each of the sampled signals according to a second preset amount of energy sum values corresponding to each of the sampled signals.
[0061] S230: When it is detected that the energy and value of the second preset quantity are both greater than the signal energy threshold, obtain a frequency domain signal corresponding to each of the sampled signals.
[0062] In this embodiment, after detecting that each energy sum value is greater than the current signal energy threshold, each sampled signal may be further subjected to a fast Fourier transform to obtain a frequency domain signal corresponding to each sampled signal.
[0063] S240: When it is detected according to the frequency domain signals corresponding to the sampled signals that the sampled signals meet a preset signal detection condition, the received signal is obtained as a calling number identification signal.
[0064] Among them, the preset signal detection condition can be pre-set condition information for determining whether the frequency domain signal meets the frequency domain characteristics of the caller number identification signal. For example, the frequency corresponding to the maximum amplitude is within a preset frequency range, and the maximum amplitude is greater than a pre-set amplitude threshold, etc.
[0065] In this embodiment, after obtaining the frequency domain signal corresponding to each sampling signal, it is possible to further determine whether the frequency domain signal meets the preset signal detection conditions. If so, the arrival of the caller number identification signal can be determined, and the current received signal can be determined as the starting part of the caller number identification signal, thereby obtaining the caller number identification signal.
[0066] The technical solution of the embodiment of the present invention obtains the frequency domain signal corresponding to each sampling signal after detecting that the energy and value of the second preset number are both greater than the signal energy threshold, and then obtains the received signal as the calling number identification signal when it is detected that each sampling signal meets the preset signal detection condition based on the frequency domain signal corresponding to each sampling signal; by adopting a joint secondary judgment method, the calling number identification signal can be accurately identified within a larger signal-to-noise ratio dynamic range, which can further improve the accuracy and robustness of the recognition of the calling number identification signal.
[0067] In an optional implementation of this embodiment, detecting that each of the sampled signals meets a preset signal detection condition according to the frequency domain signal corresponding to each of the sampled signals may include:
[0068] Obtaining, based on the frequency domain signals corresponding to the sampled signals, the frequency domain amplitudes corresponding to the sampled signals; obtaining, based on the frequency domain amplitudes corresponding to the sampled signals, the maximum frequency domain amplitude corresponding to the sampled signals, and the received signal frequency that matches the maximum frequency domain amplitude;
[0069] Specifically, each sampling signal may be subjected to a fast Fourier transform to obtain a frequency domain signal, and each amplitude of the frequency domain signal may be compared and analyzed to obtain the maximum frequency domain amplitude, and simultaneously obtain the received signal frequency corresponding to the maximum frequency domain amplitude.
[0070] Wherein, obtaining, according to the frequency domain amplitudes corresponding to the sampled signals, the received signal frequency that matches the maximum frequency domain amplitude corresponding to the sampled signals may include:
[0071] Obtaining the maximum amplitude frequency corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals;
[0072] According to the maximum amplitude frequency corresponding to each sampling signal and the preset sampling frequency, a received signal frequency matching the maximum frequency domain amplitude corresponding to each sampling signal is obtained.
[0073] In a specific example, the maximum frequency domain amplitude max_mag corresponding to each sampled signal and the maximum amplitude frequency index (the horizontal coordinate corresponding to the maximum frequency domain amplitude in the spectrum graph) matching the maximum frequency domain amplitude can be obtained based on the function max_mag,index=max(mag(FFT(x))). Thereafter, the maximum amplitude frequency can be converted to the received signal frequency f based on the preset sampling frequency fs based on the formula f=index×fs / 512. Here, 512 is the number of points in the Fast Fourier Transform (FFT).
[0074] According to the frequency domain amplitude corresponding to each of the sampling signals and the second preset proportional coefficient, the frequency domain amplitude threshold corresponding to each of the sampling signals is obtained; if it is detected that the frequency of the received signal matched with the maximum frequency domain amplitude is within the preset frequency range, and the maximum frequency domain amplitude corresponding to each of the sampling signals is greater than the frequency domain amplitude threshold, then it is confirmed that each of the sampling signals meets the preset signal detection condition.
[0075] Wherein, obtaining the frequency domain amplitude threshold corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals and the second preset proportional coefficient may include:
[0076] A sum of the frequency domain amplitudes corresponding to the sampling signals is obtained, and the sum is multiplied by the second preset proportional coefficient, and the product is used as the frequency domain amplitude threshold corresponding to the sampling signals.
[0077] The second preset proportional coefficient may be a preset fixed proportional coefficient, for example, 0.05.
[0078] In a specific example, we can use the formula Obtain a frequency domain amplitude threshold, where N represents a first preset number, for example, 512, and ratio represents a second preset proportional coefficient, for example, ratio=0.05.
[0079] The preset frequency range may be a frequency range that a preset maximum frequency domain amplitude should correspond to, for example, may be 1600 Hz to 1800 Hz.
[0080] In this embodiment, if the frequency of the received signal with the maximum frequency domain amplitude matching is detected to be within the preset frequency range, and the maximum frequency domain amplitude corresponding to each sampling signal is greater than the frequency domain amplitude threshold, that is, 1600<f<1800 and If the two conditions are met, it can be determined that each sampling signal meets the preset signal detection condition.
[0081] The recognition effect of the calling number identification signal under different signal-to-noise ratios of the technical solution of the embodiment of the present invention can be as follows: Figure 2B 、 Figure 2C 、 Figure 2D 、 Figure 2E 、 Figure 2F 、 Figure 2G and Figure 2H As shown in the figure, the corresponding signal-to-noise ratios of each figure are 0dB, 5dB, 10dB, 15dB, 20dB, 25dB, and 30dB, respectively. In each figure, the upper part shows the original received signal, and the lower part shows the identified caller number identification signal. The caller number identification signal starts with a 2FSK (Frequency Shift Keying) signal. Specifically, by successfully identifying the 2FSK signal in the received signal, the 2FSK signal and subsequent signals are intercepted to obtain the complete caller number identification signal.
[0082] Therefore, the technical solution of this embodiment can achieve stable and reliable recognition of the caller number identification signal within the signal-to-noise ratio dynamic range of 0dB-30dB, improve the robustness of the recognition, and thus provide a better guarantee for the successful demodulation of the caller number identification information.
[0083] Example 3
[0084] Figure 3 This is a schematic diagram of a structure of a device for identifying a calling number identification signal provided by the third embodiment of the present invention. Figure 3 As shown, the device includes: a sampling signal acquisition module 310, a signal energy threshold acquisition module 320 and a calling number identification signal acquisition module 330; wherein,
[0085] The sampling signal acquisition module 310 is configured to sample the received signal based on a preset sampling frequency, obtain a first preset number of sampling signals, and obtain a second preset number of energy and values corresponding to each of the sampling signals;
[0086] A signal energy threshold acquisition module 320 is configured to acquire a signal energy threshold corresponding to each sampled signal according to a second preset amount of energy sum value corresponding to each sampled signal;
[0087] The calling number identification signal acquisition module 330 is configured to acquire the received signal as a calling number identification signal when it is detected that the energy and value of the second preset amount are both greater than the signal energy threshold.
[0088] The technical solution of the embodiment of the present invention is to obtain a first preset number of sampling signals by sampling the received signal based on a preset sampling frequency, and obtain a second preset number of energy sum values corresponding to each sampling signal; and then obtain the signal energy threshold corresponding to each sampling signal based on the second preset number of energy sum values corresponding to each sampling signal; when it is detected that the second preset number of energy sum values are all greater than the signal energy threshold, the received signal is obtained as a calling number identification signal, and by sampling the received signal and obtaining the corresponding signal energy threshold based on the energy sum value corresponding to each sampling signal, and then identifying the calling number identification signal based on the signal energy threshold, the problem of false start or missed synchronization caused by inappropriate setting of the fixed energy threshold can be avoided, and the accuracy and robustness of the identification of the calling number identification signal can be improved.
[0089] Optionally, the sampling signal acquisition module 310 includes:
[0090] An intrinsic energy value acquisition unit, configured to acquire the intrinsic energy value corresponding to each of the sampled signals;
[0091] The energy sum value acquisition unit is used to add the self-energy values corresponding to the third preset number of sampling signals to obtain the energy sum value of the second preset number corresponding to each sampling signal, where the third preset number is the ratio of the first preset number to the second preset number.
[0092] Optionally, the signal energy threshold acquisition module 320 includes:
[0093] an average value obtaining unit, configured to obtain an average value of the energy sum of the second preset quantity;
[0094] The signal energy threshold acquisition unit is used to acquire the signal energy threshold corresponding to each of the sampled signals according to a first preset proportional coefficient and the average value.
[0095] Optionally, the calling number identification signal acquisition module 330 includes:
[0096] A frequency domain signal acquisition unit, configured to acquire a frequency domain signal corresponding to each of the sampled signals;
[0097] The calling number identification signal acquiring unit is configured to acquire the received signal as a calling number identification signal when it is detected based on the frequency domain signals corresponding to the sampling signals that the sampling signals meet a preset signal detection condition.
[0098] Optionally, the calling number identification signal acquisition unit includes:
[0099] A frequency domain amplitude acquisition subunit, configured to acquire the frequency domain amplitude corresponding to each of the sampled signals according to the frequency domain signal corresponding to each of the sampled signals;
[0100] a received signal frequency acquisition subunit, configured to acquire, based on the frequency domain amplitudes corresponding to the sampled signals, a maximum frequency domain amplitude corresponding to each of the sampled signals, and a received signal frequency that matches the maximum frequency domain amplitude;
[0101] a frequency domain amplitude threshold value obtaining subunit, configured to obtain a frequency domain amplitude threshold value corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals and a second preset proportional coefficient;
[0102] The preset signal detection condition determination subunit is used to determine whether each sampling signal meets the preset signal detection condition if it is detected that the frequency of the received signal matched with the maximum frequency domain amplitude is within the preset frequency range and the maximum frequency domain amplitude corresponding to each sampling signal is greater than the frequency domain amplitude threshold.
[0103] Optionally, the frequency domain amplitude threshold acquisition subunit is specifically used to obtain the sum of the frequency domain amplitudes corresponding to each of the sampling signals, and multiply the sum by the second preset proportional coefficient, and use the product as the frequency domain amplitude threshold corresponding to each of the sampling signals.
[0104] Optionally, a received signal frequency acquisition subunit is specifically configured to acquire the maximum amplitude frequency corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals;
[0105] According to the maximum amplitude frequency corresponding to each sampling signal and the preset sampling frequency, a received signal frequency matching the maximum frequency domain amplitude corresponding to each sampling signal is obtained.
[0106] The device for identifying a calling number identification signal provided in the embodiment of the present invention can execute the method for identifying a calling number identification signal provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0107] It should be noted that in the technical solution of this embodiment, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0108] Example 4
[0109] Figure 4A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0110] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., which is communicatively connected to the at least one processor 41. The memory stores a computer program that can be executed by the at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. Various programs and data required for the operation of the electronic device 40 can also be stored in the RAM 43. The processor 41, ROM 42, and RAM 43 are connected to each other via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0111] Multiple components in the electronic device 40 are connected to the I / O interface 45, including an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0112] Processor 41 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any other suitable processor, controller, microcontroller, etc. Processor 41 executes the various methods and processes described above, such as the method for identifying a caller ID signal.
[0113] In some embodiments, the method for identifying a caller number identification signal can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the method for identifying a caller number identification signal described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the method for identifying a caller number identification signal in any other appropriate manner (e.g., via firmware).
[0114] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0115] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0116] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0117] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0118] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0119] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0120] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0121] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A method for identifying a calling number identification signal, characterized in that: include: Sampling the received signal based on a preset sampling frequency to obtain a first preset number of sampled signals, and obtaining a second preset number of energy and values corresponding to each of the sampled signals; Obtaining a signal energy threshold corresponding to each of the sampled signals according to a second preset amount of energy sum values corresponding to each of the sampled signals; When it is detected that the energy and value of the second preset amount are both greater than the signal energy threshold, obtaining the received signal as a calling number identification signal; The step of obtaining the received signal as a calling number identification signal includes: Acquire a frequency domain signal corresponding to each of the sampled signals; When it is detected according to the frequency domain signals corresponding to the sampled signals that the sampled signals meet the preset signal detection condition and the energy sum value of the second preset quantity corresponding to the sampled signals is greater than the signal energy threshold, the received signal is obtained as a calling number identification signal; The step of detecting that each of the sampled signals satisfies a preset signal detection condition according to a frequency domain signal corresponding to each of the sampled signals includes: Obtaining frequency domain amplitudes corresponding to the sampling signals according to the frequency domain signals corresponding to the sampling signals; According to the frequency domain amplitudes corresponding to the sampled signals, obtaining the maximum frequency domain amplitude corresponding to the sampled signals and the received signal frequency matched by the maximum frequency domain amplitude; Obtaining a frequency domain amplitude threshold corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals and a second preset proportional coefficient; If it is detected that the frequency of the received signal matched with the maximum frequency domain amplitude is within the preset frequency range, and the maximum frequency domain amplitude corresponding to each sampling signal is greater than the frequency domain amplitude threshold, then each sampling signal meets the preset signal detection condition.
2. The method according to claim 1, characterized in that Obtaining a second preset number of energy and values corresponding to each of the sampled signals includes: Obtaining the self-energy value corresponding to each of the sampled signals; The energy values corresponding to the third preset number of sampling signals are added to obtain the energy sum value of the second preset number corresponding to each sampling signal, where the third preset number is the ratio of the first preset number to the second preset number.
3. The method according to claim 2, characterized in that Obtaining a signal energy threshold corresponding to each of the sampled signals according to a second preset amount of energy sum values corresponding to each of the sampled signals includes: Obtaining an average value of the energy sum of the second preset number; The signal energy threshold corresponding to each of the sampled signals is obtained according to the first preset proportional coefficient and the average value.
4. The method according to claim 1, wherein Obtaining a frequency domain amplitude threshold corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals and a second preset proportional coefficient, including: A sum of the frequency domain amplitudes corresponding to the sampling signals is obtained, and the sum is multiplied by the second preset proportional coefficient, and the product is used as the frequency domain amplitude threshold corresponding to the sampling signals.
5. The method according to claim 1, wherein Obtaining, according to the frequency domain amplitudes corresponding to the sampled signals, a received signal frequency that matches the maximum frequency domain amplitude corresponding to the sampled signals, including: Obtaining the maximum amplitude frequency corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals; According to the maximum amplitude frequency corresponding to each sampling signal and the preset sampling frequency, a received signal frequency that matches the maximum frequency domain amplitude corresponding to each sampling signal is obtained.
6. A device for identifying a calling number identification signal, characterized in that: include: a sampling signal acquisition module, configured to sample the received signal based on a preset sampling frequency, obtain a first preset number of sampling signals, and obtain a second preset number of energy and values corresponding to each of the sampling signals; a signal energy threshold acquisition module, configured to acquire a signal energy threshold corresponding to each sampled signal according to a second preset amount of energy sum value corresponding to each sampled signal; A calling number identification signal acquisition module, configured to acquire the received signal as a calling number identification signal when detecting that the energy and value of the second preset amount are both greater than the signal energy threshold; The calling number identification signal acquisition module includes: A frequency domain signal acquisition unit, configured to acquire a frequency domain signal corresponding to each of the sampled signals; a calling number identification signal acquiring unit, configured to acquire the received signal as a calling number identification signal when it is detected, based on the frequency domain signals corresponding to the sampled signals, that the sampled signals satisfy a preset signal detection condition and the energy sum value of the second preset quantity corresponding to the sampled signals is greater than the signal energy threshold; The calling number identification signal acquisition unit includes: A frequency domain amplitude acquisition subunit, configured to acquire the frequency domain amplitude corresponding to each of the sampled signals according to the frequency domain signal corresponding to each of the sampled signals; a received signal frequency acquisition subunit, configured to acquire, based on the frequency domain amplitudes corresponding to the sampled signals, a maximum frequency domain amplitude corresponding to each of the sampled signals, and a received signal frequency that matches the maximum frequency domain amplitude; a frequency domain amplitude threshold value obtaining subunit, configured to obtain a frequency domain amplitude threshold value corresponding to each of the sampled signals according to the frequency domain amplitude corresponding to each of the sampled signals and a second preset proportional coefficient; The preset signal detection condition determination subunit is used to determine whether each sampling signal meets the preset signal detection condition if it is detected that the frequency of the received signal matched with the maximum frequency domain amplitude is within the preset frequency range and the maximum frequency domain amplitude corresponding to each sampling signal is greater than the frequency domain amplitude threshold.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for identifying a calling number identification signal according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for identifying a calling number identification signal according to any one of claims 1 to 5 when executed.