CN114624634A - Plug detection system and method of Ethernet interface and electronic equipment - Google Patents

Plug detection system and method of Ethernet interface and electronic equipment Download PDF

Info

Publication number
CN114624634A
CN114624634A CN202210531803.4A CN202210531803A CN114624634A CN 114624634 A CN114624634 A CN 114624634A CN 202210531803 A CN202210531803 A CN 202210531803A CN 114624634 A CN114624634 A CN 114624634A
Authority
CN
China
Prior art keywords
isolation transformer
ethernet interface
plugging
sampling
signal
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
CN202210531803.4A
Other languages
Chinese (zh)
Other versions
CN114624634B (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.)
Shaanxi Tianshi Zhiyuan Aviation Technology Co ltd
Original Assignee
Shaanxi Tianshi Zhiyuan Aviation 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 Shaanxi Tianshi Zhiyuan Aviation Technology Co ltd filed Critical Shaanxi Tianshi Zhiyuan Aviation Technology Co ltd
Priority to CN202210531803.4A priority Critical patent/CN114624634B/en
Publication of CN114624634A publication Critical patent/CN114624634A/en
Application granted granted Critical
Publication of CN114624634B publication Critical patent/CN114624634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints
    • G01R31/68Testing of releasable connections, e.g. of terminals mounted on a printed circuit board
    • G01R31/69Testing of releasable connections, e.g. of terminals mounted on a printed circuit board of terminals at the end of a cable or a wire harness; of plugs; of sockets, e.g. wall sockets or power sockets in appliances

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a plugging and unplugging detection system of an Ethernet interface, a plugging and unplugging detection method of the Ethernet interface, electronic equipment and a computer readable storage medium, wherein the Ethernet interface comprises a first isolation transformer and a second isolation transformer, the first isolation transformer and the second isolation transformer are respectively connected to remote network equipment through a first twisted-pair differential pair and a second twisted-pair differential pair, the plugging and unplugging detection system comprises a direct current detection power supply, a sampling module and a data processing module, the direct current detection power supply is connected with center taps of the first isolation transformer and the second isolation transformer, and the direct current detection power supply, the first isolation transformer, the first twisted-pair differential pair, the remote network equipment, the second twisted-pair differential pair and the second isolation transformer form a direct current loop; the sampling module is arranged in the direct current loop; the data processing module is connected with the sampling module to acquire sampling data, and compares the sampling data with a preset threshold value to judge whether the far-end network equipment is accessed to the Ethernet interface.

Description

