Automatic detection device of acquisition terminal
By designing an automated testing device, which utilizes a main control module, an RS485 communication module, a remote signaling communication module, and a relay testing module to perform automated testing on the data acquisition terminal, the problem of low efficiency in manual testing is solved, and efficient and reliable testing results are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2026-03-27
AI Technical Summary
The existing data acquisition terminals rely too heavily on manual inspection, resulting in low efficiency, high manpower consumption, and a high risk of errors.
Design an automated testing device for a data acquisition terminal, including a main control module, an RS485 communication module, a remote signaling communication module, and a relay testing module. The main control module controls the communication between each module and the data acquisition terminal to achieve automated testing of multiple functional interfaces.
It improves the efficiency of data acquisition terminal testing, reduces the need for manual testing, lowers labor costs, and improves the reliability and consistency of testing.
Smart Images

Figure CN224052397U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power communication, and particularly relates to an automatic detection device for a collection terminal. BACKGROUND
[0002] With the wide application of intelligent meters in power grids, the number of field installations and the production scale of power consumption information collection terminals are increasing, and the number of collection terminals in the same batch can be several thousand or even up to ten thousand. In order to improve the production quality of products, it is necessary to test the interface functions of the power consumption information collection terminal during the production process.
[0003] In the existing test method, manual operation of the host computer is required to issue test commands for individual interface testing, and manual checking of test results is required. Since the collection terminal has many functions, the interface functions to be tested are numerous, and the manual testing method has the problems of low automation efficiency, consumption of human resources, and high error rate of manual operation. CONTENT OF THE UTILITY MODEL
[0004] The present application aims to provide an automatic detection device for a collection terminal to solve the technical problem of low efficiency caused by excessive reliance on manual detection in the prior art. The preferred technical solutions in the many technical solutions provided by the present application can produce many technical effects, which are described in detail below.
[0005] To achieve the above-mentioned purpose, the present application provides the following technical solutions:
[0006] The automatic detection device for a collection terminal provided by the present application comprises a main control module, an RS485 communication module, a remote communication module, and a relay detection module. The main control module is connected with the RS485 communication module, the remote communication module, and the relay detection module. The RS485 communication module is connected with the RS485 interface of the collection terminal. The remote communication module is connected with the remote interface of the collection terminal. The relay detection module is connected with the closing alarm interface of the collection terminal. The main control module is used to control the communication between each module and the collection terminal to detect each functional interface of the collection terminal.
[0007] In some embodiments, the main control module comprises a main control chip U2. The main control chip U2 is connected with the RS485 communication module through the 485 communication pin of the main control chip U2. The main control chip U2 is connected with the remote communication module through the relay control pin of the main control chip U2. The main control chip U2 is connected with the relay detection module through the relay function pin of the main control chip U2.
[0008] In some embodiments, the RS485 communication module comprises at least one RS485 communication circuit, the RS485 communication circuit comprises an RS485 transceiver chip U1 and a connector J2; the RS485 transceiver chip U1 is connected with the master control chip U2 through the first end and the fourth end of the RS485 transceiver chip U1, and the RS485 transceiver chip U1 is connected with the connector J2 through the sixth end and the seventh end of the RS485 transceiver chip U1, and the connector J2 is connected with the RS485 interface of the collection terminal.
[0009] In some embodiments, the RS485 communication circuit comprises a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a triode Q1, a protection tube D1 and a thermistor RTC2; the first end of the RS485 transceiver chip U1 is connected with one end of the resistor R1, the second end and the third end of the RS485 transceiver chip U1 are connected with the collector of the triode Q1 and one end of the resistor R5, the fourth end of the RS485 transceiver chip U1 is connected with one end of the resistor R3 and one end of the resistor R6, wherein the other end of the resistor R3 is connected with the gate of the triode Q1, the sixth end of the RS485 transceiver chip U1 is connected with one end of the resistor R4, one end of the protection tube D1 and one end of the thermistor RTC2, the seventh end of the RS485 transceiver chip U1 is connected with one end of the resistor R2, the other end of the protection tube D1 and the first end of the connector J2, wherein the other end of the thermistor RTC2 is connected with the second end of the connector J2.
[0010] In some embodiments, the remote communication module comprises at least one relay switch circuit, the relay switch circuit comprises a resistor R27, a resistor R28, a resistor R109, a diode D11, a triode Q11, a relay RLY6 and a connector J16; the collector of the triode Q11 is connected with the anode of the diode D11 and one end of the coil of the relay RLY6, wherein the cathode of the diode D11 and the other end of the coil of the relay RLY6 are connected with one end of the resistor R109; the gate of the triode Q11 is connected with one end of the resistor R27 and one end of the resistor R28, wherein the other end of the resistor R28 is connected with the source of the triode Q11 and grounded, and the other end of the resistor R27 is connected with the relay control pin of the master control chip U2; one stationary contact of the relay RLY6 is connected with the first end of the connector J16, the moving contact of the relay RLY6 is connected with the second end of the connector J16, and the connector J16 is used for connecting the remote interface of the collection terminal.
[0011] In some embodiments, the relay detection module comprises at least one relay detection circuit, the relay detection circuit comprises a resistor R102, a resistor R103, a capacitor C16, a photoelectric coupler O5 and a connector J24; the collector of the photoelectric coupler O5 is connected with the relay function pin of the master control chip U2, one end of the resistor R102 and one end of the capacitor C16, the cathode of the photoelectric coupler O5 is connected with the first end of the connector J24, and the anode of the photoelectric coupler O5 is connected with one end of the resistor R103; the connector J24 is used to connect the closing alarm interface of the collection terminal.
[0012] In some embodiments, the master control module further comprises a burning circuit, and the master control chip U2 is connected with the burning circuit through the SWD pin of the master control chip U2.
[0013] In some embodiments, the burning circuit comprises a resistor R111, a resistor R112, a resistor R113 and a connector J1; one end of the resistor R111, one end of the resistor R112 and one end of the resistor R113 are connected with the connector J1, and the other end of the resistor R111, the other end of the resistor R112 and the other end of the resistor R113 are connected with the SWD pin of the master control chip U2.
[0014] In some embodiments, the master control chip U2 is an MCU chip of STM32F103RET6 model.
[0015] In some embodiments, the RS485 transceiver chip U1 is an RS485 chip of HD588E model.
[0016] Implementing one of the technical solutions in the present application has the following advantages or beneficial effects: in the present application, the RS485 communication module, the remote communication module and the relay detection module are arranged to connect the multiple function interfaces of the collection terminal respectively, and the master control module is arranged to control the communication, so as to detect the multiple function interfaces. In this case, the detection device can automatically detect multiple different collection terminals based on actual production requirements, thereby improving the efficiency of the collection terminal test, and overcoming the problems of manual detection of the collection terminal interface function, such as manual issuance of test instructions, manual checking of detection results, low efficiency, high labor cost and low repeatability. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor, and the drawings are as follows:
[0018] Figure 1 is a structural block diagram of the automatic detection device of the collection terminal of the embodiment of the present application;
[0019] Figure 2 is a circuit schematic diagram of the main control module of the embodiment of the present application;
[0020] Figure 3 is a circuit schematic diagram of the RS485 communication module of the embodiment of the present application;
[0021] Figure 4 is a circuit schematic diagram of the remote communication module of the embodiment of the present application;
[0022] Figure 5 is a circuit schematic diagram of the relay detection module of the embodiment of the present application.
[0023] In the drawings: 1, the automatic detection device of the collection terminal; 10, the main control module; 11, the RS485 communication module; 12, the remote communication module; 13, the relay detection module. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the present application more clear, the various exemplary embodiments to be described below will be described with reference to the corresponding drawings, which constitute a part of the exemplary embodiments, and various exemplary embodiments that can be used to implement the present application are described. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation described in the following exemplary embodiments does not represent all the implementations consistent with the present disclosure. It should be understood that they are only examples of processes, methods and devices, etc. consistent with some aspects of the present disclosure as described in the appended claims, and other embodiments can also be used, or structural and functional modifications can be made to the embodiments listed herein, without departing from the scope and spirit of the present application.
[0025] In the description of the present application, it is understood that the terms "center", "longitudinal", "transverse" and the like indicate the orientation or positional relationship shown in the drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the indicated elements must have a specific orientation, be constructed and operated in a specific orientation. The terms "first", "second" and the like are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. The term "a plurality of" means two or more. The terms "connected", "connected" should be broadly understood, for example, it can be fixed connection, detachable connection, integral connection, mechanical connection, electrical connection, communication connection, direct connection, indirect connection through intermediate medium, internal communication of two elements or interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more related listed items. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0026] In order to illustrate the technical solutions described in the present application, the following will be described by specific examples, only showing the part related to the embodiments of the present application.
[0027] The present application provides an automatic detection device 1 of a collection terminal, which can be used for detecting the function interface of the power utilization information collection terminal. For the convenience of description, the following is referred to as detection device 1 and collection terminal.
[0028] The hardware interface of the detection device 1 of the present application can be connected with the function interface of the collection terminal. The detection device 1 can be embedded with multiple detection programs, and can select and run the detection program of the corresponding collection terminal according to different types of collection terminals. The function interface of the collection terminal can include RS485 interface, remote signaling interface and closing alarm interface, etc.
[0029] The detection device 1 of the present application includes a USB to RS-485 serial interface, which can be directly connected with a PC.
[0030] The detection device 1 of the present application can use RS232 serial port or RS485 serial port to realize the communication between the host computer and the collection terminal according to the type of the collection terminal. The PC can include a scanning gun, which can input the asset bar code on the collection terminal to be tested into the host computer. The PC can display the current detection items, the detection items being detected and the detection items not being detected, and can also display the detection results of the detected items, which are qualified or unqualified. The PC can obtain complete test item information, which is convenient for production to check and repair fault table problems.
[0031] As Figure 1As shown, the automatic detection device 1 of the collection terminal can include a master control module 10, an RS485 communication module 11, a remote communication module 12, and a relay detection module 13.
[0032] In some embodiments, the master control module 10 can be connected with the RS485 communication module 11, the remote communication module 12, and the relay detection module 13. The RS485 communication module 11 can be connected with the RS485 interface of the collection terminal. The remote communication module 12 can be connected with the remote interface of the collection terminal. The relay detection module 13 can be connected with the closing alarm interface of the collection terminal. The remote interface of the collection terminal can include the interface of the collection terminal pulse, the node, and the remote. The closing alarm interface of the collection terminal can include the interface of the closing alarm relay of the collection terminal.
[0033] In some embodiments, the RS485 communication module 11 can be used to communicate with the collection terminal by adopting the RS-485 communication protocol. The remote communication module 12 can be used to control the closing and opening of the relay to detect the pulse, the node, and the remote function. The relay detection module 13 can detect the closing and opening function of the closing alarm relay of the collection terminal to detect the closing alarm relay function of the collection terminal.
[0034] In some embodiments, as shown in Figure 2 The master control module 10 can include a master control chip U2. The master control chip U2 can be connected with the RS485 communication module 11 through the 485 communication pin of the master control chip U2. The master control chip U2 can be connected with the remote communication module 12 through the relay control pin of the master control chip U2. The master control chip U2 can be connected with the relay detection module 13 through the relay function pin of the master control chip U2.
[0035] In some embodiments, as shown in Figure 2 The 51 pin and the 52 pin of the master control chip U2, the 53 pin and the 54 pin of the master control chip U2, and the 42 pin and the 43 pin of the master control chip U2 can all represent the 485 communication pin of the master control chip U2. The 50 pin, the 45 pin, and the 41 pin of the master control chip U2 can all represent the relay control pin of the master control chip U2. The 62 pin, the 61 pin, the 59 pin, and the 9 pin of the master control chip U2 can all represent the relay function pin of the master control chip U2.
[0036] In some embodiments, the 51 pin of the master control chip U2 is connected with the resistance R20. The 52 pin of the master control chip U2 is connected with the resistance R18. The 53 pin of the master control chip U2 is connected with the resistance R16. The 54 pin of the master control chip U2 is connected with the resistance R15. The 42 pin of the master control chip U2 is connected with the resistance R32. The 43 pin of the master control chip U2 is connected with the resistance R30.
[0037] In some embodiments, the master chip U2 can be an MCU chip of STM32F103RET6 model. The master chip U2 can be embedded with multiple detection programs which can be switched according to different detection objects.
[0038] In some embodiments, as shown in Figure 3 RS485 communication module 11 can include at least one RS485 communication circuit, and the RS485 communication circuit can include RS485 transceiver chip U1 and connector J2. The RS485 transceiver chip U1 can be connected with the master chip U2 through the first end and the fourth end of the RS485 transceiver chip U1, and the RS485 transceiver chip U1 can be connected with the connector J2 through the sixth end and the seventh end of the RS485 transceiver chip U1, and the connector J2 is connected with the RS485 interface of the collection terminal. As shown in Figure 3 The first end of the RS485 transceiver chip U1 can be the output pin of the RS485 transceiver chip U1, the fourth end of the RS485 transceiver chip U1 can be the input pin of the RS485 transceiver chip U1, and the sixth end and the seventh end of the RS485 transceiver chip U1 are the bus interface of the RS485 transceiver chip U1.
[0039] In some embodiments, as shown in Figure 3 The RS485 communication circuit can include resistance R1, resistance R2, resistance R3, resistance R4, resistance R5, resistance R6, triode Q1, protection tube D1 and thermistor RTC2. The first end of the RS485 transceiver chip U1 can be connected with one end of the resistance R1, the second end and the third end of the RS485 transceiver chip U1 can be connected with the collector of the triode Q1 and one end of the resistance R5, the fourth end of the RS485 transceiver chip U1 can be connected with one end of the resistance R3 and one end of the resistance R6, wherein the other end of the resistance R3 can be connected with the gate of the triode Q1, the sixth end of the RS485 transceiver chip U1 can be connected with one end of the resistance R4, one end of the protection tube D1 and one end of the thermistor RTC2, the seventh end of the RS485 transceiver chip U1 can be connected with one end of the resistance R2, the other end of the protection tube D1 and the first end of the connector J2, wherein the other end of the thermistor RTC2 is connected with the second end of the connector J2.
[0040] In some embodiments, the RS485 communication circuit can further include a capacitor C1. One end of the capacitor C1 is grounded, and the other end of the capacitor C1 is connected with the eighth end of the RS485 transceiver chip U1 and the power voltage. The other end of the resistance R1, the other end of the resistance R4 and the other end of the resistance R6 are all connected with the power voltage, and the other end of the resistance R2 and the other end of the resistance R5 are grounded.
[0041] In some embodiments, the RS485 communication module 11 can include three RS485 communication circuits, each of which can be connected with the 485 communication pin of the master control chip U2. Specifically, one RS485 communication circuit can be connected with the 51 pin and the 52 pin of the master control chip U2, another RS485 communication circuit can be connected with the 53 pin and the 54 pin of the master control chip U2, and another RS485 communication circuit can be connected with the 42 pin and the 43 pin of the master control chip U2. In this way, the detection of three RS485 interfaces can be carried out at the same time, thereby improving the detection efficiency.
[0042] In some embodiments, as shown in FIG. 6, another RS485 communication circuit can include an RS485 transceiver chip U3 and a connector J3. The RS485 transceiver chip U3 can be connected with the master control chip U2 through the first end and the fourth end of the RS485 transceiver chip U3, and the RS485 transceiver chip U3 can be connected with the connector J3 through the sixth end and the seventh end of the RS485 transceiver chip U3, and the connector J3 is connected with the RS485 interface of the collection terminal. The first end of the RS485 transceiver chip U3 can be the output pin of the RS485 transceiver chip U3, the fourth end of the RS485 transceiver chip U3 can be the input pin of the RS485 transceiver chip U3, and the sixth end and the seventh end of the RS485 transceiver chip U3 are the bus interface of the RS485 transceiver chip U3. Figure 3 In some embodiments, as shown in FIG. 6, another RS485 communication circuit can include an RS485 transceiver chip U3 and a connector J3. The RS485 transceiver chip U3 can be connected with the master control chip U2 through the first end and the fourth end of the RS485 transceiver chip U3, and the RS485 transceiver chip U3 can be connected with the connector J3 through the sixth end and the seventh end of the RS485 transceiver chip U3, and the connector J3 is connected with the RS485 interface of the collection terminal. The first end of the RS485 transceiver chip U3 can be the output pin of the RS485 transceiver chip U3, the fourth end of the RS485 transceiver chip U3 can be the input pin of the RS485 transceiver chip U3, and the sixth end and the seventh end of the RS485 transceiver chip U3 are the bus interface of the RS485 transceiver chip U3.
[0043] Figure 3 In some embodiments, as shown in FIG. 6, another RS485 communication circuit can include an RS485 transceiver chip U3 and a connector J3. The RS485 transceiver chip U3 can be connected with the master control chip U2 through the first end and the fourth end of the RS485 transceiver chip U3, and the RS485 transceiver chip U3 can be connected with the connector J3 through the sixth end and the seventh end of the RS485 transceiver chip U3, and the connector J3 is connected with the RS485 interface of the collection terminal. The first end of the RS485 transceiver chip U3 can be the output pin of the RS485 transceiver chip U3, the fourth end of the RS485 transceiver chip U3 can be the input pin of the RS485 transceiver chip U3, and the sixth end and the seventh end of the RS485 transceiver chip U3 are the bus interface of the RS485 transceiver chip U3.
[0044] In some embodiments, the other RS485 communication circuit can further include a capacitor C3. One end of the capacitor C3 is grounded, and the other end of the capacitor C3 is connected with the eighth end of the RS485 transceiver chip U3 and the power voltage. The other end of the resistor R7, the other end of the resistor R12, and the other end of the resistor R14 are all connected with the power voltage, and the other end of the resistor R8 and the other end of the resistor R13 are grounded.
[0045] In some embodiments, the other RS485 communication circuit can include an RS485 transceiver chip U5 and a connector J5. The RS485 transceiver chip U5 can be connected with the master chip U2 through the first end and the fourth end of the RS485 transceiver chip U5, and the RS485 transceiver chip U5 can be connected with the connector J5 through the sixth end and the seventh end of the RS485 transceiver chip U5, and the connector J5 is connected with the RS485 interface of the collection terminal. The first end of the RS485 transceiver chip U5 can be the output pin of the RS485 transceiver chip U5, the fourth end of the RS485 transceiver chip U5 can be the input pin of the RS485 transceiver chip U5, and the sixth end and the seventh end of the RS485 transceiver chip U5 are the bus interface of the RS485 transceiver chip U5.
[0046] In some embodiments, the other RS485 communication circuit can include a resistor R17, a resistor R19, a resistor R21, a resistor R24, a resistor R25, a resistor R26, a triode Q3, a protection tube D3, and a thermistor RTC4. The first end of the RS485 transceiver chip U5 can be connected with one end of the resistor R17, the second end and the third end of the RS485 transceiver chip U5 can be both connected with the collector of the triode Q3 and one end of the resistor R25, the fourth end of the RS485 transceiver chip U5 can be connected with one end of the resistor R21 and one end of the resistor R26, wherein the other end of the resistor R21 can be connected with the gate of the triode Q3, the sixth end of the RS485 transceiver chip U5 can be connected with one end of the resistor R24, one end of the protection tube D3, and one end of the thermistor RTC4, and the seventh end of the RS485 transceiver chip U5 can be connected with one end of the resistor R19, the other end of the protection tube D3, and the first end of the connector J5, wherein the other end of the thermistor RTC4 is connected with the second end of the connector J5.
[0047] In some embodiments, the other RS485 communication circuit can further include a capacitor C9. One end of the capacitor C9 is grounded, and the other end of the capacitor C9 is connected with the eighth end of the RS485 transceiver chip U5 and the power voltage. The other end of the resistor R17, the other end of the resistor R24, and the other end of the resistor R26 are all connected with the power voltage, and the other end of the resistor R19 and the other end of the resistor R25 are grounded.
[0048] In some embodiments, as Figure 4As shown, the remote signaling communication module 12 can include at least one relay switch circuit. The relay switch circuit can include a resistor R27, a resistor R28, a resistor R109, a diode D11, a transistor Q11, a relay RLY6, and a connector J16. The collector of the transistor Q11 is connected to the anode of the diode D11 and one end of the coil of the relay RLY6, wherein the cathode of the diode D11 and the other end of the coil of the relay RLY6 are both connected to one end of the resistor R109; the gate of the transistor Q11 can be connected to one end of the resistor R27 and one end of the resistor R28, wherein the other end of the resistor R28 is connected to the source of the transistor Q11 and grounded, and the other end of the resistor R27 is connected to the relay control pin of the master chip U2. One stationary contact of the relay RLY6 is connected to the first end of the connector J16, and the movable contact of the relay RLY6 is connected to the second end of the connector J16, and the connector J16 is used to connect the remote signaling interface of the collection terminal.
[0049] In some embodiments, the other end of the resistor R27 can be connected to the 50 pin of the master chip U2, and the other end of the resistor R109 can be connected to the power supply voltage.
[0050] In some embodiments, the remote signaling communication module 12 can include three relay switch circuits, and each of the three relay switch circuits can be connected to the relay control pin of the master chip U2. Specifically, one relay switch circuit can be connected to the 50 pin of the master chip U2, another relay switch circuit can be connected to the 45 pin of the master chip U2, and another relay switch circuit can be connected to the 41 pin of the master chip U2. In this way, the detection of three remote signaling interfaces can be performed simultaneously, thereby improving the detection efficiency.
[0051] In some embodiments, another relay switch circuit can include a resistor R88, a resistor R89, a resistor R81, a diode D29, a transistor Q12, a relay RLY7, and a connector J17. The collector of the transistor Q12 is connected to the anode of the diode D29 and one end of the coil of the relay RLY7, wherein the cathode of the diode D29 and the other end of the coil of the relay RLY7 are both connected to one end of the resistor R81; the gate of the transistor Q12 can be connected to one end of the resistor R88 and one end of the resistor R89, wherein the other end of the resistor R89 is connected to the source of the transistor Q12 and grounded, and the other end of the resistor R88 is connected to the relay control pin of the master chip U2. One stationary contact of the relay RLY7 is connected to the first end of the connector J17, and the movable contact of the relay RLY7 is connected to the second end of the connector J17, and the connector J17 is used to connect the remote signaling interface of the collection terminal.
[0052] In some embodiments, the other end of resistor R88 can be connected to pin 45 of the main control chip U2, and the other end of resistor R81 can be connected to the power supply voltage.
[0053] In some embodiments, another relay switching circuit may include resistors R93, R96, and R90, diode D30, transistor Q13, relay RLY8, and connector J20. The collector of transistor Q13 is connected to the anode of diode D30 and one end of the coil of relay RLY8, while the cathode of diode D30 and the other end of the coil of relay RLY8 are both connected to one end of resistor R90. The gate of transistor Q13 can be connected to one end of resistor R93 and one end of resistor R96, while the other end of resistor R96 is connected to the source of transistor Q13 and grounded. The other end of resistor R93 is connected to the relay control pin of the main control chip U2. One stationary contact of relay RLY8 is connected to the first end of connector J20, and the moving contact of relay RLY8 is connected to the second end of connector J20. Connector J20 is used to connect to the remote signaling interface of the acquisition terminal.
[0054] In some embodiments, the other end of resistor R93 can be connected to pin 41 of the main control chip U2, and the other end of resistor R90 can be connected to the power supply voltage.
[0055] In some embodiments, such as Figure 5 As shown, the relay detection module 13 may include at least one relay detection circuit. The relay detection circuit may include resistor R102, resistor R103, capacitor C16, optocoupler O5, and connector J24. The collector of optocoupler O5 can be connected to the relay function pin of the main control chip U2, one end of resistor R102, and one end of capacitor C16. The cathode of optocoupler O5 can be connected to the first end of connector J24, and the anode of optocoupler O5 can be connected to one end of resistor R103. Connector J24 is used to connect to the closing alarm interface of the acquisition terminal.
[0056] In some embodiments, the emitter of optocoupler O5 can be grounded, the other end of resistor R102 and the other end of resistor R103 are both connected to the power supply voltage, and the other end of capacitor C16 and the second end of connector J24 are both grounded.
[0057] In some embodiments, the relay detection module 13 can include four relay detection circuits, each of which can be connected with the relay function pin of the master control chip U2. Specifically, one relay detection circuit can be connected with the 62 pin of the master control chip U2, another relay detection circuit can be connected with the 61 pin of the master control chip U2, another relay detection circuit can be connected with the 59 pin of the master control chip U2, and another relay detection circuit can be connected with the 9 pin of the master control chip U2. In this way, the detection of four closing alarm interfaces can be performed at the same time, thereby improving the detection efficiency.
[0058] In some embodiments, another relay detection circuit can include a resistor R104, a resistor R105, a capacitor C17, a photoelectric coupler O6, and a connector J25. The collector of the photoelectric coupler O6 can be connected with the relay function pin of the master control chip U2, one end of the resistor R104, and one end of the capacitor C17, the cathode of the photoelectric coupler O6 can be connected with the first end of the connector J24, the anode of the photoelectric coupler O6 can be connected with one end of the resistor R105; the connector J25 is used to connect the closing alarm interface of the acquisition terminal.
[0059] In some embodiments, the emitter of the photoelectric coupler O6 can be grounded, the other end of the resistor R104 and the other end of the resistor R105 are connected with the power supply voltage, the other end of the capacitor C17 and the second end of the connector J25 are grounded.
[0060] In some embodiments, another relay detection circuit can include a resistor R106, a resistor R107, a capacitor C18, a photoelectric coupler O7, and a connector J28. The collector of the photoelectric coupler O7 can be connected with the relay function pin of the master control chip U2, one end of the resistor R106, and one end of the capacitor C18, the cathode of the photoelectric coupler O7 can be connected with the first end of the connector J25, the anode of the photoelectric coupler O7 can be connected with one end of the resistor R107; the connector J28 is used to connect the closing alarm interface of the acquisition terminal.
[0061] In some embodiments, the emitter of the photoelectric coupler O7 can be grounded, the other end of the resistor R106 and the other end of the resistor R107 are connected with the power supply voltage, the other end of the capacitor C18 and the second end of the connector J28 are grounded.
[0062] In some embodiments, another relay detection circuit may include resistor R97, resistor R98, capacitor C20, optocoupler O8, and connector J22. The collector of optocoupler O8 can be connected to the relay function pin of the main control chip U2, one end of resistor R97, and one end of capacitor C20. The cathode of optocoupler O8 can be connected to the first end of connector J22, and the anode of optocoupler O8 can be connected to one end of resistor R98. Connector J22 is used to connect to the closing alarm interface of the acquisition terminal.
[0063] In some embodiments, the emitter of optocoupler O8 can be grounded, the other end of resistor R97 and the other end of resistor R98 are both connected to the power supply voltage, and the other end of capacitor C20 and the second end of connector J22 are both grounded.
[0064] In some embodiments, such as Figure 2 As shown, the main control module 10 may also include a programming circuit, and the main control chip U2 can be connected to the programming circuit through the SWD pin of the main control chip U2. The programming circuit can be used to program test programs, and the main control module 10 can perform functional interface testing of the acquisition terminal based on multiple test programs.
[0065] In some embodiments, the programming circuit may include resistors R111, R112, and R113, and connector J1. One end of resistor R111, one end of resistor R112, and one end of resistor R113 are all connected to connector J1, and the other ends of resistors R111, R112, and R113 are all connected to the SWD pin of the main control chip U2.
[0066] In some embodiments, such as Figure 2 As shown, pins 49, 46, and 7 of the main control chip U2 can represent the SWD pins of the main control chip U2. Specifically, one end of resistor R111 can be connected to the first end of connector J1, and the other end of resistor R111 can be connected to pin 49 of the main control chip U2; one end of resistor R112 can be connected to the second end of connector J1, and the other end of resistor R112 can be connected to pin 46 of the main control chip U2; one end of resistor R113 can be connected to the fifth end of connector J1, and the other end of resistor R113 can be connected to pin 7 of the main control chip U2. The third end of connector J1 can be connected to the power supply voltage, and the fourth end of connector J1 can be grounded.
[0067] In the application, the RS485 communication module 11, the remote communication module 12 and the relay detection module 13 are arranged to connect the multiple function interfaces of the collection terminal respectively, and the communication control is performed by the main control module 10 to detect the multiple function interfaces. In this case, the detection device 1 can automatically detect multiple different collection terminals based on actual production requirements, thereby improving the efficiency of the collection terminal test, and further overcoming the problems of manual detection of the interface function of the collection terminal, such as manual issuance of test instructions, manual checking of detection results, low efficiency, consumption of manpower and low repeatability.
[0068] The above only describes the preferred embodiments of the present application, and those skilled in the art know that various changes or equivalent replacements can be made to the features and embodiments without departing from the spirit and scope of the present application. In addition, the features and embodiments can be modified to adapt to specific conditions and materials under the guidance of the present application without departing from the spirit and scope of the present application. Therefore, the present application is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of the present application are within the protection scope of the present application.
Claims
1. An automated detection device for a data acquisition terminal, characterized in that, The utility model relates to a kind of relay detection module and remote communication module, including: Master module, RS485 communication module, remote communication module and relay detection module; The master module is connected with the RS485 communication module, the remote communication module and the relay detection module, the RS485 communication module is connected with the RS485 interface of the collection terminal, the remote communication module is connected with the remote interface of the collection terminal, and the relay detection module is connected with the closing alarm interface of the collection terminal. The master module is used to control the communication between each module and the collection terminal to detect each functional interface of the collection terminal.
2. The automated detection apparatus of a collection terminal according to claim 1, characterized in that, The master module includes master chip U2;The master chip U2 is connected with the RS485 communication module by the 485 communication pin of the master chip U2, and the master chip U2 is connected with the remote communication module by the relay control pin of the master chip U2, and the master chip U2 is connected with the relay detection module by the relay function pin of the master chip U2.
3. The automated detection apparatus of a collection terminal according to claim 2, wherein, The RS485 communication module includes at least one RS485 communication circuit, and the RS485 communication circuit includes RS485 transceiver chip U1 and connector J2;The RS485 transceiver chip U1 is connected with the master chip U2 by the first end and the fourth end of the RS485 transceiver chip U1, and the RS485 transceiver chip U1 is connected with the connector J2 by the sixth end and the seventh end of the RS485 transceiver chip U1, and the connector J2 is connected with the RS485 interface of the collection terminal.
4. The automated detection apparatus of a collection terminal according to claim 3, characterized in that, The RS485 communication circuit includes resistance R1, resistance R2, resistance R3, resistance R4, resistance R5, resistance R6, triode Q1, protection tube D1 and thermistor RTC2;The first end of the RS485 transceiver chip U1 is connected with one end of the resistance R1, the second end and the third end of the RS485 transceiver chip U1 are connected with the collector of the triode Q1 and one end of the resistance R5, the fourth end of the RS485 transceiver chip U1 is connected with one end of the resistance R3 and one end of the resistance R6, wherein the other end of the resistance R3 is connected with the gate of the triode Q1, the sixth end of the RS485 transceiver chip U1 is connected with one end of the resistance R4, one end of the protection tube D1 and one end of the thermistor RTC2, the seventh end of the RS485 transceiver chip U1 is connected with one end of the resistance R2, the other end of the protection tube D1 and the first end of the connector J2, wherein the other end of the thermistor RTC2 is connected with the second end of the connector J2.
5. The automated detection apparatus of claim 2, wherein, The remote signaling communication module comprises at least one relay switch circuit, and the relay switch circuit comprises a resistor R27, a resistor R28, a resistor R109, a diode D11, a triode Q11, a relay RLY6 and a connector J16; a collector of the triode Q11 is connected with an anode of the diode D11 and one end of a coil of the relay RLY6, wherein a cathode of the diode D11 and the other end of the coil of the relay RLY6 are connected with one end of the resistor R109; a gate of the triode Q11 is connected with one end of the resistor R27 and one end of the resistor R28, wherein the other end of the resistor R28 is connected with a source of the triode Q11 and grounded, and the other end of the resistor R27 is connected with a relay control pin of the master control chip U2; one stationary contact of the relay RLY6 is connected with a first end of the connector J16, a movable contact of the relay RLY6 is connected with a second end of the connector J16, and the connector J16 is used for connecting a remote signaling interface of the collection terminal.
6. The automated detection apparatus of a collection terminal according to claim 2, wherein, The relay detection module comprises at least one relay detection circuit, and the relay detection circuit comprises a resistor R102, a resistor R103, a capacitor C16, an optical coupler O5 and a connector J24; a collector of the optical coupler O5 is connected with a relay function pin of the master control chip U2, one end of the resistor R102 and one end of the capacitor C16, a cathode of the optical coupler O5 is connected with a first end of the connector J24, and an anode of the optical coupler O5 is connected with one end of the resistor R103; the connector J24 is used for connecting a closing alarm interface of the collection terminal.
7. The automated detection apparatus of a collection terminal according to claim 2, wherein, The master control module further comprises a burning circuit, and the master control chip U2 is connected with the burning circuit through a SWD pin of the master control chip U2.
8. The automated detection apparatus of a collection terminal according to claim 7, characterized in that, The burning circuit comprises a resistor R111, a resistor R112, a resistor R113 and a connector J1; one end of the resistor R111, one end of the resistor R112 and one end of the resistor R113 are connected with the connector J1, and the other end of the resistor R111, the other end of the resistor R112 and the other end of the resistor R113 are connected with the SWD pin of the master control chip U2.
9. The automated detection apparatus of a collection terminal according to claim 2, wherein, The master control chip U2 is an MCU chip of an STM32F103RET6 model.
10. The automated detection apparatus of a collection terminal according to claim 3, wherein, The RS485 transceiver chip U1 is an RS485 chip of an HD588E model.