A smart gateway electric energy meter hardware weak current interface test tool system
Patent Information
- Application Number
- CN202610651540.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-12
- Publication Date
- 2026-09-01
AI Technical Summary
管理单元组装到智能网关电能表上进行软件功能验证,无法判断通信功能是否正常;而且,软件功能验证方案不能充分验证硬件弱电接口的所有硬件功能,存在漏测的风险
本发明针对智能网关电能表通信单元和管理单元的2路电源带载能力、4路串口通信、2路SPI通信、2路脉冲信号、3路开漏输出和2路到位信号电平硬件接口,配置了对应的检测模块,实现了全面评估所有硬件接口功能是否正常,有效避免了漏检。
Smart Images

Figure CN122671968A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart gateway energy meter testing technology, and in particular to a hardware low-voltage interface testing fixture system for smart gateway energy meters. Background Technology
[0002] The existing testing solutions in the industry involve testing the communication unit separately. Once the communication unit is deemed to meet the technical requirements, it is installed on the smart gateway energy meter to read information from the host computer via power line carrier communication and to verify the software functions.
[0003] However, the management unit is a new technology. It can acquire raw data output from the metering unit in real time from the smart gateway energy meter, perform edge computing and intelligent analysis of the power grid, and collect real-time AC waveforms from the smart gateway energy meter, supporting SPI (Serial Peripheral Interface) communication rates of 2-6 Mbps. However, assembling the management unit onto the smart gateway energy meter for software function verification cannot determine whether the communication function is normal. Furthermore, the software function verification scheme cannot fully verify all hardware functions of the hardware low-voltage interface, posing a risk of missed tests. Summary of the Invention
[0004] The purpose of this invention is to provide a hardware low-voltage interface testing fixture system for smart gateway energy meters, thereby overcoming the aforementioned limitations of the existing technology. The various technical effects of the preferred technical solutions among the many technical solutions provided by this invention are detailed below.
[0005] To achieve the above objectives, the present invention provides the following technical solution: The present invention provides a hardware low-voltage interface testing fixture system for a smart gateway energy meter, comprising a first hardware detection interface testing fixture and a second hardware detection interface testing fixture. The first hardware detection interface testing fixture is connected to the communication unit of the smart gateway energy meter, and the second hardware detection interface testing fixture is connected to the management unit of the smart gateway energy meter. The first hardware testing interface fixture includes a first load, a first sampling module, a first serial port module, a first interrupt detection module, a first level detection module, a second level detection module, a first level output module, and a second serial port module. The first load is connected to the power interface of the communication unit, and the first sampling module is connected to the first load. The first serial port module, the first interrupt detection module, the first level detection module, the second level detection module, the first level output module, and the second serial port module are respectively connected to the first serial port, the second pulse output, the reset output, the active reporting output, the arrival signal input, and the second serial port of the communication unit. The second hardware detection interface test fixture includes a third serial port module, a second load, a second sampling module, a fourth serial port module, a second interrupt detection module, a third level detection module, a second level output module, a first SPI communication module, and a second SPI communication module. The second load is connected to the power interface of the management unit, and the second sampling module is connected to the second load. The third serial port module, the fourth serial port module, the second interrupt detection module, the third level detection module, the second level output module, the first SPI communication module, and the second SPI communication module are respectively connected to the first serial port, the second serial port, the second pulse output terminal, the reset output terminal, the position signal input terminal, the first SPI communication terminal, and the second SPI communication terminal of the management unit.
[0006] In some embodiments, the first hardware detection interface test fixture first divides the voltage obtained by the first load from the power interface of the communication unit to obtain a voltage divider signal. The first sampling module converts the voltage divider signal into a digital signal and further converts the digital signal into a voltage value of the power interface. Then, it judges whether the converted voltage value is qualified. If the voltage value is within a first set range, it is determined that the power hardware interface of the communication unit is qualified. The second hardware detection interface test fixture first divides the voltage obtained by the second load from the power interface of the management unit to obtain a voltage divider signal. The second sampling module converts the voltage divider signal into a digital signal and further converts the digital signal into the voltage value of the power interface. Then, it judges whether the converted voltage value is qualified. If the voltage value is within the second set range, it is determined that the power hardware interface of the management unit is qualified.
[0007] In some embodiments, the first serial port module sends interactive information to the first serial port of the communication unit, and determines whether the hardware circuit of the first serial port of the communication unit is normal based on whether the interactive information returned by the first serial port of the communication unit is received. The first serial port module sends a command to the first serial port of the communication unit, commanding the reset output terminal of the communication unit to actively send a high level or a low level to the first hardware detection interface test fixture. The first level detection module determines whether the hardware circuit of the reset output terminal of the communication unit is normal based on whether it receives a high level or a low level. The first serial port module sends a command to the first serial port of the communication unit, commanding the active reporting output terminal of the communication unit to actively send a high level or a low level to the first hardware detection interface test fixture. The second level detection module determines whether the hardware line of the active reporting output terminal of the communication unit is normal based on whether it receives a high level or a low level. The first level output module sends a high level or a low level to the position signal input terminal of the communication unit. After receiving the data returned by the first serial port terminal of the communication unit, the first serial port module parses the data frame and determines whether the hardware line between the position signal input terminal of the communication unit and the first serial port terminal of the communication unit is normal based on the parsed data frame.
[0008] In some embodiments, the second serial port of the communication unit is connected to the first serial port of the management unit; The second serial port module sends first interactive information to the second serial port of the communication unit, and the third serial port module sends second interactive information to the first serial port of the management unit. The hardware line between the second serial port of the communication unit and the first serial port of the management unit is judged to be normal based on whether the second serial port module receives the second interactive information and whether the third serial port module receives the first interactive information.
[0009] In some embodiments, the hardware circuitry at the second pulse output terminal of the communication unit is determined to be normal based on whether the first interrupt detection module can collect the second pulse of the communication unit. The second interrupt detection module determines whether the hardware circuitry of the second pulse output terminal of the management unit is normal based on whether it can collect the second pulse of the management unit.
[0010] In some embodiments, the fourth serial port module sends interactive information to the second serial port of the management unit, and determines whether the hardware circuit of the second serial port of the management unit is normal based on whether the interactive information of the second serial port of the management unit is received. The fourth serial port module sends a command to the second serial port of the management unit, commanding the reset output terminal of the management unit to actively send a high level or a low level to the second hardware detection interface test fixture. The third level detection module determines whether the hardware circuit of the reset output terminal of the management unit is normal based on whether it receives a high level or a low level. The second level output module sends a high level or a low level to the position signal input terminal of the management unit. After receiving the data returned by the second serial port terminal of the management unit, the fourth serial port module parses the data frame and determines whether the hardware line between the position signal input terminal of the management unit and the second serial port terminal of the management unit is normal based on the parsed data frame.
[0011] In some embodiments, the first SPI communication module sends information to interact with the first SPI communication terminal of the management unit, and determines whether the hardware circuit of the first SPI communication terminal of the management unit is normal based on whether it receives information returned by the first SPI communication terminal of the management unit. The second SPI communication terminal of the management unit actively sends an AC waveform to the second SPI communication module. The second SPI communication module determines whether the hardware circuit of the second SPI communication terminal of the management unit is normal based on whether the received AC waveform is accurate.
[0012] In some embodiments, a Bluetooth detector testing fixture is further included, which includes a power output module, a third interrupt detection module, a fourth interrupt detection module, a fifth interrupt detection module, and an RS485 communication module. The power output module, the third interrupt detection module, the fourth interrupt detection module, the fifth interrupt detection module, and the RS485 communication module are respectively connected to the power input terminal, the active pulse output terminal, the reactive pulse output terminal, the second pulse output terminal, and the RS485 communication terminal of the Bluetooth detector. The Bluetooth detector is communicatively connected to the Bluetooth module of the smart gateway energy meter.
[0013] In some embodiments, the power output module provides power to the Bluetooth detector, activating the Bluetooth detector; the RS485 communication module interacts with the RS485 communication terminal of the Bluetooth detector, enabling wireless communication between the Bluetooth module inside the Bluetooth detector and the Bluetooth module inside the smart gateway energy meter, while simultaneously reading the active pulse, reactive pulse, and second pulse signals of the smart gateway energy meter; the Bluetooth detector test fixture receives the active pulse, reactive pulse, and second pulse signals through the third interrupt detection module, the fourth interrupt detection module, and the fifth interrupt detection module, respectively, and determines whether the active pulse, reactive pulse, and second pulse signals conform to the standard after receiving them.
[0014] In some embodiments, a host computer is also included, which is connected to the smart gateway energy meter hardware low-voltage interface testing fixture system. The host computer is used to display the smart gateway energy meter hardware functions and AC waveforms in real time.
[0015] Implementing one of the above-described technical solutions of the present invention has the following advantages or beneficial effects: This invention configures corresponding detection modules for the hardware interfaces of the communication unit and management unit of the smart gateway energy meter, including 2 power supply load capacity, 4 serial communication, 2 SPI communication, 2 pulse signals, 3 open-drain outputs and 2 position signal levels. This enables a comprehensive evaluation of whether all hardware interface functions are normal, effectively avoiding missed detections. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings: Figure 1 This is a block diagram of a hardware low-voltage interface testing fixture system for a smart gateway energy meter according to an embodiment of the present invention. Figure 2 This is a waveform diagram of the third harmonic of an AC voltage according to an embodiment of the present invention; Figure 3 This is a waveform diagram of the third harmonic of an alternating current according to an embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the present invention clearer, various exemplary embodiments described below will be referenced to the accompanying drawings, which form part of the exemplary embodiments, illustrating various exemplary embodiments that may be used to implement the present invention. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. It should be understood that they are merely examples of processes, methods, and apparatuses consistent with some aspects of the present invention disclosed as detailed in the appended claims, and other embodiments may be used, or structural and functional modifications may be made to the embodiments listed herein without departing from the scope and spirit of the present invention.
[0018] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," etc., indicate the orientation or positional relationship based on the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the referred element must have a specific orientation, or be constructed and operated in a specific orientation. The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. The term "multiple" means two or more. The terms "connected" and "linked" should be interpreted broadly, for example, they can be fixed connections, detachable connections, integral connections, mechanical connections, electrical connections, communication connections, direct connections, indirect connections through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more of the related listed items. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0019] To illustrate the technical solution described in this invention, specific embodiments are described below, showing only the parts related to the embodiments of this invention.
[0020] Example 1: As Figure 1 As shown in the figure, this embodiment provides a hardware low-voltage interface testing fixture system for a smart gateway energy meter, including a first hardware detection interface testing fixture and a second hardware detection interface testing fixture. The first hardware detection interface testing fixture is connected to the communication unit of the smart gateway energy meter, and the second hardware detection interface testing fixture is connected to the management unit of the smart gateway energy meter.
[0021] Furthermore, the first hardware testing interface fixture includes a first load, a first sampling module, a first serial port module, a first interrupt detection module, a first level detection module, a second level detection module, a first level output module, and a second serial port module. The first load is connected to the power interface of the communication unit, and the first sampling module is connected to the first load. The first serial port module, the first interrupt detection module, the first level detection module, the second level detection module, the first level output module, and the second serial port module are respectively connected to the first serial port, the second pulse output, the reset output, the active reporting output, the arrival signal input, and the second serial port of the communication unit.
[0022] Furthermore, the second hardware testing interface fixture includes a third serial port module, a second load, a second sampling module, a fourth serial port module, a second interrupt detection module, a third level detection module, a second level output module, a first SPI communication module, and a second SPI communication module. The second load is connected to the power interface of the management unit, and the second sampling module is connected to the second load. The third serial port module, the fourth serial port module, the second interrupt detection module, the third level detection module, the second level output module, the first SPI communication module, and the second SPI communication module are respectively connected to the first serial port, the second serial port, the second pulse output terminal, the reset output terminal, the position signal input terminal, the first SPI communication terminal, and the second SPI communication terminal of the management unit.
[0023] It should be noted that the sampling module (including the first sampling module and the second sampling module) is connected to the voltage divider resistors corresponding to the load (including the first load and the second load) to collect the voltage signal (small voltage signal) from the voltage divider.
[0024] This system is equipped with corresponding detection modules for the hardware interfaces of the smart gateway energy meter communication unit and management unit, including 2 power supply load capacity, 4 serial communication, 2 SPI communication, 2 pulse signals, 3 open-drain outputs and 2 position signal levels. This enables a comprehensive evaluation of whether all hardware interface functions are normal, effectively avoiding missed detections and further avoiding the inefficiency and high cost of manual testing in large-scale production.
[0025] In some embodiments, the first hardware detection interface test fixture first divides the voltage obtained by the first load from the power interface of the communication unit to obtain a voltage divider signal. The first sampling module converts the voltage divider signal into a digital signal and further converts the digital signal into the voltage value of the power interface. Then, it judges whether the converted voltage value is qualified. If the voltage value is within a first set range (e.g., not less than 11V and not greater than 13V), the power hardware interface of the communication unit is judged to be qualified.
[0026] In a specific embodiment, the first load of the first hardware detection interface test fixture has a built-in 12V power supply, resulting in an operating current of 400mA. The I / O port of the MCU corresponding to the first hardware detection interface test fixture collects the voltage divider value in real time, and converts it into the power supply voltage value through the ADC (first sampling module). As long as it meets the standard requirement of +12V±1V, the voltage hardware interface of the communication unit is judged to be qualified.
[0027] In some embodiments, the first serial port module sends interactive information to the first serial port of the communication unit, and determines whether the hardware circuit of the first serial port of the communication unit is normal based on whether it receives the interactive information returned by the first serial port of the communication unit.
[0028] The interactive information in this embodiment can be: the frame header, frame trailer, and check bit of a data frame as defined by the DL / T 645—2007 communication protocol, and the data in the middle can be the communication address, voltage, current, and power consumption (how many kilowatt-hours of electricity used) of the smart gateway energy meter. Of course, instructions included in the DL / T 645—2007 communication protocol can also be used. In a specific embodiment, the first serial port module sends a query command for the smart gateway energy meter address to the first serial port of the communication unit. After the smart gateway energy meter parses the command, it sends data containing the meter address back to the first serial port module through the first serial port of the communication unit. When the first serial port module of the tooling system parses the meter address, it can be considered that the communication between the two is successful and the hardware circuit is normal.
[0029] It should be noted that the judgment involved in this embodiment can be implemented by an MCU. For example, the entire system can be configured with a common MCU, and all modules can be connected to the MCU; or, the first hardware detection interface test fixture and the second hardware detection interface test fixture can be independent MCUs (or each can be configured with an MCU), and each can be connected to its respective module.
[0030] In some embodiments, the first serial port module sends a command to the first serial port of the communication unit, commanding the reset output terminal of the communication unit to actively send a high level or a low level to the first hardware detection interface test fixture, and determines whether the hardware circuit of the reset output terminal of the communication unit is normal based on whether the first level detection module receives a high level or a low level.
[0031] In some embodiments, the first serial port module sends a command to the first serial port of the communication unit, commanding the active reporting output terminal of the communication unit to actively send a high level or a low level to the first hardware detection interface test fixture. The second level detection module determines whether the hardware line of the active reporting output terminal of the communication unit is normal based on whether it receives a high level or a low level. If it receives a high level, it is normal.
[0032] In some embodiments, the first level output module sends a high level or a low level to the position signal input terminal of the communication unit. After receiving the data returned by the first serial port terminal of the communication unit, the first serial port module performs data frame parsing and determines whether the hardware line between the position signal input terminal of the communication unit and the first serial port terminal of the communication unit is normal based on the parsed data frame.
[0033] It should be noted that the returned data, such as type and structure, or the frame header, frame trailer, and check bit specified in the DL / T 645—2007 communication protocol, can contain the communication address, voltage, current, and electricity consumption (how many kilowatt-hours of electricity were used) of the smart gateway energy meter. In a specific embodiment, the first serial port module sends a query command for the smart gateway energy meter address to the first serial port of the communication unit. After parsing the DL / T 645—2007 protocol, the smart gateway energy meter sends data containing the meter address back to the first serial port module through the first serial port of the communication unit. If the first serial port module of this fixture parses the meter address, it can be considered that the communication between the two is successful and the hardware circuit is normal.
[0034] In this embodiment, the serial port test is performed by reading the table address through the DL / T 645-2007 communication protocol. As long as the smart gateway energy meter can correctly parse the frame header, frame tail and query the smart gateway energy meter address command in the communication message, and reply with the table address via the DL / T 645 message, the communication can be considered normal after the tooling system correctly parses it.
[0035] In some embodiments, the second serial port of the communication unit is connected to the first serial port of the management unit; the second serial port module sends first interactive information to the second serial port of the communication unit, and the third serial port module sends second interactive information to the first serial port of the management unit. The hardware line between the second serial port of the communication unit and the first serial port of the management unit is judged to be normal based on whether the second serial port module receives the second interactive information and whether the third serial port module receives the first interactive information.
[0036] It should be noted that the first and second interactive information can be selected from the interactive information mentioned above based on the actual situation, and will not be elaborated further here.
[0037] In some embodiments, the hardware circuitry at the second pulse output terminal of the communication unit is determined to be normal based on whether the first interrupt detection module can collect the second pulse of the communication unit.
[0038] In some embodiments, the second hardware detection interface test fixture first divides the voltage obtained from the power interface of the management unit by the second load to obtain a voltage divider signal. The second sampling module converts the voltage divider signal into a digital signal and further converts the digital signal into the voltage value of the power interface. Then, it judges whether the converted voltage value is qualified. If the voltage value is within a second set range (e.g., not less than 11V and not greater than 13V), the power hardware interface of the management unit is judged to be qualified.
[0039] To make it easier to understand, the second hardware testing interface test fixture has a built-in 12V power supply as its second load, resulting in an operating current of 400mA. The MCU's I / O port of the second hardware testing interface test fixture collects the voltage divider value in real time, and converts it into the power supply voltage value through the ADC (second sampling module). As long as it meets the standard requirement of +12V±1V, the power supply hardware interface of the management unit is judged to be qualified.
[0040] In some embodiments, the fourth serial port module sends interactive information to the second serial port of the management unit, and determines whether the hardware circuit of the second serial port of the management unit is normal based on whether it receives the interactive information from the second serial port of the management unit.
[0041] The fourth serial port module sends a command to the second serial port of the management unit, instructing the reset output terminal of the management unit to actively send a high or low level to the second hardware detection interface test fixture. The third level detection module determines whether the hardware circuit of the reset output terminal of the management unit is normal based on whether it receives a high or low level.
[0042] Furthermore, the second level output module sends a high or low level to the position signal input terminal of the management unit. After receiving the data returned by the second serial port terminal of the management unit, the fourth serial port module parses the data frame and determines whether the hardware line between the position signal input terminal of the management unit and the second serial port terminal of the management unit is normal based on the parsed data frame.
[0043] To make it easier to understand, the data transmitted back from the second serial port of the management unit includes the arrival signal received by the smart gateway energy meter. Since the arrival signal is unidirectional, the smart gateway energy meter uses serial communication to inform the corresponding tooling whether the current arrival signal is high or low. The purpose is to achieve signal feedback.
[0044] In some embodiments, the first SPI communication module sends information to interact with the first SPI communication terminal of the management unit, and determines whether the hardware circuit of the first SPI communication terminal of the management unit is normal based on whether it receives information returned by the first SPI communication terminal of the management unit.
[0045] It should be noted that the first SPI communication module sends information, such as a meter reading address command sent to the smart gateway energy meter via the SPI channel, where there is an SPI communication protocol between the smart gateway energy meter and the management unit. After parsing, the smart gateway energy meter packages the meter address according to the SPI protocol and sends it back to the first SPI communication module, which then parses the smart gateway energy meter's address. This indicates that the two can recognize each other and the hardware circuit is functioning normally.
[0046] The second SPI communication terminal of the management unit actively sends an AC waveform to the second SPI communication module. The second SPI communication module determines whether the hardware circuit of the second SPI communication terminal of the management unit is normal based on whether the received AC waveform is accurate.
[0047] It should be noted that after data conversion, the AC waveform is sent to the computer's USB interface via the tooling system's USB interface for real-time display.
[0048] like Figures 2-3 As shown, in a specific embodiment, the AC waveform can be the third harmonic waveform of AC voltage and current. The accuracy of the waveform information can be determined through corresponding chip calculations. For example, the equipment platform can be configured to output AC waveforms of the 3rd to 64th harmonics as input to the smart gateway energy meter. For instance, in a specific test, only the 3rd harmonic AC waveform is configured. After the tooling MCU (AT32F403VGT6) reads the cycle data output by the smart gateway energy meter through the second SPI channel and parses it to determine that it is a 3rd harmonic AC waveform, it can output a conclusion that the test is qualified.
[0049] In some embodiments, the hardware circuitry at the second pulse output terminal of the management unit is determined to be normal based on whether the second interrupt detection module can collect the second pulse of the management unit.
[0050] This embodiment of a smart gateway energy meter hardware low-voltage interface testing fixture system also includes a Bluetooth calibrator testing fixture. The Bluetooth calibrator testing fixture includes a power output module, a third interrupt detection module, a fourth interrupt detection module, a fifth interrupt detection module, and an RS485 communication module. The power output module, the third interrupt detection module, the fourth interrupt detection module, the fifth interrupt detection module, and the RS485 communication module are respectively connected to the power input terminal, the active pulse output terminal, the reactive pulse output terminal, the second pulse output terminal, and the RS485 communication terminal of the Bluetooth calibrator. The Bluetooth calibrator is communicatively connected to the Bluetooth module of the smart gateway energy meter.
[0051] It should be noted that the Bluetooth tester can be directly installed on the hardware low-voltage interface testing fixture system of this smart gateway energy meter to communicate with the Bluetooth module inside the smart gateway energy meter and test whether the Bluetooth function is normal.
[0052] In some embodiments, the power output module provides power to the Bluetooth tester, activating it. The RS485 communication module interacts with the RS485 communication terminal of the Bluetooth tester, enabling wireless communication between the Bluetooth module inside the tester and the Bluetooth module inside the smart gateway energy meter. Simultaneously, it reads the active pulse, reactive pulse, and second pulse signals from the smart gateway energy meter. The Bluetooth tester test fixture receives the active pulse, reactive pulse, and second pulse signals through the third, fourth, and fifth interrupt detection modules, respectively. After receiving the signals, it determines whether they conform to the standard and feeds the results back to the host computer for display.
[0053] It should be noted that the following example can be used to determine whether the active pulse, reactive pulse, and second pulse signals meet the standards: For example, the RS485 communication module sends a data frame to the RS485 communication terminal of the Bluetooth detector, informing the Bluetooth detector to enter Bluetooth detection mode. The Bluetooth detector then connects to the Bluetooth module on the smart gateway energy meter. After a successful handshake, the Bluetooth module on the smart gateway energy meter wirelessly transmits the pulse information read from the meter to the Bluetooth detector. The Bluetooth detector then transmits the information to the I / O of the tooling MCU for interrupt counting. Once continuous pulses are detected, the Bluetooth function on the meter is considered to be normal.
[0054] To accurately determine the pulse, it is generally done by judging the second pulse. Within a 1-second period, 500ms is a high level and 500ms is a low level. The interrupt function of the tooling MCU (AT32F403VGT6) can be used to accurately determine whether the second pulse signal received by Bluetooth conforms to the Southern Power Grid technical standard.
[0055] This embodiment of the intelligent gateway energy meter hardware low-voltage interface testing fixture system also includes a host computer connected to the intelligent gateway energy meter hardware low-voltage interface testing fixture system. The host computer is used to display the hardware functions and AC waveforms of the intelligent gateway energy meter in real time.
[0056] Specifically, the hardware low-voltage interface testing fixture system is plugged into the smart gateway energy meter. The host computer (such as a computer) software sends the test requirements to the hardware low-voltage interface testing fixture system via a USB-to-485 serial cable. The fixture system autonomously performs hardware interface tests with the smart gateway energy meter, communication unit and management unit, and then transmits the evaluation results back to the host computer software via a USB-to-485 serial cable for hardware function display. At the same time, the real-time waveform of the AC mains power can be uploaded to the host computer for display using a USB cable.
[0057] In summary, this system can comprehensively evaluate the functionality of all hardware interfaces, and the functionality of each hardware interface is displayed visually on the host computer. The hardware low-voltage interface testing fixture system can obtain the hardware interface evaluation results of the communication unit and management unit on the host computer in just 30 seconds for a single smart gateway energy meter. The entire process is intelligent and efficient.
[0058] The above description is merely a preferred embodiment of the present invention. Those skilled in the art will understand that various changes or equivalent substitutions can be made to these features and embodiments without departing from the spirit and scope of the present invention. Furthermore, under the teachings of the present invention, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the protection scope of the present invention.
Claims
1. A hardware low-voltage interface testing fixture system for a smart gateway energy meter, characterized in that, It includes a first hardware testing interface test fixture and a second hardware testing interface test fixture. The first hardware testing interface test fixture is connected to the communication unit of the smart gateway energy meter, and the second hardware testing interface test fixture is connected to the management unit of the smart gateway energy meter. The first hardware testing interface fixture includes a first load, a first sampling module, a first serial port module, a first interrupt detection module, a first level detection module, a second level detection module, a first level output module, and a second serial port module. The first load is connected to the power interface of the communication unit, and the first sampling module is connected to the first load. The first serial port module, the first interrupt detection module, the first level detection module, the second level detection module, the first level output module, and the second serial port module are respectively connected to the first serial port, the second pulse output, the reset output, the active reporting output, the arrival signal input, and the second serial port of the communication unit. The second hardware detection interface test fixture includes a third serial port module, a second load, a second sampling module, a fourth serial port module, a second interrupt detection module, a third level detection module, a second level output module, a first SPI communication module, and a second SPI communication module. The second load is connected to the power interface of the management unit, and the second sampling module is connected to the second load. The third serial port module, the fourth serial port module, the second interrupt detection module, the third level detection module, the second level output module, the first SPI communication module, and the second SPI communication module are respectively connected to the first serial port, the second serial port, the second pulse output terminal, the reset output terminal, the position signal input terminal, the first SPI communication terminal, and the second SPI communication terminal of the management unit.
2. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, The first hardware detection interface test fixture first divides the voltage obtained by the first load from the power interface of the communication unit to obtain a voltage divider signal. The first sampling module converts the voltage divider signal into a digital signal and further converts the digital signal into the voltage value of the power interface. Then, it judges whether the converted voltage value is qualified. If the voltage value is within the first set range, it is judged that the power hardware interface of the communication unit is qualified. The second hardware detection interface test fixture first divides the voltage obtained by the second load from the power interface of the management unit to obtain a voltage divider signal. The second sampling module converts the voltage divider signal into a digital signal and further converts the digital signal into the voltage value of the power interface. Then, it judges whether the converted voltage value is qualified. If the voltage value is within the second set range, it is determined that the power hardware interface of the management unit is qualified.
3. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, The first serial port module sends interactive information to the first serial port of the communication unit, and determines whether the hardware circuit of the first serial port of the communication unit is normal based on whether it receives the interactive information returned by the first serial port of the communication unit. The first serial port module sends a command to the first serial port of the communication unit, commanding the reset output terminal of the communication unit to actively send a high level or a low level to the first hardware detection interface test fixture. The first level detection module determines whether the hardware circuit of the reset output terminal of the communication unit is normal based on whether it receives a high level or a low level. The first serial port module sends a command to the first serial port of the communication unit, commanding the active reporting output terminal of the communication unit to actively send a high level or a low level to the first hardware detection interface test fixture. The second level detection module determines whether the hardware line of the active reporting output terminal of the communication unit is normal based on whether it receives a high level or a low level. The first level output module sends a high level or a low level to the position signal input terminal of the communication unit. After receiving the data returned by the first serial port terminal of the communication unit, the first serial port module parses the data frame and determines whether the hardware line between the position signal input terminal of the communication unit and the first serial port terminal of the communication unit is normal based on the parsed data frame.
4. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, The second serial port of the communication unit is connected to the first serial port of the management unit; The second serial port module sends first interactive information to the second serial port of the communication unit, and the third serial port module sends second interactive information to the first serial port of the management unit. The hardware line between the second serial port of the communication unit and the first serial port of the management unit is judged to be normal based on whether the second serial port module receives the second interactive information and whether the third serial port module receives the first interactive information.
5. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, The hardware circuitry at the second pulse output terminal of the communication unit is determined to be normal based on whether the first interrupt detection module can collect the second pulse of the communication unit. The second interrupt detection module determines whether the hardware circuitry of the second pulse output terminal of the management unit is normal based on whether it can collect the second pulse of the management unit.
6. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, The fourth serial port module sends interactive information to the second serial port of the management unit, and determines whether the hardware circuit of the second serial port of the management unit is normal based on whether it receives the interactive information from the second serial port of the management unit. The fourth serial port module sends a command to the second serial port of the management unit, commanding the reset output terminal of the management unit to actively send a high level or a low level to the second hardware detection interface test fixture. The third level detection module determines whether the hardware circuit of the reset output terminal of the management unit is normal based on whether it receives a high level or a low level. The second level output module sends a high level or a low level to the position signal input terminal of the management unit. After receiving the data returned by the second serial port terminal of the management unit, the fourth serial port module parses the data frame and determines whether the hardware line between the position signal input terminal of the management unit and the second serial port terminal of the management unit is normal based on the parsed data frame.
7. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, The first SPI communication module sends information to interact with the first SPI communication terminal of the management unit, and determines whether the hardware circuit of the first SPI communication terminal of the management unit is normal based on whether it receives the information returned by the first SPI communication terminal of the management unit. The second SPI communication terminal of the management unit actively sends an AC waveform to the second SPI communication module. The second SPI communication module determines whether the hardware circuit of the second SPI communication terminal of the management unit is normal based on whether the received AC waveform is accurate.
8. The hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 1, characterized in that, It also includes a Bluetooth detector testing fixture, which includes a power output module, a third interrupt detection module, a fourth interrupt detection module, a fifth interrupt detection module, and an RS485 communication module. The power output module, the third interrupt detection module, the fourth interrupt detection module, the fifth interrupt detection module, and the RS485 communication module are respectively connected to the power input terminal, the active pulse output terminal, the reactive pulse output terminal, the second pulse output terminal, and the RS485 communication terminal of the Bluetooth detector. The Bluetooth detector is communicatively connected to the Bluetooth module of the smart gateway energy meter.
9. A hardware low-voltage interface testing fixture system for a smart gateway energy meter according to claim 8, wherein the power output module provides fixture power to the Bluetooth detector and starts the Bluetooth detector; the RS485 communication module interacts with the RS485 communication terminal of the Bluetooth detector, enabling wireless communication between the Bluetooth module inside the Bluetooth detector and the Bluetooth module inside the smart gateway energy meter, and simultaneously reads the active pulse, reactive pulse, and second pulse signals of the smart gateway energy meter; the Bluetooth detector testing fixture receives the active pulse, reactive pulse, and second pulse signals through the third interrupt detection module, the fourth interrupt detection module, and the fifth interrupt detection module, respectively, and determines whether the active pulse, reactive pulse, and second pulse signals conform to the standard after receiving them.
10. A hardware low-voltage interface testing fixture system for a smart gateway energy meter according to any one of claims 1-9, characterized in that, It also includes a host computer connected to the hardware low-voltage interface testing fixture system of the smart gateway energy meter, which is used to display the hardware functions and AC waveforms of the smart gateway energy meter in real time.