Equipment access detection control method and system and electronic equipment

文档序号:1270910 发布日期:2020-08-25 浏览:9次 中文

阅读说明:本技术 设备接入检测控制方法、系统及电子设备 (Equipment access detection control method and system and electronic equipment ) 是由 赵飞 陆小松 蒲天发 于 2020-04-15 设计创作,主要内容包括:本申请提供一种设备接入检测控制方法、系统及电子设备,其中方法通过向接口的电源端子发送检测信号,获取接口的电源回流端子处的反馈信号,进而检测反馈信号是否为与检测信号匹配的有效信号。从而在反馈信号为与检测信号匹配的有效信号时,确定接口接入有外接电子设备。这样,若接口接入了外接电子设备,那么在电源回流端子处的反馈信号即为该检测信号,从而即可有效确定出是否接入了外接电子设备。(The application provides a device access detection control method, a device access detection control system and electronic equipment, wherein the method comprises the steps of sending a detection signal to a power terminal of an interface, obtaining a feedback signal at a power supply backflow terminal of the interface, and further detecting whether the feedback signal is an effective signal matched with the detection signal. Therefore, when the feedback signal is an effective signal matched with the detection signal, the interface is determined to be connected with the external electronic equipment. Therefore, if the interface is connected with the external electronic equipment, the feedback signal at the power supply backflow terminal is the detection signal, and whether the external electronic equipment is connected or not can be effectively determined.)

1. A method for controlling access detection of a device, comprising:

sending a detection signal to a power terminal of the interface;

acquiring a feedback signal at a power supply return terminal of the interface;

detecting whether the feedback signal is a valid signal matched with the detection signal;

and when the feedback signal is an effective signal matched with the detection signal, determining that the interface is accessed with an external electronic device.

2. The device access detection control method of claim 1, wherein the method further comprises: and when the feedback signal is an effective signal matched with the detection signal, accessing a power supply to the interface.

3. The device access detection control method of claim 2, wherein the method further comprises: and when the feedback signal is not a valid signal matched with the detection signal, disconnecting the power supply from the interface.

4. The device access detection control method of claim 2, wherein prior to sending the detection signal to the power terminal of the interface, the method further comprises:

determining that a current between a power terminal of the power supply to the interface and a power return terminal is zero.

5. The device access detection control method according to any of claims 1-4, wherein the detection signal is a coded pulse signal;

detecting whether the feedback signal is a valid signal matching the detection signal, comprising:

detecting whether the feedback signal is the coding pulse signal;

when the feedback signal is the coded pulse signal, the feedback signal is a valid signal matched with the detection signal; otherwise, the feedback signal is not a valid signal matching the detection signal.

6. The device access detection control method of claim 5,

detecting whether the feedback signal is the coded pulse signal, comprising:

reversing the coded pulse signal to obtain a reverse coded pulse signal; after the feedback signal is pulled up, performing bitwise AND operation on the feedback signal and the reverse coding pulse signal, and performing OR operation on the result of each bit; when the operation result is 0, whether the feedback signal is the coding pulse signal or not is judged; when the operation result is 1, the feedback signal is not the coding pulse signal;

or the like, or, alternatively,

reversing the coded pulse signal to obtain a reverse coded pulse signal; performing bit-wise OR operation on the feedback signal and the reverse coding pulse signal, and performing AND operation on each bit result; when the operation result is 1, whether the feedback signal is the coding pulse signal or not is judged; when the operation result is 0, the feedback signal is not the encoding pulse signal.

7. A device access detection control system, comprising:

the signal generating unit is used for sending a detection signal to a power supply terminal of the interface;

the signal receiving unit is used for acquiring a feedback signal at a power supply return terminal of the interface;

and the detection processing unit is used for detecting whether the feedback signal is an effective signal matched with the detection signal or not so as to determine that the interface is accessed with an external electronic device when the feedback signal is the effective signal matched with the detection signal.

8. The device access detection control system of claim 7, wherein the system further comprises:

and the switch control unit is used for connecting a power supply to the interface when the feedback signal is an effective signal matched with the detection signal.

9. The device access detection control system of claim 8, wherein the switch control unit is further configured to disconnect the power supply from the interface when the feedback signal is not a valid signal that matches the detection signal.

10. The device access detection control system of claim 8, wherein the system further comprises a load detection unit;

