Multi-channel test tool circuit capable of automatically identifying interface

By using a 32-bit microcontroller chip and a multi-channel test fixture circuit controlled by DIP switches, the problems of low interface compatibility and low test efficiency in the existing technology are solved, and automatic identification and efficient testing of multiple interfaces are realized.

CN223955643UActive Publication Date: 2026-02-27SHENZHEN HUITOU INTELLIGENT CONTROL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202520181956.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2026-02-27
Estimated Expiration
2035-02-05

AI Technical Summary

Technical Problem

Existing test fixture circuits are incompatible with multiple interfaces, resulting in high development costs, cumbersome operation, and low testing efficiency, especially when multiple products with different interfaces are connected at the same time, they cannot achieve automatic identification.

Method used

The multi-channel test fixture circuit is controlled by a 32-bit microcontroller chip MCU and a two-position DIP switch SW1. By switching the state of the DIP switch SW1, it can automatically identify and switch between multiple interfaces. Combined with analog switches U6, U4, U5 and RS485 chip U8, it can support the automatic identification of multiple products with different interfaces at the same time.

Benefits of technology

It achieves compatibility with multiple interfaces, reduces development costs, simplifies operation steps, improves testing efficiency, can simultaneously identify multiple different interface products, improves production efficiency and reduces the probability of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223955643U_ABST
    Figure CN223955643U_ABST
Patent Text Reader

Abstract

The utility model discloses a multichannel test tool circuit capable of automatically identifying an interface, which solves the problem of low test efficiency of a test tool circuit in the prior art, and comprises a main control circuit and a switching circuit which are connected with each other, the main control circuit comprises a micro-control chip MCU, the micro-control chip MCU is connected with a dial switch SW1, and the dial switch SW2 is connected with the switching circuit. The switching circuit comprises an analog switch module connected with the micro-control chip MCU, the analog switch module is connected with a plurality of ports, and product interfaces are arranged at the ports. According to the utility model, the tool circuit support interface is controlled through the two-bit dial switch, automatic identification can be realized when two or more different interface products are accessed at the same time, and the product test efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model relates to electronic product detection technical field, provide a multi -channel test frock circuit of interface can be automatically identified specifically. BACKGROUND

[0002] Electronic product needs to use special test frock circuit from research and development to mass production, and the frock circuit carries out batch testing to the product, and communicates with the host computer to read all single product all parameter information, so as to monitor the consistency, precision, function etc. of the electronic product produced, and selects the good product and the defective product among them, ensures the quality of product. Single product often needs special test frock circuit, because its interface is different, such as RS485, UART, I2C etc., the conventional frock circuit because it only applies to single interface product, cannot be compatible with other products, need to develop different frock test circuit, which leads to the great increase of development cost, at the same time, too many frock circuits can affect the efficiency of production department.

[0003] The existing frock circuit capable of detecting multiple interface products, for example, a "port multiplexing circuit and server" disclosed in Chinese patent document, its publication number: CN219066133U, forms a functional module by modularizing multiple types of port modules, connects the functional module with the wiring port by replacement, detects the level signal of the functional module through the master control chip, opens the function circuit of the corresponding functional module, so that the wiring port can switch the corresponding functional module, realizes the function multiplexing of the wiring port. But in actual application, the customer needs to replace the functional module and connect with the wiring port according to the interface to be connected, which is troublesome to operate, high in maintenance cost, and needs to confirm the connection reliability every time the functional module is replaced, which seriously affects the test efficiency, and the circuit can only connect one product interface at a time, cannot realize automatic identification when connecting two or more different interface products at the same time, further leading to low test efficiency. UTILITY MODEL CONTENTS

[0004] In order to solve the problem of low test efficiency of the test frock circuit in the prior art, the utility model provides a multi -channel test frock circuit of interface can be automatically identified, supports the interface through the dial switch of two positions, and can realize automatic identification when connecting two or more different interface products at the same time, greatly improving the product test efficiency.

[0005] The specific scheme of the utility model is as follows.

