CN112929099B - Signal detection method, terminal and storage medium - Google Patents
Signal detection method, terminal and storage medium Download PDFInfo
- Publication number
- CN112929099B CN112929099B CN201911247023.1A CN201911247023A CN112929099B CN 112929099 B CN112929099 B CN 112929099B CN 201911247023 A CN201911247023 A CN 201911247023A CN 112929099 B CN112929099 B CN 112929099B
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
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
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 end and a slave end, where the method is applied to the master end, and a signal detection circuit is disposed in the master end, where 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 stepping 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 or not 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 signal 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 can 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 terminal and used for determining whether formal communication is established with the slave terminal, the master terminal (Host) can send out the handshake signal aiming at the slave terminal when the communication port is accessed by the slave terminal (Device), specifically, the master terminal can determine whether the communication port is accessed by the slave terminal by detecting the voltage of the communication port, the master terminal inquires each port of the master terminal in a round way, and when a voltage difference exists between a Data Positive (DP) terminal and a Data negative (DM) terminal of the port, the port is accessed by the slave terminal.
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.
And after the feedback signal returns to the main end through the port, the feedback signal is detected by the signal detection circuit. 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 magnitude of 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, the signal amplitude of the first signal is reflected to be 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 is also described 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, the master determines that the next communication can be performed with the slave, whereas when the peak-to-peak value of the first signal is less than the suppression Level, the signal amplitude reflected by the feedback signal cannot be used for communication between the master and the slave, then the detection result is that the slave does not return a valid signal, and the master determines that the slave cannot perform adjustment on the next communication by the detection circuit, and then the slave performs the 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, and is preset, and when the suppression level is adjusted for the signal detection circuit, the suppression level is adjusted according to the second step value each time, where the second step value may be a specific value, for example, 1dB, 2dB, and the like, and then, decreasing the suppression level according to the preset second step value is increasing 1dB, 2dB, and the like each time, and the first step value may also be a percentage, for example, 10%,8%, and the like, and then, decreasing the suppression level according to the preset second step value is increasing 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 to say, 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 detection result indicates that the slave returns a valid signal increases, and the communication success rate of the master and the slave increases.
When the master end sends a handshake signal aiming at the slave end for the first time, timing is started, when the master end detects whether the slave end returns an effective signal or not 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 time from the first sending of the handshake signal aiming at the slave end by the master end reaches a preset time. 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.
In the preset time period, the master sends the handshake signal to the slave at least once, that is, the step of adjusting the signal detection circuit at least once is also performed, which may be two, three, or even more, and each time the master sends the handshake signal to the slave and does not obtain the valid signal, and the signal detection circuit needs to be adjusted, the gain current of the comparator may be increased according to the first step value, or the suppression level may be decreased according to the second step value, or the gain current of the comparator may be increased according to the first step value and the suppression level may be decreased 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 the 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 (Rambus) direct RAM (RDRAM), direct memory 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 appreciated by those skilled in the art that the block diagram of fig. 3 is only a block diagram of a part of the structure associated with the solution of the invention and does not constitute a limitation of the terminal to which the solution of the invention is applied, and that a specific terminal may comprise more or less components than those shown in the figure, or may combine some components, or 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 terminal to the slave terminal reaches 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 should 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 (6)
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;
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 detecting, by the signal detection circuit, whether the slave terminal returns a valid signal specifically includes:
acquiring a feedback signal of the slave end to the handshake signal;
inputting the feedback signal to the signal detection circuit, and detecting whether the feedback signal is a valid signal through the signal detection circuit;
the signal detection circuit comprises a series resistor and a pull-down resistor for impedance matching;
the signal detection circuit includes a comparator and a suppression level detector, and the detection of whether the feedback signal is a valid 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 detection parameter comprises a gain current of the comparator and/or a suppression level of the suppression level detector; the adjusting of the detection parameter for detecting the valid signal in the signal detection circuit includes:
increasing the gain current of the comparator according to a preset first step value; and/or
The suppression level is reduced according to a preset second step value.
2. 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.
3. The signal detection method according to claim 2, wherein the step of detecting the valid signal after the time from the first time the master sends out the handshake signal for the slave reaches a preset time and the valid signal is not acquired comprises:
and stopping sending the communication signal to the slave end.
4. The signal detection method according to any one of claims 1 to 3, 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.
5. 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-4.
6. 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-4.
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 CN112929099A (en) | 2021-06-08 |
CN112929099B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117579978B (en) * | 2024-01-16 | 2024-03-29 | 苏州至盛半导体科技有限公司 | Dynamic range control method, circuit, audio processing chip and loudspeaker system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7899649B1 (en) * | 2008-03-24 | 2011-03-01 | Altera Corporation | Signal detect for high-speed serial interface |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7102392B2 (en) * | 2005-01-18 | 2006-09-05 | International Business Machines Corporation | Signal detector for high-speed serdes |
US8176227B2 (en) * | 2009-12-01 | 2012-05-08 | Freescale Semiconductor, Inc. | Method and system for high-speed detection handshake in universal serial bus based data communication system |
-
2019
- 2019-12-06 CN CN201911247023.1A patent/CN112929099B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7899649B1 (en) * | 2008-03-24 | 2011-03-01 | Altera Corporation | Signal detect for high-speed serial interface |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN112929099A (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112929099B (en) | Signal detection method, terminal and storage medium | |
EP3955694B1 (en) | Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium | |
US20160286594A1 (en) | Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium | |
EP4280549A1 (en) | Network configuration method and apparatus, computer device, and storage medium | |
CN108519935B (en) | Board card testing method and device, readable storage medium and computer equipment | |
CN104750589A (en) | Memory parameter adjusting method and mobile terminal | |
CN113422620B (en) | Communication rate control method, device, equipment and readable storage medium | |
US20220039001A1 (en) | Network search method and apparatus, device and storage medium | |
CN113342722A (en) | Eye diagram quality optimization method and device, electronic equipment and storage medium | |
CN107526955B (en) | Screen-off unlocking method and device | |
CN109951549B (en) | Network page access method and device and computer readable storage medium | |
CN114063758B (en) | Current value obtaining method, device and medium | |
CN113747490A (en) | WIFI connectivity detection method and device, terminal equipment and storage medium | |
US11088817B2 (en) | Data transmission method, data transmission device, and computer readable storage medium | |
CN115756357A (en) | Screen projection method, device, equipment and storage medium of iOS system equipment | |
CN115225166A (en) | Anti-interference method, terminal and storage medium | |
CN111427646B (en) | Display control method and device, mobile terminal and storage medium | |
CN111555973B (en) | Data packet forwarding method and device based on 5G data forwarding plane | |
CN111131528B (en) | Equipment network domain determining method, server and terminal | |
CN109309637B (en) | Data storage method, device and storage medium for transmission signals | |
CN117347940B (en) | Calibration method, device, equipment and storage medium for battery charging and discharging equipment | |
CN112888042A (en) | Smart watch control method and device based on mobile terminal, terminal and medium | |
CN112235842A (en) | Communication method and device of Internet of things equipment | |
CN112115693A (en) | Method and device for exporting Word document with dynamic rendering chart and computer equipment | |
CN114257958B (en) | Information determination method and device, electronic equipment and storage medium |
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 |