Plug detection system and method of Ethernet interface and electronic equipment
Technical Field
The present invention relates to the field of ethernet port plugging detection technologies, and in particular, to a plugging detection system for an ethernet interface, a plugging detection method for an ethernet interface, an electronic device, and a computer-readable storage medium.
Background
At present, electronic equipment with security requirements generally uses encryption software to protect the peripheral port, but the insertion operation of unauthorized peripherals substantially already exchanges information with the electronic equipment from the bottom layer. The interception and recording of the current encryption software belong to the category of post-processing, and illegal port access cannot be fundamentally avoided. At present, information technology is changing day by day, and many illegal peripherals have strong port attack capability, penetration capability and destruction capability. In order to improve information security and prevent the occurrence of secret loss and divulgence, it is necessary to detect whether the peripheral device is successfully accessed to the ethernet port so as to adopt an active defense strategy.
Disclosure of Invention
The present invention is directed to solve at least one of the technical problems in the prior art, and provides a system for detecting plugging/unplugging of an ethernet interface, a method for detecting plugging/unplugging of an ethernet interface, an electronic device, and a computer-readable storage medium, which can detect whether a remote network device successfully accesses the ethernet interface without information interaction.
In a first aspect, an embodiment of the present invention provides a plug detection system for an ethernet interface, where the ethernet interface includes a first isolation transformer and a second isolation transformer, and the first isolation transformer and the second isolation transformer are respectively connected to a remote network device through a first twisted pair and a second twisted pair, where the plug detection system includes:
a DC detection power supply connected to a center tap of the first isolation transformer and a center tap of the second isolation transformer such that the DC detection power supply, the first isolation transformer, the first twisted pair differential pair, the remote network device, the second twisted pair differential pair, and the second isolation transformer form a DC loop;
a sampling module disposed in the DC loop;
and the data processing module is connected with the sampling module and used for acquiring the sampling data of the sampling module and comparing the sampling data with a preset threshold value so as to judge whether the remote network equipment is accessed to the Ethernet interface.
The system for detecting the plugging of the Ethernet interface provided by the embodiment of the invention at least has the following beneficial effects: by setting the direct current detection power supply, the direct current detection power supply is connected with a center tap of the first isolation transformer and a center tap of the second isolation transformer, after a network cable loop between an Ethernet interface of a local terminal and a far-end network device is established, a direct current loop formed by the direct current detection power supply, the first isolation transformer, the first twisted-pair differential pair, the far-end network device, the second twisted-pair differential pair and the second isolation transformer is conducted, so that direct current components are superposed on the first twisted-pair differential pair and the second twisted-pair differential pair, then sampling is carried out by setting the sampling module in the direct current loop, and the data processing module carries out processing judgment according to sampling data of the sampling module, so that whether the far-end network device is successfully connected with the Ethernet interface or not can be detected on the premise of not generating information interaction.
In the system for detecting the plugging and unplugging of the ethernet interface according to an embodiment of the present invention, the ethernet interface further includes an RC filter circuit, the RC filter circuit includes a first resistor, a second resistor, and a third capacitor, a center tap of the first isolation transformer is connected to one end of the third capacitor through the first resistor, a center tap of the second isolation transformer is connected to one end of the third capacitor through the second resistor, and the other end of the third capacitor is grounded;
the plugging detection system further comprises a first capacitor and a second capacitor, wherein the first capacitor is connected in series between a center tap of the first isolation transformer and the first resistor; the second capacitor is connected in series between a center tap of the second isolation transformer and the second resistor.
Through the first capacitor and the second capacitor which are connected in series and used for isolating direct current at the center tap of the first isolation transformer and the ground RC filter circuit at the center tap of the second isolation transformer, the direct current detection power supply can be prevented from being grounded, and the direct current detection power supply is prevented from directly forming a direct current loop through the RC filter circuit, so that the accuracy of plugging detection is influenced.
In the system for detecting the plugging of the ethernet interface according to an embodiment of the present invention, the data processing module is provided with a plugging signal output port;
when the sampling data is larger than or equal to a preset threshold value, the plugging signal output port outputs a first signal, and the first signal indicates that a remote network device is accessed to the Ethernet interface;
when the sampling data is smaller than a preset threshold value, the plugging signal output port outputs a second signal, and the second signal indicates that no remote network equipment is accessed to the Ethernet interface.
Setting a plug signal output port, when the sampling data is greater than or equal to a preset threshold value, judging that the remote network equipment is successfully accessed to the Ethernet interface by the data processing module, and outputting a first signal through the plug signal output port; when the sampled data is smaller than the preset threshold value, the data processing module judges that the far-end network equipment is not successfully accessed to the Ethernet interface, and outputs a second signal through the plugging signal output port; then, prompting or responding to control operation can be carried out according to the first signal and the second signal, for example, a trusted legal peripheral is pulled out, and blocking control can be carried out on the Ethernet interface according to the received second signal; if no authorization or untrusted peripheral equipment is inserted, the Ethernet interface is kept in a blocking state even if the first signal is received, an external channel of computer sensitive information is cut off, leakage of the sensitive information is avoided, and the effect of secret advance defense is achieved.
In the system for detecting the plugging and unplugging of the ethernet interface according to an embodiment of the present invention, the sampling module is a sampling resistor connected in series between the dc detection power supply and a center tap of the first isolation transformer, the data processing module includes a conditioning circuit, an analog-to-digital conversion circuit, and a processor, which are connected in sequence, and an input end of the conditioning circuit is connected to two ends of the sampling resistor.
The sampling module adopts a sampling resistor, a voltage drop signal on the sampling resistor is sent to the conditioning circuit, the conditioning circuit exemplarily comprises an amplifying circuit, the amplifying circuit adopts proper amplification gain to carry out analog amplification, then the amplified signal is sent to an analog-to-digital conversion circuit to be digitalized, the digitalized signal data is sent to a processor to be calculated and processed, the signal data is converted into a load current of a direct current loop and is compared with a preset threshold value, and therefore whether the far-end network equipment is successfully accessed to the Ethernet interface or not is judged.
In the system for detecting the plugging/unplugging of the ethernet interface according to an embodiment of the present invention, the sampling module is a current sensor disposed between the dc detection power supply and a center tap of the first isolation transformer, the data processing module includes a processor, and an output terminal of the current sensor is connected to an input terminal of the processor.
The sampling module directly detects the load current in the direct current loop by adopting a current sensor, and then sends the load current into the processor to be compared with a preset threshold value, so that whether the remote network equipment is successfully accessed to the Ethernet interface is judged.
In the system for detecting plugging and unplugging of an ethernet interface according to some embodiments of the present invention, the processor is a micro control unit, a central processing unit, a digital signal processor, or a programmable logic gate array.
In the system for detecting plugging and unplugging of an ethernet interface according to an embodiment of the present invention, the data processing module includes a comparator, an output terminal of the sampling module is connected to one input terminal of the comparator, and another input terminal of the comparator is connected to a reference voltage signal.
The data processing module adopts a comparator, one input end of the comparator is accessed to the sampling data collected by the sampling module, and the other input end of the comparator is accessed to the reference voltage signal for comparison, so that whether the far-end network equipment is successfully accessed to the Ethernet interface is judged.
In the system for detecting the plugging and unplugging of the ethernet interface according to an embodiment of the present invention, the system further includes a power module, and the power module is connected to the data processing module.
The power supply module is configured to supply power to the data processing module, so that the peripheral equipment inserted into the Ethernet port can be detected by the plug detection system no matter the electronic equipment where the Ethernet interface is positioned is in a power-on state or a power-off state.
In a second aspect, an embodiment of the present invention provides a method for detecting plugging/unplugging of an ethernet interface, which is applied to a processor of a plugging/unplugging detection system of the ethernet interface, the Ethernet interface comprises a first isolation transformer and a second isolation transformer which are respectively connected to a remote network device through a first twisted-pair differential pair and a second twisted-pair differential pair, the plugging detection system comprises a direct current detection power supply, a sampling module and the processor, wherein the direct current detection power supply is connected with a center tap of the first isolation transformer and a center tap of the second isolation transformer, so that the dc detection power supply, the first isolation transformer, the first twisted pair, the remote network device, the second twisted pair, and the second isolation transformer form a dc loop; the sampling module is arranged in the direct current loop; the processor is connected with the sampling module, and the method comprises the following steps:
acquiring sampling data of the sampling module;
and comparing the sampled data with a preset threshold value to judge whether the remote network equipment is accessed to the Ethernet interface.
The method for detecting the plugging of the Ethernet interface provided by the embodiment of the invention at least has the following beneficial effects: the plugging detection system is provided with a direct current detection power supply which is connected with a center tap of a first isolation transformer and a center tap of a second isolation transformer, when a network cable loop between the Ethernet interface of the local terminal and the remote network equipment is established, a direct current loop formed by the direct current detection power supply, the first isolation transformer, the first twisted pair differential pair, the remote network equipment, the second twisted pair differential pair and the second isolation transformer is conducted, so that the direct current component is superposed on the first twisted pair and the second twisted pair, then a sampling module is arranged in the direct current loop for sampling, and finally the processor acquires sampling data of the sampling module, and processing and judging according to the sampling data of the sampling module, so that whether the far-end network equipment is successfully accessed to the Ethernet interface can be detected on the premise of not generating information interaction.
In the method for detecting plugging of an ethernet interface according to an embodiment of the present invention, the processor is provided with a plugging signal output port; the comparing the sampled data with a preset threshold to determine whether the remote network device is connected to the ethernet interface includes:
when the sampling data is larger than or equal to a preset threshold value, outputting a first signal through the plugging signal output port, wherein the first signal indicates that a remote network device is accessed to the Ethernet interface;
and when the sampling data is smaller than a preset threshold value, outputting a second signal through the plugging signal output port, wherein the second signal indicates that no remote network equipment is accessed to the Ethernet interface.
The plugging detection system is provided with a plugging signal output port, when the sampling data is greater than or equal to a preset threshold value, the processor judges that the far-end network equipment is successfully accessed to the Ethernet interface, and outputs a first signal through the plugging signal output port; when the sampled data is smaller than the preset threshold value, the processor judges that the far-end network equipment is not successfully accessed to the Ethernet interface, and outputs a second signal through the plugging signal output port; then, prompting or responding to control operation can be performed according to the first signal and the second signal, for example, a trusted legal peripheral is pulled out, and blocking control can be performed on the Ethernet interface according to the received second signal; if no authorization or untrusted peripheral equipment is inserted, the Ethernet interface is kept in a blocking state even if the first signal is received, an external channel of computer sensitive information is cut off, leakage of the sensitive information is avoided, and the effect of secret advance defense is achieved.
In a third aspect, an embodiment of the present invention provides an electronic device, including the system for detecting plugging and unplugging of an ethernet interface according to the embodiment of the first aspect.
According to the electronic equipment provided by the embodiment of the invention, at least the following beneficial effects are achieved: by setting the direct current detection power supply, the direct current detection power supply is connected with a center tap of the first isolation transformer and a center tap of the second isolation transformer, after a network cable loop between an Ethernet interface of a local terminal and a far-end network device is established, a direct current loop formed by the direct current detection power supply, the first isolation transformer, the first twisted-pair differential pair, the far-end network device, the second twisted-pair differential pair and the second isolation transformer is conducted, so that direct current components are superposed on the first twisted-pair differential pair and the second twisted-pair differential pair, then sampling is carried out by setting the sampling module in the direct current loop, and the data processing module carries out processing judgment according to sampling data of the sampling module, so that whether the far-end network device is successfully connected with the Ethernet interface or not can be detected on the premise of not generating information interaction.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are configured to enable a computer to perform the method for detecting plugging of an ethernet interface according to the embodiment of the first aspect.
The computer-readable storage medium provided by the embodiment of the invention has at least the following beneficial effects: the plugging detection system is provided with a direct current detection power supply which is connected with a center tap of a first isolation transformer and a center tap of a second isolation transformer, when a network cable loop between the Ethernet interface of the local terminal and the remote network equipment is established, a direct current loop formed by the direct current detection power supply, the first isolation transformer, the first twisted pair differential pair, the remote network equipment, the second twisted pair differential pair and the second isolation transformer is conducted, so that the direct current component is superposed on the first twisted pair and the second twisted pair, then a sampling module is arranged in the direct current loop for sampling, and finally the processor acquires sampling data of the sampling module, and processing and judging according to the sampling data of the sampling module, so that whether the far-end network equipment is successfully accessed to the Ethernet interface can be detected on the premise of not generating information interaction.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
The invention is further described below with reference to the accompanying drawings and examples;
fig. 1 is a schematic diagram of connection between an electronic device and a remote network device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a plugging detection system of an ethernet interface according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a plug detection system of an ethernet interface according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a plugging detection system of an ethernet interface according to a third embodiment of the present invention;
fig. 5 is a flowchart of a method for detecting plugging of an ethernet interface according to a third embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, if there are first and second described only for the purpose of distinguishing technical features, it is not understood that relative importance is indicated or implied or that the number of indicated technical features or the precedence of the indicated technical features is implicitly indicated or implied.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
Embodiments of the present invention provide a system and a method for detecting plugging of an ethernet interface, an electronic device, and a computer-readable storage medium, which can detect whether a remote network device successfully accesses the ethernet interface without information interaction.
The embodiments of the present invention will be further explained with reference to the drawings.
Referring to fig. 1 and fig. 2, a first embodiment of the present invention provides a plugging detection system for an ethernet interface, where the ethernet interface includes a first isolation transformer T1-1 and a second isolation transformer T1-2, and the first isolation transformer T1-1 and the second isolation transformer T1-2 are respectively connected to a remote network device through a first twisted-pair differential pair 100 and a second twisted-pair differential pair 200, and the plugging detection system includes:
the direct current detection power supply Vpoe is connected with a center tap of the first isolation transformer T1-1 and a center tap of the second isolation transformer T1-2, so that the direct current detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair differential pair 100, the remote network equipment, the second twisted pair differential pair 200 and the second isolation transformer T1-2 form a direct current loop;
the sampling module 300, the sampling module 300 is set in the direct current loop;
the data processing module 400, the data processing module 400 is connected to the sampling module 300, and is configured to obtain sampling data of the sampling module 300, and compare the sampling data with a preset threshold value, so as to determine whether the remote network device is connected to the ethernet interface.
According to the system for detecting the plugging/unplugging of the ethernet interface provided by the embodiment of the present invention, by setting the dc detection power supply Vpoe, which is connected to the center tap of the first isolation transformer T1-1 and the center tap of the second isolation transformer T1-2, after a network cable loop between the local ethernet interface and the remote network device is established, the dc loop formed by the dc detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair differential pair 100, the remote network device, the second twisted pair differential pair 200, and the second isolation transformer T1-2 is conducted, so that a dc current component is superimposed on the first twisted pair differential pair 100 and the second twisted pair differential pair 200, and then sampling is performed by setting the sampling module 300 in the dc loop, the data processing module 400 performs processing and determination according to the sampling data of the sampling module 300, therefore, whether the remote network equipment is successfully accessed to the Ethernet interface can be detected on the premise of not generating information interaction.
It can be understood that, in the system for detecting plugging and unplugging of an ethernet interface provided in the embodiment of the present invention, storage, forwarding and interaction are not performed on ethernet port information of a protected electronic device.
In addition, the physical layer transmission line of the ethernet interface uses an isolation transformer to isolate a twisted pair differential pair (a hundred mega network 2 pair or a giga network 4 pair) to transmit an alternating current encoding signal. The embodiment of the invention adopts the carrier wave principle, a direct current component small signal is superposed on two groups of twisted pair differential pairs, and whether a network cable loop is established or not is judged by measuring the existence of the direct current component, so that the plugging and unplugging detection of the network cable is carried out. The size of the direct current component current signal is based on the premise that the isolation transformer is not caused to generate magnetic saturation, and the positive transmission of the Ethernet coding alternating signal is not influenced.
Referring to fig. 1, in the system for detecting the plugging/unplugging of an ethernet interface according to an embodiment of the present invention, the ethernet interface further includes an RC filter circuit 500, the RC filter circuit 500 includes a first resistor R1, a second resistor R2, and a third capacitor C3, a center tap of a first isolation transformer T1-1 is connected to one end of the third capacitor C3 through a first resistor R1, a center tap of a second isolation transformer T1-2 is connected to one end of the third capacitor C3 through a second resistor R2, and the other end of the third capacitor C3 is grounded;
the plugging detection system further comprises a first capacitor C1 and a second capacitor C2, wherein the first capacitor C1 is connected in series between a center tap of the first isolation transformer T1-1 and the first resistor R1; the second capacitor C2 is connected in series between the center tap of the second isolation transformer T1-2 and the second resistor R2.
Through the first capacitor C1 and the second capacitor C2 which are used for isolating direct current and are connected in series with the RC filter circuit 500 to the ground, which is arranged at the center tap of the first isolation transformer T1-1 and the center tap of the second isolation transformer T1-2, the direct current detection power supply Vpoe can be prevented from being grounded, and the direct current detection power supply Vpoe can be prevented from directly forming a direct current loop through the RC filter circuit 500, so that the accuracy of plugging detection is influenced.
Referring to fig. 2 and 3, in the system for detecting the plugging of the ethernet interface according to an embodiment of the present invention, the data processing module 400 is provided with a plugging signal output port 410;
when the sampling data is greater than or equal to the preset threshold, the plugging signal output port 410 outputs a first signal, and the first signal indicates that a far-end network device is accessed to the ethernet interface;
when the sampled data is smaller than the preset threshold, the plugging signal output port 410 outputs a second signal, where the second signal indicates that no remote network device is connected to the ethernet interface.
Setting a plugging signal output port 410, when the sampled data is greater than or equal to a preset threshold, the data processing module 400 determines that the far-end network device is successfully accessed to the ethernet interface, and outputting a first signal through the plugging signal output port 410; when the sampled data is smaller than the preset threshold, the data processing module 400 determines that the remote network device has not successfully accessed the ethernet interface, and outputs a second signal through the plug signal output port 410; then, prompting or responding to control operation can be carried out according to the first signal and the second signal, for example, a trusted legal peripheral is pulled out, and blocking control can be carried out on the Ethernet interface according to the received second signal; if no authorization or untrusted peripheral equipment is inserted, the Ethernet interface is kept in a blocking state even if the first signal is received, an outward channel of sensitive information of the computer is cut off, leakage of the sensitive information is avoided, and the effect of secret advance defense is achieved.
It can be understood that the plugging detection system senses and detects the plugging and unplugging operations of the external device of the ethernet interface, records and outputs plugging detection signals through the plugging signal output port 410; the plugging detection signal can be processed, and the controlled physical blocking, physical isolation and port authentication authorization operation of the computer network port are combined, so that the network port of the computer is completely controlled to access, and sensitive information is prevented from leaking.
Referring to fig. 1 and 2, in the system for detecting the plugging/unplugging of the ethernet interface according to an embodiment of the present invention, the sampling module 300 is a sampling resistor Rs connected in series between the dc detection power supply Vpoe and the center tap of the first isolation transformer T1-1, and the data processing module 400 includes a conditioning circuit, an analog-to-digital conversion circuit, and a processor connected in sequence, where an input terminal of the conditioning circuit is connected to two ends of the sampling resistor Rs.
The sampling module 300 samples a voltage drop signal on the resistor Rs by using a sampling resistor Rs, and sends the voltage drop signal to a conditioning circuit, which may illustratively include an amplifying circuit, the amplifying circuit performs analog amplification by using a suitable amplification gain, and then sends the amplified signal to an analog-to-digital conversion circuit for digitization, and the digitized signal data is sent to a processor for calculation processing, and the signal data is converted into a load current of a dc loop and compared with a preset threshold value, thereby determining whether the far-end network device is successfully connected to the ethernet interface.
It is understood that the conditioning circuit may further include a filter circuit, an impedance matching circuit, an isolation circuit, or the like, and those skilled in the art can select an appropriate circuit according to the sampling signal of the sampling module 300.
Referring to fig. 3, in the system for detecting the plugging/unplugging of the ethernet interface according to the embodiment of the present invention, the sampling module 300 is a current sensor disposed between the dc detection power supply Vpoe and the center tap of the first isolation transformer T1-1, and the data processing module 400 includes a processor, and an output terminal of the current sensor is connected to an input terminal of the processor.
The sampling module 300 directly detects the load current in the dc loop by using a current sensor, and then sends the detected load current to the processor to compare the detected load current with a preset threshold, thereby determining whether the remote network device is successfully connected to the ethernet interface.
In the system for detecting insertion and extraction of an ethernet interface according to some embodiments of the present invention, the processor is a micro control unit, a central processing unit, a digital signal processor, or a programmable logic gate array.
Referring to fig. 4, in the system for detecting the plugging/unplugging of the ethernet interface according to an embodiment of the present invention, the data processing module 400 includes a comparator, an output terminal of the sampling module 300 is connected to one input terminal of the comparator, and the other input terminal of the comparator is connected to the reference voltage signal.
The data processing module 400 adopts a comparator, one input end of the comparator is connected to the sampling data collected by the sampling module 300, and the other input end is connected to the reference voltage signal for comparison, so as to determine whether the far-end network device is successfully connected to the ethernet interface.
Referring to fig. 2 and 3, in the system for detecting plugging/unplugging of an ethernet interface according to an embodiment of the present invention, the system further includes a power module 600, and the power module 600 is connected to the data processing module 400.
By configuring the power module 600 to supply power to the data processing module 400, no matter the electronic device where the ethernet interface is located is in a power-on state or a power-off state, the peripheral device inserted into the ethernet port can be detected by the plug detection system.
In addition, a second embodiment of the present invention provides a plug detection method for an ethernet interface, which is applied to a processor of a plug detection system for an ethernet interface, and referring to fig. 1 and fig. 2, the ethernet interface includes a first isolation transformer T1-1 and a second isolation transformer T1-2, the first isolation transformer T1-1 and the second isolation transformer T1-2 are respectively connected to a remote network device through a first twisted pair differential pair 100 and a second twisted pair differential pair 200, the plug detection system includes a dc detection power supply Vpoe, a sampling module 300 and a processor, the dc detection power supply Vpoe is connected to a center tap of the first isolation transformer T1-1 and a center tap of the second isolation transformer T1-2, so that the dc detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair differential pair 100, the remote network device, and a central tap of the second isolation transformer T1-2 are connected to enable the dc detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair 100, the remote network device, and the second isolation transformer T1-2 to be connected to provide a signal for the detection of the ethernet interface, The second twisted pair differential 200 and the second isolation transformer T1-2 form a direct current loop; the sampling module 300 is arranged in the direct current loop; the processor is connected to the sampling module 300, and referring to fig. 5, the plugging detection method includes, but is not limited to, steps S510 to S520:
step S510: acquiring sampling data of the sampling module 300;
step S520: and comparing the sampled data with a preset threshold value to judge whether the remote network equipment is accessed to the Ethernet interface.
According to the method for detecting the plugging of the ethernet interface provided by the embodiment of the present invention, the plugging detection system is configured by setting the dc detection power supply Vpoe, which is connected to the center tap of the first isolation transformer T1-1 and the center tap of the second isolation transformer T1-2, and after a network cable loop between the local ethernet interface and the remote network device is established, the dc loop formed by the dc detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair differential pair 100, the remote network device, the second twisted pair differential pair 200, and the second isolation transformer T1-2 is turned on, so that a dc current component is superimposed on the first twisted pair differential pair 100 and the second twisted pair differential pair 200, then the sampling module 300 is configured in the dc loop for sampling, and finally the processor obtains the sampling data of the sampling module 300, the processing and judgment are performed according to the sampling data of the sampling module 300, so that whether the far-end network device is successfully accessed to the ethernet interface can be detected on the premise of not generating information interaction.
In the method for detecting the plugging of the ethernet interface according to an embodiment of the present invention, the processor is provided with a plugging signal output port; comparing the sampled data with the preset threshold value in step S520 to determine whether the remote network device is connected to the ethernet interface includes:
when the sampling data is larger than or equal to the preset threshold value, outputting a first signal through the plugging signal output port, wherein the first signal indicates that the far-end network equipment is accessed to the Ethernet interface;
and when the sampling data is smaller than the preset threshold value, outputting a second signal through the plugging signal output port, wherein the second signal indicates that no remote network equipment is accessed to the Ethernet interface.
The plugging detection system is provided with a plugging signal output port, when the sampling data is greater than or equal to a preset threshold value, the processor judges that the far-end network equipment is successfully accessed to the Ethernet interface, and outputs a first signal through the plugging signal output port; when the sampling data is smaller than the preset threshold value, the processor judges that the far-end network equipment is not successfully accessed to the Ethernet interface, and outputs a second signal through the plugging signal output port; then, prompting or responding to control operation can be carried out according to the first signal and the second signal, for example, a trusted legal peripheral is pulled out, and blocking control can be carried out on the Ethernet interface according to the received second signal; if no authorization or untrusted peripheral equipment is inserted, the Ethernet interface is kept in a blocking state even if the first signal is received, an external channel of computer sensitive information is cut off, leakage of the sensitive information is avoided, and the effect of secret advance defense is achieved.
In addition, an embodiment of a third aspect of the present invention provides an electronic device, including the system for detecting plugging of an ethernet interface as in the above embodiment of the first aspect.
According to the electronic device provided by the embodiment of the invention, by setting the dc detection power supply Vpoe, which is connected with the center tap of the first isolation transformer T1-1 and the center tap of the second isolation transformer T1-2, after the network cable loop between the local ethernet interface and the remote network device is established, the dc loop formed by the dc detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair differential pair 100, the remote network device, the second twisted pair differential pair 200, and the second isolation transformer T1-2 is turned on, so that the dc current component is superimposed on the first twisted pair differential pair 100 and the second twisted pair differential pair 200, and then sampling is performed by setting the sampling module 300 in the dc loop, the data processing module 400 performs processing and judgment according to the sampling data of the sampling module 300, so that on the premise of no information interaction, and detecting whether the remote network equipment is successfully accessed to the Ethernet interface.
In addition, a fourth aspect of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are configured to enable a computer to execute the method for detecting plugging of an ethernet interface as described in the first aspect of the present invention.
According to the computer-readable storage medium provided by the embodiment of the present invention, the plugging detection system sets the dc detection power supply Vpoe, and the dc detection power supply Vpoe is connected to the center tap of the first isolation transformer T1-1 and the center tap of the second isolation transformer T1-2, after a network cable loop between the ethernet interface of the local terminal and the remote network device is established, the dc loop formed by the dc detection power supply Vpoe, the first isolation transformer T1-1, the first twisted pair differential pair 100, the remote network device, the second twisted pair differential pair 200, and the second isolation transformer T1-2 is turned on, so that a dc current component is superimposed on the first twisted pair differential pair 100 and the second twisted pair differential pair 200, and then the sampling module 300 is set in the dc loop to perform sampling, and finally the processor obtains the sampling data of the sampling module 300, and performs processing and determination according to the sampling data of the sampling module 300, therefore, whether the remote network equipment is successfully accessed to the Ethernet interface can be detected on the premise of not generating information interaction.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media or non-transitory media and communication media or transitory media. The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks, DVD, or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (12)