[0006] The utility model provides a multi -channel test tool circuit of automatic interface identification, including connected main control circuit and switching circuit, the main control circuit includes micro control chip MCU, the micro control chip MCU is connected with dial switch SW1, the switching circuit includes analog switch module connected with the micro control chip MCU, a plurality of ports are connected with analog switch module, and product interface is equipped at the port.

[0007] Through changing the state of dial switch SW1, the micro control chip MCU controls the working mode of switching test tool circuit, simplifies the operation step when using test tool circuit to test, thereby improves product test efficiency, a plurality of ports are the multi -channel ports of test tool circuit, can realize the automatic identification when accessing two or more different interface products simultaneously, further improves product test efficiency.

[0008] As preferred, the micro control chip MCU adopts 32 bit chip, the dial switch SW1 is composed of two independent switches, and the micro control chip MCU reads the state of dial switch SW1.

[0009] One end of dial switch SW1 is connected to the 19th pin and the 20th pin of micro control chip MCU, and the other end is grounded, according to the opening or closing of the two independent switches in dial switch SW1, four states of dial switch SW1 are obtained, which are "00", "01", "10" and "11" respectively, and the micro control chip MCU controls the circuit according to the state of dial switch SW1.

[0010] As preferred, the analog switch module includes analog switch U6, analog switch U4 and analog switch U5, the analog switch U4 and the analog switch U5 are connected with the analog switch U6 respectively, the analog switch U6 is connected with the micro control chip MCU, the micro control chip MCU controls the analog switch U6 to connect the signal line, and the address bit of the analog switch U4 and the address bit of the analog switch U5 are connected with the micro control chip MCU respectively.

[0011] When dial switch SW1 is in state "00", the micro control chip MCU controls analog switch U6 to connect the signal line, that is, 4, 6pin is connected with 2, 8pin; when dial switch SW1 is in state "01" or "10", the micro control chip MCU controls analog switch U6 to connect 4, 6pin and 3, 7pin, and identifies whether the interface of the accessed product is I2C or UART.

[0012] As preferred, the main control circuit further includes RS485 chip U8, the RS485 chip U8 is connected with the micro control chip MCU and the analog switch U6, and the micro control chip MCU controls the on-off of the power supply of RS485 chip U8.

[0013] When the dial switch SW1 is in state "00", the micro control chip MCU controls the power of the RS485 chip U8 to be turned on; when the dial switch SW1 is in state "01" or "10", the micro control chip MCU controls the power of the RS485 chip U8 to be turned off.

[0014] Preferably, the chip adopted by the analog switch U4 and the analog switch U5 is the same, and eight ports are provided for the analog switch U4 and the analog switch U5.

