Automatic power supply test system and method for sensor product
The automatic power supply testing system addresses the limitations of existing systems by providing versatile, efficient testing for sensors, ensuring reliability and adaptability across different power conditions.
Patent Information
- Application Number
- CN202411305442.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-17
AI Technical Summary
Existing power supply testing systems for sensors lack versatility, efficiency, and accuracy, often leading to poor product quality and potential damage due to power fluctuations, with limited ability to test multiple sensor types and prone to errors.
An automatic power supply testing system and method that includes a host computer, programmable power supply, and communication devices to perform tests on various sensor types, supporting digital, analog, and CAN output data, with customizable test sequences and real-time data monitoring.
Enhances product quality by ensuring sensors function reliably across varying power conditions, supports multiple sensor types, and improves testing efficiency through automated parallel testing.
Smart Images

Figure CN119148003A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical testing of sensors, and in particular to an automatic power supply testing system and method for sensor products. Background Art
[0002] Power supply testing is a testing process that evaluates the stability and reliability of a power supply under multiple power-on and power-off conditions. This testing is often used to verify the performance of a power supply under different conditions, including startup, shutdown, and recovery after a short power outage.
[0003] At present, since various types of sensors are in different power supply states in actual applications, when they are affected by power supply fluctuations or voltage instability and mismatch, the sensors will not work or other fault states. In serious cases, the monitored equipment will be damaged, bringing immeasurable consequences. Therefore, an automatic power supply test system and test method for sensor products are needed to complete the power supply test before production inspection and factory delivery to ensure the product quality of different types of sensors. In addition, the existing power supply test can only be performed on a single model of product, with poor versatility, single detection content, low detection efficiency and prone to errors. Summary of the invention
[0004] In order to solve the technical problems in the background technology, the present invention provides an automatic power supply test system for a sensor product, which is used to automatically perform a power supply test on the sensor product. The system comprises:
[0005] Host computer: used to control the output of the programmable power supply and obtain the test results based on the collected output data of the sensor product to be tested;
[0006] Programmable power supply: communicates with the host computer and automatically controls the power supply of the sensor product to be tested according to the power supply test sequence;
[0007] Communication device: connected to the host computer and the sensor product to be tested respectively, used for real-time communication between the host computer and different types of output data of the sensor product to be tested.
[0008] Furthermore, the output data types of the sensor product to be tested include digital output data, analog output data and Can output data.
[0009] Furthermore, when the output data type of the sensor product to be tested is digital output data, the host computer is directly connected to the sensor product to be tested through the serial port;
[0010] When the output data type of the sensor product to be tested is analog output data, the host computer is connected to the sensor product to be tested through the serial port and the multimeter;
[0011] When the output data type of the sensor product to be tested is Can output data, the host computer is connected to the sensor product to be tested through a USB interface and an interface module for converting Can signals to USB signals.
[0012] Furthermore, the sensor products to be tested include inclination sensors, pull-wire sensors, long-angle sensors, and pressure sensors.
[0013] Furthermore, the host computer imports and edits the steps of the power test sequence corresponding to the power test scheme of the sensor product through the configured power test program, controls the execution of the power test sequence of the programmable power supply, and collects, saves and automatically monitors the data output of the sensor product to be tested.
[0014] Furthermore, the power supply test procedure includes:
[0015] Test sequence module: used to import the power test sequence file corresponding to the sensor product to be tested, or to edit the corresponding power test sequence in real time, form the power control signal of the programmable power supply and send it to the programmable power supply;
[0016] Running status module: used to display the status of each module during the test process;
[0017] Test information module: used to display prompt information during the operation;
[0018] Communication data module: used to display the communication data packet information between the host computer and the sensor product to be tested;
[0019] Real-time data module: used to display the output of the programmable power supply, including current voltage, current current and current power;
[0020] Power supply control module: used to control the output state of the programmable power supply and modify the adjustable parameters of the programmable power supply, including output voltage, output current, overvoltage protection threshold, overcurrent protection threshold and overpower protection threshold;
[0021] Product command sending module: used to send commands to the sensor product to be tested, including serial port commands and Can commands;
[0022] Power supply communication module: used to establish communication between the host computer and the programmable power supply;
[0023] Product communication module: used to establish communication between the host computer and the sensor product to be tested;
[0024] Data saving module: used to set data saving parameters;
[0025] Functional operation module: used to edit power test sequence, import power test sequence and control automatic test process, including file configuration area component, step type area component and step parameter area component. The file configuration area component is used to display the step items in the current power test sequence, modify the parameters in the test sequence steps and adjust the execution order of the test sequence. The step type area component is used to edit the power test sequence by providing basic test step types and loop functions, and the configurable parameters are displayed in the step parameter area.
[0026] An automatic power supply testing method comprises the following steps:
[0027] 1) Obtain the product model, product parameters and output data type of the current sensor product to be tested, and obtain the corresponding power supply test plan in combination with the test requirements and product manual parameters;
[0028] 2) Select the communication device corresponding to the output data type according to the power supply test plan to complete the connection of the system hardware;
[0029] 3) According to the power supply test scheme corresponding to the current sensor product to be tested, a corresponding power supply test sequence is formed in the host computer;
[0030] 4) After configuring the detection parameters, the corresponding power supply test sequence is automatically run, the output signal of the current sensor product to be tested is automatically collected, and whether it is qualified is automatically determined based on the output signal of the current sensor product to be tested.
[0031] Furthermore, the power supply test solution includes short-time on-off test, performance test and / or voltage gradient test.
[0032] Furthermore, in the short-time power-on and power-off test, the output voltage of the programmable power supply is configured to be a typical value of the voltage of the current test sensor product, and the power-on time, power-off time and number of cycles of the programmable power supply are configured, and whether the current test sensor product passes the short-time power-on and power-off test is determined according to the set reading interval and the set valid output data range;
[0033] In the performance test, the output voltage of the programmable power supply is respectively configured as the maximum voltage, typical voltage and minimum voltage of the current test sensor product, and the power-on time corresponding to each voltage value is configured as 10-30s. The current test sensor product is judged whether it passes the performance test according to the set reading interval and the set valid output data range. The performance test indicators include working voltage, static working current, resolution, accuracy, and zero deviation indicators;
[0034] In the voltage gradient test, the output voltage of the programmable power supply is configured to be between the minimum voltage and the maximum voltage of the current test sensor product, and the test is performed in a boost / step-down cycle combined with a step-up and / or step-down mode. Each test cycle starts from the typical voltage value and first decreases to the minimum voltage value with a 5% gradient, and then increases from the minimum voltage value to the maximum voltage with a 5% gradient. Each step section keeps the power supply on for 10S, and the host computer determines whether the current test sensor product passes the corresponding test based on the set reading interval and the set valid output data range.
[0035] Furthermore, in the short-time power-on and power-off test, the power-on time of the programmable power supply is configured to be 10000 ms, the power-off time is configured to be 5000 ms, and the number of cycles is configured to be 500 times.
[0036] Compared with the prior art, the present invention has the following advantages:
[0037] 1. Improve product quality: The present invention can perform power supply test on smart sensor products before leaving the factory, thereby improving the product quality of the sensor and enabling it to adapt to various working conditions and work stably in various power supply environments.
[0038] 2. High adaptability and strong expansibility: The present invention can test various intelligent sensor products, including inclination sensors, pull-wire sensors, long-angle sensors, pressure sensors and other intelligent sensor products. It can also be extended to other electronic products. The parameters are adjustable and the test schemes are editable. It can perform a variety of different power supply tests to meet different power supply test needs.
[0039] 3. High detection efficiency: When the hardware is connected, the automatic power supply test system of the present invention can also be equipped with parallel selection tooling to meet the testing of multiple smart sensor products. Only one tester is needed to automatically complete the testing of multiple batches of products, and the test efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a structural schematic diagram of the automatic power supply test system of the sensor product of the present invention;
[0041] Figure 2 It is the functional block diagram of the host computer test software of the present invention;
[0042] Figure 3 A flow chart of an automatic power supply testing method for a sensor product of the present invention;
[0043] Figure 4 Schematic diagram of the voltage output scheme of the programmable power supply when performing short-time on-off power test on the pull-wire sensor;
[0044] Figure 5Schematic diagram of the voltage output scheme of the programmable power supply when testing the performance of the tilt sensor;
[0045] Figure 6 Schematic diagram of the voltage output scheme of the programmable power supply when performing voltage gradient testing on the pressure sensor.
[0046] Description of reference numerals:
[0047] 1. Test sequence module, 2. Operation status module, 3. Test information module, 4. Communication data module, 5. Real-time data module, 6. Power control module, 7. Product instruction sending module, 8. Power communication module, 9. Product communication module, 10. Data storage module, 11. Function operation module. DETAILED DESCRIPTION
[0048] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0049] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0050] In the description of this embodiment, it should be noted that the terms "upper", "lower", "inner", "bottom", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the inventive product is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0051] The terms “first”, “second”, etc. are only used for distinguishing descriptions and should not be understood as indicating or implying relative importance.
[0052] In the description of this embodiment, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this embodiment can be understood according to specific circumstances.
[0053] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0054] Example
[0055] like Figure 1 As shown, in order to ensure the normal operation of sensor products under various power supply operating scenarios and improve the stability and adaptability of sensor product operation, the present invention provides an automatic power supply testing system for sensor products. The system includes a host computer, a programmable power supply, a high-precision multimeter and an interface module for converting Can signals to USB signals in terms of hardware. The software is a power supply testing program installed on the host computer. The host computer is connected to the programmable power supply through a serial port to adjust the power supply voltage of the sensor product to be tested and control the power on and off. At the same time, the host computer reads the real-time digital output signal of the sensor product to be tested through the serial port, or reads the Can output signal of the sensor product to be tested through the interface module for converting Can signals to USB signals, or reads the analog output signal of the sensor product to be tested through a high-precision multimeter connected to the serial port. During the entire automatic testing process, the host computer monitors the data signal of the sensor product to be tested in real time and automatically displays the monitoring test results.
[0056] like Figure 2 As shown in the figure, the power supply test program installed on the host computer specifically includes the following functional modules:
[0057] (1) Test sequence module 1: used to import the power test sequence file corresponding to the sensor product to be tested, or to edit the corresponding power test sequence in real time, to form the power control signal of the programmable power supply and send it to the programmable power supply. This module includes:
[0058] Test progress bar component: used to display the test progress of the current test process. A number is set on the progress bar to display the test progress percentage;
[0059] Test sequence tree list component: used to display the loaded power test sequence in full after importing the power test sequence file corresponding to the sensor product to be tested or executing the edited power test sequence. In addition, during the test process, the currently executed step will be marked in purple in the tree list.
[0060] (2) Operation status module 2: used to display the status of other modules during the test process. This module contains a text input box and three indicator light components. The meanings of each component are as follows:
[0061] Text input box (product number): used to input the product number of the current test sensor. During the automatic test process, the system will automatically save the generated test information and communication data, and the product number of the current test sensor will be automatically written in the header of each generated data file;
[0062] Indicator light component 1 (product status): used to indicate the test result of the current test sensor product, a green light is displayed if it is qualified, and a red light flashes if it is unqualified;
[0063] Indicator light component 2 (power status): used to indicate the status of the programmable power supply currently powering the test sensor product. When connected, it displays a green light, and when disconnected, it displays a red light;
[0064] Indicator light component 3 (data monitoring): used to indicate the status of the current data monitoring function module. It lights up when the product output is being monitored and is off when the data monitoring function is disabled.
[0065] (3) Test information module 3: used to display prompt information during operation, such as the connection status of each module and feedback information of user operation. In addition, this module can also display the communication data packet information between the programmable power supply and the power supply test program. In addition to the main first rich text display box, this module also includes a first toolbar with multiple components. The functions of the first rich text display box and the components in the first toolbar are as follows:
[0066] The first rich text display box: used to display user operation information, prompt information for automatically executing power supply test steps, test result information, communication data packet information between the software and the programmable power supply (if selected), and other necessary software operation information, etc. Different types of information are distinguished by different colors when displayed;
[0067] Data Save Button: used to save the information in the current first rich text box as a txt document, which is convenient for users to trace the source of the problem. The save path and file name of the file are specified by the user;
[0068] Data cleaning button: used to clear the information in the current first rich text box;
[0069] Pause display button: used to pause / continue the information display refresh in the first rich text box;
[0070] Send Data (Programmable Power Supply) menu item: When selected, the data packet information sent by the power supply test program to the programmable power supply is displayed in the first rich text box;
[0071] Receive Data (Programmable Power Supply) menu item: When selected, the first rich text box displays the data packet information sent by the programmable power supply to the power supply test program;
[0072] Time format drop-down box: used to adjust the display format of the timestamp displayed in front of the information in the first rich text box.
[0073] (4) Communication data module 4: used to display the communication data packet information between the host computer and the current test sensor product. In addition to the main second rich text display box, this module also contains a second toolbar containing multiple components. The functions of each component are as follows:
[0074] The second rich text display box: used to display the communication data packet information between the power supply test program and the current test sensor product, where different types of information are distinguished by different colors when displayed;
[0075] Data Save Button: Save the information in the second rich text box as a txt document, which is convenient for users to trace the source of the problem. The save path and file name of the file are specified by the user;
[0076] Data cleaning button: clear the information in the current second rich text box;
[0077] Pause display button: Pause / continue the information display refresh in the second rich text box;
[0078] Send Data (Product) menu item: When selected, the data packet information sent by the power supply test program to the current test sensor product is displayed in the second rich text box;
[0079] Receive Data (Product) menu item: When selected, the data packet information sent by the current test sensor product to the power supply test program is displayed in the second rich text box;
[0080] Time format drop-down box: adjust the display format of the timestamp displayed in front of the information in the second rich text box.
[0081] (5) Real-time data module 5: used to display the output of the programmable power supply, including three display boxes:
[0082] Current voltage: Displays the current output voltage of the programmable power supply;
[0083] Current current: displays the current output current of the programmable power supply;
[0084] Current Power: Displays the current output power of the programmable power supply.
[0085] (6) Power control module 6: used to modify the adjustable parameters of the programmable power supply and to control the output state of the programmable power supply. This module includes 5 text input boxes and 7 button components. The meanings of each component are as follows:
[0086] Set voltage: used to read or set the output voltage of the programmable power supply;
[0087] Set current: used to read or set the output current of the programmable power supply;
[0088] Overvoltage protection: used to read or set the overvoltage protection threshold of the programmable power supply;
[0089] Overcurrent protection: used to read or set the overcurrent protection threshold of the programmable power supply;
[0090] Over-power protection: used to read or set the over-power protection threshold of the programmable power supply;
[0091] Voltage fast switching button: used to quickly switch the output voltage of the programmable power supply to several common sets of data, such as 5V, 8V, 12V, 24V, and 32V;
[0092] Start output button: turn on the power output function of the programmable power supply;
[0093] Stop output button: turn off the power output function of the programmable power supply.
[0094] (7) Product instruction sending module 7
[0095] This module is used to provide the function of manually sending commands to the current test sensor product, including the upper serial port command sending part and the lower Can command sending part. The availability of these two parts is mutually exclusive, that is, only one type of command sending function can be used at the same time. The specific type of command sending method that can be used depends on the communication method between the current test sensor product and the software. The functions of each component in this module are as follows;
[0096] Hex Send: This component function is only applicable to sending serial port commands. When the "Enable" checkbox is selected, the command content will be converted into Hex format data and then sent to the current test sensor product. If the "Enable" checkbox is not selected, the command content below will be sent to the current test sensor product in ASCII code format;
[0097] Send content: used to input the specific content of the serial port command to be sent to the current test sensor product;
[0098] Frame type: Select whether the Can command to be sent to the current test sensor product is a data frame or a remote frame;
[0099] Frame format: Select whether the Can command to be sent to the current test sensor product is a standard frame or an extended frame;
[0100] Frame ID (Hex): Enter the frame ID of the Can command to be sent to the current test sensor product. It must be in Hex format.
[0101] Data length: Enter the length value of the data field of the Can command to be sent to the current test sensor product;
[0102] Send content: Enter the data value to be sent to the data field of the Can command of the current test sensor product. The format is required to be Hex. The length of the input data must be consistent with the "Data Length" parameter above.
[0103] (8) Power supply communication module 8: used to establish communication between the host computer and the programmable power supply. This module contains a total of 5 components. The specific functions of each component are as follows:
[0104] Serial port number: used to select the serial port number to communicate with the programmable power supply. If the serial port number of the newly added USB to serial data cable, virtual serial port, serial port board, etc. does not appear in the serial port number list, click the refresh button;
[0105] Refresh button: refresh the displayed content in the serial port number list;
[0106] Baud rate: used to select the baud rate of the serial port for communicating with the programmable power supply;
[0107] Reading interval: used to set the reading interval time for the power supply test program to read the real-time data of the programmable power supply;
[0108] Start Connect button: attempts to establish (or terminate) a communication connection between the power supply tester and the programmable power supply.
[0109] (9) Product communication module 9: used to establish communication between the host computer and the current test sensor product. The general data output modes of the current test sensor product include serial port (digital quantity) data, analog quantity data and CAN data. However, because the analog quantity data is connected to a high-precision multimeter through a serial port and the multimeter data is read to realize communication, the communication types of this module currently only include "serial port communication" and "CAN communication";
[0110] Communication type: used to select the communication mode between the power supply test program and the current test sensor product: serial communication and CAN communication;
[0111] Serial port number: used to select the serial port number to communicate with the current test sensor product (high-precision multimeter). If the serial port number of the newly added U-to-serial data cable, virtual serial port, serial port board and other devices does not appear in the serial port number list, you need to click the blue refresh button next to the serial port number list;
[0112] Refresh button: used to refresh the displayed content in the serial port number list;
[0113] Baud rate: used to select the baud rate of the serial port for communicating with the current test sensor product (high-precision multimeter);
[0114] Device Type: Used to select the type of conversion module used when making a Can connection with the current test sensor product;
[0115] Baud rate: used to select the Can communication baud rate used when connecting to the current test sensor product;
[0116] NodeID (Hex): used to input the frame ID of the real-time data information packet of the current test sensor product, in Hex format;
[0117] Start Connect Button: Attempts to establish (or terminate) a communication connection between the Power Supply Tester and the currently tested sensor product.
[0118] (10) Data saving module 10: used to set data saving parameters, through which the test data of interest can be manually or automatically started and ended. It is worth noting that when the automatic test is started, the power supply test program will automatically start saving data according to the parameter configuration in this area, and when the automatic test is finished, the power supply test program will also terminate the data saving being executed; in addition, since the execution time of a test sequence may be very long and the amount of data generated will be very large, this will not only affect the running efficiency of the software, but also cause some troubles for the user's future data analysis. To avoid this situation, when the power supply test program is saving data, it will divide the data to be saved into multiple data files according to the set time interval, and the division period is configurable by the user.
[0119] This module contains 5 components, the meaning of each component is as follows;
[0120] Test information: used to select whether to save the data in the test information area;
[0121] Communication data: used to select whether to save the data in the communication information area;
[0122] Split cycle: used to set the split cycle of the power test program split data save file, the unit is hour (usually set to 0.5h);
[0123] Save data button: start (or stop) data saving;
[0124] Open Folder button: Open the folder where the data save file is located.
[0125] (11) Functional operation module 11, which includes five button components, through which the power supply test sequence editing, power supply test sequence import, and automatic test process control operations can be performed. The meanings of the button components are as follows:
[0126] Import sequence button: used to import the edited power test sequence file. The imported power test sequence will display detailed test steps in the test sequence tree list of the test sequence module. Click this button to pop up an "Open" dialog box. After the user selects the required test sequence file, click the "Open" button to import the power test sequence file.
[0127] Sequence Edit button: Click this button to open the "Product Debug Parameters" dialog box, where users can edit and save new power test sequence files, as well as modify existing power test sequence files;
[0128] Pause button: Pause or continue the currently executing automatic test process;
[0129] Terminate button: terminate the currently executing automatic test process;
[0130] Start Test button: Start or terminate an automatic test process according to the currently imported power test sequence.
[0131] When the "Product Debug Parameters" dialog box is opened, the dialog box includes three functional areas, namely the file configuration area, the step type area and the step parameter area. The following introduces these three functional areas;
[0132] 11.1 File configuration area is used to display the step items in the current power supply test sequence and provide menu items to modify the parameters in the test sequence steps and adjust the execution order of the test sequence. In addition, four function buttons (Open, Save, Save As, Clear) are provided. The functions of each functional component in the file configuration area are as follows:
[0133] Test sequence tree list: used to display the currently edited power test sequence steps, and can also perform additional functions such as modifying delay, adding cycles, modifying the number of cycle executions, copying / pasting steps, and deleting steps;
[0134] Add loop: merge the currently selected items into a step combination block that can be executed in a loop;
[0135] Modify the number of loop executions: modify the number of loop executions of the currently selected loop step block;
[0136] Copy step: copy the currently selected step item to the cache;
[0137] Paste steps: paste the step items in the cache to the selected place in the tree list;
[0138] Delete step: delete the currently selected step item from the tree list;
[0139] Open button: open an edited power supply test sequence file for modification and editing;
[0140] Save button: save the current changes to the power test sequence steps in the tree list to a file;
[0141] Save As button: save the power test sequence steps in the current tree list as a power test sequence file;
[0142] Clear button: clear all test step data in the tree list;
[0143] 11.2 Step Type Area
[0144] The present invention provides 7 basic test step types (product parameters, product data reading, product command receiving and sending, data monitoring switch, power supply output voltage, power supply output switch, delay time), and provides 2 loop functions (power supply output loop, power supply output loop (Cmd)) to edit the test sequence steps. The specific configurable parameters corresponding to each test step are displayed in the step parameter area. When different step types are selected, the display of the step parameter area will display different contents as the selection changes.
[0145] 1) Product parameters, which are used to configure the type and format of product output data. The output of sensor products is divided into serial port data (digital quantity), serial port data (analog quantity) and Can data. Each data type corresponds to different step parameters. The step items specifically include:
[0146] Data source: Select the output mode of the product output data (serial port data (digital quantity), serial port data (analog quantity) and Can data);
[0147] Data packet header: The header identification content of the data packet when configuring the digital output of the product;
[0148] Data packet length: The length of the data packet when configuring the digital output of the product;
[0149] Data format: Configure the data packet format of the product's digital output to be Hex or ASCII;
[0150] Analog quantity type: When configuring the analog quantity output of the product, the analog quantity type is voltage or current;
[0151] CanID (Hex): Frame ID of real-time data packet when configuring product Can output, required to be in Hex format;
[0152] Frame type: When configuring the product Can output, the frame type of the data packet is data frame or remote frame;
[0153] Frame format: When configuring the product Can output, the frame format of the data packet is standard frame or extended frame;
[0154] Data length: When configuring the product Can output, the data length of the data field in the data packet;
[0155] 2) Product data reading. This step is mainly for two situations. One is for question-and-answer type digital output products. Through this step, you can configure the specific parameters of the data reading instructions that the power test program continuously sends to the current test sensor product; the other is that you can configure the power test program to continuously send instructions to a high-precision multimeter through this step, thereby indirectly obtaining the analog output data of the product. This step specifically includes:
[0156] Data reading switch: controls the start and stop of data reading behavior;
[0157] Data type: The reading type of the configuration data is digital or analog;
[0158] Data reading instruction: Enter the specific content of the instruction to be used to read digital data;
[0159] Send in Hex format: Used to select whether to send data read instructions in Hex format;
[0160] Data reading interval: configure the time interval for sending data reading instructions.
[0161] 3) Product command sending and receiving. This step is used to configure the power supply test program to send commands to the current test sensor product. The commands are divided into two categories: serial port commands and Can commands. This step specifically includes:
[0162] Command type: Select whether the command to be sent is a serial port command or a CAN command;
[0163] Command content: used to input the specific content of the serial port command;
[0164] Number of times sent: used to configure the number of times the current serial port command is sent continuously;
[0165] Send in Hex format: Used to select whether to send serial port commands in Hex format;
[0166] Waiting delay: It is used to input the waiting time of the system after the serial port command is sent;
[0167] Command return: used to input the response data content of the product that the software needs to check after the command is sent;
[0168] Hex format reception: used to select whether to perform response check on product data in Hex format;
[0169] CanID (Hex): Enter the frame ID of the Can command when sending the Can command. It must be in Hex format.
[0170] Frame type: When inputting and sending Can command, whether the Can command is a data frame or a remote frame;
[0171] Frame format: When inputting and sending the Can command, whether the Can command is a standard frame or an extended frame;
[0172] Data length: Enter the length value of the data field of the Can command when sending the Can command;
[0173] Send content: When entering the Can command, the specific data value of the data field of the Can command is required to be in Hex format, and the input data length must be consistent with the "Data Length" parameter above.
[0174] 4) Data monitoring switch, used to control the opening and closing of the data monitoring function. When the data monitoring function needs to be turned on, some monitoring parameters need to be configured according to the product situation. This step specifically includes:
[0175] Data monitoring switch: controls the opening and closing of the data monitoring function;
[0176] Data type: Set the data to be monitored as digital or analog;
[0177] Communication monitoring timing: Set the timeout value of the output of the product to be monitored. When the digital quantity to be monitored is exceeded, if the current test sensor product has not output within this time, the power supply test program will give a corresponding prompt. If the analog quantity to be monitored is exceeded, and the current test sensor product has not output an analog value that meets the set data range within this time, the power supply test program will give a corresponding prompt.
[0178] Analog quantity minimum value: When monitoring analog quantity, enter the lower limit of the output range of the analog quantity of the current test sensor product;
[0179] Maximum analog value: When monitoring analog quantity, enter the upper limit of the output range of the analog quantity of the current test sensor product.
[0180] 5) Power supply output voltage, used to switch the power supply voltage. This step item includes a configurable parameter, namely, power supply output voltage. Enter the power supply voltage value that meets the requirements in this text box. When the system performs automatic testing and executes this step, it will automatically control the programmable power supply to switch according to the set power supply voltage value.
[0181] 6) Power output switch, used to control the on and off of the programmable power supply output. This step item includes a power output switch drop-down box.
[0182] 7) Delay time: When the system is performing automatic testing, it will pause the test process at this step and wait for the set delay time to pass before executing subsequent test processes.
[0183] 8) Power output cycle. This step item is composed of several commonly used basic test steps. After inputting the required voltage change range, voltage change step value, power switch control, duration of each state and execution times, a multi-voltage automatic switching and adjustable power-on and power-off interval cycle execution step is automatically generated. That is, according to the input execution times parameter, a step segment is executed multiple times in a cycle, and the content of the step segment is automatically generated according to the input voltage adjustment parameters. This step item specifically includes:
[0184] Power supply voltage: The parameters of this step are not adjustable and are only used as placeholders;
[0185] Turn on power output: Select whether to turn on power output;
[0186] Delay time: Add a delay time to control the duration of power output on;
[0187] Turn off power output: Select whether to turn off the power output;
[0188] Delay time: Add a delay time to control the duration of shutting down the power output;
[0189] Starting value: used to input the starting voltage value required for the software to calculate the power supply voltage value;
[0190] Step interval: used to input the voltage step value required when the software calculates the power supply voltage value;
[0191] End value: used to input the end voltage value required when the software calculates the power supply voltage value;
[0192] Result preview: used to preview all power supply voltage values automatically calculated by the software;
[0193] Execution times: used to set the execution times of the newly added loop module.
[0194] 9) Power output cycle (Cmd). The function of this step item is basically the same as that of "Power output cycle". However, in this module, after "Start power output" + "Delay time", there is an additional item "Product command sending and receiving" + "Delay time". The other parts remain the same. This step item specifically includes:
[0195] Product instruction sending and receiving: Select whether to add a product instruction sending and receiving step at the current location;
[0196] Instruction configuration button: If you check the box next to Product Instruction Send and Receive, the button turns blue and is available. Clicking the button pops up the Product Instruction Send and Receive Edit dialog box, in which you can configure the parameters required for instruction sending and receiving in detail. These configurable parameters are the same as those in the "Product Instruction Send and Receive" step item.
[0197] Delay time: After executing the steps of sending and receiving product instructions, add a delay time to the system.
[0198] 11.3 Step parameter area, used to match the selection of step type area. The specific configurable parameters corresponding to each test step are displayed in the step parameter area. When different step types are selected, the display of the step parameter area will change with the selection of the step type area. There are 4 function buttons in this area, and their functions are as follows:
[0199] Add button: Add the test step currently being edited to the bottom of the tree list on the left;
[0200] Insert button: insert the test step currently being edited below the selected item in the tree list on the left;
[0201] Modify button: Change the selection item in the tree list on the left to the test step being edited;
[0202] Delete button: Delete the selected item in the tree list on the left from the tree list.
[0203] like Figure 3 As shown, based on the automatic power supply test system of the above-mentioned sensor product, the present invention also provides an automatic power supply test method for the sensor product, which is used to match sensor products of different models, different input voltages and different output data communication modes to perform power-on and power-off tests, and automatically obtain corresponding test results. The method specifically includes the following steps:
[0204] 1) Obtain the product model (such as tilt sensor, long angle sensor, draw wire sensor, pressure sensor, etc.), product parameters (product number, product instruction, power communication parameters, product communication parameters, power control parameters) and output data type (serial port data (digital quantity), serial port data (analog quantity) and Can data) of the current sensor product to be tested, and design the corresponding power supply test plan in combination with the test requirements and product manual parameters;
[0205] 2) According to the power supply test scheme corresponding to the current sensor product to be tested, edit and form a corresponding power supply test sequence file, and import the power supply test sequence file into the software or edit it by itself to form a power supply test sequence that can be automatically run;
[0206] 3) Complete the connection between the host computer and the current sensor product to be tested (the digital output signal is directly connected through the corresponding digital communication serial port, the Can output signal is connected through the Can signal to USB signal interface module, and the analog output signal is connected to the data output terminal of the current sensor product to be tested through a high-precision multimeter), the host computer and the programmable power supply (connected through the serial port), and the programmable power supply and the current sensor product to be tested;
[0207] 4) After configuring the detection parameters, the power supply test program of the host computer automatically runs the corresponding power supply test sequence, automatically collects the output signal of the current sensor product to be tested, and automatically determines whether it is qualified based on the output signal of the current sensor product to be tested.
[0208] Example 1
[0209] In this example, for the drawstring sensor product whose product model is the drawstring sensor category and whose output data communication mode is Can data, first connect the corresponding test system hardware connection (the host computer is connected to the programmable power supply through the serial port, and the drawstring sensor is connected through the interface module that converts the Can signal to the USB signal, or a parallel selection tool is configured in series to test multiple drawstring sensors together, and the programmable power supply is directly connected to the drawstring sensor power port for power supply); then configure the serial port number, baud rate and reading interval in the power communication module of the power test program of the host computer, and establish communication between the host computer and the programmable power supply. At this time, the indicator light component 2 displays a green light; then in the product communication Configure the communication type (select Can communication), serial port number, baud rate and NodeID data of the currently tested draw rope sensor in the module, establish communication between the host computer and the currently tested draw rope sensor, at this time, indicator light component 3 displays a green light; then import the edited test sequence file in the function operation module, click to start the test, at this time, the operation status module displays the product number of the currently tested draw rope sensor, the test information module displays the prompt information during the operation, and the communication data module displays the communication data packet information between the host computer and the currently tested draw rope sensor. If the output data is normal, the indicator light component 1 displays a green light, and if it is abnormal, the indicator light component 1 flashes red.
[0210] Example 2
[0211] In this example, for the inclination sensor product whose product model is the inclination sensor category and whose output data communication mode is analog, first connect the corresponding test system hardware connection (the host computer is connected to the programmable power supply through the serial port, and the analog data output of the pull-wire sensor is collected through the multimeter, or a parallel selection tool is configured in series to test multiple inclination sensors together, and the programmable power supply is directly connected to the inclination sensor power port for power supply); then configure the serial port number, baud rate and reading interval in the power communication module of the power test program of the host computer, and establish communication between the host computer and the programmable power supply. At this time, the indicator light component 2 displays a green light; due to the analog output The communication between the host computer and the inclination sensor currently being tested is established directly through the multimeter, so there is no need to configure in the product communication module. You only need to ensure that the hardware physical connection is good. At this time, the indicator light component 3 displays a green light; then import the edited test sequence file in the function operation module, and click to start the test. At this time, the operation status module displays the product number of the inclination sensor currently being tested, the test information module displays the prompt information during the operation, and the communication data module displays the communication data packet information between the host computer and the inclination sensor currently being tested. If the output data is normal, the indicator light component 1 displays a green light, and if it is abnormal, the indicator light component 1 flashes red.
[0212] Example 3
[0213] In this example, for the pressure sensor product whose product model is the pressure sensor category and whose output data communication mode is digital quantity, first connect the corresponding test system hardware connection (the host computer is connected to the programmable power supply through the serial port, and directly connected to the pressure sensor currently being tested through the serial port, or a parallel selection tool is configured in series to test multiple pressure sensors together, and the programmable power supply is directly connected to the power port of the pressure sensor for power supply); then configure the serial port number, baud rate and reading interval in the power communication module of the power test program of the host computer, and establish communication between the host computer and the programmable power supply. At this time, the indicator light component 2 displays a green light; then Then configure the communication type (select serial communication), serial port number and baud rate in the product communication module to establish communication between the host computer and the pressure sensor currently being tested. At this time, indicator light component 3 displays a green light; then import the edited test sequence file in the function operation module and click to start the test. At this time, the operation status module displays the product number of the pressure sensor currently being tested, the test information module displays the prompt information during the operation, and the communication data module displays the communication data packet information between the host computer and the pressure sensor currently being tested. If the output data is normal, indicator light component 1 displays a green light, and if it is abnormal, indicator light component 1 flashes red.
[0214] Furthermore, the power supply test schemes for various types of sensor products include short-time on-off test, performance test and voltage gradient test. The contents of the three test schemes are shown in Table 1.
[0215] Table 1 Test plan
[0216]
[0217]
[0218] According to Table 1, the specific examples of the three test schemes are as follows:
[0219] Short-time power on and off test: Figure 3 As shown, the output voltage of the programmable power supply is configured to the typical voltage value of the current test sensor product (in this example, the typical voltage value of the pull-wire sensor is 12V), the power-on time of the programmable power supply is configured to 10000ms, the power-off time is configured to 5000ms, and the number of cycles is configured to 500 times. During the power-on and power-off cycle operation, the host computer reads the output data of the current test sensor product, and determines whether the current test sensor product passes the short-time power-on and power-off test based on the set reading interval and the set valid output data range.
[0220] Specifically, for sensor products whose output data is analog, it is necessary to set a reading interval, and the host computer data reading interval is configured to be 100ms-200ms. For sensor products whose output data is digital or Can, there is no need to set a reading interval, only the valid output data range needs to be set.
[0221] Performance test: Figure 4 As shown, the output voltage of the programmable power supply is configured as the maximum voltage, typical value and minimum voltage of the current test sensor product (in this example, the maximum voltage, typical value and minimum voltage of the inclination sensor are 30V, 12V and 8V respectively), and the power-on time of the programmable power supply corresponding to the maximum voltage, typical value and minimum voltage is configured as 10-30s. The host computer determines whether the current test sensor product passes the performance test according to the set reading interval and the set valid output data range. The content of the performance test is a conventional index test, including operating voltage, static operating current, resolution, accuracy, zero point deviation and other indicators.
[0222] Voltage gradient test: Figure 5 As shown, the output voltage of the programmable power supply is configured between the minimum voltage and the maximum voltage of the current test sensor product, and is combined with step-up and / or step-down in a boost / step-down cycle. (In this example, the test voltage range of the pressure sensor is 8-30V (actually, there will also be sensor products with a minimum voltage of 3.3V or 5V). In each test cycle, the typical value is first reduced to the minimum value with a gradient of 5%, and then from the minimum value to the maximum value with a gradient of 5%. Each step section keeps the power supply on for 10S. The host computer determines whether the current test sensor product passes the corresponding test based on the set reading interval and the set valid output data range.
[0223] In summary, the present invention provides an automatic power supply testing system for sensor products, which can automatically and efficiently perform power supply tests on sensor products, and can perform power supply tests on various intelligent sensor products before leaving the factory, thereby improving the product quality of sensors, including inclination sensors, pull-wire sensors, long-angle sensors, pressure sensors and other intelligent sensor products, so that they can adapt to various working conditions and work stably under various power supply environments. In addition, it can also be expanded to other electronic products, with adjustable parameters and editable test schemes. It can perform a variety of different power supply tests, including short-time power on and off tests, performance tests and / or voltage gradient tests, with a high degree of automation and high test efficiency.
[0224] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. An automatic power supply test system for a sensor product, used to automatically perform a power supply test on a sensor product, characterized in that: The system includes: Host computer: used to control the output of the programmable power supply and obtain the test results based on the collected output data of the sensor product to be tested; Programmable power supply: communicates with the host computer and automatically controls the power supply of the sensor product to be tested according to the power supply test sequence; Communication device: connected to the host computer and the sensor product to be tested respectively, used for real-time communication between the host computer and different types of output data of the sensor product to be tested.
2. The automatic power supply test system for a sensor product according to claim 1, characterized in that: The output data types of the sensor product to be tested include digital output data, analog output data and Can output data.
3. The automatic power supply test system for a sensor product according to claim 2, characterized in that: When the output data type of the sensor product to be tested is digital output data, the host computer is directly connected to the sensor product to be tested through the serial port; When the output data type of the sensor product to be tested is analog output data, the host computer is connected to the sensor product to be tested through the serial port and the multimeter; When the output data type of the sensor product to be tested is Can output data, the host computer is connected to the sensor product to be tested through a USB interface and an interface module for converting Can signals to USB signals.
4. The automatic power supply test system for a sensor product according to claim 1, characterized in that: The sensor products to be tested include inclination sensors, pull-wire sensors, long-angle sensors, and pressure sensors.
5. The automatic power supply test system for a sensor product according to claim 1, characterized in that: The host computer imports and edits the steps of the power test sequence corresponding to the power test solution of the sensor product through the configured power test program, controls the execution of the power test sequence of the programmable power supply, and collects, saves and automatically monitors the data output of the sensor product to be tested.
6. The automatic power supply test system for a sensor product according to claim 5, characterized in that: The power supply test procedure includes: Test sequence module (1): used to import the power test sequence file corresponding to the sensor product to be tested, or to edit the corresponding power test sequence in real time, to form a power control signal of the programmable power supply and send it to the programmable power supply; Running status module (2): used to display the status of each module during the test process; Test information module (3): used to display prompt information during the operation; Communication data module (4): used to display the communication data packet information between the host computer and the sensor product to be tested; Real-time data module (5): used to display the output of the programmable power supply, including current voltage, current current and current power; A power control module (6): used to control the output state of the programmable power supply and modify the adjustable parameters of the programmable power supply, including output voltage, output current, overvoltage protection threshold, overcurrent protection threshold and overpower protection threshold; Product command sending module (7): used to send commands to the sensor product to be tested, the commands include serial port commands and Can commands; Power supply communication module (8): used to establish communication between the host computer and the programmable power supply; Product communication module (9): used to establish communication between the host computer and the sensor product to be tested; Data storage module (10): used to set data storage parameters; Functional operation module (11): used for editing power supply test sequence, importing power supply test sequence and controlling automatic test process, including file configuration area component, step type area component and step parameter area component, the file configuration area component is used for displaying step items in the current power supply test sequence, modifying parameters in the test sequence steps and adjusting the execution order of the test sequence, the step type area component is used for editing the power supply test sequence by providing basic test step types and loop functions, and the configurable parameters are displayed in the step parameter area.
7. An automatic power supply testing method based on the automatic power supply testing system according to any one of claims 1 to 6, characterized in that: The following steps are involved: 1) Obtain the product model, product parameters and output data type of the current sensor product to be tested, and obtain the corresponding power supply test plan in combination with the test requirements and product manual parameters; 2) Select the communication device corresponding to the output data type according to the power supply test plan to complete the connection of the system hardware; 3) According to the power supply test scheme corresponding to the current sensor product to be tested, a corresponding power supply test sequence is formed in the host computer; 4) After configuring the detection parameters, the corresponding power supply test sequence is automatically run, the output signal of the current sensor product to be tested is automatically collected, and whether it is qualified is automatically determined based on the output signal of the current sensor product to be tested.
8. The automatic power supply testing method according to claim 7, characterized in that: The power supply test solution includes short-time on-off test, performance test and / or voltage gradient test.
9. The automatic power supply testing method according to claim 8, characterized in that: In the short-time power-on and power-off test, the output voltage of the programmable power supply is configured to the typical voltage value of the current test sensor product, and the power-on time, power-off time and number of cycles of the programmable power supply are configured, and whether the current test sensor product passes the short-time power-on and power-off test is determined according to the set reading interval and the set valid output data range; In the performance test, the output voltage of the programmable power supply is respectively configured as the maximum voltage, typical voltage and minimum voltage of the current test sensor product, and the power-on time corresponding to each voltage value is configured as 10-30s. The current test sensor product is judged whether it passes the performance test according to the set reading interval and the set valid output data range. The performance test indicators include working voltage, static working current, resolution, accuracy, and zero deviation indicators; In the voltage gradient test, the output voltage of the programmable power supply is configured to be between the minimum voltage and the maximum voltage of the current test sensor product, and the test is performed in a boost / step-down cycle combined with a step-up and / or step-down mode. Each test cycle starts from the typical voltage value and first decreases to the minimum voltage value with a 5% gradient, and then increases from the minimum voltage value to the maximum voltage with a 5% gradient. Each step section keeps the power supply on for 10S, and the host computer determines whether the current test sensor product passes the corresponding test based on the set reading interval and the set valid output data range.
10. The automatic power supply testing method according to claim 9, characterized in that: In the short-time power-on and power-off test, the power-on time of the programmable power supply is configured to be 10000ms, the power-off time is configured to be 5000ms, and the number of cycles is configured to be 500 times.
