A method for collecting high-speed communication avoidance pulse group test interference of terminal

By using a microcontroller chip with an external interrupt pin connected to a loop and monopole antenna to detect electromagnetic interference in the acquisition terminal, and pausing communication for 50ms when a pulse group is detected, the problem of electrical fast transient pulse group interference in high-speed communication of the acquisition terminal is solved, achieving effective interference avoidance without increasing hardware costs.

CN116299142BActive Publication Date: 2025-11-28QINGDAO TOPSCOMM COMM +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310292075.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2025-11-28
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

Existing technologies cannot effectively avoid interference from electrical fast transient pulses in high-speed communication of acquisition terminals, leading to problems such as communication level reversal and timing disorder. Hardware protection measures also increase costs.

Method used

Electromagnetic fields and electromagnetic interference are detected by connecting an external loop antenna to the microcontroller. Interference is detected by connecting an external loop and monopole antenna to the external interrupt pin of the microcontroller chip. Communication is paused for 50ms when a burst is detected and then resumed to avoid interference.

Benefits of technology

It effectively avoids electrical fast transient burst interference without increasing hardware costs, ensuring normal communication of the acquisition terminal when inductive loads are connected and disconnected, and simplifying protection measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116299142B_ABST
    Figure CN116299142B_ABST
Patent Text Reader

Abstract

The application discloses a kind of methods for collecting terminal's high-speed communication to avoid pulse group test interference, and its technical scheme includes the following steps: step one, micro control chip external interrupt pin 1 is connected with loop antenna, external interrupt pin 2 is connected with monopole antenna, and the magnetic field and electric field interference generated by pulse group are detected respectively;Step two, external interrupt pin 1 or 2 repeatedly enters the key interrupt program of collection terminal and detects interference;Step three, when interference detection flag is 1, notify_func function is called, otherwise normal high-speed communication is maintained;Step four, when the key evades pulse group flag is 1, high-speed communication is suspended and resumes high-speed communication after 50ms delay, otherwise normal high-speed communication is maintained.The application can realize complete avoidance pulse group interference, so that collection terminal can operate normally when inductive load is connected and disconnected in power grid, and high-speed communication is not disturbed by electric fast transient pulse group.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power distribution network automation, and particularly relates to a method for avoiding pulse group test interference in high-speed communication of a collection terminal. BACKGROUND

[0002] As a project for verifying electromagnetic anti-interference sensitivity of terminal equipment, the electric fast transient burst immunity test is an important part of electromagnetic compatibility test and has been included in many product standards including collection terminals. The electric fast transient burst simulates a series of pulse group interference generated at the switch due to insulation breakdown of switch contact gap or contact bounce when inductive load in the power grid is turned on or off, which can be directly coupled to the internal terminal through the power / signal loop and also interfere with other equipment through electromagnetic radiation. The rising edge of a single pulse is steep, the duration is short, the energy is low but the repetition frequency is high, which can cause one-way charging of junction capacitance of semiconductor devices in the line, and when the energy on the junction capacitance accumulates to a certain extent, it will cause data transmission abnormalities such as communication level inversion, timing disorder, and even consequences such as chip latch-up and terminal reset.

[0003] In the high-speed communication circuit of the terminal, a filter circuit such as a low-pass filter is usually added to filter out the pulse group interference, but the hardware protection will increase the cost to a certain extent, and the filtering effect is limited, so it is necessary to find a method for avoiding pulse group test interference in high-speed communication of the collection terminal. SUMMARY

[0004] The present application provides a method for avoiding pulse group test interference in high-speed communication of a collection terminal, which first uses a micro control chip external interrupt pin 1 to detect the magnetic field interference generated by the pulse group, and uses a micro control chip external interrupt pin 2 to detect the electric field interference generated by the pulse group, and then detects the interference by repeatedly interrupting the keys of the collection terminal through the external interrupt pin 1 or 2, and when the double-edge of a single pulse triggers the notify_func function in the main control program, the high-speed communication is suspended and delayed for 50 ms, so as to completely avoid the pulse group interference, so that the collection terminal can normally operate when the inductive load in the power grid is turned on and off, and the high-speed communication is not interfered by the electric fast transient burst.

[0005] The purpose of the present application can be achieved by the following technical solutions:

[0006] A method for avoiding pulse group test interference in high-speed communication of a collection terminal, comprising the following steps:

[0007] Step one, the micro control chip outside the interrupt pin 1 is connected with a loop antenna, and the magnetic field disturbance generated by the pulse group is detected, and the micro control chip outside the interrupt pin 2 is connected with a monopole antenna, and the electric field disturbance generated by the pulse group is detected;

[0008] Step two, the external interrupt pin 1 or 2 repeatedly collects the terminal key interrupt program to detect the disturbance;

[0009] Step three, when the disturbance detection flag bit notify_enable=1, the notify_func function is called, otherwise the normal high-speed communication is maintained;

[0010] Step four, when the key avoidance pulse group flag bit key_emi_enable=1, the high-speed communication is suspended and is restored after a delay of 50ms, otherwise the normal high-speed communication is maintained.