1. The utility model provides a plug detecting system of ethernet interface, its characterized in that, ethernet interface includes first isolation transformer and second isolation transformer, first isolation transformer with the second isolation transformer is connected to far-end network equipment through first twisted-pair line differential pair, second twisted-pair line differential pair respectively, plug detecting system includes:
a DC detection power supply connected to a center tap of the first isolation transformer and a center tap of the second isolation transformer such that the DC detection power supply, the first isolation transformer, the first twisted pair differential pair, the remote network device, the second twisted pair differential pair, and the second isolation transformer form a DC loop;
a sampling module disposed in the DC loop;
and the data processing module is connected with the sampling module and used for acquiring the sampling data of the sampling module and comparing the sampling data with a preset threshold value so as to judge whether the remote network equipment is accessed to the Ethernet interface.
2. The system according to claim 1, wherein the ethernet interface further comprises an RC filter circuit, the RC filter circuit comprises a first resistor, a second resistor and a third capacitor, a center tap of the first isolation transformer is connected to one end of the third capacitor through the first resistor, a center tap of the second isolation transformer is connected to one end of the third capacitor through the second resistor, and another end of the third capacitor is grounded;
the plugging detection system further comprises a first capacitor and a second capacitor, wherein the first capacitor is connected in series between a center tap of the first isolation transformer and the first resistor; the second capacitor is connected in series between a center tap of the second isolation transformer and the second resistor.
3. The system according to claim 1, wherein the data processing module is provided with a plug signal output port;
when the sampling data is larger than or equal to a preset threshold value, the plugging signal output port outputs a first signal, and the first signal indicates that a remote network device is accessed to the Ethernet interface;
when the sampling data is smaller than a preset threshold value, the plugging signal output port outputs a second signal, and the second signal indicates that no remote network equipment is accessed to the Ethernet interface.
4. The system according to claim 1, wherein the sampling module is a sampling resistor connected in series between the dc detection power supply and a center tap of the first isolation transformer, the data processing module includes a conditioning circuit, an analog-to-digital conversion circuit, and a processor connected in sequence, and an input end of the conditioning circuit is connected to two ends of the sampling resistor.
5. The system according to claim 1, wherein the sampling module is a current sensor disposed between the dc detection power supply and a center tap of the first isolation transformer, and the data processing module includes a processor, and an output terminal of the current sensor is connected to an input terminal of the processor.
6. The system according to claim 1, wherein the data processing module includes a comparator, an output terminal of the sampling module is connected to an input terminal of the comparator, and another input terminal of the comparator is connected to a reference voltage signal.
7. The system according to claim 4 or 5, wherein the processor is a micro control unit, a central processing unit, a digital signal processor, or a programmable gate array.
8. The system according to claim 1, further comprising a power module, wherein the power module is connected to the data processing module.
9. The method for detecting the plugging and unplugging of the Ethernet interface is characterized in that the method is applied to a processor of a plugging and unplugging detection system of the Ethernet interface, the Ethernet interface comprises a first isolation transformer and a second isolation transformer, the first isolation transformer and the second isolation transformer are respectively connected to a remote network device through a first twisted-pair differential pair and a second twisted-pair differential pair, the plugging and unplugging detection system comprises a direct current detection power supply, a sampling module and the processor, the direct current detection power supply is connected with a center tap of the first isolation transformer and a center tap of the second isolation transformer, so that the direct current detection power supply, the first isolation transformer, the first twisted-pair differential pair, the remote network device, the second twisted-pair differential pair and the second isolation transformer form a direct current loop; the sampling module is arranged in the direct current loop; the processor is connected with the sampling module, and the method comprises the following steps:
acquiring sampling data of the sampling module;
and comparing the sampled data with a preset threshold value to judge whether the remote network equipment is accessed to the Ethernet interface.
10. The method according to claim 9, wherein the processor is provided with a plug signal output port; the comparing the sampled data with a preset threshold to determine whether the remote network device is connected to the ethernet interface includes:
when the sampling data is larger than or equal to a preset threshold value, outputting a first signal through the plugging signal output port, wherein the first signal indicates that a remote network device is accessed to the Ethernet interface;
and when the sampling data is smaller than a preset threshold value, outputting a second signal through the plugging signal output port, wherein the second signal indicates that no remote network equipment is accessed to the Ethernet interface.
11. An electronic device characterized by a plugging detection system comprising an ethernet interface according to any one of claims 1 to 8.
12. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method for detecting the plugging of an ethernet interface according to any one of claims 9 to 10.
CN202210531803.4A 2022-05-17 2022-05-17 Plug detection system and method of Ethernet interface and electronic equipment Active CN114624634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210531803.4A CN114624634B (en) 2022-05-17 2022-05-17 Plug detection system and method of Ethernet interface and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210531803.4A CN114624634B (en) 2022-05-17 2022-05-17 Plug detection system and method of Ethernet interface and electronic equipment