[0015] According to the connection mode of the eight ports and the analog switch, the eight ports are sequenced from the first port to the eighth port, and the micro control chip MCU can sequentially and cyclically scan the eight ports in sequence, and the address bits (S0, S1, E#) of the analog switch U4 and U5 are controlled to communicate with different ports.

[0016] When there is no product in the first port, the test tool circuit defines the interface of the first product recognized as the default interface of all products; when there is a product in the first port, the test tool circuit defines the interface of the product in the first port as the default interface of all products, even if products are connected to other ports at the same time, the MCU will only communicate according to the interface of the first port.

[0017] Preferably, any one of the eight ports is provided with a reserved judgment pin connected to the micro control chip MCU, and the micro control chip MCU directly identifies the interface of the port provided with the reserved judgment pin.

[0018] When one of the ports is provided with a reserved judgment pin, such as the No. 5 pin of J1 in the first port, the scanning mode of the MCU can be skipped, and the first port is directly identified, and the identified interface is defined as the default interface, which can reduce the scanning time.

[0019] Preferably, the product interface includes RS485, I2C and UART. When the dial switch SW1 is in state "00", the test tool circuit is in RS485 interface mode; when the dial switch SW1 is in state "01", the test tool circuit is in I2C interface mode; when the dial switch SW1 is in state "10", the test tool circuit is in UART interface mode; when the dial switch SW1 is in state "11", the test tool circuit is in automatic identification mode, that is, scanning mode.

[0020] As preferred, a protection circuit is further included, which is arranged at the product interface and on the communication line, and each protection circuit at the product interface is composed of three TVS diodes and two self-recovery fuses.

[0021] As preferred, a power supply circuit is further included, which comprises a buck switching power chip U1, and the power supply chip U1 is connected with a power input protection circuit.

[0022] As preferred, the power input protection circuit comprises a fuse F18, a bidirectional transient voltage suppression diode TVS10 and a general diode D2, the negative electrode of the general diode D2 is connected with the 2 pin of the power chip U1, and the fuse F18 and the bidirectional transient voltage suppression diode TVS10 are respectively connected with the positive electrode of the general diode D2.

[0023] Therefore, the utility model has the following beneficial effects:

[0024] (1) Multiple interfaces are integrated, and three different interfaces of RS485, I2C and UART are simultaneously provided, so that multiple products can be compatible, and the time and cost for designing multiple different special interfaces are saved;

[0025] (2) The MCU used is a 32-bit chip, and only 20 I / Os are needed to realize the whole tool test circuit, so that the cost is low, the expansibility is strong, and the maintenance is easy;

[0026] (3) The two-position dial switch is used to control the tool circuit support interface, so that the product interface can be manually or actively identified and communication can be completed, the operation steps are simplified, the cost is saved, the production efficiency is improved, and the error probability is reduced;

[0027] (4) Multiple channel ports are arranged, so that automatic identification can be realized when two or more different interface products are simultaneously accessed, and the product test efficiency is further improved. BRIEF DESCRIPTION OF DRAWINGS

[0028] In order to more clearly illustrate the technical scheme in the embodiments of the present application, the drawings needed in the following embodiment description will be briefly introduced. Obviously, the drawings in the following description are only embodiments of the present application, and other drawings can be obtained by the provided drawings without creative labor for those skilled in the art.

[0029] Figure 1 The circuit principle diagram of the main control circuit and the switching circuit of the present application.

[0030] Figure 2 The circuit principle diagram of the port and the protection circuit of the present application.

[0031] Figure 3 The circuit principle diagram of the power supply circuit of the present application. DETAILED DESCRIPTION

[0032] The embodiments of the present application will be described in detail below, and the examples of the embodiments are shown in the drawings, wherein the same or similar reference signs represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are only used to explain the present application, and cannot be understood as a limitation of the present application.

[0033] The multi-channel test tool circuit capable of automatically identifying the interface of the present embodiment is composed of a power supply circuit, a main control circuit, a switching circuit and a protection circuit, and is also provided with a multi-channel port, wherein the circuit principle diagram of the main control circuit and the switching circuit is shown in Figure 1 , the circuit principle diagram of the multi-channel port and the protection circuit is shown in Figure 2 , and the circuit principle diagram of the power supply circuit is shown in 3.

[0034] The main control circuit is composed of a 32-bit micro control chip U2 and some resistors, capacitors and a code switch SW1, and the micro control chip U2 is a micro control chip MCU. The code switch SW1 is composed of two independent switches, and the two switches are connected to the 19th pin and the 20th pin of the micro control chip MCU, and the other ends of the two switches are grounded. According to the opening or closing of the two independent switches in the code switch SW1, the code switch SW1 has four states, which are “00”, “01”, “10” and “11” respectively. The micro control chip MCU reads the state of the code switch SW1, and controls the circuit operation according to the state of the code switch SW1. By changing the state of the code switch SW1, the micro control chip MCU controls the working mode of the switching test tool circuit, which simplifies the operation steps when the test tool circuit is used for testing, thereby improving the product testing efficiency.

[0035] The switching circuit is composed of RS485 chip U8, analog switch U6, analog switch U4, analog switch U5 and some protective components. Analog switch U6 adopts RS2228XN chip, the 3rd pin and the 7th pin of which are connected to the 2nd pin and the 3rd pin of micro control chip U2 respectively, and micro control chip U2 controls analog switch U6 to connect the signal line. Analog switch U4 and analog switch U5 both adopt CD74HC4052NSR chip, the 3rd pin and the 13th pin of analog switch U4 and analog switch U5 are connected to the 4th pin and the 6th pin of analog switch U6 respectively. When the dip switch SW1 is in state "00", micro control chip U2 controls analog switch U6 to connect the 4th pin and the 6th pin to the 2nd pin and the 8th pin, that is, to connect 4, 6 pin to 2, 8 pin; when the dip switch SW1 is in state "01" or "10", micro control chip U2 controls analog switch U6 to connect 4, 6 pin to 3, 7 pin, to identify whether the interface of the connected product is I2C or UART.

[0036] RS485 chip U8 is connected to micro control chip U2 and analog switch U6, and micro control chip U2 controls the on-off of the power supply of RS485 chip U8. The 1st pin and the 2nd pin of RS485 chip U8 are connected to the 2nd pin and the 3rd pin of micro control chip U2 respectively, the 4th pin of RS485 chip U8 is connected to the 16th pin of micro control chip U2, and the 7th pin and the 6th pin of RS485 chip U8 are connected to the 2nd pin and the 8th pin of analog switch U6 respectively. When the dip switch SW1 is in state "00", micro control chip U2 controls the power supply of RS485 chip U8 to be turned on; when the dip switch SW1 is in state "01" or "10", micro control chip U2 controls the power supply of RS485 chip U8 to be turned off.

[0037] The multi-channel port includes eight ports, which are connected to analog switch U4 and analog switch U5. The test tool circuit sets the multi-channel port, which can realize automatic identification when two or more different interface products are connected at the same time, and improves the product test efficiency. According to the connection mode of the eight ports and the analog switch, the eight ports are sorted from the first port to the eighth port. As shown in Figure 2 , the first port is connected to the 1st pin and the 12th pin of analog switch U4, the eighth port is connected to the 4th pin and the 11th pin of analog switch U5, and the connection and sorting are sequentially connected as shown in Figure 2 . The 10th pin, the 9th pin and the 6th pin of analog switch U4 are connected to the 1st pin, the 10th pin and the 13th pin of micro control chip U2 respectively, and the 10th pin, the 9th pin and the 6th pin of analog switch U5 are connected to the 1st pin, the 10th pin and the 14th pin of micro control chip U2 respectively.

[0038] The microcontroller U2 can sequentially scan eight ports in a loop, communicating with products on different ports by controlling the address bits (S0, S1, E#) of analog switches U4 and U5. When there is no product on port 1, the test fixture circuit will define the interface of the first identified product as the default interface for all products; when there is a product on port 1, the test fixture circuit will define the interface of the product on port 1 as the default interface for all products. Even if products are connected to other ports at the same time, the microcontroller U2 will only communicate using the interface of port 1.

[0039] When any one of the eight ports has a reserved decision pin for connection to the microcontroller U2, for example, pin 5 of J1 at port 1 has a reserved decision pin, and the microcontroller U2 is connected to pin 12 of the microcontroller U2 through the reserved decision pin, the microcontroller U2 skips the scanning mode and directly performs interface identification on port 1, and defines the identified interface as the default interface, which can reduce the scanning time.

[0040] The product interfaces include RS485, I2C, and UART. When the DIP switch SW1 is in state "00", the test fixture circuit is in RS485 interface mode; when the DIP switch SW1 is in state "01", the test fixture circuit is in I2C interface mode; when the DIP switch SW1 is in state "10", the test fixture circuit is in UART interface mode; and when the DIP switch SW1 is in state "11", the test fixture circuit is in automatic identification mode, i.e., scanning mode.

[0041] The protection circuits are mainly placed at the product interface, communication line and power input terminal. Each product interface protection circuit consists of three TVS diodes and two resettable fuses, which provide overvoltage protection and overcurrent protection to prevent high voltage spikes introduced by the product from damaging the internal circuit.

[0042] The circuit diagram of the power supply circuit is as follows: Figure 3 The upper part shows the power supply circuit, which consists of a Buck switching power supply chip U1 and some resistors, capacitors, inductors, and diodes. This power supply chip supports a maximum input voltage of 28V and a maximum output current of 3A, and has input overvoltage protection, ensuring a stable supply of the required voltage and current to the product. Pin 2 of the power supply chip U1 is connected to a power input protection circuit, which includes a fuse F18, a bidirectional transient voltage suppressor diode (TVS10), and a general-purpose diode D2. The cathode of the general-purpose diode D2 is connected to pin 2 of the power supply chip U1. One end of the fuse F18 is connected to the anode of the general-purpose diode D2, and the other end is connected to the power supply. One end of the bidirectional transient voltage suppressor diode TVS10 is connected to the anode of the general-purpose diode D2, and the other end is grounded. The power input protection circuit provides overvoltage protection, overcurrent protection, and reverse connection protection.

[0043] The working logic of the multi-channel test tool circuit capable of automatically identifying the interface of the embodiment is divided into active and passive. The active is to set the product of the special interface through the DIP switch SW1, that is, to correspond to the product of different interfaces with the state of the corresponding DIP switch SW1, including three different interfaces of RS485, I2C and UART. When the DIP switch SW1 is set to "00", the corresponding interface is the RS485 interface, and the test tool circuit only supports the product with the RS485 interface to access and realize communication, and the access of the product with the rest of the interface cannot be read. When the DIP switch SW1 is set to "01", the corresponding interface is the I2C interface, and the test tool circuit only supports the product with the I2C interface to access and realize communication, and the access of the product with the rest of the interface cannot be read. When the DIP switch SW1 is set to "10", the corresponding interface is the UART interface, and the test tool circuit only supports the product with the UART interface to access and realize communication, and the access of the product with the rest of the interface cannot be read.

[0044] The passive means that the supported interface of the test tool circuit is determined by the interface of the accessed product. When the DIP switch SW1 is dialled to "11", the micro control chip U2 will enter the scanning mode, wait for the product to access, and after the product accesses a certain interface, the micro control chip U2 will scan from the three different interfaces of RS485, I2C and UART in turn to detect which interface can normally identify the signal data actively uploaded by the product. The multi-channel port set by the test tool circuit includes eight ports, that is, the test tool circuit of the embodiment supports single access of 8 products, and the automatic identification starts to scan the product from the first port and scans to the eighth port in turn with an increment of +1. No matter which interface the single product accesses, it can be identified and read by the micro control chip U2. When the test tool circuit accesses two or more products with different interfaces through the multi-channel port, the micro control chip U2 will only define the interface of the first identified product as the interface of all products. For example, when the product interface of the first port is RS485, the micro control chip U2 will define the product interface type (i.e. the RS485 interface) of the first port as the default interface of all products after identifying the product interface type of the first port. If the product interface of the second port is UART, the micro control chip U2 will determine that the product of the second port is not accessed, that is, it is determined to be abnormal, and the product of the first port can normally communicate. When the product interface is provided with a reserved judgment pin connected with the 12-pin of the micro control chip U2, such as the 5-pin of J1, the scanning mode of the micro control chip U2 can be skipped, the interface of the first port can be directly identified, and the identified interface can be defined as the default interface, so that the scanning time can be reduced.

[0045] The specific working process of the multi-channel test tool circuit capable of automatically identifying the interface of the embodiment is as follows.

[0046] After the test tool circuit is powered on, the micro control chip U2 first reads the state of the two-position dial switch SW1, "00" is the RS485 interface mode, "01" is the I2C interface mode, "10" is the UART interface mode, and "11" is the automatic identification mode. When the dial switch SW1 is in the state "00", the micro control chip U2 controls the analog switch U6 to connect the signal lines, that is, to connect 4, 6pin with 2, 8pin, then turns on the power supply of the RS485 chip U8, and then sequentially scans the eight ports in a cycle, and communicates with the products of different ports through the address bits (S0, S1, E#) of the analog switches U4, U5. When the state bit of the dial switch SW1 is "01" or "10", the power supply of the RS485 chip U8 is turned off, and then the micro control chip U2 controls the analog switch U6 to connect 4, 6pin with 3, 7pin to identify whether the interface of the connected product is I2C or UART. When there is no product in the first port, the test tool circuit defines the interface of the first identified product as the default interface of all products; when there is a product in the first port, the test tool circuit defines the interface of the product in the first port as the default interface of all products, even if there is a product connected to other ports at the same time, the micro control chip U2 will only communicate according to the interface of the first port.

[0047] The multi-channel test tool circuit of the embodiment can automatically identify the interface, integrates multiple interfaces, is equipped with three different interfaces of RS485, I2C and UART, can be compatible with multiple products, saves the time and cost of designing multiple different special interface tools, the MCU used in the circuit adopts a 32-bit chip, is packaged as TSSOP-20, only 20 I / Os are needed to realize the whole tool test circuit, has low cost, strong expandability and easy maintenance, the supported interface of the tool circuit is controlled by a two-position dial switch, the product interface can be manually or actively identified and communication is completed, the operation steps are simplified, the cost is saved, and the production efficiency is improved and the error probability is reduced, multiple channels are set, automatic identification can be realized when two or more different interface products are connected at the same time, and the product test efficiency is further improved.

[0048] The above is only a preferred embodiment of the utility model, and does not limit the utility model, any simple modification, change and equivalent structure change of the above embodiment according to the technical essence of the utility model still belong to the protection scope of the utility model technical scheme.

Claims

1. A multi-channel test fixture circuit capable of automatically recognizing an interface, characterized by, Including the main control circuit and switching circuit connected, the main control circuit includes micro control chip MCU, the micro control chip MCU is connected with dial switch SW1, the switching circuit includes analog switch module connected with the micro control chip MCU, the analog switch module is connected with a plurality of ports, product interface is equipped at the port.

2. The multi-channel test handler circuit capable of automatically identifying an interface according to claim 1, wherein, The micro control chip MCU adopts 32 bit chip, the dial switch SW1 is composed of two independent switches, the micro control chip MCU reads the state of dial switch SW1.

3. The multi-channel test handler circuit capable of automatically identifying an interface of claim 2, wherein, The analog switch module includes analog switch U6 and analog switch U4 and analog switch U5, the analog switch U4 and analog switch U5 are connected with the analog switch U6 respectively, the analog switch U6 is connected with the micro control chip MCU, the micro control chip MCU controls analog switch U6 connection signal line, the address bit of analog switch U4 and the address bit of analog switch U5 are connected with micro control chip MCU respectively.

4. The multi-channel test handler circuit capable of automatically identifying an interface of claim 3, wherein, The main control circuit further includes RS485 chip U8, the RS485 chip U8 is connected with the micro control chip MCU and analog switch U6, and the micro control chip MCU controls the on-off of the power supply of RS485 chip U8.

5. The multi-channel test handler circuit capable of automatically identifying an interface of claim 3, wherein, The chip adopted by the analog switch U4 and analog switch U5 is same, the port is equipped with eight, and the port is connected with the analog switch U4 and analog switch U5.

6. An auto-interface-identifying multi-channel test handler circuit according to claim 5, wherein, Any one of the eight ports is equipped with a reserved judgment pin connected with the micro control chip MCU, and the micro control chip MCU directly identifies the interface of the port provided with the reserved judgment pin.

7. The multi-channel test handler circuit of claim 1, wherein, The product interface includes RS485 and I2C and UART three kinds.

8. The multi-channel test handler circuit of claim 1, wherein, It further includes a protection circuit, which is arranged at the product interface and the communication line, and each product interface protection circuit is composed of three TVS diodes and two self-recovery fuses.

9. An auto-identifying interface multi-channel test handler circuit according to any one of claims 1 to 8, wherein, It further includes a power supply circuit, which includes a buck switching power supply chip U1, and the power supply chip U1 is connected with a power input protection circuit.

10. The multi-channel test handler circuit of claim 9, wherein, The power input protection circuit includes fuse F18 and bidirectional transient suppression diode TVS10 and general diode D2, the negative electrode of the general diode D2 is connected with the 2 pin of the power supply chip U1, and the fuse F18 and bidirectional transient suppression diode TVS10 are connected with the positive electrode of the general diode D2 respectively.

Citation Information

Patent Citations

  • Port multiplexing circuit and server

    CN219066133U