[0011] Further, in step one, the pulse group directly couples common mode / differential mode interference to the terminal equipment through the power supply loop and the communication loop, and also indirectly couples to adjacent terminals or circuits through electromagnetic radiation, when the electric field around the monopole antenna changes, a voltage is induced, which is mainly sensitive to the electric field, when the magnetic field passing through the loop antenna changes, an induced electromotive force appears on the wire, which is mainly sensitive to the magnetic field, the monopole antenna and the loop antenna are realized by the way of PCB wiring;

[0012] The length of the monopole antenna is closely related to the wavelength, for noise suppression, the length of the line (which can be used as an antenna) needs to be kept less than the wavelength, and the wavelength calculation formula is:

[0013]

[0014] Wherein, λ is the wavelength (m), c is the speed of light 3×10 8 (m / s), f is the frequency (Hz), after multiple tests, when the monopole antenna wiring length is at least 1 / 20 of the wavelength, that is, 75mm, the rising edge of a single pulse 5ns in the pulse group can be effectively detected;

[0015] The loop antenna has similar frequency characteristics as the monopole antenna, and the radius a of the loop antenna needs to satisfy the formula:

[0016]

[0017] Or equivalent to the circumference L of the loop <λ / 3, after multiple tests, when the loop area is 4×10 -4 m 2 , the pulse group disturbance can be effectively detected;

[0018] Further, in step two, the external interrupt pins 1 and 2 are connected to the corresponding keys of the collection terminal respectively, and the interference detection is performed by repeatedly entering the key interrupt program of the collection terminal through the external interrupt pins 1 or 2.

[0019] Further, in step three, when a single pulse in the pulse group triggers the external interrupt through double-edge triggering, the key avoidance pulse group flag bit key_emi_enable is 1, and when the interrupt is not triggered, key_emi_enable is 0.

[0020] Further, in step four, in the process of the electric fast transient pulse group immunity test, when the single pulse repetition frequency is 5 kHz, a pulse group lasting for 15 ms is generated every 300 ms, and when the single pulse repetition frequency is 100 kHz, a pulse group lasting for 0.75 ms is generated every 300 ms, so that when the double-edge triggering interrupt of the first pulse in the pulse group is triggered, the high-speed communication is paused and the delay of 50 ms is performed, so that the pulse group interference in different test environments can be completely avoided, and a margin is left.

[0021] The method has the beneficial technical effects that: a method for avoiding pulse group test interference in high-speed communication of a collection terminal is provided, the method first uses the external interrupt pin 1 of the micro control chip to detect the magnetic field interference generated by the pulse group by external connection of a loop antenna, and uses the external interrupt pin 2 of the micro control chip to detect the electric field interference generated by the pulse group by external connection of a monopole antenna, and secondly, the interference is detected by repeatedly entering the key interrupt of the collection terminal through the external interrupt pins 1 or 2, when the double-edge triggering of the single pulse triggers the notify_func function in the main control program, the high-speed communication is paused and the delay of 50 ms is performed, so that the purpose of completely avoiding the pulse group interference is achieved, and the high-speed communication is ensured not to be interfered by the electric fast transient pulse group. The method completely avoids the pulse group by the software mode, only needs to modify the length of the wire or the area of the loop at the external interrupt pin in the PCB, does not need to increase the hardware protection cost, is simple and reliable, and can ensure that the collection terminal can normally operate when the inductive load in the power grid is connected and disconnected, ensure that the high-speed communication is not interfered by the electric fast transient pulse group, and has very important application value. BRIEF DESCRIPTION OF DRAWINGS

[0022] Figure 1 It is a flow chart of the method for avoiding pulse group test interference in high-speed communication of a collection terminal.

[0023] Figure 2 It is a structural diagram of the method for avoiding pulse group test interference in high-speed communication of a collection terminal.

[0024] Figure 3 It is a double-edge triggering schematic diagram of a single pulse of the method for avoiding pulse group test interference in high-speed communication of a collection terminal.

[0025] Figure 4 is a pulse group avoidance schematic diagram of a method for collecting terminal high-speed communication avoidance pulse group test interference. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below in combination with the drawings and examples. It should be understood that the specific examples described herein are only used to explain the present application and do not limit the present application.

[0027] As shown in Figure 1 , a method for collecting terminal high-speed communication avoidance pulse group test interference, comprising the following steps:

[0028] Step one, as shown in Figure 2 , the micro control chip external interrupt pin 1 is externally connected with a loop antenna to detect the magnetic field interference generated by the pulse group, and the micro control chip external interrupt pin 2 is externally connected with a monopole antenna to detect the electric field interference generated by the pulse group;

[0029] Step two, the external interrupt pin 1 or 2 repeatedly enters the collection terminal key interrupt program to detect interference;

[0030] Step three, when the interference detection flag bit notify_enable=1, the notify_func function is called, otherwise the normal high-speed communication is maintained;

[0031] Step four, when the key avoidance pulse group flag bit key_emi_enable=1, the high-speed communication is suspended and restored after a delay of 50ms, otherwise the normal high-speed communication is maintained.