the load detection unit is respectively connected with the power supply and the signal generation unit and is used for detecting whether the current in a power supply circuit from the power supply to the power supply terminal of the interface is zero or not and outputting a prohibition signal to the signal generation unit to prohibit the signal generation unit from sending the detection signal when the current in the power supply circuit is not zero; and when the current in the power supply circuit is zero, outputting an enabling signal to the signal generating unit so that the signal generating unit sends a detection signal to a power supply terminal of the interface.

11. The device access detection control system of any one of claims 8-10, wherein the detection signal is a coded pulse signal; the detection processing unit comprises a shift storage unit, an inversion unit and a comparison unit;

the reverse unit is used for acquiring the detection signal from the signal generating unit, performing reverse processing on the coded pulse signal, outputting a reverse coded pulse signal to the shift storage unit, and outputting the reverse coded pulse signal to the comparison unit through the shift storage unit;

the signal receiving unit is further configured to pull up a feedback signal obtained from a power return terminal of the interface to output a logic level 1 signal when the feedback signal is a logic level 0 signal;

the comparison unit is used for performing bitwise AND operation on the signals output by the signal receiving unit and the reverse coding pulse signals, performing OR operation on the results of each bit, and outputting the operation results to the switch control unit;

the switch control unit is specifically configured to, when the received operation result is 0 level, switch the power supply into the interface and disconnect the signal generation unit from the power supply terminal of the interface; and when the received operation result is 1 level, connecting the signal generation unit with a power terminal of the interface, and disconnecting the power supply from the interface.

12. The device access detection control system of claim 11, wherein the system further comprises a signal holding unit;

the signal generating unit is further configured to send a synchronization update signal to the signal holding unit after sending the coded pulse signal;

the signal holding unit is used for receiving the operation result transmitted by the comparison unit and outputting the operation result to the switch control unit after receiving the synchronous updating signal.

13. An electronic device, comprising: an interface, a power supply, and a device access detection control system according to any one of claims 8-12;

the interface is connected with the power supply and a signal generating unit of the equipment access detection control system through a switch control unit of the equipment access detection control system.

Technical Field

The present application relates to the field of electronic device technologies, and in particular, to a method and a system for device access detection control, and an electronic device.

Background

In an electronic device, a corresponding interface is usually designed to access an external electronic device, for example, access a mouse, a keyboard, a camera, and the like.

The access detection of the external electronic equipment is concerned about whether the electronic equipment can be quickly and accurately electrified, so that the corresponding control processing of the external electronic equipment is quickly realized.

Disclosure of Invention

An object of the embodiments of the present application is to provide a method and a system for controlling device access detection, and an electronic device, so as to implement access detection for an external electronic device.

The embodiment of the application provides a device access detection control method, which comprises the following steps: sending a detection signal to a power terminal of the interface; acquiring a feedback signal at a power supply return terminal of the interface; detecting whether the feedback signal is a valid signal matched with the detection signal; and when the feedback signal is an effective signal matched with the detection signal, determining that the interface is accessed with an external electronic device.

In the practical application process, the external electronic equipment can be regarded as a load, and when the interface is not connected with the external electronic equipment, a power terminal and a power supply backflow terminal of the interface are in an open circuit state; when the external electronic equipment is connected to the interface, the power supply terminal and the power supply backflow terminal of the interface form a closed loop through the external electronic equipment due to the connection of the external electronic equipment. Based on the principle, in the implementation process, the detection signal is sent to the power terminal of the interface, and if the interface is connected to the external electronic device, the feedback signal at the power return terminal is the detection signal, so that whether the interface is connected to the external electronic device can be determined by detecting whether the feedback signal is matched with the detection signal.

Further, the method further comprises: and when the feedback signal is an effective signal matched with the detection signal, accessing a power supply to the interface.

Further, the method further comprises: and when the feedback signal is not a valid signal matched with the detection signal, disconnecting the power supply from the interface.

In the implementation process, when the external electronic equipment is determined to be connected, the power supply is connected with the interface, so that after the external electronic equipment is reliably connected with the interface, the power supply supplies power to the equipment through the interface, and when the external electronic equipment is not connected, a power supply circuit between the power supply and the interface is disconnected, so that the power supply terminal of the interface does not output voltage and current when the external electronic equipment is not connected, and hot plug protection of the equipment is realized.

