Test system and test method of intelligent terminal function module
By designing a test system for smart terminal functional modules, using the test base plate and main control module to perform power meter data processing and external communication function testing of functional modules, the problems of low detection efficiency, high cost and poor portability in the existing technology are solved, and comprehensive, flexible and efficient testing of functional modules are achieved.
Patent Information
- Application Number
- CN202510153056.9
- 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 effectively test the hardware and software functions of smart terminal functional modules, and the detection efficiency is low, the cost is high, and the portability is poor, so it cannot meet the production and testing needs of a large number of functional modules.
A test system for smart terminal functional modules is designed, including the functional module under test, the test base plate and the main control module. The test base plate communicates with the tested function module through Ethernet, GPIO and UART interfaces. The main control module sends test instructions based on configuration information and receives test results to achieve a comprehensive test of the power meter data processing function and external communication function.
It realizes comprehensive testing of the hardware and software functions of smart terminal functional modules, and can test multiple functional modules at the same time, which improves the flexibility and scalability of testing, and is compatible with the production test and table test of functional modules, improving testing efficiency.
Smart Images

Figure CN120075111A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a test system and a test method for a smart terminal function module. Background Art
[0002] A smart terminal is a device installed on the distribution side of an electricity collection and control site, which collects all power meter data, stores it, and controls and manages the electricity load. It receives requests for data reporting from the master station and forwards commands from the master station to the collection and control terminal or the power meter. Its function modules are installed on the terminal body for expanding the terminal functions, and may include an RS485 communication module, a remote communication module, a local communication module, a load control module, a branch circuit detection module, a DC analog quantity collection module, a USB-to-network module, etc. The terminal modules have complete functions, can collect, process, and real-time monitor the electricity consumption information of power customers, and realize functions such as automatic collection of electricity consumption information, metering anomaly monitoring, power quality monitoring, electricity consumption analysis and management, relevant information release, distributed energy monitoring, and information exchange of intelligent electricity-consuming devices.
[0003] Currently, the application of terminal modules is becoming increasingly widespread, but the detection solutions for smart terminal modules are not yet mature. The existing technology is an upper computer test software developed with a PC (personal computer) as the core, which only supports the detection of a certain type of smart terminal function module, has relatively low detection efficiency, high cost, and poor portability. It cannot cover the tests of the hardware functions and software functions of smart terminal modules, nor can it meet the production detection of a large number of smart terminal function 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 test system and a test method for a smart terminal function module.
[0005] An embodiment of the present application provides a test system for a smart terminal function module. The test system includes: a function module under test, which includes a power meter data processing function and an external communication function; a test baseboard configured to access at least one function module under test, the test baseboard is used to send a first test instruction to the function module under test to test the power meter data processing function and obtain a first test result, and send a second test instruction to the function module under test to test the external communication function and obtain a second test result; a first main control module configured to communicate with the test baseboard, the first main control module sends the first test instruction to the test baseboard based on first configuration information, the first test instruction is used to test the power meter data processing function, and the first main control module receives the first test result sent from the test baseboard; a second main control module configured to communicate with the test baseboard, the second main control module sends the second test instruction to the test baseboard based on second configuration information, the second test instruction is used to test the external communication function, and the second main control module receives the second test result sent from the test baseboard.
[0006] Exemplarily, the test baseboard includes a core board and a circuit board, where: the core board is configured to be connected to the circuit board through a dual-row pin interface, the core board includes an Ethernet interface, a GPIO communication interface, and a UART communication interface, the test baseboard communicates with the first main control module and / or the second main control module through the Ethernet interface, and the test baseboard communicates with the function module under test through the GPIO communication interface and / or the UART communication interface.
[0007] Exemplarily, the test baseboard further includes: a power interface for connecting a switching power supply to supply power to the test baseboard; a strong electricity interface for connecting an AC power supply to provide three-phase voltage and three-phase current to the test baseboard.
[0008] Exemplarily, the test baseboard further includes: an Ethernet control chip connected to the Ethernet interface for controlling the test baseboard to communicate with the first main control module and / or the second main control module; a DC-DC conversion circuit connected to the power interface for converting an electrical signal, and converting the electrical signal includes converting the input voltage from 24V to 5V or 3.3V.
[0009] Exemplarily, the test baseboard further includes: a debugging and reset interface for debugging and reset control; a control switch for controlling the switching power supply to supply power to the test baseboard through the power interface; a USB controller for connecting to the core board so that the test baseboard can connect to the function module under test through multiple USB interfaces.
[0010] Exemplarily, the functional module under test includes at least one of the following: RS485 communication module, remote communication module, local communication module, load control module, shunt circuit detection module, DC analog quantity acquisition module, USB to network module.
[0011] Exemplarily, the test baseboard further includes a plurality of interfaces for modules under test, and each interface for a module under test includes the USB interface, and the USB interface is used to connect to the functional module under test so that the test baseboard can test the functional module under test.
[0012] Exemplarily, the test baseboard further includes: an RS485 communication serial port, and the core board is further configured to connect to the RS485 communication module through the RS485 communication serial port.
[0013] Exemplarily, the test baseboard is further loaded with a test program, and the test program is configured to support remote login to the system for upgrade.
[0014] Exemplarily, the test program includes a virtual intelligent terminal; the virtual intelligent terminal is configured to receive and send the first test instruction and / or the second test instruction to the functional module under test, and send the first test result to the first main control module, and send the second test result to the second main control module.
[0015] Exemplarily, the circuit board includes: a voltage and current sampling circuit, connected to the functional module under test, for sampling the voltage and current of the functional module under test to test the static power consumption and dynamic power consumption of the functional module under test based on the sampled voltage and current; an AD voltage acquisition circuit, connected to the functional module under test, for acquiring the DC voltage and DC current of the functional module under test.
[0016] Exemplarily, the test system further includes: a leakage protection switch, connected to the switching power supply and the AC power supply, for performing leakage protection, wherein the input voltage of the switching power supply is 24V.
[0017] Exemplarily, the first main control module includes a desktop PC terminal, and the second main control module includes a Raspberry Pi 4B; the test system further includes: a touch screen, configured to be connected to the second main control module and display the second test result; a functional module production detection management server, configured to be connected to the second main control module, send the second configuration information to the second main control module, and receive the second test result; a production system, configured to be connected to the functional module production detection management server and receive and manage the second test result.
[0018] Another embodiment of the present application provides a test method for a smart terminal function module. The test method is applied to the above test system, and the test method includes: sending a first test instruction to the function module under test through a test backplane to test the power meter data processing function, obtaining a first test result, and sending a second test instruction to the function module under test to test the external communication function, obtaining a second test result; sending a first test instruction based on first configuration information to the test backplane through a first main control module, and receiving the first test result sent from the test backplane; sending a second test instruction based on second configuration information to the test backplane through a second main control module, and receiving the second test result sent from the test backplane.
[0019] Another embodiment of the present application provides a test method for a smart terminal function module. The test method is applied to the above test system and is executed by the first main control module and / or the second main control module. The test method includes: sending a first test instruction to a test backplane based on first configuration information, so that the test backplane sends the first test instruction to the function module under test to test the power meter data processing function, obtaining a first test result; sending a second test instruction to the test backplane based on second configuration information, so that the test backplane sends the second test instruction to the function module under test to test the external communication function, obtaining a second test result.
[0020] In the above embodiments, the test system includes: a functional module under test, which includes an electric energy meter data processing function and an external communication function; a test base plate configured to access at least one functional module under test, and the test base plate is used to send a first test instruction to the functional module under test to test the electric energy meter data processing function to obtain a first test result, and send a second test instruction to the functional module under test to test the external communication function to obtain a second test result; a first main control module configured to communicate with the test base plate, and the first main control module sends a first test instruction to the test base plate based on the first configuration information, and the first test instruction is used to test the electric energy meter data processing function, and the first main control module receives the first test result sent from the test base plate; a second main control module configured to communicate with the test base plate, and the second main control module sends a second test instruction to the test base plate based on the second configuration information, and the second test instruction is used to test the external communication function, and the second main control module receives the second test result sent from the test base plate. By using the above test system to test the functional modules of the intelligent terminal, the first main control module tests the electric energy meter data processing function, and the second main control module tests the external communication function, so as to comprehensively test the hardware and software functions of the functional modules, be able to test multiple functional modules at the same time, improve the flexibility and scalability of the test, and be compatible with the production test and bench test of the functional modules at the same time, thereby improving the test efficiency.
[0021] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present 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 the present application more obvious and understandable, the specific embodiments of the present application are specifically described below. Brief Description of the Drawings
[0022] By reading the detailed description of the preferred embodiments below, 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 the present application. And in all the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0023] Figure 1 A schematic diagram of a test device for a functional module of an intelligent terminal is shown;
[0024] Figure 2 A schematic diagram of the test system for the functional module of the intelligent terminal of the present application is shown;
[0025] Figure 3 A schematic diagram of the test base plate of the present application is shown;
[0026] Figure 4 A schematic diagram of the tooling structure of the test base plate of the present application is shown;
[0027] Figure 5 Schematic flow diagram of the test method for the intelligent terminal function module provided by the embodiment of the present application;
[0028] Figure 6 Schematic flow diagram of the test method for the intelligent terminal function module provided by another embodiment of the present application. Detailed implementation manners
[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 illustrate the technical solution of the present application more clearly, and thus 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 specification and claims of this application and the above drawings are intended to cover non-exclusive inclusion.
[0031] In the description of the embodiments of the present 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 the present application, the meaning of "a plurality" is more than two, unless otherwise 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 the present application. The phrase appears in various places in the specification and 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 will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0033] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of associated objects, indicating that there can be three relationships. 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 the present application, the term "a plurality" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple 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 on 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 it 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 situations.
[0037] Figure 1 The schematic diagram of a test device for a smart terminal function module is shown.
[0038] As Figure 1 shown, the device develops upper computer test software with a PC (personal computer) as the core. The PC-side upper computer (virtual smart terminal) communicates with the function module test baseboard by means of serial port and 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 PC side obtains the test plan from the local configuration file. The test baseboard is responsible for executing the test plan. The test baseboard and the smart terminal function module (a certain function module) communicate and receive data through the USB port, and the communication function of the external interface of the function module is tested by the USB port. The test baseboard and the function module transmit data according to the standard protocol frame format. This solution only supports the hardware and software function tests of a certain type of smart terminal function module. The test tooling interface is single, and it is impossible to test multiple types of function modules at the same time, resulting in low test efficiency. In addition, it is impossible to test the static power consumption and dynamic power consumption of the function module. Moreover, the production test upper computer of this device is the PC side, which is large in volume, high in cost, and poor in portability.
[0039] In view of this, the present application provides a test system for a smart terminal function module to test the function module of the smart terminal. The power meter data processing function is tested through the first main control module, and the external communication function is tested through the second main control module, so as to comprehensively test the hardware and software functions of the function module, be able to test multiple function modules simultaneously, improve the flexibility and scalability of the test, and be compatible with the production test and bench test of the function module at the same time, thereby improving the test efficiency.
[0040] Figure 2 The schematic diagram of the test system for the smart terminal function module of the present application is shown.
[0041] As Figure 2 shown, the test system for the smart terminal function module at least includes a function module under test, a test baseboard, a first main control module (bench PC side), and a second main control module (Raspberry Pi 4B).
[0042] In one example, the function module under test can be a variety of power data processing modules installed on the smart terminal, the test baseboard can be a test device with various hardware circuits and test software on board, and the main control module can be a device with data processing and control functions such as a host computer and a computer.
[0043] The function module under test includes a power meter data processing function and an external communication function; the test baseboard is configured to access at least one function module under test, and the test baseboard is used to send a first test instruction to the function module under test to test the power meter data processing function to obtain a first test result, and send a second test instruction to the function module under test to test the external communication function to obtain a second test result; the first main control module is configured to communicate with the test baseboard, and the first main control module sends a first test instruction to the test baseboard based on the first configuration information, and the first test instruction is used to test the power meter data processing function, and the first main control module receives the first test result sent by the test baseboard; the second main control module is configured to communicate with the test baseboard, and the second main control module sends a second test instruction to the test baseboard based on the second configuration information, and the second test instruction is used to test the external communication function, and the second main control module receives the second test result sent by the test baseboard.
[0044] Exemplarily, the function module under test can include an RS485 communication module, a remote communication module, a local communication module, a load control module, a shunt circuit detection module, a DC analog quantity acquisition module, and a USB to network module, which can cooperate with the smart terminal to collect, process, and real-time monitor the electricity consumption information of power customers.
[0045] The test base plate is the central part of the test system and has the functions of a virtual intelligent terminal. It receives software messages from the host computer (the first main control module or the second main control module), parses and frames data messages, so as to execute test instructions and obtain test results. The first test result can be, for example, the test result of the power meter data processing function, and the second test result can be, for example, the test result of the external communication function. The first test result and the second test result can be test data received by the test base plate from the function module under test. The test base plate can transparently transmit the test data to the host computer for specific determination by the host computer. The uplink communication interface of the test base plate (the communication interface between the test base plate and the host computer) is an Ethernet interface for TCP (Transmission Control Protocol) communication, and the downlink interface (the communication interface between the test base plate and the function module under test) is a USB communication interface, an RS485 interface, and a GPIO (General Purpose Input Output) communication interface.
[0046] The test system can be divided into bench testing and fixture testing. The first main control module can be the control center of bench testing, that is, the host computer. The first main control module can be, for example, the bench PC, which is mainly used to test the software functions and performance (power meter data processing function) of the function module. The second main control module can be the control center of fixture testing. Fixture testing is used for production inspection of the function module production line. The second main control module can be, for example, a Raspberry Pi 4B, which mainly tests the hardware interface communication (external communication function) of the function module.
[0047] The first main control module and the second main control module can send test instructions to the test base plate based on the configuration files of the detection schemes stored respectively. The first test instruction can be the test instruction for the corresponding power meter data processing function of the function module under test. For example, it can be a message related to the test instruction sent by the bench PC based on TCP communication. The second test instruction can be the test instruction for the external communication function of the function module under test. For example, it can be a message related to the test instruction sent by the Raspberry Pi 4B based on TCP communication.
[0048] The configuration file of the bench PC is stored in a certain path. The test software reads the configuration file of the detection scheme (the first configuration information), generates the test content and test parameters for displaying and testing the power meter data processing function of the function module, and organizes and parses the messages for data transmission with the test base plate. The message content is the byte order organized according to the specific protocol content, so as to generate a test result report. The Raspberry Pi 4B can receive the external configuration file of the detection scheme, store it, save the local test record process, and receive the test results sent by the test base plate.
[0049] The test system for the intelligent terminal function module of the present application tests the function modules of the intelligent terminal. It tests the power meter data processing function through the first main control module and the external communication function through the second main control module, thereby comprehensively testing the hardware and software functions of the function modules. It can test multiple function modules simultaneously, improving the flexibility and scalability of the test, and is also compatible with the production test and bench test of the function modules, 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 power supply system, a leakage protection switch, a wiring terminal, and the remaining parts of the production tooling end (including at least a function module production detection management server, a database, a production system, and a touch screen).
[0051] The power supply system may include an AC power supply, a power filter, and a 24V switching power supply. Among them, the AC power supply is a three-phase output programmable power supply with adjustable output voltage phase and frequency. The power filter is used to filter out interference signals, which can reduce the jitter on the power line and filter out high-frequency noise, improving the stability of the system. The 24V switching power supply has an output power of 70W, an output voltage of 24V, and an output current of 3A. It can be connected to the test base plate through a 2PIN pluggable wiring terminal female seat to supply power to the test base plate. The power supply system can be a power supply built into the test system or an external power supply, which is not limited here.
[0052] Exemplarily, the function module under test can be connected to the test base plate through a USB wiring terminal and perform input / output communication.
[0053] Exemplarily, the leakage protection switch is connected between the switching power supply and the AC power supply for leakage protection. Among them, the input voltage of the switching power supply is 24V.
[0054] The leakage protection switch can detect the leakage current in the circuit. When the leakage current exceeds the preset value, the switch will automatically trip and cut off the power supply. The set value can be set according to the actual situation of the system, thereby providing electrical protection for the power supply of the test system.
[0055] Exemplarily, the first main control module includes a bench PC terminal, and the second main control module includes a Raspberry Pi 4B; the test system further includes: a touch screen, a function module production detection management server, and a production system. The touch screen is configured to be connected to the second main control module and display the second test result; the function module production detection management server is configured to be connected to the second main control module, send the second configuration information to the second main control module, and receive the second test result; the production system is configured to be connected to the function module production detection management server and receive and manage the second test result.
[0056] The touch screen can be connected to the Raspberry Pi 4B (the second main control module) through a USB interface (for power supply to the screen and touch control) and a high-definition HDMI interface, for real-time display of the test process and the second test result of the function module under test, and can also be used for human-computer interaction between the tester and the Raspberry Pi 4B, so as to control the test process of the system. The function module production detection management server is connected to the Raspberry Pi 4B through an Ethernet interface for TCP communication, so as to remotely configure and send the detection scheme and detection parameters, that is, the second configuration information, to the Raspberry Pi 4B, and receive the test result of the external communication function of the function module under test, generate a test record, and the second configuration information can include the specific test content and test parameters for testing the external communication function of the function module. The production MES system (production system) is docked with the function module production detection management server to manage the production progress and test data (the second test result), and can also store the test data in the database for subsequent data analysis and query.
[0057] In the embodiment of the present application, the desktop PC and the Raspberry Pi 4B serve as the control centers of the desktop test end and the production tooling end respectively. The test base plate is connected to the desktop PC and the Ethernet interface of the Raspberry Pi 4B for TCP communication, communicates with the function module under test through the USB interface, and transmits test instructions and test data to obtain the first test result and the second test result.
[0058] The desktop PC can read the configuration file stored in itself and receive the first test result sent by the test base plate; the Raspberry Pi 4B can store and read the configuration file remotely sent by the function module production detection management server, and transmit the second test result to the function module production detection management server, the production system respectively, and store it in the database for production and test management for subsequent data analysis and query.
[0059] Figure 3 The schematic diagram of the test base plate of the present application is shown.
[0060] As Figure 3 shown, the test base plate includes a core board and a circuit board (not shown), wherein: the core board is configured to be connected to the circuit board through a dual-row pin interface, the core board includes an Ethernet interface, a GPIO communication interface, and a UART (Universal Asynchronous Receiver-Transmitter) communication interface, the test base plate communicates with the first main control module or the second main control module through the Ethernet interface, and the test base plate communicates with the function module under test through the GPIO communication interface or the UART communication interface.
[0061] Exemplarily, the core board can be, for example, an AT91SAM9X25 core board. The CPU (Central Processing Unit) of the core board is a high-performance ARM-based embedded microprocessor unit with an operating speed of up to 400 MHz. As the core of the test baseboard, it is equipped with an SDRAM (Dynamic Random Access Memory) and a Nand FLASH storage chip (Nonlinear Macrocell Memory). Through a dual-row pin header 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 and can be directly inserted onto the baseboard, with high stability. Among them, the Ethernet interface ( Figure 3 the external Ethernet interface) is used for the test baseboard to communicate with the first main control module or the second main control module via TCP. The GPIO communication interface (not shown in the figure) is used for the test baseboard to communicate with the functional module under test. The UART communication interface (not shown in the figure) is mainly used for the test baseboard to communicate with the RS485 communication module.
[0062] Exemplarily, the test baseboard further includes a power interface and a high-power interface. The power interface is used to connect to a switching power supply to supply power to the test baseboard; the high-power interface is used to connect to an AC power supply to provide three-phase voltage and three-phase current to the test baseboard.
[0063] The power interface is, for example, Figure 3 the 24V interface in Figure 3 . The power interface is used to externally connect a 24V switching power supply with an output power of 70W (maximum output current of 3A) and provide voltage through a DC-DC (Direct Current to Direct Current) conversion circuit to supply power to each functional circuit of the test baseboard; the high-power interface is, for example,
[0064] the ABCN high-power interface in
[0065] which connects to the three-phase output of the AC power supply and is used for auxiliary testing of the functional module under test. For example, it can test the branch circuit data monitoring function of the shunt circuit detection module. Figure 3The mid DC / DC circuit is connected to the 24V power supply interface, so that 24V can be converted into 5V and 3.3V through the power management chip RT8279GSP. Among them, 5V is mainly used to supply power to the functional module under test, and 3.3V is used to provide a stable and reliable power supply voltage for other module circuits on the core board and the test baseboard.
[0066] Exemplarily, the test baseboard further includes a debugging and reset interface, a control switch, and a USB controller. The debugging and reset interface is used for debugging and reset control; the control switch is used to control the switching power supply to supply power to the test baseboard through the power supply interface; the USB controller is connected to the core board so that the test baseboard can be connected to the functional module under test through multiple USB interfaces.
[0067] 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 at the time of restart to perform reset control on the system. The control switch is Figure 3 the rocker switch in. By controlling the on and off of the control switch, the 24V switching power supply can be controlled to supply power to the test baseboard through the power supply interface. The USB controller is connected to the USB port of the core board, and can control and expand 5 USB ports to the test baseboard through the USB2517I HUB chip, and connect to Figure 3 the communication interfaces of the functional modules under test at 5 positions in to enable communication between the test baseboard and the functional modules under test.
[0068] Exemplarily, the test baseboard further includes an RS485 communication serial port. The core board is further configured to connect to the RS485 communication module through the RS485 communication serial port.
[0069] The RS485 communication serial port is Figure 3 the RS485 interface in. The core board TTL serial port is converted into an RS485 communication interface through the MAX13487 chip. This communication interface is connected to the RS485 communication module to test the communication interface of the RS485 communication module. The RS485 communication module can, for example, externally connect 4 RS485 communication interfaces, and the 4 RS485 communication interfaces are correspondingly connected to the RS485 communication serial port of the test baseboard (for example, A is connected to A, and B is connected to B) to communicate with the RS485 communication serial port of the test baseboard.
[0070] Exemplarily, the test baseboard further includes multiple interfaces for modules under test. The test baseboard further includes multiple interfaces for modules under test, and each interface for modules under test includes a USB interface, and the USB interface is used to connect to the functional module under test so that the test baseboard can test the functional module under test.
[0071] The interface for modules under test isFigure 3 Interfaces at positions 1, 2, 3, 4, and 5 are used to connect and test the communication interfaces of each functional module. The test baseboard and the functional module under test are communicatively connected via a USB interface for various tests and data transmission and reception.
[0072] Among them, position 1 is defaultly connected to the RS485 interface, which is used to test the data conversion function of the RS485 communication module. The RS485 communication module is plugged into position 1, and the RS485 communication interface is led out and connected to the RS485 interface of the test baseboard to verify the RS485 communication function of the RS485 communication module (the RS485 communication module can convert USB communication into 4-way RS485 communication).
[0073] Position 2 can be connected to the remote communication module and the USB-to-network module, which are used to test the AT command (connection and communication command between the terminal and the host computer) function and the remote communication function of the remote communication module, and the data conversion function of the USB-to-network module (converting USB communication into Ethernet communication), that is, the USB-to-network module communicates with the baseboard via a USB interface and can lead out an Ethernet communication interface.
[0074] Position 3 is connected to the DC analog quantity acquisition module. The analog quantity acquisition module is used to acquire DC analog quantities, and can acquire data of voltage, 4 - 20MA current, and PT100 temperature sensors. The test baseboard can include a 5V power supply interface and a 10MA current interface. Among them, the external PT100 temperature sensor can be directly connected to the temperature sampling terminal of the DC analog quantity acquisition module. The 5V power supply interface of the test baseboard is connected to the voltage sampling port of the module to test the voltage sampling function and acquisition accuracy of the DC analog quantity acquisition module through the voltage acquisition situation. The 10MA constant current interface of the test baseboard is connected to the 4 - 20MA current sampling interface of the module to test the current sampling function and acquisition accuracy of the DC analog quantity acquisition module.
[0075] Position 4 is connected to the load control module. The load control module is used to control the opening and closing of the relay. For example, two relays can be externally connected, and the external terminals of each relay are respectively normally open, common, and normally closed. The test baseboard can provide the opening and closing detection of the two relays. The common terminal of each relay is connected to the digital ground of the test baseboard, and the other normally open and normally closed terminals are connected to the input IO detection ports (not shown) of the test baseboard to test the output control state of the load control module.
[0076] Position 5 connects the shunt circuit detection module and the local communication module. The shunt circuit detection module is used to monitor the branch circuit data. For example, it can monitor two-phase three-phase voltages and three-phase currents. The local communication module has the function of reading data. For example, it can read the meter data of the electric energy meter. The test base plate can provide three-phase voltage and three-phase current interfaces and is connected to a voltage transformer and a current transformer. The three-phase voltage and three-phase current interfaces are connected to the voltage and current interfaces of the shunt circuit detection module to monitor the branch circuit voltage and current. For example, it can monitor the three-phase voltages and three-phase currents of the AN circuit, BN circuit, and CN circuit.
[0077] Exemplarily, the test base plate is also loaded with a test program, and the test program is configured to support remote login to the system for upgrade.
[0078] During production inspection, Raspberry Pi 4B is used as the host computer to develop test software, effectively reducing the volume of the test system. And a remote server configuration detection scheme is designed to be remotely sent to Raspberry Pi 4B. For example, the detection scheme and detection parameters can be remotely configured and sent through the production detection management server of the function module. The scheme configuration is flexible and is docked with the production MES system, so that the production progress can be controlled and managed through the test data, improving the production efficiency.
[0079] Exemplarily, the test program includes a virtual intelligent terminal. The virtual intelligent terminal is configured to receive and send the first test instruction and / or the second test instruction to the function module under test, and send the first test result to the first main control module, and send the second test result to the second main control module.
[0080] Specifically, the test base plate is the central part of the entire test system. The developed test program has the function of a virtual intelligent terminal, which is used to execute the test process, receive and send messages and test data. It can receive the message instructions (test instructions) of the first main control module or the second main control module through Ethernet and send the test results to it. It sends test instructions to the function module under test through the USB interface and receives the test data (test results). The test software (test program) can be directly remotely upgraded according to requirements. For example, it supports upgrading the test software with the SSH (remote network protocol) tool, and supports remotely configuring the test scheme through the server. It has high flexibility and is developed based on the embedded linux system (operating system), with high stability.
[0081] Exemplarily, the circuit board includes a voltage and current sampling circuit and an AD voltage acquisition circuit. The voltage and current sampling circuit is connected to the function module under test and is used to sample the voltage and current of the function module under test to test the static power consumption and dynamic power consumption of the function module under test based on the sampled voltage and current. The AD voltage acquisition circuit is connected to the function module under test and is used to acquire the DC voltage and DC current of the function module under test.
[0082] The test baseboard integrates voltage and current sampling circuits at five positions for testing the static and dynamic power consumption of each functional module. For example, the static and dynamic power consumption can be calculated by sampling the voltage and current when the functional module under test is performing a function test, and the power consumption value is uploaded to the host computer by the test baseboard. The host computer determines the function test result based on the power consumption value. The AD voltage acquisition circuit (voltage for analog-to-digital conversion) uses the DMA (Direct Memory Access) method to continuously sample the DC voltage and DC current of the functional module under test through the AD voltage acquisition interface, calculate the DC power consumption, and upload the acquisition and calculation results to the host computer. The acquisition front end is equipped with a second-order active low-pass filter to improve the test accuracy.
[0083] For the test system of the embodiment of the present application, the hardware interface of the baseboard is fully functional. It tests the functional modules of the smart terminal, tests the power meter data processing function through the first main control module, and tests the external communication function through the second main control module, thereby comprehensively testing the hardware and software functions of the functional modules. It can test multiple functional modules simultaneously, improving the flexibility and scalability of the test, and is also compatible with the production test and bench test of the functional modules, improving the test efficiency. In addition, using the Raspberry Pi 4B as the host computer for production detection reduces the volume of the test system and improves portability.
[0084] Figure 4 The schematic diagram of the tooling structure of the test baseboard of the present application is shown.
[0085] As Figure 4 shown, in the baseboard tooling structure, the communication interface and the power supply interface are externally connected through terminals and connected to various functional modules under test. The tooling material uses bakelite material, which has high mechanical strength, strong insulation, high temperature resistance and other characteristics. In the figure, 1 is the 24V power supply interface and the boat-shaped control switch, 2 is the Ethernet interface, 3 is the ABCN strong power control interface, 4 is the communication interface between the baseboard and the shunt circuit detection module and the local communication module, 5 is the communication interface between the baseboard and the load control module, 6 is the communication interface between the baseboard and the analog quantity acquisition module, 7 is the communication interface between the baseboard and the remote module and the USB-to-network module, 8 is the branch monitoring module current loop detection interface, 9 is the load control module relay opening and closing detection interface. 10 is the voltage and current sampling detection interface for the baseboard to connect the DC analog quantity acquisition module, 11 is the communication interface between the baseboard and the RS485 communication module, 12 is the RS485 communication interface of the RS485 communication module, 13 is the system reset button, 14 is the location of the core board, and the heat dissipation vent of the core board.
[0086] Figure 5 It is the flow schematic diagram of the test method for the functional module of the smart terminal provided by the embodiment of the present application.
[0087] AsFigure 5 As shown in the figure, the test method 500 for the intelligent terminal function module provided by the embodiment of the present application includes steps S510 - S530. The test method 500 is applied to the above - mentioned test system.
[0088] Step S510: Send a first test instruction to the function module under test through the test backplane to test the power meter data processing function, obtain a first test result, and send a second test instruction to the function module under test to test the external communication function, obtain a second test result.
[0089] Step S520: Send a first test instruction based on the first configuration information to the test backplane through the first main control module, and receive the first test result sent from the test backplane.
[0090] Step S530: Send a second test instruction based on the second configuration information to the test backplane through the second main control module, and receive the second test result sent from the test backplane.
[0091] Figure 6 It is a schematic flowchart of the test method for the intelligent terminal function module provided by another embodiment of the present application.
[0092] As Figure 6 shown, the test method 600 for the intelligent terminal function module provided by the embodiment of the present application includes steps S610 - S620. The test method 600 is applied to, for example, the first main control module and / or the second main control module as described above.
[0093] Step S610: Send a first test instruction to the test backplane based on the first configuration information, so that the test backplane sends the first test instruction to the function module under test to test the power meter data processing function, obtain a first test result.
[0094] Step S620: Send a second test instruction to the test backplane based on the second configuration information, so that the test backplane sends the second test instruction to the function module under test to test the external communication function, obtain a second test result.
[0095] The first main control module and the second main control module are as described above and will not be elaborated here.
[0096] It should be noted that the logic and / or steps represented in the flowchart or described otherwise herein, for example, can be considered as a definite sequence 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 used in combination with these instruction execution systems, apparatus, or devices. For the purposes of this 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 (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection part 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 appropriate processing as necessary, and then stored in a computer memory.
[0097] 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-described 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.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than 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 described 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 various embodiments of the present application, and they should all be covered within the scope of the claims and the specification of the present application. In particular, as long as there is no structural conflict, the various 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 that fall within the scope of the claims.
Claims
1. A testing system for a smart terminal functional module, characterized in that: The test system comprises: A tested functional module, wherein the tested functional module includes an electric energy meter data processing function and an external communication function; A test baseboard is configured to access at least one of the functional modules under test, and the test baseboard is used to send a first test instruction to the functional module under test to test the data processing function of the electric energy meter to obtain a first test result, and send a second test instruction to the functional module under test to test the external communication function to obtain a second test result; a first main control module, configured to communicate with the test baseboard, wherein the first main control module sends the first test instruction to the test baseboard based on first configuration information, wherein the first test instruction is used to test the data processing function of the electric energy meter, and the first main control module receives the first test result sent from the test baseboard; The second main control module is configured to communicate with the test baseboard. The second main control module sends the second test instruction to the test baseboard based on second configuration information. The second test instruction is used to test the external communication function. The second main control module receives the second test result sent from the test baseboard.
2. The test 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 connect the circuit board through a double-row pin interface, the core board includes an Ethernet interface, a GPIO communication interface, and a UART communication interface, the test base board communicates with the first main control module and / or the second main control module through the Ethernet interface, and the test base board communicates with the functional module under test through the GPIO communication interface and / or the UART communication interface.
3. The test system according to claim 2, characterized in that: The test base plate also includes: A power interface, used to connect a switching power supply to supply power to the test baseboard; The strong power interface is used to connect an AC power source to provide three-way three-phase voltage and three-phase current to the test baseboard.
4. The test system according to claim 3, characterized in that: The test base plate also includes: An Ethernet control chip, connected to the Ethernet interface, and used to control the test baseboard to communicate with the first main control module and / or the second main control module; 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 from 24V to 5V or 3.3V.
5. The test system according to any one of claims 2 to 4, characterized in that: The test base plate also includes: Debug and reset interface, used for debugging and reset control; A control switch, used for controlling the switch power supply to supply power to the test base plate through the power interface; The USB controller is used to be connected to the core board so that the test base board is connected to the tested functional module through multiple USB interfaces.
6. The test system according to claim 1, characterized in that: The functional module under test includes at least one of the following: RS485 communication module, remote communication module, local communication module, load control module, branch circuit detection module, DC analog acquisition module, USB to network module.
7. The test system according to claim 6, characterized in that: The test baseboard also includes a plurality of tested module interfaces, each of which includes the USB interface, and the USB interface is used to connect the tested functional module so that the test baseboard can test the tested functional module.
8. The test system according to claim 6, characterized in that: The test base plate also includes: RS485 communication serial port, the core board is also configured to connect to the RS485 communication module through the RS485 communication serial port.
9. The test system according to any one of claims 1-4, 6-8, characterized in that: The test baseboard is also loaded with a test program, and the test program is configured to support remote login system upgrade.
10. The test system according to claim 9, characterized in that: The test program includes a virtual intelligent terminal; The virtual intelligent terminal is configured to receive and send the first test instruction and / or the second test instruction to the tested functional module, and send the first test result to the first main control module, and send the second test result to the second main control module.
11. The test system according to claim 2, characterized in that: The circuit board comprises: A voltage and current sampling circuit, connected to the functional module under test, for sampling the voltage and current of the functional module under test, so as to test the static power consumption and dynamic power consumption of the functional module under test based on the sampled voltage and current; The AD voltage acquisition circuit is connected to the functional module under test and is used to acquire the DC voltage and DC current of the functional module under test.
12. The test system according to claim 3, characterized in that: The test system further comprises: A leakage protection switch is connected to the switching power supply and the AC power supply for leakage protection, wherein the input voltage of the switching power supply is 24V.
13. The test system according to claim 1 or 10, characterized in that: The first main control module includes a PC terminal, and the second main control module includes a Raspberry Pi 4B; the test system also includes: A touch screen, configured to be connected to the second main control module and display the second test result; a functional module production and testing management server, configured to connect to the second main control module, send the second configuration information to the second main control module, and receive the second test result; The production system is configured to connect to the functional module production inspection management server and receive and manage the second test result.
14. A method for testing a function module of a smart terminal, characterized in that: The test method is applied to the test system according to any one of claims 1 to 13, and the test method comprises: Sending a first test instruction to the tested functional module through the test baseboard to test the data processing function of the electric energy meter to obtain a first test result, and sending a second test instruction to the tested functional module to test the external communication function to obtain a second test result; Sending a first test instruction based on first configuration information to the test baseboard through a first main control module, and receiving the first test result sent from the test baseboard; A second test instruction based on the second configuration information is sent to the test baseboard through the second main control module, and the second test result sent from the test baseboard is received.
15. A method for testing a function module of a smart terminal, characterized in that: The test method is applied to the test system according to any one of claims 1 to 13, the test method is executed by the first main control module and / or the second main control module, and the test method includes: Sending a first test instruction to the test baseboard based on the first configuration information, so that the test baseboard sends the first test instruction to the functional module under test to test the data processing function of the electric energy meter and obtain a first test result; Based on the second configuration information, a second test instruction is sent to the test baseboard, so that the test baseboard sends the second test instruction to the functional module under test to test the external communication function and obtain a second test result.