[0032] Further, in step one, the pulse group will directly couple common mode / differential mode interference through the power loop and the communication loop into the terminal device, and will also indirectly couple through electromagnetic radiation into adjacent terminals or circuits. When the electric field around the monopole antenna changes, a voltage will be induced, which is mainly sensitive to the electric field. When the magnetic field passing through the loop antenna changes, an induced electromotive force will appear on the wire, which is mainly sensitive to the magnetic field. The monopole antenna and the loop antenna are both realized by the way of PCB line;

[0033] The length of the monopole antenna is closely related to the wavelength. For noise suppression, the line length (which can be used as an antenna) needs to be kept smaller than the wavelength. The wavelength calculation formula is:

[0034]

[0035] Where λ is the wavelength (m), c is the speed of light 3×10 8(m / s), f is frequency (Hz), through multiple tests, when the monopole antenna wire length is at least 1 / 20 wavelength, that is, 75 mm, the rising edge of a single pulse 5 ns in the pulse group can be effectively detected;

[0036] The loop antenna has similar frequency characteristics as the monopole antenna, and the radius a of the loop antenna needs to satisfy the formula:

[0037]

[0038] Or equivalently, the loop circumference L < λ / 3, through multiple tests, when the loop area is 4×10 -4 m 2 , the pulse group interference can be effectively detected;

[0039] Further, in step two, the external interrupt pins 1 and 2 are connected to the corresponding keys of the collection terminal respectively, and the interference detection is performed by repeatedly entering the collection terminal key interrupt program through the external interrupt pins 1 or 2;

[0040] Further, in step three, as shown in the formula: Figure 3 When a single pulse in the pulse group triggers the external interrupt through double edges, the key avoidance pulse group flag bit key_emi_enable = 1, and when the interrupt is not triggered, key_emi_enable = 0.

[0041] Further, in step four, in the process of the electrical fast transient pulse group immunity test, as shown in the formula: Figure 4 When the single pulse repetition frequency is 5 kHz, a pulse group lasting for 15 ms will be generated every 300 ms, and when the single pulse repetition frequency is 100 kHz, a pulse group lasting for 0.75 ms will be generated every 300 ms, therefore, after the double edges of the first pulse in the pulse group trigger the interrupt, the measures of suspending the high-speed communication and delaying for 50 ms can completely avoid the pulse group interference in different test environments, and there is a margin.

[0042] The above embodiments are descriptions of specific implementation manners of the present application, rather than limitations of the present application, and those skilled in the art can make various transformations and changes without departing from the spirit and scope of the present application to obtain corresponding equivalent technical solutions, therefore, all equivalent technical solutions shall be included in the patent protection scope of the present application.

Claims

1. A method for collecting terminal high-speed communication avoidance pulse group test interference, characterized in that, Comprise the following steps: Step one, the micro control chip outside the interrupt pin 1 external ring antenna, detection pulse group generated by the magnetic field interference, using micro control chip outside the interrupt pin 2 external monopole antenna, detection pulse group generated by the electric field interference; Step two, external interrupt pin 1 or 2 repeatedly in the collection terminal key interrupt program detection interference; Step three, when the interference detection flag notify_enable=1, call notify_func function, otherwise keep normal high speed communication; Step four, when the key evasive pulse group flag key_emi_enable=1, pause high speed communication and delay 50 ms after the recovery of high speed communication, otherwise keep normal high speed communication.

2. The method for collecting terminal's high-speed communication avoidance pulse group test interference according to claim 1, characterized in that, In step one, pulse group will be common mode or differential mode interference through the power loop and communication loop directly coupled to the terminal equipment, also will be coupled to adjacent terminal or circuit through electromagnetic radiation indirectly, when the electric field around the monopole antenna changes, will induce voltage, mainly on the electric field sensitive, when the magnetic field through the loop antenna changes, will appear induced electromotive force on the wire, mainly on the magnetic field sensitive, monopole antenna and loop antenna are realized through the PCB wiring.

3. The method for collecting the high-speed communication avoidance pulse group test interference of the terminal according to claim 1 or 2, characterized in that, In step two, external interrupt pin 1, 2 are connected with the corresponding key of the collection terminal respectively, through external interrupt pin 1 or 2 repeatedly in the collection terminal key interrupt program for interference detection.

4. The method for collecting terminal's high-speed communication avoidance pulse group test interference according to claim 3, characterized in that, In step three, when the single pulse in the pulse group passes through double edge trigger external interrupt, the key evasive pulse group flag key_emi_enable=1, not trigger interrupt key_emi_enable=0.

5. The method of claim 4, wherein the method further comprises: In step four, in the process of electrical fast transient pulse group immunity test, when the single pulse repetition frequency is 5 kHz, every 300 ms will produce 15 ms pulse group, when the single pulse repetition frequency is 100 kHz, every 300 ms will produce 0.75 ms pulse group, therefore, when the double edge trigger interrupt of the first pulse in the pulse group, pause high speed communication and delay 50 ms measures, can completely avoid the pulse group interference in different test environment, and leave a margin.

Citation Information

Patent Citations

  • Transformer station intelligent electronic device multi-source anti-interference degree characteristic testing method

    CN105785156A

  • System and method for eliminating electrical fast transient / burst interference

    CN109444599A