Further, before transmitting the detection signal to the power terminal of the interface, the method further comprises: determining that a current between a power terminal of the power supply to the interface and a power return terminal is zero.

In the implementation process, whether current exists between the power supply terminal of the interface and the power supply terminal of the power supply, whether the external electronic equipment is effectively accessed can be effectively determined, and therefore when the current does not exist between the power supply terminal of the interface and the power supply circuit of the power supply terminal of the interface, the access of the external electronic equipment is detected by sending a detection signal to the power supply terminal of the interface, and the access detection of the external electronic equipment is quickly realized.

Further, the detection signal is a coded pulse signal; detecting whether the feedback signal is a valid signal matching the detection signal, comprising: detecting whether the feedback signal is the coding pulse signal; when the feedback signal is the coded pulse signal, the feedback signal is a valid signal matched with the detection signal; otherwise, the feedback signal is not a valid signal matching the detection signal.

Further, detecting whether the feedback signal is the coded pulse signal includes:

reversing the coded pulse signal to obtain a reverse coded pulse signal; after the feedback signal is pulled up, performing bitwise AND operation on the feedback signal and the reverse coding pulse signal, and performing OR operation on the result of each bit; when the operation result is 0, whether the feedback signal is the coding pulse signal or not is judged; when the operation result is 1, the feedback signal is not the coding pulse signal;

or, the coded pulse signal is reversed to obtain a reverse coded pulse signal; performing bit-wise OR operation on the feedback signal and the reverse coding pulse signal, and performing AND operation on each bit result; when the operation result is 1, whether the feedback signal is the coding pulse signal or not is judged; when the operation result is 0, the feedback signal is not the encoding pulse signal.

In practical applications, if the external electronic device is not connected, the feedback signal at the power return terminal should be a logic level 0 signal. Conversely, if the external electronic device is connected, the feedback signal at the power return terminal should be the coded pulse signal.

In the first implementation process, the feedback signal is pulled up, and when the feedback signal is a logic level 0 signal, a logic level 1 signal is output, so that after bitwise and operation is performed on the sum-inverse coded pulse signal, and an or operation is performed on the result of each bit, the obtained operation result is 1, when the feedback signal is a coded pulse signal, after bitwise and operation is performed on the sum-inverse coded pulse signal, each bit is 0, and after the or operation is performed on the result of each bit, the obtained operation result is 0, and accordingly, whether the feedback signal is the coded pulse signal can be accurately determined according to whether the operation result is 0 or 1.

In the second implementation process, when the feedback signal is a logic level 0 signal, after bitwise or operation is performed on the feedback signal with the reverse coding pulse signal, and then the result of each bit is subjected to and operation, the obtained operation result is 0, when the feedback signal is a coding pulse signal, after bitwise or operation is performed on the feedback signal with the reverse coding pulse signal, each bit is 1, after and operation is performed on the result of each bit, the obtained operation result is 1, and accordingly, whether the feedback signal is the coding pulse signal can be accurately determined according to whether the operation result is 0 or 1.

An embodiment of the present application further provides a device access detection control system, including: the signal generating unit is used for sending a detection signal to a power supply terminal of the interface; the signal receiving unit is used for acquiring a feedback signal at a power supply return terminal of the interface; and the detection processing unit is used for detecting whether the feedback signal is an effective signal matched with the detection signal or not so as to determine that the interface is accessed with an external electronic device when the feedback signal is the effective signal matched with the detection signal.

In the implementation structure, the detection signal is sent to the power terminal of the interface, and then whether the feedback signal is matched with the detection signal or not is detected, so that whether the interface is connected to the external electronic equipment or not can be quickly and accurately determined, and further, the control of the related external electronic equipment is facilitated.

Further, the system further comprises: and the switch control unit is used for connecting a power supply to the interface when the feedback signal is an effective signal matched with the detection signal.

Further, the switch control unit is further configured to disconnect the power supply from the interface when the feedback signal is not a valid signal matching the detection signal.

In the above implementation structure, the switch control unit connects the power supply to the interface only when it is determined that the external electronic device is connected. Therefore, after the external electronic equipment is reliably connected with the interface, the power supply supplies power to the equipment through the interface, and when the external electronic equipment is not connected, the power supply circuit between the power supply and the interface is disconnected, so that the power terminal of the interface does not output voltage and current when the external electronic equipment is not connected, and hot plug protection of the equipment is realized.