Publications (2)

Publication Number Publication Date
CN114624634A true CN114624634A (en) 2022-06-14
CN114624634B CN114624634B (en) 2022-09-30

Family

ID=81907343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210531803.4A Active CN114624634B (en) 2022-05-17 2022-05-17 Plug detection system and method of Ethernet interface and electronic equipment

Country Status (1)

Country Link
CN (1) CN114624634B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200959605Y (en) * 2006-05-31 2007-10-10 富士康(昆山)电脑接插件有限公司 Interface circuit of electric connector
CN103595542A (en) * 2012-08-13 2014-02-19 中国电信股份有限公司 A power supply terminal device, a power supply system and a power supply method
DE102016114144A1 (en) * 2016-08-01 2018-02-01 Endress+Hauser Flowtec Ag Test system for testing electrical connections between components and a printed circuit board
CN111901012A (en) * 2020-07-23 2020-11-06 深圳市奥拓电子股份有限公司 Ethernet communication module and electronic system for simultaneously transmitting two signals
CN112684383A (en) * 2020-11-18 2021-04-20 杭州士兰微电子股份有限公司 Load connection detection method in Ethernet power supply system and power supply device
CN214627004U (en) * 2021-02-08 2021-11-05 杭州追新科技有限公司 Power taking circuit of POE (Power over Ethernet) and Internet of things gateway system
CN114397607A (en) * 2022-01-17 2022-04-26 广州市奥威亚电子科技有限公司 Plug detection device and detection method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200959605Y (en) * 2006-05-31 2007-10-10 富士康(昆山)电脑接插件有限公司 Interface circuit of electric connector
CN103595542A (en) * 2012-08-13 2014-02-19 中国电信股份有限公司 A power supply terminal device, a power supply system and a power supply method
DE102016114144A1 (en) * 2016-08-01 2018-02-01 Endress+Hauser Flowtec Ag Test system for testing electrical connections between components and a printed circuit board
CN111901012A (en) * 2020-07-23 2020-11-06 深圳市奥拓电子股份有限公司 Ethernet communication module and electronic system for simultaneously transmitting two signals
CN112684383A (en) * 2020-11-18 2021-04-20 杭州士兰微电子股份有限公司 Load connection detection method in Ethernet power supply system and power supply device
CN214627004U (en) * 2021-02-08 2021-11-05 杭州追新科技有限公司 Power taking circuit of POE (Power over Ethernet) and Internet of things gateway system
CN114397607A (en) * 2022-01-17 2022-04-26 广州市奥威亚电子科技有限公司 Plug detection device and detection method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YISHAN ZHANG: "A distributed data acquisition system with smart connector plugs powered by the Ethernet cable", 《2012 INTERNATIONAL CONFERENCE ON QUALITY, RELIABILITY, RISK, MAINTENANCE, AND SAFETY ENGINEERING》 *
董攀: "一种用于USB设备自动热插拔的多通道检测系统设计", 《化工自动化及仪表》 *

