Function test system and function test method for communication module of electric energy meter
By designing the functional test system of the power meter communication module, and using the test base plate and main control module to conduct comprehensive testing of the optical fiber communication module, the problems of low detection efficiency and inability to meet the mass production inspection in the existing technology are solved, and efficient and flexible testing results are achieved.
Patent Information
- Application Number
- CN202510157938.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art cannot fully detect the hardware and software functions of the optical fiber communication module, and the detection efficiency is low, so it cannot meet the needs of mass production inspection.
Design a functional testing system for the power meter communication module, including the test base plate and the main control module, and conduct comprehensive testing of the power data acquisition and processing function and fiber communication function of the optical fiber communication module by sending test instructions and optical test signals.
It realizes comprehensive testing of the fiber optic communication function and power data acquisition and processing function of the fiber optic communication module, improves the flexibility, compatibility and efficiency of the test, and is suitable for testing of various types of power meter communication modules.
Smart Images

Figure CN120074570A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a function test system and a function test method for an electric energy meter communication module. Background Art
[0002] The optical fiber communication module of the electric energy meter is installed on the electric energy meter and is part of the electric energy meter housing. It is an optical communication unit for realizing data acquisition, conversion, and transmission of the electric energy meter. The optical fiber communication module adopts a dual-mode communication method, one way is optical fiber communication, and the other way is carrier communication. The optical fiber communication establishes a connection with the master station via the GPON (Gigabit Passive Optical Network) interface to complete data acquisition and communication functions. As a new communication method, the optical fiber communication module is currently widely used and can be directly connected to the operator's network, with relatively flexible wiring.
[0003] However, the detection scheme for the optical fiber communication module is not yet mature. The existing technology detects the optical fiber communication module based on high-speed power line carrier communication, only detecting the uplink carrier communication interface and functions, without detecting the optical fiber communication functions. The detection efficiency is relatively low, and it cannot cover the testing of all hardware and software functions of the optical fiber communication module, and cannot meet the production detection of a large number of optical fiber communication modules. Summary of the Invention
[0004] The embodiments of the present application aim to at least solve one of the technical problems in the related technologies to some extent. For this purpose, the purpose of the embodiments of the present application is to provide a function test system and a function test method for an electric energy meter communication module.
[0005] The embodiments of the present application provide a function test system for an electric energy meter communication module. The function test system includes: an electric energy meter communication module, including an optical fiber communication module, where the optical fiber communication module includes a power data acquisition and processing function and an optical fiber communication function; a test baseboard, configured to access the optical fiber communication module, and send a test instruction for testing the optical fiber communication module to the optical fiber communication module to test the power data acquisition and processing function, obtain a data acquisition and processing test result, and send the data acquisition and processing test result to the main control module; a main control module, configured to communicate with the optical fiber communication module, the main control module sends the test instruction to the test baseboard, and the main control module sends an optical test signal to the optical fiber communication module to test the optical fiber communication function and obtain an optical fiber communication test result.
[0006] Exemplarily, the test baseboard includes a core board and a circuit board, where: the core board is configured to connect to the circuit board through a dual in-line pin header interface, the core board includes a communication interface, and the test baseboard communicates with the main control module and the optical fiber communication module respectively through the communication interface.
[0007] Exemplarily, the communication interface includes: an Ethernet interface for connecting to the main control module; a low-voltage interface, which includes a GPIO communication interface and a UART communication interface, for connecting to the optical fiber communication module to enable communication between the test baseboard and the optical fiber communication module.
[0008] Exemplarily, the function test system further includes a switching power supply and an AC power supply; the test baseboard further includes: a power interface for connecting to the switching power supply to supply power to the test baseboard; a high-voltage interface for connecting to the AC power supply and the optical fiber communication module to supply power to the optical fiber communication module.
[0009] Exemplarily, the test baseboard further includes: an Ethernet control chip connected to the Ethernet interface for controlling the communication of frame assembly and disassembly between the test baseboard and the main control module based on the communication protocol Q / GDW376.1; a DC-DC conversion circuit connected to the power interface for converting electrical signals, and converting electrical signals includes converting the input voltage of the switching power supply from 24V to 12V, 5V, or 3.3V.
[0010] Exemplarily, the test baseboard further includes: a debugging and reset interface for debugging and reset control; a carrier signal interface for connecting to an external electric energy meter communication module to enable networking and communication between the test baseboard and the external electric energy meter communication module.
[0011] Exemplarily, the test baseboard further includes a plurality of test interfaces; the test interfaces include a DUT interface and a co-test module interface, and each test interface is used to connect to the electric energy meter communication module so that the test baseboard can test the electric energy meter communication module; the electric energy meter communication module further includes at least one of a CCO module and a STA module.
[0012] Exemplarily, the communication interface further includes: a service serial port, and the core board is further configured to connect to a plurality of the test interfaces through a plurality of the service serial ports.
[0013] Exemplarily, the data acquisition and processing test results include at least one of the following: data acquisition test results, data conversion test results, AC power consumption test results.
[0014] Exemplarily, the main control module is configured to perform carrier communication and / or optical fiber communication with the optical fiber communication module, and the main control module further sends a carrier test signal to the optical fiber communication module to test the carrier communication function and obtain a carrier communication test result.
[0015] Exemplarily, the test baseboard further includes: test software configured to support remote login to the system for upgrade.
[0016] Exemplarily, the test software includes a virtual concentrator and a virtual watt-hour meter; wherein: the virtual concentrator is configured to communicate with the virtual watt-hour meter to send the test instruction to the virtual watt-hour meter and receive the test data returned by the virtual watt-hour meter to send the test data to the main control module; the virtual watt-hour meter is configured to communicate with the optical fiber communication module and send the test instruction to the optical fiber communication module to collect the test data.
[0017] Exemplarily, the circuit board includes: an AC power consumption test circuit for connecting to the optical fiber communication module to detect the AC power consumption of the optical fiber communication module and obtain an AC power consumption test result; an AD voltage acquisition circuit for connecting to the STA module to collect the voltage and current of the STA module; a relay control circuit configured to connect to the optical fiber communication module and control the test base plate to supply power to the optical fiber communication module.
[0018] Another embodiment of the present application provides a method for testing the functions of an electric energy meter communication module. The function testing method is applied to the above function testing system. The function testing method includes: sending a test instruction for testing the optical fiber communication module to the optical fiber communication module through a test base plate to test the power data acquisition and processing function, obtaining a data acquisition and processing test result, and sending the data acquisition and processing test result to the main control module; sending the test instruction to the test base plate through the main control module, and sending an optical test signal to the optical fiber communication module to test the optical fiber communication function, obtaining an optical fiber communication test result.
[0019] Another embodiment of the present application provides a method for testing the functions of an electric energy meter communication module. The function testing method is applied to the above function testing system. The function testing method is executed by the main control module. The function testing method includes: sending a test instruction for testing the optical fiber communication module to a test base plate, so that the test base plate sends the test instruction to the optical fiber communication module to test the power data acquisition and processing function, obtaining a data acquisition and processing test result, and sending an optical test signal to the optical fiber communication module to test the optical fiber communication function, obtaining an optical fiber communication test result.
[0020] In the above embodiments, the functional test system includes: a watt-hour meter communication module, including an optical fiber communication module, and the optical fiber communication module includes a power data acquisition and processing function and an optical fiber communication function; a test base plate configured to access the optical fiber communication module, send a test instruction for testing the optical fiber communication module to the optical fiber communication module to test the power data acquisition and processing function, obtain a data acquisition and processing test result, and send the data acquisition and processing test result to the main control module; a main control module configured to communicate with the optical fiber communication module, the main control module sends a test instruction to the test base plate, and the main control module sends an optical test signal to the optical fiber communication module to test the optical fiber communication function and obtain an optical fiber communication test result. By testing the watt-hour meter communication module through the above functional test system, the optical fiber communication function and the power data acquisition and processing function of the optical fiber communication module are comprehensively tested, and it is applicable to the testing of various types of watt-hour meter communication modules, improving the flexibility and compatibility of the testing and enhancing the testing efficiency.
[0021] The above description is only an overview of the technical solution of this application. In order to be able to understand the technical means of this application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of this application more obvious and understandable, the following specifically illustrates the specific embodiments of this application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of this application. And in all the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0023] Figure 1 shows a schematic diagram of a functional test device for an optical fiber communication module;
[0024] Figure 2 shows a schematic diagram of the functional test system for the watt-hour meter communication module of this application;
[0025] Figure 3 shows a schematic diagram of the test base plate of this application;
[0026] Figure 4 shows a schematic diagram of the tooling structure of the test base plate of this application;
[0027] Figure 5 is a schematic flow chart of the functional test method for the watt-hour meter communication module provided by the embodiments of this application;
[0028] Figure 6 is a schematic flow chart of the functional test method for the watt-hour meter communication module provided by another embodiment of this application. Detailed Implementation Manner
[0029] The embodiments of the technical solution of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, so they are only examples and cannot be used to limit the protection scope of the present application.
[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the description of the specification, claims and drawings of this application are intended to cover non-exclusive inclusion.
[0031] In the description of the embodiments of this application, technical terms such as "first" and "second" are only used to distinguish different objects and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity, specific order or primary-secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "a plurality of" is more than two, unless otherwise clearly and specifically defined.
[0032] Referring to "embodiments" herein means that the specific features, structures or characteristics described in connection with the embodiments can be included in at least one embodiment of this application. The phrase appears in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0033] In the description of the embodiments of this application, the term "and / or" is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.
[0034] In the description of the embodiments of this application, the term "a plurality of" refers to more than two (including two). Similarly, "a plurality of groups" refers to more than two groups (including two groups), and "a plurality of pieces" refers to more than two pieces (including two pieces).
[0035] In the description of the embodiments of the present application, the orientation or positional relationship indicated by technical terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the embodiments of the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the embodiments of the present application.
[0036] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installation", "connection", "connection", "fixation", etc. should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or integrated; it can also be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, and can be the communication inside two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0037] Figure 1 A schematic diagram of a functional test device for an optical fiber communication module is shown.
[0038] As Figure 1 shown, the device uses a PC (personal computer) as the core to develop the upper computer test software. The upper computer (virtual master station) communicates with the test equipment using USB or Ethernet, etc. The PC side is the control center and data storage center of the test process, responsible for configuring and selecting the test plan. The detection device (test bottom board) and the optical fiber communication module perform data transmission and reception using a service serial port, and perform hardware tests on the optical fiber communication module (module under test). The accompanying CCO module (accompanying module, central coordinator) is used to perform power line communication and networking with the optical fiber communication module. This solution mainly tests the optical fiber communication module based on high-speed power line carrier communication, only detects the uplink carrier communication interface and corresponding functions, and cannot detect the hardware, software functions and AC power consumption of the optical fiber communication function. Moreover, it only supports the test of a single optical fiber communication module, has a single interface. At the same time, this solution cannot achieve the compatibility between bench testing and production testing, has poor flexibility, the upper computer test software is semi-automated, and the efficiency is relatively low.
[0039] In view of this, the present application proposes a functional test system for an electric energy meter communication module, which comprehensively tests the optical fiber communication function and power data acquisition and processing function of the optical fiber communication module, and is applicable to the tests of various types of electric energy meter communication modules, improving the flexibility and compatibility of the test and improving the test efficiency.
[0040] Figure 2 The figure shows a schematic diagram of the functional test system for the power meter communication module of the present application.
[0041] As Figure 2 shown, the functional test system for the power meter communication module at least includes a power meter communication module (including an optical fiber communication module), a test base plate, and a main control module (master station system).
[0042] In one example, the power meter communication module can be various electronic communication modules for power meter communication. The communication method can be carrier communication or optical communication. For example, the power meter communication module can be an optical fiber communication module; the test base plate can be a test device with various hardware circuits and test software on board, and the main control module can be a device such as a host computer or a computer with data processing and control functions.
[0043] The power meter communication module, including an optical fiber communication module, the optical fiber communication module includes a power data acquisition and processing function and an optical fiber communication function; the test base plate is configured to access the optical fiber communication module, and send test instructions for testing the optical fiber communication module to the optical fiber communication module to test the power data acquisition and processing function, obtain a data acquisition and processing test result, and send the data acquisition and processing test result to the main control module; the main control module is configured to communicate with the optical fiber communication module, the main control module sends test instructions to the test base plate, and the main control module sends an optical test signal to the optical fiber communication module to test the optical fiber communication function and obtain an optical fiber communication test result.
[0044] Exemplarily, the power meter communication module can include an optical fiber communication module, or can also include various carrier communication modules. For example, the carrier communication module can be a single-phase STA module (single-phase meter / I-type collector communication module), a three-phase STA module (three-phase meter / I-type collector communication module), and a CCO module.
[0045] The test base plate is the core of the functional test system, having the functions of a virtual concentrator and a virtual power meter. It can not only perform TCP (Transmission Control Protocol) communication with the master station system (main control module), but also transmit the test instructions of the master station system to each module (such as the optical fiber communication module) to achieve full-link communication functions, thereby performing the transmission of test instructions and test data. The test data can be, for example, a data acquisition and processing test result.
[0046] The main control module (master station system) can be the upper computer software on the PC side, which has the function of simulating the master station. The master station system and the test baseboard can communicate with each other using the Q / GDW376.1 (power industry standard protocol) protocol, and send test instructions to the test baseboard, so that the test baseboard sends the test instructions to the optical fiber communication module to test the power data acquisition and processing function. The master station system has automated test software, which can complete the test with one key and customize and expand the test function.
[0047] Exemplarily, the main control module (master station system) can also communicate with the optical fiber communication module. The main control module is configured to perform carrier communication and / or optical fiber communication with the optical fiber communication module. The main control module also sends a carrier test signal to the optical fiber communication module to test the carrier communication function and obtain the carrier communication test result.
[0048] Among them, the optical test signal and the carrier test signal can be, for example, signals related to the meter reading message instruction sent by the master station to test the optical fiber communication function and the carrier communication function, and obtain the optical fiber communication test result and the carrier communication test result. That is, when the master station system can read the message data, it means that the optical fiber communication function and the carrier communication function are normal. The message data can be, for example, the byte order organized according to the specific protocol content.
[0049] The function test system of the electric energy meter communication module of the present application comprehensively tests the optical fiber communication function and the power data acquisition and processing function of the optical fiber communication module, and is applicable to the tests of various types of electric energy meter communication modules, improving the flexibility and compatibility of the test and improving the test efficiency.
[0050] In another example, continuing to refer to Figure 2 , the function test system of the present application may further include a powerline communication adapter, a switch, a power supply system, and an operator network.
[0051] The power supply system can include an AC power supply, a power filter, and a 24V switching power supply. Among them, the AC power supply belongs to a programmable power supply, supports three-phase power supply, and the frequency is adjustable, and is used to supply power to the optical fiber communication module through the test baseboard. The power filter is used to filter out interference signals, can reduce the jitter on the power line and filter out high-frequency noise, and improve the stability of the system. The 24V switching power supply has an output power of 35W, an output voltage of 24V, and an output current of 1.5A, and can be connected to the test baseboard through a 2PIN pluggable terminal block female seat to supply power to the test baseboard.
[0052] A powerline Ethernet adapter is used for broadband Internet access via power lines to test the power data acquisition and processing function of an optical fiber communication module. For example, it can test the data conversion function. Specifically, the master station system can establish communication with the operator network through an optical fiber port or Ethernet (the operator networks are fully covered through shared base stations). As a result, the powerline Ethernet adapter connects the optical fiber port of the operator network and the LAN PLC (Power Line Carrier Communication Interface) carrier interface of the optical fiber communication module via power lines, enabling the master station system to perform carrier communication with the optical fiber communication module, thereby testing the carrier communication function.
[0053] A switch is used to connect to the optical fiber communication module to assist in the functional testing of the optical fiber communication module. For example, it can implement the test of the DHCP function (Dynamic Host Configuration Protocol) (similar to testing the optical fiber communication function). Specifically, the switch communicates with the master station via Ethernet for electrical port communication and communicates with the optical fiber communication module via an optical port (connected to the GPON interface, a passive optical network broadband interface) for the transmission of optical test signals. The interface type is a single-mode fiber SC type (single-mode fiber connector). If the optical fiber communication module supports the DHCP function, it can obtain the IP address of the switch. The GEO interface (Geographic Information Interface) is an optical and electrical multiplexing interface. In addition, the master station system can directly communicate with the optical fiber communication module through an optical fiber medium to achieve communication between different media.
[0054] In the embodiments of the present application, the master station system is a control center for sending test instructions and receiving test results. The test baseboard is connected to the master station system through an Ethernet interface for TCP communication, and communicates with the optical fiber communication module respectively for carrier communication, service serial port, and GPIO (General Purpose Input Output) connection communication to transmit test instructions and test data, and obtain the test results of data acquisition and processing.
[0055] The powerline Ethernet adapter is connected to the LAN PLC interface of the optical fiber communication module to transmit carrier signals to the optical fiber communication module to test the ability of the optical fiber communication module to convert them into optical signals. The switch is connected to the master station via Ethernet and to the GPON interface of the optical fiber communication module to transmit optical signals (optical test signals) to the optical fiber communication module to test the optical fiber communication function.
[0056] Figure 3 The schematic diagram of the test baseboard of the present application is shown.
[0057] As Figure 3 shown, the test baseboard includes a core board and a circuit board (not shown). Among them: the core board is configured to be connected to the circuit board through a dual in-line pin header interface. The core board includes a communication interface, and the test baseboard communicates with the main control module and the optical fiber communication module respectively through the communication interface.
[0058] The communication interface includes: an Ethernet interface and a low-voltage interface. The Ethernet interface is used to connect to the main control module; the low-voltage interface includes a GPIO communication interface and a UART (Universal Asynchronous Receiver-Transmitter) communication interface, which are used to connect to the optical fiber communication module to enable communication between the test baseboard and the optical fiber communication module.
[0059] Exemplarily, the core board can be, for example, an AT91SAM9X25 (Embedded Microprocessor Unit) core board. The core board is based on the embedded Linux system (operating system) and serves as the core of the test baseboard. It is equipped with SDRAM (Dynamic Random Access Memory) and Nand FLASH storage chips (Non-Volatile Macrocell Memory). Through the dual-row pin interface, resources such as the main control chip's IO (Input / Output Interface), UART communication interface, and Ethernet interface are led to the circuit board of the test baseboard, having high stability. Among them, the Ethernet interface ( Figure 3 the external Ethernet interface therein) is used for the test baseboard to conduct TCP communication with the main control module, and the GPIO communication interface and the UART communication interface (not shown in the figure) are used for the test baseboard to communicate with the optical fiber communication module.
[0060] Exemplarily, the functional test system further includes a switching power supply and an AC power supply; the test baseboard further includes: a power interface and a high-voltage interface. The power interface is used to connect to the switching power supply to supply power to the test baseboard; the high-voltage interface is used to connect to the AC power supply and the optical fiber communication module to supply power to the optical fiber communication module.
[0061] The power interface is, for example, Figure 3 the 24V interface in. The power interface is used to connect to the 24V output of the 35W switching power supply to supply power to the test baseboard, and the high-voltage interface is used to connect to the output of the AC power supply to provide 220V voltage to the test baseboard, thereby supplying power to the optical fiber communication module.
[0062] Exemplarily, the test baseboard further includes: an Ethernet control chip and a DC-DC (Direct Current to Direct Current) conversion circuit. The Ethernet control chip is connected to the Ethernet interface and is used to control the communication between the test baseboard and the main control module for framing and deframing based on the communication protocol Q / GDW376.1; the DC-DC conversion circuit is connected to the power interface and is used to convert the electrical signal. The conversion of the electrical signal includes converting the input voltage of the switching power supply from 24V to 12V, 5V, or 3.3V.
[0063] The 24V power interface is used to externally connect to the 24V output of the 35W switching power supply and supply voltage to each functional circuit and module of the baseboard through the DC-DC circuit. The content of framing and deframing between the test baseboard and the main control module can be protocol content related to the above test results or message data content.
[0064] Exemplarily, the test baseboard further includes: a debugging and reset interface, and a carrier signal interface. The debugging and reset interface is used for debugging and reset control; the carrier signal interface is used to connect to an external electricity meter communication module, so that the test baseboard and the external electricity meter communication module can form a network and communicate with each other.
[0065] The debugging and reset interface is Figure 3 the key and reset control in, which is used to connect to the serial port software to print debugging information. The debugging information can be, for example, some test logs, and the reset button can also be manually pressed for reset control when restart is required. The carrier signal interface, without high voltage, is used to connect to an external electricity meter communication module to transmit the carrier signal filtered from 220V, so that the test baseboard and the external tooling module can form a network and communicate with each other for multiple controls.
[0066] Exemplarily, the test baseboard further includes a plurality of test interfaces. The test interfaces include a DUT (Device Under Test) module interface and a co-test module interface. Each test interface is used to connect to the electricity meter communication module so that the test baseboard can test the electricity meter communication module; the electricity meter communication module further includes at least one of a CCO module and an STA module.
[0067] The DUT module interface is Figure 3 the interfaces at positions 1, 2, and 3 in, which are used to connect the serial port and control IO of the optical fiber communication module (DUT), can be directly inserted into the test tooling position in the figure, and can directly perform carrier communication between the test baseboard and the optical fiber communication module without passing through the high voltage interface of the optical fiber communication module. The co-test module interface is Figure 3 the positions 4 and 5 in, which communicate with the high voltage interface and low voltage interface of the co-test module for data transceiver control.
[0068] The above DUT module and co-test module are interdependent and perform carrier communication through the power line, only distinguished in the test object. That is, when testing the optical fiber communication module, the CCO module is used as the co-test module, and when testing the CCO module, the optical fiber communication module is the co-test module. The co-test module can simulate the actual working environment of the optical fiber communication module, provide the necessary signal source for its test, play a role in assisting the test and signal support, ensure the function test of the optical fiber communication module is more accurate and efficient, and at the same time support the test of various carrier communication modules, with high flexibility.
[0069] In addition, the tooling insertion position of the optical fiber communication module is compatible with the interface of the single-phase electricity meter communication unit, and can be inserted into the single-phase STA module for testing, improving the test compatibility.
[0070] Exemplarily, the communication interface further includes: a service serial port. The core board is further configured to connect to a plurality of test interfaces through a plurality of service serial ports.
[0071] The core board can also lead 5 serial ports to the circuit board of the test baseboard. The 5 serial ports are used to connect to the communication IOs of the weak-current interfaces of 5 position modules in Figure 3 respectively for communication.
[0072] Exemplarily, the test baseboard further includes: test software. The test software is configured to support remote login to the system for upgrade.
[0073] Exemplarily, the test software includes a virtual concentrator and a virtual electric energy meter. Among them, the virtual concentrator is configured to communicate with the virtual electric energy meter to send test instructions to the virtual electric energy meter and receive the test data returned by the virtual electric energy meter to send the test data to the main control module; the virtual electric energy meter is configured to communicate with the optical fiber communication module and send test instructions to the optical fiber communication module to collect test data (see the above description).
[0074] Specifically, the test baseboard simulates the functions of the concentrator and the electric energy meter through the developed test software. The test software has hardware test functions and necessary development protocols, is responsible for executing the commands of the main control module (host computer) and hardware drivers, and reports the results and information to the host computer. It can be directly remotely upgraded according to requirements. For example, it supports the SSH (remote network protocol) tool to upgrade the test software, meets the batch production detection requirements of the module, is compatible with in-line testing and bench testing of finished products at the same time, can realize production detection automation, and improves flexibility.
[0075] The virtual concentrator has the basic communication function and hardware test function of the concentrator. The virtual electric energy meter has the function of collecting and processing electric energy data of the electric energy meter. The main control module uses the Q / GDW 376.1 protocol to send test instructions to the virtual concentrator. After parsing, the protocol content is sent to the optical fiber communication module through the virtual electric energy meter for corresponding function testing. The virtual electric energy meter collects data and finally uploads the collected test data (data collection and processing test results) to the main control module through the virtual concentrator. The virtual concentrator and the virtual electric energy meter can communicate through the 220V power line. The communication interface of the test baseboard communicates with the optical fiber communication module, connects the carrier interface of the virtual electric energy meter and the optical fiber communication module through a 2X4 connector for carrier communication, and supplies power to the optical fiber communication module. A 2X6 connector is used to connect the weak-current interface of the virtual electric energy meter and the weak-current interface of the optical fiber communication module for communication between the weak-current interfaces. The test baseboard can perform service serial port and GPIO communication, support transparent data transmission, and can directly send protocol data related to test instructions to the modules at the corresponding positions without parsing. The virtual electric energy meter software supports DL / T645 and DL / T698.45 (power industry standard protocols) communication protocols.
[0076] In one example, the data acquisition and processing test results include at least one of the following: data acquisition test results, data conversion test results, and AC power consumption test results.
[0077] Specifically, the data acquisition test results can be, for example, the test results of the post - processing performance of the fiber optic communication module after data acquisition. For example, optical power tests, sensitivity tests, etc. are performed on the fiber optic communication module through virtual test signals. The data conversion test results can be, for example, the functional results of the direct conversion of optical and electrical signals by the fiber optic communication module. The AC power consumption test results can be, for example, the acquisition results of the static power consumption (active power) and dynamic power consumption (apparent power) of the fiber optic communication module.
[0078] Exemplarily, the circuit board includes: an AC power consumption test circuit, an AD voltage acquisition circuit, and a relay control circuit. The AC power consumption test circuit is used to connect to the fiber optic communication module to detect the AC power consumption of the fiber optic communication module and obtain the AC power consumption test results. The AD voltage acquisition circuit is used to connect to the STA module to acquire the voltage and current of the STA module. The relay control circuit is configured to connect to the fiber optic communication module and control the test baseboard to supply power to the fiber optic communication module.
[0079] Specifically, the AC power consumption test circuit connects to the high - voltage interface of the fiber optic communication module through the metering chip ATM90E26 (using SPI, i.e., synchronous serial communication mode), detects the static power consumption (active power) and dynamic power consumption (apparent power) of the fiber optic module, and can directly read the power values from the metering chip through connection positions 1, 2, and 3 and upload them to the main control module.
[0080] The AD voltage (analog - to - digital converted voltage) acquisition circuit acquires the voltage and current of the STA module powered by DC in real - time through the AD voltage acquisition interface using the DMA (Direct Memory Access) method, calculates the DC power consumption, and uploads the acquisition and calculation results to the main control module. The acquisition front - end is equipped with a second - order active low - pass filter to improve the test accuracy.
[0081] The relay control circuit connects to the fiber optic communication modules at positions 1, 2, and 3 through the IO connection points, thereby controlling the 220V power - on and power - off of the test baseboard to the fiber optic communication module through the on - off of the relay. Only allow high - voltage power during the test, and disconnect the relay after the test is completed to prevent electric shock.
[0082] The functional test system of the embodiment of the present application has complete functions of the bottom board hardware interface, comprehensively tests the optical fiber communication function, carrier communication function and power data acquisition and processing function of the optical fiber communication module, supports testing three optical fiber communication modules simultaneously, is applicable to the testing of various types of electric energy meter communication modules, has strong scalability, meets the batch production detection requirements of the modules, is compatible with the production line test and the bench test of finished products, can realize the automation of production detection, improves the flexibility and compatibility of the test, and improves the test efficiency.
[0083] Figure 4 The schematic diagram of the tooling structure of the test bottom board of the present application is shown.
[0084] As Figure 4 shown, in the bottom board tooling structure, the communication and power supply interfaces are reserved, and the external electric energy meter communication module and power supply are connected. The tooling material is made of bakelite, which has high mechanical strength, strong insulation and high temperature resistance. In the figure, 1 is the 24V power supply interface, 2 is the Ethernet interface, 3 is the power line carrier communication interface, 4 is the strong electricity interface, 5 is the interface of optical fiber module position 1, 6 is the interface of optical fiber module position 2, 7 is the interface of optical fiber module position 3, 8 is the position where the core board is located, the heat dissipation ventilation port of the core board, 9 is the debugging interface and reset button, 10 is the weak electricity interface at position 5, 11 is the weak electricity interface at position 4, 12 is the strong electricity interface at position 5, and 13 is the strong electricity interface at position 4.
[0085] Figure 5 The flow chart of the functional test method for the electric energy meter communication module provided by the embodiment of the present application is shown.
[0086] As Figure 5 shown, the functional test method 500 for the electric energy meter communication module provided by the embodiment of the present application includes steps S510 - S520, and the functional test method 500 is applied to the functional test system described above.
[0087] Step S510, send the test instruction for testing the optical fiber communication module to the optical fiber communication module through the test bottom board to test the power data acquisition and processing function, obtain the data acquisition and processing test result, and send the data acquisition and processing test result to the main control module.
[0088] Step S520, send the test instruction to the test bottom board through the main control module, and send the optical test signal to the optical fiber communication module to test the optical fiber communication function, and obtain the optical fiber communication test result.
[0089] The functional test system, as described above, will not be elaborated here.
[0090] Figure 6 The flow chart of the functional test method for the electric energy meter communication module provided by another embodiment of the present application is shown.
[0091] As Figure 6 shown, the function test method 600 of the electric energy meter communication module provided by the embodiment of the present application includes step S610. The function test method 600 is applied to the main control module described above, for example.
[0092] Step S610: Send the test instruction for testing the optical fiber communication module to the test baseboard, so that the test baseboard sends the test instruction to the optical fiber communication module to test the power data acquisition and processing function, obtain the data acquisition and processing test result, and send an optical test signal to the optical fiber communication module to test the optical fiber communication function, and obtain the optical fiber communication test result.
[0093] The main control module is as described above and will not be elaborated here.
[0094] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatus, or devices. For the purposes of the present application, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which a program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other suitable processing as necessary, and then stored in a computer memory.
[0095] It should be understood that each part of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be covered by the scope of the claims and the description of the present application. In particular, as long as there is no structural conflict, the technical features mentioned in each embodiment can be combined in any way. The present application is not limited to the specific embodiments disclosed in the text, but includes all technical solutions falling within the scope of the claims.
Claims
1. A functional test system for an electric energy meter communication module, characterized in that: The functional testing system comprises: The electric energy meter communication module includes an optical fiber communication module, wherein the optical fiber communication module includes an electric power data acquisition and processing function and an optical fiber communication function; A test baseboard is configured to access the optical fiber communication module, and send a test instruction for testing the optical fiber communication module to the optical fiber communication module to test the power data acquisition and processing function, obtain a data acquisition and processing test result, and send the data acquisition and processing test result to the main control module; The main control module is configured to communicate with the optical fiber communication module, the main control module sends the test instruction to the test baseboard, and the main control module sends an optical test signal to the optical fiber communication module to test the optical fiber communication function and obtain the optical fiber communication test result.
2. The functional testing system according to claim 1, characterized in that: The test base plate includes a core board and a circuit board, wherein: The core board is configured to be connected to the circuit board through a double-row pin header interface. The core board includes a communication interface, and the test base board communicates with the main control module and the optical fiber communication module respectively through the communication interface.
3. The functional testing system according to claim 2, characterized in that: The communication interface comprises: Ethernet interface, used for connecting to the main control module; A weak current interface, comprising a GPIO communication interface and a UART communication interface, for connecting the optical fiber communication module so that the test baseboard and the optical fiber communication module can communicate.
4. The functional testing system according to claim 3, characterized in that: The functional test system also includes a switching power supply and an AC power supply; the test base plate also includes: A power interface, used to connect the switching power supply to supply power to the test baseboard; A high-voltage interface is used to connect the AC power supply and the optical fiber communication module to supply power to the optical fiber communication module.
5. The functional testing system according to claim 4, characterized in that: The test base plate also includes: An Ethernet control chip, connected to the Ethernet interface, for controlling the communication between the test baseboard and the main control module for framing and deframing based on the communication protocol Q / GDW376.1; The DC-DC conversion circuit is connected to the power interface and is used for converting the electrical signal. The conversion of the electrical signal includes converting the input voltage of the switching power supply from 24V to 12V, 5V, or 3.3V.
6. The functional testing system according to any one of claims 2 to 5, characterized in that: The test base plate also includes: Debug and reset interface, used for debugging and reset control; The carrier signal interface is used to connect to an external electric energy meter communication module so that the test base board and the external electric energy meter communication module can be networked and communicated.
7. The functional testing system according to claim 6, characterized in that: The test baseboard also includes multiple test interfaces; the test interface includes a tested module interface and a companion test module interface, each of the test interfaces is used to connect the electric energy meter communication module so that the test baseboard can test the electric energy meter communication module; the electric energy meter communication module also includes at least one of a CCO module and a STA module.
8. The functional testing system according to claim 7, characterized in that: The communication interface also includes: Business serial port, the core board is also configured to connect multiple test interfaces through multiple business serial ports.
9. The functional testing system according to claim 1, characterized in that: The data acquisition and processing test results include at least one of the following: Data acquisition test results, data conversion test results, AC power consumption test results.
10. The functional testing system according to claim 1, characterized in that: The main control module is configured to perform carrier communication and / or optical fiber communication with the optical fiber communication module. The main control module also sends a carrier test signal to the optical fiber communication module to test the carrier communication function and obtain a carrier communication test result.
11. The functional testing system according to any one of claims 1-5, 7-10, characterized in that: The test base plate also includes: The test software is configured to support remote login system upgrade.
12. The functional testing system according to claim 11, characterized in that: The test software includes a virtual concentrator and a virtual electric energy meter; wherein: The virtual concentrator is configured to communicate with the virtual electric energy meter to send the test instruction to the virtual electric energy meter, and receive the test data returned by the virtual electric energy meter to send the test data to the main control module; The virtual electric energy meter is configured to communicate with the optical fiber communication module and send the test instruction to the optical fiber communication module to collect the test data.
13. The functional testing system according to claim 2, characterized in that: The circuit board comprises: An AC power consumption test circuit, used to connect to the optical fiber communication module to detect the AC power consumption of the optical fiber communication module and obtain an AC power consumption test result; AD voltage acquisition circuit, used for connecting to the STA module to acquire the voltage and current of the STA module; The relay control circuit is configured to connect to the optical fiber communication module and control the test baseboard to supply power to the optical fiber communication module.
14. A method for testing the function of an electric energy meter communication module, characterized in that: The functional testing method is applied to the functional testing system according to any one of claims 1 to 13, and the functional testing method comprises: Sending a test instruction for testing the optical fiber communication module to the optical fiber communication module through the test baseboard to test the power data acquisition and processing function, obtaining a data acquisition and processing test result, and sending the data acquisition and processing test result to the main control module; The main control module sends the test instruction to the test baseboard, and sends an optical test signal to the optical fiber communication module, so as to test the optical fiber communication function and obtain the optical fiber communication test result.
15. A method for testing the function of an electric energy meter communication module, characterized in that: The functional testing method is applied to the functional testing system according to any one of claims 1 to 13, the functional testing method is executed by the main control module, and the functional testing method includes: A test instruction for testing the optical fiber communication module is sent to the test baseboard, so that the test baseboard sends the test instruction to the optical fiber communication module to test the power data acquisition and processing function to obtain the data acquisition and processing test result, and sends an optical test signal to the optical fiber communication module to test the optical fiber communication function to obtain the optical fiber communication test result.