Furthermore, the equipment access detection control system also comprises a load detection unit; the load detection unit is respectively connected with the power supply and the signal generation unit and is used for detecting whether the current in a power supply circuit from the power supply to the power supply terminal of the interface is zero or not and outputting a prohibition signal to the signal generation unit to prohibit the signal generation unit from sending the detection signal when the current in the power supply circuit is not zero; and when the current in the power supply circuit is zero, outputting an enabling signal to the signal generating unit so that the signal generating unit sends a detection signal to a power supply terminal of the interface.

Further, the system also comprises an overcurrent protection structure; the overcurrent protection structure is connected in series in a power supply circuit from the power supply to the power supply terminal of the interface.

In the implementation process, the overcurrent protection of the equipment can be realized by arranging the flow protection structure, so that the equipment is prevented from being damaged.

Further, the detection signal is a coded pulse signal; the detection processing unit comprises a shift storage unit, an inversion unit and a comparison unit; the reverse unit is used for acquiring the detection signal from the signal generating unit, performing reverse processing on the coded pulse signal, outputting a reverse coded pulse signal to the shift storage unit, and outputting the reverse coded pulse signal to the comparison unit through the shift storage unit; the signal receiving unit is further configured to pull up a feedback signal obtained from a power return terminal of the interface to output a logic level 1 signal when the feedback signal is a logic level 0 signal; the comparison unit is used for performing bitwise AND operation on the signals output by the signal receiving unit and the reverse coding pulse signals, performing OR operation on the results of each bit, and outputting the operation results to the switch control unit; the switch control unit is specifically configured to, when the received operation result is 0 level, switch the power supply into the interface and disconnect the signal generation unit from the power supply terminal of the interface; and when the received operation result is 1 level, connecting the signal generation unit with a power terminal of the interface, and disconnecting the power supply from the interface.

In the implementation process, whether the external electronic equipment is connected or not can be accurately distinguished according to the comparison result of the comparison unit, and the intelligent control on the switch control unit is realized based on the comparison result of the comparison unit. Meanwhile, in the process, when the signal generating unit is communicated with the power terminal of the interface, the power is disconnected with the interface, and when the external electronic equipment is determined to be connected, the power is connected with the interface, so that the power is supplied to the equipment through the interface after the external electronic equipment is reliably connected with the interface, and when the external electronic equipment is not on line, the power is disconnected from the power supply circuit between the interface, so that the power terminal of the interface is not connected with the external electronic equipment, voltage and current are not output, and hot plug protection of the equipment is realized.

Further, the system further comprises a signal holding unit; the signal generating unit is further configured to send a synchronization update signal to the signal holding unit after sending the coded pulse signal; the signal holding unit is used for receiving the operation result transmitted by the comparison unit and outputting the operation result to the switch control unit after receiving the synchronous updating signal.

In the implementation process, the synchronous updating signal can ensure that the result output by the comparison unit is the result corresponding to the whole encoding pulse signal, thereby ensuring the accuracy of the control signal (namely, the operation result) output to the switch control unit.

An embodiment of the present application further provides an electronic device, including: the interface, the power supply and any equipment with the switch control unit are connected with the detection control system; the interface is connected with the power supply and a signal generating unit of the equipment access detection control system through a switch control unit of the equipment access detection control system.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.

Fig. 1 is a schematic basic flowchart of a device access detection control method according to an embodiment of the present disclosure;

fig. 2 is a schematic diagram of a basic structure of a device access detection control system according to an embodiment of the present disclosure;

fig. 3 is a schematic diagram of a basic structure of a device access detection control system having a switch control unit according to an embodiment of the present application;

fig. 4 is a schematic diagram of a possible structure of a switch control unit according to an embodiment of the present disclosure;

fig. 5 is a schematic diagram of a basic structure of an apparatus access detection control system having a load detection unit according to an embodiment of the present application;

fig. 6 is a schematic diagram of a possible structure of a load detection unit according to an embodiment of the present disclosure;

fig. 7 is a schematic diagram of a basic structure of a more specific device access detection control system according to an embodiment of the present application;

fig. 8 is a schematic basic structure diagram of a more specific device access detection control system according to an embodiment of the present application;

fig. 9 is a schematic basic structure diagram of a more specific device access detection control system according to an embodiment of the present application;

fig. 10 is a timing chart of an operation according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:存储装置及包括其的数据处理系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!