Also Published As

Publication number Publication date
CN114624634B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US20190165588A1 (en) Charging protection method and apparatus
US7752672B2 (en) Methods and apparatus for physical layer security of a network communications link
US8896455B2 (en) Intrusion detection and communication
CN114624632B (en) USB port plug detection system, method, electronic equipment and storage medium
US20180069874A1 (en) Attack detection apparatus
US20140072129A1 (en) Method and apparatus for detecting insertion of external audio outputting device in electronic device
CN104103924A (en) High definition multimedia interface hdmi interface unit and multimedia terminal
CN105635084A (en) Apparatus and method for authenticating terminal
US20160366162A1 (en) Methods circuits devices assemblies systems and functionally associated computer executable code for detecting a line condition
BR112012031266B1 (en) METHOD, APPARATUS AND SYSTEM
US20180375861A1 (en) Network Device Removal For Access Control and Information Security
US20180375867A1 (en) Untrusted Network Device Identification and Removal For Access Control and Information Security
CN110781059B (en) Protection of chips from electromagnetic pulse attacks using antennas
CN107181769A (en) A kind of network intrusion prevention system and method
CN114624634B (en) Plug detection system and method of Ethernet interface and electronic equipment
CN114624635A (en) Plug-pull detection system and method of VGA display interface and electronic equipment
US10567379B2 (en) Network switch port access control and information security
US20180375873A1 (en) Network Device Isolation For Access Control and Information Security
EP3901639A1 (en) Power supply peak current detecting circuit and method
KR101119848B1 (en) Apparatus and method for detecting connectivity fault of image input device
US7305038B2 (en) Peripheral device receiver detection in a high noise environment
CN109600348B (en) Method and device for safe access of video front-end equipment
CN105225682B (en) MDVR storage mediums guard method and circuit, MDVR and automobile
WO2016165335A1 (en) Screen lock controlling method and apparatus
US10445530B1 (en) Hardware intrusion detection system

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