CN112929099A - Signal detection method, terminal and storage medium - Google Patents

Signal detection method, terminal and storage medium Download PDF

Info

Publication number
CN112929099A
CN112929099A CN201911247023.1A CN201911247023A CN112929099A CN 112929099 A CN112929099 A CN 112929099A CN 201911247023 A CN201911247023 A CN 201911247023A CN 112929099 A CN112929099 A CN 112929099A
Authority
CN
China
Prior art keywords
signal
slave
detection circuit
signal detection
slave end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911247023.1A
Other languages
Chinese (zh)
Other versions
CN112929099B (en
Inventor
罗金先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Shiwei New Technology Co Ltd
Original Assignee
Huizhou Shiwei New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Shiwei New Technology Co Ltd filed Critical Huizhou Shiwei New Technology Co Ltd
Priority to CN201911247023.1A priority Critical patent/CN112929099B/en
Publication of CN112929099A publication Critical patent/CN112929099A/en
Application granted granted Critical
Publication of CN112929099B publication Critical patent/CN112929099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing

Abstract

The invention discloses a signal detection method, a terminal and a storage medium. The signal detection method is used for detecting communication signals between a master end and a slave end, and comprises the following steps: sending a handshake signal aiming at a slave end, and detecting whether the slave end returns a valid signal through the signal detection circuit; and when the detection result is that the slave end does not return the effective signal, adjusting a detection parameter for detecting the effective signal in the signal detection circuit, and detecting whether the slave end returns the effective signal according to the adjusted signal detection circuit until the detection result meets a preset condition. According to the invention, after the handshake signal aiming at the slave end is sent out, when the effective signal sent back by the slave end cannot be acquired, formal communication with the slave end cannot be carried out without directly judging, but the signal detection circuit is adjusted, so that the compatibility of signals with different degrees of quality is improved, and the communication success rate of the slave end is increased.

Description

Signal detection method, terminal and storage medium
Technical Field
The present invention relates to the field of signal communication technologies, and in particular, to a signal detection method, a terminal, and a storage medium.
Background
Communication based on the USB2.0 protocol is very common, and in many cases, the slave is not directly connected to the master through a port, for example, connections between modules in a television and a motherboard are often connected through wires, rather than directly inserting the modules into the port of the motherboard, which causes signals returned from the slave to fluctuate due to the influence of the wires or other modules, and the signals are easily detected as invalid signals by a predetermined detection circuit, which affects the success rate of communication between the master and the slave.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a signal detection method, a terminal and a storage medium for solving the above-mentioned drawbacks of the prior art, and to solve the problem of low success rate of communication between a master end and a slave end in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect of the present invention, a signal detection method is provided for detecting a communication signal between a master and a slave, where the method is applied to the master, and a signal detection circuit is disposed in the master, and the signal detection method includes:
sending a handshake signal aiming at a slave end, and detecting whether the slave end returns a valid signal through the signal detection circuit;
and when the detection result is that the slave end does not return the effective signal, adjusting a detection parameter for detecting the effective signal in the signal detection circuit, and detecting whether the slave end returns the effective signal according to the adjusted signal detection circuit until the detection result meets a preset condition.
The signal detection method, wherein the detecting whether the slave end returns the valid signal by the signal detection circuit specifically includes:
acquiring a feedback signal of the slave end to the handshake signal;
and inputting the feedback signal to the signal detection circuit, and detecting whether the feedback signal is an effective signal or not through the signal detection circuit.
The signal detection method, wherein the signal detection circuit includes a comparator and a suppression level detector, and the detecting whether the feedback signal is an effective signal by the signal detection circuit specifically includes:
inputting the feedback signal to the comparator, and acquiring a first signal output by the comparator;
detecting whether a peak-to-peak value of the first signal is greater than a suppression level of the suppression level detector.
The signal detection method, wherein the detection parameter includes a gain current of the comparator, and the adjusting the detection parameter for detecting the valid signal in the signal detection circuit includes:
and increasing the gain current of the comparator according to a preset first step value.
The signal detection method, wherein the detection parameter includes the suppression level, and the adjusting the detection parameter for detecting the valid signal in the signal detection circuit includes:
the suppression level is reduced according to a preset second step value.
The signal detection method, wherein the detecting whether the slave end returns a valid signal according to the adjusted signal detection circuit until a detection result meets a preset condition includes:
continuing to execute the step of sending the handshake signals aiming at the slave end and detecting whether the slave end returns effective signals through the signal detection circuit until the detection result is that the slave end returns effective signals;
or, continuing to execute the step of sending the handshake signals to the slave and detecting whether the slave returns a valid signal through the signal detection circuit until the detection result is: the time from the first time that the master sends the handshake signals for the slave reaches a preset time length and the slave does not return a valid signal.
The signal detection method, wherein after the time from the first sending of the handshake signal by the master to the slave reaches a preset time and the valid signal is not acquired, the method comprises:
and stopping sending the communication signal to the slave end.
The signal detection method, wherein the detecting whether the slave end returns a valid signal by the signal detection circuit comprises:
and when the slave end returns the effective signal, establishing a communication relationship with the slave end.
In a second aspect of the present invention, a terminal is provided, where the terminal includes: the signal detection device comprises a processor and a storage medium which is in communication connection with the processor, wherein the storage medium is suitable for storing a plurality of instructions, and the processor is suitable for calling the instructions in the storage medium to execute the steps of realizing the signal detection method.
In a third aspect of the present invention, a storage medium is provided, wherein the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the signal detection method according to any one of the above.
Has the advantages that: compared with the prior art, the invention provides a signal detection method, which improves the compatibility of signals with different degrees of quality and improves the communication success rate of a master end and a slave end by adjusting a signal detection circuit instead of directly judging that the next communication with the slave end cannot be carried out when an effective signal sent back by the slave end cannot be obtained after a handshake signal aiming at the slave end is sent out.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a signal detection method according to the present invention;
FIG. 2 is a schematic circuit diagram of a signal detection circuit provided by the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a terminal provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The signal detection method provided by the invention can be applied to a terminal. The terminal may be, but is not limited to, various personal computers, notebook computers, mobile phones, tablet computers, vehicle-mounted computers, and portable wearable devices.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a signal detection method according to a first embodiment of the present invention. The signal detection method is used for detecting communication signals between a master terminal and a slave terminal, the method is applied to the master terminal, a signal detection circuit is arranged in the master terminal, and the method comprises the following steps:
s100, sending a handshake signal aiming at the slave end, and detecting whether the slave end returns a valid signal through the signal detection circuit.
The handshake signal is a signal sent by the master end and used for determining whether formal communication is established with the slave end, the master end (Host) can send out the handshake signal aiming at the slave end when the state of the communication port is that the slave end (Device) is accessed, specifically, the master end can determine whether the communication port is accessed by the slave end by detecting the voltage of the communication port, the master end inquires each port of the master end in a round-robin manner, and when a voltage difference exists between a DP (data Positive) terminal and a DM (data Minus) terminal of the port, the port is accessed by the slave end.
When the master detects that a slave accesses a port, a handshake signal is sent out through the port, and the handshake signal is a handshake signal for the slave because the slave accesses the port. After the master sends a handshake signal to the slave through a port, a signal detection circuit detects whether a valid signal can be obtained through the port, so as to determine whether to perform next communication with the slave accessed to the port, where the signal detection circuit is a circuit arranged inside the master, and when the master receives a communication signal, the signal detection circuit can detect whether the communication signal is a valid signal, which will be described later.
Specifically, the detecting, by the signal detection circuit, whether the slave terminal returns a valid signal includes:
and S110, acquiring a feedback signal of the slave end to the handshake signal.
When the slave end receives a handshake signal which is sent by the master end and aims at the slave end, a feedback signal is returned, and the master end determines whether to carry out the next communication or not by detecting whether the feedback signal is a valid signal or not.
And S120, inputting the feedback signal to the signal detection circuit, and detecting whether the feedback signal is an effective signal through the signal detection circuit.
The feedback signal is detected by the signal detection circuit after returning to the main terminal through the port. Specifically, the schematic diagram of the signal detection circuit is shown in fig. 2, and includes a Comparator (Comparator) and a suppression level detector (Squelch detection), where the Comparator performs gain processing on the feedback signal, processes the feedback signal into a first signal with a larger signal amplitude and is more favorable for detection, and the suppression level detector is used for detecting the signal amplitude of the first signal. The detecting, by the signal detection circuit, whether the feedback signal is a valid signal specifically includes:
and S110, inputting the feedback signal to the comparator, and acquiring a first signal output by the comparator.
As shown in fig. 2, the feedback signal is a DP/DM signal input through a port, and after the feedback signal enters the comparator, the comparator performs Gain processing on the feedback signal according to a Gain current to output the first signal having a waveform of | DP-DM | Gain, where DP is a signal input from the slave terminal through a DP (data positive) terminal, DM is a signal input from the slave terminal through a DM (data minus) terminal, | DP-DM | is the feedback signal, Gain is a Gain of the comparator, and Gain is positively correlated with the Gain current of the comparator.
In a possible implementation manner, the signal detection circuit further includes a series resistor Rs and a pull-down resistor Rtern, where the series resistor Rs and the pull-down resistor Rtern are used for impedance matching, so as to reduce interference and enhance the working stability of the detection circuit.
After the comparator outputs the first signal, the detecting, by the signal detection circuit, whether the feedback signal is a valid signal includes:
and S120, detecting whether the peak-to-peak value of the first signal is greater than the suppression level of the suppression level detector.
The peak-to-peak value is the difference between the highest value and the lowest value of a signal in a period, and the peak-to-peak value can reflect the signal amplitude of the signal. After the comparator outputs the first signal, the signal amplitude of the first signal is detected by the suppression level detector in the signal detection circuit.
The suppression Level detector detects the first signal by a suppression Level (Squelch Level), and specifically detects whether a peak-to-peak value (Vpp value) of the first signal is greater than the suppression Level, when the peak-to-peak value of the first signal is greater than the suppression Level, it reflects that the signal amplitude of the first signal is sufficiently large, and the first signal is a signal obtained by performing gain processing on the feedback signal, so that, when the peak-to-peak value of the first signal is greater than the suppression Level, it also indicates that the signal amplitude of the feedback signal is sufficiently large, and the signal amplitude of the feedback signal can be used for communication between the terminal and the slave, then the detection result is that the slave returns a valid signal, and the master determines that the slave can perform the next communication, otherwise, when the peak-to-peak value of the first signal is less than the suppression Level, reflecting that the signal amplitude of the feedback signal cannot be used for communication between the master and the slave, if the detection result is that the slave does not return a valid signal, the master determines that the slave cannot perform the next communication with the slave, in this embodiment, adjusting the signal detection circuit, that is, after detecting whether the slave returns a valid signal by the signal detection circuit, includes:
s200, when the detection result is that the slave end does not return the effective signal, adjusting a detection parameter for detecting the effective signal in the signal detection circuit, and detecting whether the slave end returns the effective signal according to the adjusted signal detection circuit until the detection result meets a preset condition.
Specifically, when a communication port which is not directly connected to the master end for the slave end is in communication connection with the master end, or when other devices exist near the master end and the slave end to affect signals sent by the slave end, the amplitude of the feedback signal sent by the slave end becomes small, and then it is likely that the detection result of the feedback signal by the signal detection circuit is not a valid signal, which may greatly reduce the communication success rate of the master end and the slave end. In fact, after the master receives the communication signal sent by the slave, the processor of the master further corrects the communication signal sent by the slave, so that even if the feedback signal is detected as an invalid signal by the signal detection circuit, normal communication between the slave and the master is possible. Therefore, in this embodiment, after the signal detection circuit detects that the feedback signal returned from the slave is not a valid signal, the detection parameter for detecting a valid signal in the signal detection circuit is adjusted, and then whether the slave returns a valid signal is detected again.
As is apparent from the foregoing description, in the signal detection circuit, the factors affecting the detection result of the feedback signal are the gain of the comparator to the feedback signal and the suppression level of the suppression level detector, while it has been described above that the gain of the comparator to the feedback signal is proportional to the gain current of the comparator, that is, the detection parameters for detecting the effective signal in the signal detection circuit include the gain current of the comparator and the suppression level, and the manner of adjusting the detection parameters for detecting the effective signal in the signal detection circuit may include adjusting the gain current and adjusting the suppression level. In one implementation, the detection parameter includes a gain current of the comparator, and the adjusting the detection parameter for detecting the valid signal in the signal detection circuit includes:
and S210, increasing the gain current of the comparator according to a preset first step value.
Specifically, it has been described above that, if the gain of the comparator is proportional to the gain current of the comparator, that is, if the gain current is increased, the amplitude of the signal value of the first signal output after the comparator gains the feedback signal is correspondingly increased, that is, the peak-to-peak value of the first signal is increased, the probability that the peak-to-peak value of the first signal is greater than the suppression level is increased, and the probability that the signal detection circuit returns a valid signal to the slave is increased as a result of the detection of the feedback signal, that is, the probability that the master determines that the slave can perform the next communication is increased, and then the communication success rate between the master and the slave is increased. The first step value is an adjustment value for adjusting the gain current of the comparator each time, and is preset, and when the gain current of the signal detection circuit is adjusted, the gain current is adjusted according to the first step value each time, where the first step value may be a specific value, such as 1mA, 3mA, and the like, and then, the increasing of the gain current of the comparator according to the preset first step value is increasing of 1mA, 3mA, and the like each time, and the first step value may also be a percentage, such as 10%, 5%, and the like, and then, the increasing of the gain current of the comparator according to the preset first step value is increasing of 10%, 5%, and the like of the current gain current each time.
In another possible implementation manner, the detecting parameter includes the suppression level, and the adjusting the detecting parameter for detecting the valid signal in the signal detecting circuit includes:
and S220, reducing the suppression level according to a preset second step value.
After the comparator outputs the first signal, the suppression level detector detects whether the peak-to-peak value of the first signal is greater than the suppression level set in the suppression level detection to determine whether the feedback signal is an effective signal, if the suppression level is reduced, the possibility that the peak-to-peak value of the first signal is greater than the suppression level is increased, and the possibility that the signal detection circuit returns an effective signal to the slave is increased along with the detection result of the feedback signal, that is, the master determines that the possibility of next-step communication with the slave is increased, and the communication success rate of the master and the slave is increased. The second step value is an adjustment value for adjusting the suppression level each time, the second step value is preset, when the suppression level is adjusted for the signal detection circuit, the suppression level is adjusted according to the second step value each time, the second step value may be a specific value, for example, 1dB, 2dB, and the like, then, the reduction of the suppression level according to the preset second step value is an increase of 1dB, 2dB, and the like each time, the first step value may also be a percentage, for example, 10%, 8%, and the like, and then, the reduction of the suppression level according to the preset second step value is an increase of 10%, 8%, and the like of the current gain current each time.
It should be noted that, in the step S210, the gain current of the comparator is increased according to a preset first step value, and the step S220, the matching level is decreased according to a preset second step value, which may be performed simultaneously with or without adjusting the detection parameter of the signal detection circuit, that is, the gain current of the comparator is increased according to the first step value or the suppression level is decreased according to the second step value, or the gain current of the comparator is increased according to the first step value and the suppression level is decreased according to the second step value.
In the signal detection method provided in this embodiment, after the detection parameter in the signal detection circuit is adjusted, whether the slave returns a valid signal is detected according to the adjusted signal detection circuit until the detection result meets a preset condition.
Specifically, the preset condition may be that the detection result is that the slave end returns a valid signal, or that the time from the master end to first send a handshake signal for the slave end has reached a preset time length and the slave end does not return a valid signal. The detecting whether the slave end returns a valid signal or not according to the adjusted signal detecting circuit until the detection result meets a preset condition comprises the following steps:
continuing to execute the step of sending the handshake signal for the slave and detecting whether the slave returns a valid signal through the signal detection circuit, that is, continuing to execute the step S100 until the detection result is that the slave returns a valid signal; or, continuing to execute the step of sending the handshake signal to the slave and detecting whether the slave returns a valid signal by the signal detection circuit, that is, continuing to execute the step S100 until the detection result is: the time from the first time that the master sends the handshake signals for the slave reaches a preset time length and the slave does not return a valid signal.
That is, after the master sends the handshake signal to the slave, if the detection result indicates that the slave does not return a valid signal, the master continues to send the handshake signal to the slave, and detects whether the slave returns the valid signal through the adjusted signal detection circuit, and the possibility that the adjusted signal detection circuit detects that the feedback signal is a valid signal increases, that is, the possibility that the slave returns a valid signal increases as the detection result, and the communication success rate of the master and the slave increases.
And when the master end sends a handshake signal aiming at the slave end for the first time, timing is started, and when the master end detects whether the slave end returns an effective signal according to the adjusted signal detection circuit and the detection result is that the slave end does not return an effective signal, the detection parameters in the signal detection circuit are continuously adjusted until the detection result is that the slave end returns an effective signal, or until the detection result is that the slave end does not return an effective signal and the handshake signal aiming at the slave end sent by the master end for the first time reaches a preset time length. When the detection result is that the slave end returns an effective signal, the master end establishes a communication relationship with the slave end and carries out the next communication with the slave end; and when the slave end does not return the effective signal and the handshake signal for the slave end sent by the master end for the first time reaches a preset duration, the master end stops sending the communication signal to the slave end, and the communication process between the terminal and the slave end is finished. The master may report information that the master cannot communicate with the slave to other terminals or users, so that the other terminals or users know that the master cannot formally communicate with the slave.
The master sends the handshake signals to the slave at least once within the preset duration, that is, the step of adjusting the signal detection circuit is also performed at least once, the number of the steps may be two, three or more, each time the master terminal sends the handshake signal to the slave terminal, does not obtain the valid signal, and needs to adjust the signal detection circuit, the gain current of the comparator may be increased according to the first step value, either both decreasing the inhibit level in accordance with the second step value or increasing the gain current of the comparator in accordance partly with the first step value and partly with decreasing the inhibit level in accordance with the second step value, or in part to increase the gain current of the comparator according to the first step value and decrease the inhibit level according to the second step value.
In summary, the present embodiment provides a signal detection method, where after a handshake signal is sent by a master to a slave, when a valid signal sent back by the slave cannot be obtained, a signal detection circuit is adjusted instead of directly determining that next communication between the master and the slave cannot be performed, so that compatibility of signals with different degrees of quality is improved, and a communication success rate between the slave and the slave is increased.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Example two
Based on the above embodiments, the present invention further provides a terminal, and a schematic block diagram thereof may be as shown in fig. 3. The terminal comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal is configured to provide computing and control capabilities. The memory of the terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a signal detection method. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal is arranged in the terminal in advance and used for detecting the current operating temperature of internal equipment.
It will be understood by those skilled in the art that the block diagram shown in fig. 3 is a block diagram of only a portion of the structure associated with the inventive arrangements and is not intended to limit the terminals to which the inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or may have some components combined, or may have a different arrangement of components.
In one embodiment, a terminal is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor when executing the computer program implementing at least the following steps:
sending a handshake signal aiming at a slave end, and detecting whether the slave end returns a valid signal through the signal detection circuit;
and when the detection result is that the slave end does not return the effective signal, adjusting a detection parameter for detecting the effective signal in the signal detection circuit, and detecting whether the slave end returns the effective signal according to the adjusted signal detection circuit until the detection result meets a preset condition.
Wherein, the detecting whether the slave end returns the valid signal through the signal detection circuit specifically includes:
acquiring a feedback signal of the slave end to the handshake signal;
and inputting the feedback signal to the signal detection circuit, and detecting whether the feedback signal is an effective signal or not through the signal detection circuit.
The signal detection circuit includes a comparator and a suppression level detector, and the detection of whether the feedback signal is an effective signal by the signal detection circuit specifically includes:
inputting the feedback signal to the comparator, and acquiring a first signal output by the comparator;
detecting whether a peak-to-peak value of the first signal is greater than a suppression level of the suppression level detector.
Wherein the detection parameter comprises a gain current of the comparator, and the adjusting the detection parameter for detecting the effective signal in the signal detection circuit comprises:
and increasing the gain current of the comparator according to a preset first step value.
Wherein the detection parameter comprises the suppression level, and the adjusting the detection parameter for detecting the effective signal in the signal detection circuit comprises:
the suppression level is reduced according to a preset second step value.
The detecting whether the slave end returns a valid signal or not according to the adjusted signal detection circuit until a detection result meets a preset condition comprises the following steps:
continuing to execute the step of sending the handshake signals aiming at the slave end and detecting whether the slave end returns effective signals through the signal detection circuit until the detection result is that the slave end returns effective signals;
or, continuing to execute the step of sending the handshake signals to the slave and detecting whether the slave returns a valid signal through the signal detection circuit until the detection result is: the time from the first time that the master sends the handshake signals for the slave reaches a preset time length and the slave does not return a valid signal.
Wherein, after the time from the first sending of the handshake signal by the master to the slave has reached a preset time and the valid signal is not acquired, the method comprises:
and stopping sending the communication signal to the slave end.
Wherein the detecting whether the slave terminal returns a valid signal by the signal detection circuit comprises:
and when the slave end returns the effective signal, establishing a communication relationship with the slave end.
EXAMPLE III
The present invention also provides a storage medium storing one or more programs executable by one or more processors to implement the steps of the signal detection method described in the above embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A signal detection method for detecting a communication signal between a master terminal and a slave terminal is applied to the master terminal, a signal detection circuit is arranged in the master terminal, and the signal detection method comprises the following steps:
sending a handshake signal aiming at a slave end, and detecting whether the slave end returns a valid signal through the signal detection circuit;
and when the detection result is that the slave end does not return the effective signal, adjusting a detection parameter for detecting the effective signal in the signal detection circuit, and detecting whether the slave end returns the effective signal according to the adjusted signal detection circuit until the detection result meets a preset condition.
2. The signal detection method according to claim 1, wherein the detecting, by the signal detection circuit, whether the slave terminal returns a valid signal specifically comprises:
acquiring a feedback signal of the slave end to the handshake signal;
and inputting the feedback signal to the signal detection circuit, and detecting whether the feedback signal is an effective signal or not through the signal detection circuit.
3. The signal detection method according to claim 2, wherein the signal detection circuit comprises a comparator and a suppression level detector, and the detecting whether the feedback signal is a valid signal by the signal detection circuit specifically comprises:
inputting the feedback signal to the comparator, and acquiring a first signal output by the comparator;
detecting whether a peak-to-peak value of the first signal is greater than a suppression level of the suppression level detector.
4. The signal detection method of claim 3, wherein the detection parameter comprises a gain current of the comparator, and the adjusting the detection parameter for detecting the valid signal in the signal detection circuit comprises:
and increasing the gain current of the comparator according to a preset first step value.
5. The signal detection method of claim 3, wherein the detection parameter comprises the suppression level, and wherein adjusting the detection parameter for detecting the valid signal in the signal detection circuit comprises:
the suppression level is reduced according to a preset second step value.
6. The signal detection method of claim 1, wherein the detecting whether the slave terminal returns a valid signal according to the adjusted signal detection circuit until a detection result meets a preset condition comprises:
continuing to execute the step of sending the handshake signals aiming at the slave end and detecting whether the slave end returns effective signals through the signal detection circuit until the detection result is that the slave end returns effective signals;
or, continuing to execute the step of sending the handshake signals to the slave and detecting whether the slave returns a valid signal through the signal detection circuit until the detection result is: the time from the first time that the master sends the handshake signals for the slave reaches a preset time length and the slave does not return a valid signal.
7. The signal detection method according to claim 6, wherein the time from the first time the master sends out the handshake signal for the slave to a preset time and after the valid signal is not acquired comprises:
and stopping sending the communication signal to the slave end.
8. The signal detection method according to any one of claims 1 to 6, wherein the detecting whether the slave terminal returns a valid signal by the signal detection circuit comprises:
and when the slave end returns the effective signal, establishing a communication relationship with the slave end.
9. A terminal, characterized in that the terminal comprises: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions, the processor adapted to invoke the instructions in the storage medium to perform the steps of implementing the signal detection method of any of the preceding claims 1-8.
10. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the signal detection method according to any one of claims 1-8.
CN201911247023.1A 2019-12-06 2019-12-06 Signal detection method, terminal and storage medium Active CN112929099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911247023.1A CN112929099B (en) 2019-12-06 2019-12-06 Signal detection method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911247023.1A CN112929099B (en) 2019-12-06 2019-12-06 Signal detection method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112929099A true CN112929099A (en) 2021-06-08
CN112929099B CN112929099B (en) 2022-10-11

Family

ID=76162092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911247023.1A Active CN112929099B (en) 2019-12-06 2019-12-06 Signal detection method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112929099B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117579978A (en) * 2024-01-16 2024-02-20 苏州至盛半导体科技有限公司 Dynamic range control method, circuit, audio processing chip and loudspeaker system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158229A1 (en) * 2005-01-18 2006-07-20 International Business Machines Corporation Improved signal detector for high-speed serdes
US7899649B1 (en) * 2008-03-24 2011-03-01 Altera Corporation Signal detect for high-speed serial interface
US20110131356A1 (en) * 2009-12-01 2011-06-02 Freescale Semiconductor, Inc. Method and system for high-speed detection handshake in universal serial bus based data communication system
CN102752052A (en) * 2012-07-23 2012-10-24 青岛海信宽带多媒体技术有限公司 Optical module of optical network unit and method for outputting control electric signal thereof
CN103312636A (en) * 2012-03-09 2013-09-18 佳能株式会社 Information processing apparatus, serial communication system, method of initialization of communication therefor, and serial communication apparatus
CN105095812A (en) * 2015-08-28 2015-11-25 飞天诚信科技股份有限公司 Self-adaptive resonant frequency method and self-adaptive resonant frequency device
CN206726209U (en) * 2017-05-27 2017-12-08 北京疯景科技有限公司 Peripheral hardware insertion detection circuit and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158229A1 (en) * 2005-01-18 2006-07-20 International Business Machines Corporation Improved signal detector for high-speed serdes
US7899649B1 (en) * 2008-03-24 2011-03-01 Altera Corporation Signal detect for high-speed serial interface
US20110131356A1 (en) * 2009-12-01 2011-06-02 Freescale Semiconductor, Inc. Method and system for high-speed detection handshake in universal serial bus based data communication system
CN103312636A (en) * 2012-03-09 2013-09-18 佳能株式会社 Information processing apparatus, serial communication system, method of initialization of communication therefor, and serial communication apparatus
CN102752052A (en) * 2012-07-23 2012-10-24 青岛海信宽带多媒体技术有限公司 Optical module of optical network unit and method for outputting control electric signal thereof
CN105095812A (en) * 2015-08-28 2015-11-25 飞天诚信科技股份有限公司 Self-adaptive resonant frequency method and self-adaptive resonant frequency device
CN206726209U (en) * 2017-05-27 2017-12-08 北京疯景科技有限公司 Peripheral hardware insertion detection circuit and terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117579978A (en) * 2024-01-16 2024-02-20 苏州至盛半导体科技有限公司 Dynamic range control method, circuit, audio processing chip and loudspeaker system
CN117579978B (en) * 2024-01-16 2024-03-29 苏州至盛半导体科技有限公司 Dynamic range control method, circuit, audio processing chip and loudspeaker system

Also Published As

Publication number Publication date
CN112929099B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US9215271B2 (en) Method and apparatus for executing application of mobile device
EP3955694B1 (en) Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium
CN112929099B (en) Signal detection method, terminal and storage medium
US20160286594A1 (en) Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium
CN104750589A (en) Memory parameter adjusting method and mobile terminal
CN113422620B (en) Communication rate control method, device, equipment and readable storage medium
CN113342722A (en) Eye diagram quality optimization method and device, electronic equipment and storage medium
CN107526955B (en) Screen-off unlocking method and device
CN110933514A (en) Video quality control method and device and computer equipment
CN115061962B (en) Method, system, storage medium and equipment for managing peripheral transmission rate
CN115314480A (en) Method and device for remotely upgrading terminal on line
CN114245481B (en) Automatic disconnection method and system for Bluetooth headset, bluetooth headset and storage medium
US11088817B2 (en) Data transmission method, data transmission device, and computer readable storage medium
CN115225166A (en) Anti-interference method, terminal and storage medium
CN112333276B (en) Network access method, system, storage medium and electronic device
CN114063758A (en) Current value obtaining method, device and medium
CN113515056A (en) Function execution method and intelligent household appliance
CN114285995B (en) Method and device for reducing signal interference, computer readable storage medium and terminal
CN112115693A (en) Method and device for exporting Word document with dynamic rendering chart and computer equipment
CN112235842A (en) Communication method and device of Internet of things equipment
CN111131528B (en) Equipment network domain determining method, server and terminal
CN113316064B (en) Method, system, head-mounted display device and storage medium for earphone and loudspeaker recognition
CN113760577B (en) Dynamic connection answering device, processing method, control device and storage medium
CN111427646B (en) Display control method and device, mobile terminal and storage medium
CN109787909B (en) Method, device, computer equipment and storage medium for reducing server blocking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant