Automatic testing device for electrical interface of hardware equipment
By integrating multiple interfaces and a high-performance microcontroller into a hardware device electrical interface automated testing device, the comprehensive automated testing problem of existing testing devices has been solved, realizing efficient, accurate and reliable testing of multiple interfaces, and improving production efficiency and product quality.
Patent Information
- Application Number
- CN202510919936.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-11-11
AI Technical Summary
Existing hardware electrical interface testing devices cannot perform comprehensive automated testing of multiple interfaces simultaneously, resulting in low testing efficiency, insufficient accuracy and stability, poor compatibility, and a lack of intuitive status indication and idle detection functions.
An automated testing device for electrical interfaces of hardware equipment was designed, integrating RS232 serial port test interface, RS485 serial port test interface, switch input/output interface, status indicator LED module and idle detection module. It adopts high-performance AT32F415CBT7 microcontroller as core control unit, equipped with multi-channel isolation interface and adjustable baud rate, and equipped with status indicator LED and idle detection module.
It enables fully automated testing of various electrical interfaces, improving testing efficiency and accuracy, enhancing device stability and compatibility, providing intuitive status feedback and equipment status detection, and reducing manpower and time costs.
Smart Images

Figure CN120928067A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial automation testing technology, and more specifically, to an automated testing device for electrical interfaces of hardware equipment. Background Technology
[0002] In today's hardware manufacturing and testing field, with the rapid development of electronic technology, electrical interface functional testing of hardware devices has become a crucial link in ensuring product quality. Traditional testing methods mainly rely on manual operation, involving manually connecting test cables, configuring test parameters, and checking the functionality of each interface one by one. However, this method is not only time-consuming and labor-intensive but also prone to inaccurate test results due to human error. Furthermore, with the continuous expansion of hardware production scale, the demand for large-scale equipment testing places higher demands on testing efficiency. While existing automated testing technologies have improved testing efficiency to some extent, most automated testing devices only test a single type of interface, failing to meet the comprehensive testing needs of multi-interface hardware devices. At the same time, some existing automated testing devices still have shortcomings in functional completeness, testing accuracy, and compatibility with different interface types, making it difficult to meet the diverse testing requirements of complex hardware devices.
[0003] In the process of implementing the embodiments of the present invention, the inventors discovered that the prior art has at least the following problems or defects: the existing testing devices cannot perform comprehensive automated testing on multiple electrical interfaces simultaneously, resulting in a cumbersome and inefficient testing process; the existing testing devices need to be improved in terms of testing accuracy and stability, and are easily affected by external environmental interference; the existing testing devices have poor compatibility and cannot adapt to the interface testing requirements of different models and types of hardware devices; the existing testing devices lack intuitive status indication and idle detection functions, and cannot provide real-time feedback on test status and equipment installation status, increasing the complexity of testing operations and the probability of errors. Summary of the Invention
[0004] This invention provides an automated testing device for electrical interfaces of hardware devices, comprising: The core control unit includes an RS232 serial port test interface, an RS485 serial port test interface, a digital input interface, a digital output interface, a power input interface for the device under test, a status indicator LED module, and an idle detection module. The core control unit is electrically connected to the RS232 serial port test interface, RS485 serial port test interface, digital input interface, digital output interface, status indicator LED module and idle detection module; The power input interface of the device under test provides 24V input power to the device under test through a pin.
[0005] Furthermore, the core control unit adopts an AT32F415CBT7 microcontroller, which is an ARM 32-bit Cortex-M4 CPU with a maximum operating frequency of 150MHz.
[0006] Furthermore, the status indicator LED module includes four LED indicators: a yellow LED indicator, a blue LED indicator, a green LED indicator, and a red LED indicator, used to indicate the test status.
[0007] Furthermore, the idle detection module includes a limit switch, and the pin conduction state of the limit switch is used to detect whether the test unit is idle.
[0008] Furthermore, the RS485 serial port test interface includes two RS485 interfaces, and the baud rate of each RS485 interface can be configured from 9600 to 460800.
[0009] Furthermore, the RS232 serial port test interface includes one RS232 interface with a baud rate configurable from 9600 to 235000.
[0010] Furthermore, the switch output interface is an 8-channel optocoupler output interface, each of which is independent of each other, and the internal and external isolation voltage of the optocoupler is 3750V.
[0011] Furthermore, the switch input interface is an 8-channel optocoupler input interface, each of which is independent of each other, and the internal and external isolation voltage of the optocoupler is 3750V.
[0012] Furthermore, one channel of the RS485 serial port test interface is used to communicate with the test host, and the other channel is used to test the RS485 interface function of the device under test.
[0013] Furthermore, the status indicator LED module has a yellow LED indicator to indicate the start of the test, a blue LED indicator to indicate the running status, a green LED indicator to indicate the end of the test, and a red LED indicator to indicate an abnormal test status.
[0014] The above embodiments of the present invention have at least the following beneficial effects: The hardware device electrical interface automated testing device of the present invention can realize comprehensive automated testing of multiple electrical interfaces. By integrating RS232 serial port test interface, RS485 serial port test interface, switch input interface, and switch output interface, the device can simultaneously meet the testing requirements of multiple interface types, improving testing efficiency. Furthermore, the core control unit adopts a high-performance AT32F415CBT7 microcontroller, which has powerful processing capabilities and high-precision control functions, ensuring the stability and accuracy of the testing process. Simultaneously, the device is equipped with a status indicator LED module and an idle detection module, which can provide real-time feedback on the test status and detect whether the test unit is idle, further improving the convenience and reliability of the testing operation.
[0015] Furthermore, this device can provide a stable 24V input power to the device under test (DUT), ensuring its normal operation during testing. Its digital input and output interfaces employ optocoupler isolation technology with an isolation voltage up to 3750V, effectively preventing electromagnetic interference and improving testing safety and reliability. The baud rates of the RS485 and RS232 interfaces are flexibly configurable to adapt to the communication needs of different devices, enhancing the device's versatility and compatibility. Through these designs, the device not only meets the testing needs of large-volume hardware equipment but also reduces labor and time costs, improving production efficiency and product quality. Attached Figure Description
[0016] The above and other objects, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated in the drawings by way of example and not limitation, wherein: Figure 1 This is a schematic diagram of the structure of an automated testing device for electrical interfaces of hardware devices provided in an embodiment of the present invention. Detailed Implementation
[0017] The principles and spirit of the invention will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided to make the invention more thorough and complete, and to fully convey the scope of the invention to those skilled in the art.
[0018] Those skilled in the art will recognize that embodiments of the present invention can be implemented as a system, apparatus, device, method, or computer program product. Therefore, the present invention can be specifically implemented in the following forms: entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0019] It should be noted that the number of any elements in the accompanying drawings is for illustrative purposes only and not as a limitation, and any naming is for distinction only and has no limiting meaning.
[0020] The following is for reference. Figure 1 , Figure 1 This is a schematic diagram of the structure of an automated testing device for electrical interfaces of hardware devices provided in an embodiment of the present invention. Figure 1 As shown, an automated testing device for electrical interfaces of hardware devices includes: The core control unit consists of 8 components, 5 RS232 serial port test interfaces, 4 RS485 serial port test interfaces, 3 digital input interfaces, 2 digital output interfaces, 6 power input interfaces for the device under test, 1 status indicator LED module, and 7 idle detection module. The core control unit 8 is electrically connected to the RS232 serial port test interface 5, the RS485 serial port test interface 4, the switch input interface 3, the switch output interface 2, the status indicator LED module 1, and the idle detection module 7. The power input interface 6 of the device under test provides 24V input power to the device under test through a pin.
[0021] It should be noted that the automated testing device for electrical interfaces of hardware devices of the present invention is a device for detecting the functional integrity of electrical interfaces of hardware devices. The core control unit 8 of this device is the brain of the entire testing device, responsible for coordinating the test operations and data processing of various interface modules. The RS232 serial port test interface 5 and the RS485 serial port test interface 4 are modules used to test the serial communication interface function of hardware devices. RS232 is a common serial communication interface, while RS485 supports multi-point communication and is suitable for industrial environments. The switch input interface 3 and the switch output interface 2 are used to detect the switch input and output functions of the hardware device, respectively. These interfaces achieve electrical isolation through optocoupler isolation technology to ensure the safety and reliability of the test. The status indicator LED module 1 uses LEDs of different colors to indicate the operating status of the testing device, while the idle detection module 7 is used to detect whether the device under test is placed in the test unit. These modules together constitute a complete automated testing system capable of efficiently completing the testing tasks of the electrical interfaces of hardware devices.
[0022] Specifically, the core control unit 8 uses the AT32F415CBT7 microcontroller, a high-performance microcontroller based on an ARM 32-bit Cortex-M4 CPU, with a maximum operating frequency of 150 MHz, capable of quickly handling complex test tasks. The RS232 serial port test interface 5 includes one RS232 interface with a configurable baud rate range of 9600 to 235000, meeting the communication needs of different devices. The RS485 serial port test interface 4 includes two RS485 interfaces, each with a configurable baud rate range of 9600 to 460800; one is used for communication with the test host, and the other is used to test the RS485 interface function of the device under test. Both the digital input and output interfaces are 8-channel optocoupler interfaces, each independent of the others. The optocoupler internal and external isolation voltage is 3750V, effectively preventing electromagnetic interference. The status indicator LED module 1 includes four LEDs: yellow, blue, green, and red, indicating the start of test, running, test completion, and test exception status, respectively. The idle detection module 7 uses a limit switch to determine whether the test unit is idle by detecting the conduction state of the limit switch pins.
[0023] Preferably, during operation, the core control unit 8 automatically controls the testing operations of each interface module according to the preset test procedures and parameters. For example, in RS485 interface testing, the core control unit 8 first establishes communication with the test host through one RS485 interface to receive test commands, and then sends test messages to the device under test (DUT) through another RS485 interface, and receives the response signal from the DUT, thereby verifying the RS485 interface function of the DUT. In digital input and output testing, the core control unit 8 controls the digital output interface to emit signals and detects the response status of the digital input interface, thereby determining whether the digital interface of the DUT is working properly. In addition, the status indicator LED module 1 automatically switches the color of the LED according to different stages of the test process, providing operators with intuitive test status feedback. The idle detection module 7 automatically detects whether the test unit has a DUT placed before each test begins, ensuring the accuracy and reliability of the test. Through these optimized designs, the test device can more efficiently and accurately complete the automated testing tasks of the electrical interfaces of hardware devices.
[0024] In some embodiments, the core control unit 8 uses an AT32F415CBT7 microcontroller, which is an ARM 32-bit Cortex-M4 CPU with a maximum operating frequency of 150MHz.
[0025] It should be noted that the core control unit 8 is a key component of the automated testing device for the electrical interfaces of hardware devices, responsible for coordinating and controlling the entire testing process. In this invention, the core control unit 8 employs the AT32F415CBT7 microcontroller, a high-performance microcontroller with powerful processing capabilities and high computing speed. The AT32F415CBT7 microcontroller uses the ARM 32-bit Cortex-M4 CPU architecture, which is widely used in various embedded systems due to its high performance, low power consumption, and excellent code density. Its maximum operating frequency is 150 MHz, meaning the microcontroller can process large amounts of data and complex tasks in a short time, ensuring the efficient operation of the testing device. By using this microcontroller, the testing device can achieve rapid response and precise control, meeting the requirements of automated testing of the electrical interfaces of hardware devices.
[0026] Specifically, the AT32F415CBT7 microcontroller, as the core component of the core control unit 8, uses its 32-bit architecture to support complex instruction sets and data processing tasks. The Cortex-M4 CPU is the core processor of this microcontroller, supporting various advanced functions such as hardware floating-point arithmetic and digital signal processing instructions. These functions are very useful for handling complex test algorithms and data processing. The maximum operating frequency of 150 MHz represents the microcontroller's clock frequency, meaning the internal clock signal can oscillate 150 million times per second, which directly affects the microcontroller's processing speed and response time. In the automated testing device for electrical interfaces of hardware equipment, the microcontroller needs to process data from multiple interface modules, including RS232, RS485, and digital input / output interfaces, while also controlling the status indicator LED module 1 and the idle detection module 7. Therefore, a high-performance microcontroller is a key factor in ensuring the efficient operation of the entire testing device.
[0027] Preferably, the core control unit 8 operates according to preset test procedures and parameters during actual operation. For example, during testing, the microcontroller communicates with the device under test (DUT) via RS232 or RS485 interfaces according to the test process requirements, sending test commands and receiving response data. Simultaneously, the microcontroller monitors the status of the digital input and output interfaces in real time to determine whether the DUT's digital interfaces are functioning correctly. In handling these tasks, the microcontroller's 32-bit architecture and 150 MHz operating frequency ensure rapid data processing and accurate transmission. Furthermore, the microcontroller can be programmed to implement various functions, such as fault diagnosis, data logging, and status feedback. For example, when an interface malfunction of the DUT is detected, the microcontroller triggers a red LED indicator to illuminate, alerting the operator to the equipment malfunction. Through these optimized designs, the core control unit 8 can efficiently complete automated testing tasks of hardware device electrical interfaces while ensuring the accuracy and reliability of the tests.
[0028] In some embodiments, the status indicator LED module 1 includes four LED indicators: a yellow LED indicator, a blue LED indicator, a green LED indicator, and a red LED indicator, used to indicate the test status.
[0029] It should be noted that the status indicator LED module 1 is an important component of the automated testing device for the electrical interface of the hardware equipment, used to intuitively display the operating status of the testing device. This module contains four LED indicators of different colors: yellow, blue, green, and red, each color corresponding to a specific test status. Through the combination of these LEDs on and off, operators can quickly understand the current working status of the testing device, thereby improving testing efficiency and reliability. This status indication method is simple, intuitive, easy to understand and operate, and effectively reduces errors from human judgment.
[0030] Specifically, the yellow LED indicator in status indicator LED module 1 indicates the start of testing; it illuminates when the testing device is started and ready to begin testing. The blue LED indicator indicates the running status, showing that the testing device is performing a testing task. The green LED indicator indicates the end of testing; it illuminates when the test is complete and the result is normal. The red LED indicator indicates abnormal testing status; it illuminates if an error or fault is detected during testing. The on / off status of these LEDs is controlled by the core control unit 8 based on the testing process and detection results. For example, when the core control unit 8 detects an interface malfunction in the device under test, it triggers the red LED to illuminate, alerting the operator to the equipment malfunction. This status indication method not only provides clear visual feedback but also helps operators quickly locate problems, improving testing efficiency.
[0031] Preferably, in practical applications, the status indicator LED module 1 can be programmed to implement more complex indication functions. For example, different types of anomalies can be further distinguished by the flashing frequency. If the red LED flashes at a low frequency, it indicates an interface communication anomaly; if it flashes at a high frequency, it indicates a hardware failure. Furthermore, the brightness of the LED can be adjusted according to actual needs to adapt to different working environments. For example, in dimly lit environments, the brightness of the LED can be appropriately increased to ensure that operators can clearly see the indicated status. Through these optimized designs, the status indicator LED module 1 can more flexibly adapt to different testing scenarios, providing operators with more accurate and intuitive status feedback.
[0032] In some embodiments, the idle detection module 7 includes a limit switch, the pin conduction state of which is used to detect whether the test unit is idle.
[0033] It should be noted that the idle detection module 7 is an important component of the automated testing device for electrical interfaces of hardware devices, used to detect whether a device under test (DUT) is placed in the test unit. The core component of this module is a limit switch, a mechanical switch that determines whether the test unit is idle by detecting the physical contact state. When the limit switch pin is conductive, it indicates that a DUT is present in the test unit; when the pin is not conductive, it indicates that the test unit is empty. This detection method is simple and reliable, effectively avoiding invalid tests in an idle state, thereby improving testing efficiency and accuracy.
[0034] Specifically, the limit switch is the core component of the idle detection module 7, which detects the status of the test unit through physical contact. The conduction state of the limit switch pins is a key parameter for determining whether the test unit is idle. When the device under test (DUT) is placed in the test unit, the device applies a certain pressure to the limit switch, causing its pins to conduct. At this time, the core control unit 8 detects the conduction state of the pins to determine that there is a DUT in the test unit. Conversely, if the limit switch pins are not conducting, it indicates that the test unit is empty. This detection method not only effectively avoids invalid testing in an idle state but also monitors the placement status of the device in real time during the test, ensuring the accuracy and reliability of the test.
[0035] Preferably, in practical applications, the vacancy detection module 7 can achieve more intelligent detection functions by cooperating with the core control unit 8. For example, the core control unit 8 can automatically adjust the test process according to the conduction state of the limit switch. If the test unit is detected to be empty, the core control unit 8 can pause the test and remind the operator to place the device under test through the status indicator LED module 1.
[0036] Furthermore, the sensitivity of the limit switch can be adjusted according to actual needs to accommodate devices under test of different weights and sizes. Through these optimized designs, the idle detection module 7 can more flexibly adapt to different testing scenarios, providing reliable device status detection functions for automated testing.
[0037] In some embodiments, the RS485 serial port test interface 4 includes two RS485 interfaces, and the baud rate of each RS485 interface can be configured from 9600 to 460800.
[0038] It should be noted that the RS485 serial port test interface 4 is a key component of the automated testing device for electrical interfaces of hardware devices, used to test the RS485 interface communication function of the device under test (DUT). The RS485 interface is a serial communication interface widely used in industrial automation and communication fields, supporting multi-point communication and enabling long-distance data transmission between devices. In this invention, the RS485 serial port test interface 4 includes two independent RS485 interfaces, each with a baud rate that can be flexibly configured within the range of 9600 to 460800 to meet the communication needs of different devices. This design allows the testing device to comprehensively test the RS485 interface function of the DUT, ensuring that its communication performance meets requirements.
[0039] Specifically, the two interfaces of RS485 serial port test interface 4 perform different functions. The first RS485 interface is used to communicate with the test host, receiving instructions from the test host and feeding back the test status and results. The second RS485 interface is used to test the RS485 interface function of the device under test (DUT), verifying its communication capability by sending test messages and receiving responses from the DUT. Baud rate is a crucial parameter for RS485 interface communication, representing the number of bits transmitted per second. In this invention, the configurable baud rate range is 9600 to 460800, meaning the test device can flexibly adjust the baud rate according to the communication protocol and requirements of the DUT to ensure the accuracy and reliability of communication. For example, if the RS485 interface baud rate of the DUT is 9600, the test device can set the baud rate of the second RS485 interface to 9600 to match the communication rate of the DUT.
[0040] Preferably, in actual testing, the communication test of the RS485 serial port test interface 4 can be implemented through the following steps: First, the core control unit 8 receives instructions from the test host through the first RS485 interface to determine the baud rate and test content of the RS485 interface of the device under test. Then, the core control unit 8 configures the second RS485 interface according to these parameters and sends test messages to the device under test through this interface. After receiving the message, the device under test processes it according to its communication protocol and returns a response signal. The core control unit 8 receives and analyzes the response signal to determine whether the RS485 interface of the device under test is functioning normally. If the response signal meets expectations, it indicates that the RS485 interface of the device under test is functioning normally; if the response signal is abnormal or no response is received, the core control unit 8 will trigger a red LED indicator to light up, reminding the operator that the RS485 interface of the device under test may be faulty. Through this detailed test process, the RS485 serial port test interface 4 can accurately evaluate the communication performance of the device under test, ensuring the integrity of the interface function of the hardware device before it leaves the factory.
[0041] In some embodiments, the RS232 serial port test interface 5 includes one RS232 interface with a baud rate configurable from 9600 to 235000.
[0042] It should be noted that the RS232 serial port test interface 5 is an important component of the automated testing device for electrical interfaces of hardware devices, used to test the RS232 interface communication function of the device under test. The RS232 interface is a common serial communication interface widely used for communication between computers and external devices. In this invention, the RS232 serial port test interface 5 includes one RS232 interface, whose baud rate can be flexibly configured within the range of 9600 to 235000 to meet the communication needs of different devices. This design enables the testing device to efficiently test the RS232 interface function of the device under test, ensuring that its communication performance meets requirements.
[0043] Specifically, the baud rate of the RS232 serial port test interface 5 is one of its core parameters. The baud rate represents the number of bits transmitted per second and is an important indicator of communication speed. In this invention, the baud rate of the RS232 interface is configurable from 9600 to 235000. This means that the test device can flexibly adjust the baud rate according to the communication protocol and requirements of the device under test (DUT) to ensure the accuracy and reliability of communication. For example, if the RS232 interface baud rate of the DUT is 9600, the test device can set the baud rate of the RS232 interface to 9600 to match the communication rate of the DUT. Furthermore, RS232 interface communication typically achieves communication between devices by sending and receiving serial data. The test device sends test messages to the DUT through this interface and receives the response signals from the DUT, thereby verifying its communication function.
[0044] Preferably, in actual testing, the communication test of the RS232 serial port test interface 5 can be implemented through the following steps: First, the core control unit 8 configures the baud rate of the RS232 interface according to the preset test procedure to ensure that its communication parameters are consistent with those of the device under test (DUT). Then, the core control unit 8 sends a test message to the DUT through the RS232 interface. The test message may contain specific commands or data to trigger a response from the DUT. After receiving the message, the DUT processes it according to its communication protocol and returns a response signal. The core control unit 8 receives and analyzes the response signal to determine whether the RS232 interface of the DUT is functioning normally. If the response signal meets expectations, it indicates that the RS232 interface of the DUT is functioning normally; if the response signal is abnormal or no response is received, the core control unit 8 will trigger a red LED indicator to light up, reminding the operator that the RS232 interface of the DUT may be faulty. Through this detailed test procedure, the RS232 serial port test interface 5 can accurately evaluate the communication performance of the DUT, ensuring the integrity of the interface function of the hardware device before it leaves the factory.
[0045] In some embodiments, the switch output interface is an 8-channel optocoupler output interface, each optocoupler output interface is independent of each other, and the internal and external isolation voltage of the optocoupler is 3750V.
[0046] It should be noted that the digital output interface is an important component of the automated testing device for electrical interfaces of hardware devices, used to test the digital input interface functions of the device under test. The digital output interface achieves electrical isolation through optocoupler isolation technology, ensuring the safety and reliability of the testing process. In this invention, the digital output interface includes eight optocoupler output interfaces, each independent of the others, with an internal and external isolation voltage of 3750V. This design allows the testing device to test multiple digital input interfaces simultaneously, while ensuring the stability and safety of signal transmission.
[0047] Specifically, each optocoupler output interface of the digital output interface is independent, meaning that each can be controlled and monitored separately without interference. The optocoupler isolation voltage is a crucial parameter of the optocoupler output interface, representing the maximum voltage difference the optocoupler can withstand, ensuring the safety of signal transmission in high-voltage environments. In this invention, the internal and external isolation voltage of the optocoupler is 3750V, indicating that the interface can operate normally under voltage differences up to 3750V, effectively preventing high-voltage signals from harming the testing equipment and operators. Furthermore, the working principle of the optocoupler output interface is based on the transmission of optical signals. The optocoupler device converts electrical signals into optical signals and then back into electrical signals, thereby achieving electrical isolation. This isolation method effectively avoids electromagnetic interference, improving the accuracy and reliability of the test.
[0048] Preferably, during actual testing, the operation of the digital output interface can be achieved through the following steps: First, the core control unit 8, according to the test requirements, programs one or more output signals from the eight optocoupler output interfaces. These signals can be simple high and low level signals used to simulate the digital input signals of the device under test (DUT). When the DUT receives these signals, it processes them according to its internal logic and returns a response signal through the digital input interface. The core control unit 8 receives these response signals through the digital input interface and analyzes them to determine whether the digital input interface of the DUT is functioning correctly. If the response signal meets expectations, it indicates that the digital input interface of the DUT is functioning correctly; if the response signal is abnormal or no response is received, the core control unit 8 will trigger a red LED indicator to light up, reminding the operator that the digital input interface of the DUT may be faulty. Through this detailed testing process, the digital output interface can accurately evaluate the digital input function of the DUT, ensuring the integrity of the interface function of the hardware device before it leaves the factory.
[0049] In some embodiments, the digital input interface is an 8-channel optocoupler input interface, each optocoupler input interface is independent of each other, and the internal and external isolation voltage of the optocoupler is 3750V.
[0050] It should be noted that the digital input interface is a key component of the automated testing device for the electrical interfaces of hardware devices, used to test the digital output interface functions of the device under test. The digital input interface achieves electrical isolation through optocoupler isolation technology, ensuring the safety and reliability of the testing process. In this invention, the digital input interface includes eight optocoupler input interfaces, each independent of the others, with an internal and external isolation voltage of 3750V. This design allows the testing device to test multiple digital output interfaces simultaneously, while ensuring the stability and safety of signal transmission.
[0051] Specifically, each optocoupler input interface of the digital input interface is independent, meaning that each channel can receive and monitor signals independently without interference. The optocoupler isolation voltage is a crucial parameter of the optocoupler input interface, representing the maximum voltage difference the optocoupler can withstand, ensuring the safety of signal transmission in high-voltage environments. In this invention, the internal and external isolation voltage of the optocoupler is 3750V, indicating that the interface can operate normally under voltage differences up to 3750V, effectively preventing high-voltage signals from harming the testing equipment and operators. Furthermore, the working principle of the optocoupler input interface is based on the transmission of optical signals. The optocoupler device converts electrical signals into optical signals and then back into electrical signals, thereby achieving electrical isolation. This isolation method effectively avoids electromagnetic interference, improving the accuracy and reliability of the test.
[0052] Preferably, during actual testing, the operation of the digital input interface can be achieved through the following steps: First, the core control unit 8 sends a control signal to the device under test (DUT) via the digital output interface, triggering the DUT's digital output interface to generate a response signal. Upon receiving the control signal, the DUT's digital output interface outputs corresponding high and low level signals. These signals are transmitted to the core control unit 8 of the testing device via the optocoupler input interface. The core control unit 8 analyzes the received signals to determine if the DUT's digital output interface is functioning correctly. If the received signal matches expectations, the DUT's digital output interface is functioning correctly; if the signal is abnormal or no signal is received, the core control unit 8 will trigger a red LED indicator to illuminate, reminding the operator that the DUT's digital output interface may be faulty. Through this detailed testing process, the digital input interface can accurately evaluate the DUT's digital output function, ensuring the integrity of the hardware's interface function before it leaves the factory.
[0053] In some embodiments, one channel of the RS485 serial port test interface 4 is used to communicate with the test host, and the other channel is used to test the RS485 interface function of the device under test.
[0054] It should be noted that the RS485 serial port test interface 4 in this invention has a dual function: on the one hand, it is used to communicate with the test host, and on the other hand, it is used to test the RS485 interface function of the device under test. This design allows the test device to perform functional integrity testing on the RS485 interface of the hardware device while interacting with the test host. By rationally allocating the functions of the interface, the test device can efficiently complete the test task while ensuring the stability and reliability of the test process.
[0055] Specifically, the RS485 serial port test interface 4 includes two independent RS485 interfaces, each with a baud rate flexibly configurable within the range of 9600 to 460800. The first RS485 interface is used to communicate with the test host, its main function being to receive commands from the test host and feed back the status and test results of the test device to the test host. The second RS485 interface is used to test the RS485 interface function of the device under test (DUT), verifying its communication capability by sending test messages and receiving responses from the DUT. Baud rate is a crucial parameter in RS485 interface communication, representing the number of bits transmitted per second and determining the communication speed and efficiency. In this invention, the baud rate of each RS485 interface is configurable from 9600 to 460800, meaning that the test device can flexibly adjust the baud rate according to the communication protocol and requirements of the DUT to ensure the accuracy and reliability of communication.
[0056] Preferably, during actual testing, the operation of the RS485 serial port test interface 4 can be achieved through the following steps: First, the core control unit 8 receives instructions from the test host through the first RS485 interface to determine the baud rate and test content of the RS485 interface of the device under test. Then, the core control unit 8 configures the second RS485 interface according to these parameters and sends test messages to the device under test through this interface. After receiving the message, the device under test processes it according to its communication protocol and returns a response signal. The core control unit 8 receives and analyzes the response signal to determine whether the RS485 interface of the device under test is functioning normally. If the response signal meets expectations, it indicates that the RS485 interface of the device under test is functioning normally; if the response signal is abnormal or no response is received, the core control unit 8 will trigger a red LED indicator to light up, reminding the operator that the RS485 interface of the device under test may be faulty. In addition, to further improve the flexibility of testing, the testing device can also dynamically adjust the baud rate and communication protocol of each RS485 interface according to different test scenarios to adapt to the testing needs of various hardware devices.
[0057] In some embodiments, the yellow LED indicator of the status indicator LED module 1 indicates the start of the test, the blue LED indicator indicates the running status, the green LED indicator indicates the end of the test, and the red LED indicator indicates the abnormal test status.
[0058] It should be noted that the status indicator LED module 1 is an important component of the automated testing device for the electrical interface of the hardware equipment, used to intuitively display the operating status of the testing device. This module uses LEDs of different colors to indicate various states during the testing process, helping operators quickly understand the current working status of the testing device. In this invention, the status indicator LED module 1 includes four colors of LEDs: yellow, blue, green, and red, corresponding to the start of testing, running, end of testing, and abnormal testing status, respectively. This design allows operators to promptly grasp the operating status of the testing device by observing the color changes of the LEDs without touching the equipment, thereby improving testing efficiency and operational safety.
[0059] Specifically, each color of LED in the status indicator LED module 1 has a clear meaning: a yellow LED indicates that the test device is in the start-up state, meaning the test device has been started and is ready to begin the test task; a blue LED indicates that the test device is in the running state, meaning the test device is executing the test task; a green LED indicates that the test device is in the test completion state, meaning the test task has been completed and the result is normal; and a red LED indicates that the test device is in the test abnormal state, meaning an error or fault was detected during the test. The status of these LEDs is controlled by the core control unit 8 based on the test procedure and detection results. For example, when the test device starts, the core control unit 8 will trigger the yellow LED to light up; when the test task begins execution, the core control unit 8 will trigger the blue LED to light up; when the test task is completed and no abnormality is detected, the core control unit 8 will trigger the green LED to light up; if an abnormality is detected during the test, the core control unit 8 will trigger the red LED to light up. In this way, the status indicator LED module 1 can provide clear visual feedback to the operator.
[0060] Preferably, in practical applications, the status indicator LED module 1 can be programmed to implement more complex indication functions. For example, different types of anomalies can be further distinguished by the flashing frequency of the LED. If the red LED flashes at a low frequency, it indicates an interface communication anomaly; if it flashes at a high frequency, it indicates a hardware failure. Furthermore, the brightness of the LED can be adjusted according to actual needs to adapt to different working environments. For example, in dimly lit environments, the brightness of the LED can be appropriately increased to ensure that operators can clearly see the indicated status. Through these optimized designs, the status indicator LED module 1 can more flexibly adapt to different testing scenarios, providing operators with more accurate and intuitive status feedback.
[0061] The above embodiments of the present invention have the following beneficial effects: The present invention can integrate multiple electrical interface testing functions into one unit. Through the core control unit 8, it coordinates modules such as RS232 / RS485 serial port testing and digital input / output testing to achieve automated testing of hardware device interface functions. The use of the AT32F415CBT7 high-performance microcontroller can improve test response speed and processing power, and its maximum operating frequency of 150MHz ensures the real-time performance and reliability of the testing process. The multi-channel isolated digital interface design can prevent signal interference, and the high isolation voltage of 3750V ensures test safety.
[0062] The adjustable baud rate serial port test interface can adapt to the testing needs of devices with different communication standards, and the two RS485 interfaces can simultaneously realize host communication and device testing functions. Four-color LED status indicators can intuitively display test progress and abnormal conditions, and the idle detection module 7 with limit switch design can automatically identify the test station status. A 24V power interface powered by the ejector pins can provide a stable power supply to the device under test. The overall modular design can significantly improve batch testing efficiency and reduce manual operation costs.
[0063] Furthermore, the storage medium in the embodiments of this application stores program instructions capable of implementing all the above methods. These program instructions can be stored in the storage medium in the form of a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or terminal devices such as computers, servers, mobile phones, and tablets.
[0064] The above description is merely an explanation of some preferred embodiments of the present invention and the technical principles employed. Those skilled in the art should understand that the scope of the invention as described in the embodiments of the present invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of the present invention.
Claims
1. An automated testing device for electrical interfaces of hardware devices, characterized in that, It includes a core control unit, an RS232 serial port test interface, an RS485 serial port test interface, a digital input interface, a digital output interface, a power input interface for the device under test, a status indicator LED module, and an idle detection module; The core control unit is electrically connected to the RS232 serial port test interface, RS485 serial port test interface, digital input interface, digital output interface, status indicator LED module and idle detection module; The power input interface of the device under test provides 24V input power to the device under test through a pin.
2. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The core control unit uses an AT32F415CBT7 microcontroller, which is an ARM 32-bit Cortex-M4 CPU with a maximum operating frequency of 150MHz.
3. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The status indicator LED module includes four LED indicators: a yellow LED indicator, a blue LED indicator, a green LED indicator, and a red LED indicator, used to indicate the test status.
4. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The idle detection module includes a limit switch, and the pin conduction state of the limit switch is used to detect whether the test unit is idle.
5. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The RS485 serial port test interface includes two RS485 interfaces, and the baud rate of each RS485 interface can be configured from 9600 to 460800.
6. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The RS232 serial port test interface includes one RS232 interface with a baud rate configurable from 9600 to 235000.
7. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The switch output interface is an 8-channel optocoupler output interface, each of which is independent of each other, and the internal and external isolation voltage of the optocoupler is 3750V.
8. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The digital input interface is an 8-channel optocoupler input interface, each of which is independent of each other, and the internal and external isolation voltage of the optocoupler is 3750V.
9. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, One of the RS485 serial port test interfaces is used to communicate with the test host, and the other is used to test the RS485 interface function of the device under test.
10. The automated testing device for electrical interfaces of hardware devices according to claim 1, characterized in that, The status indicator LED module has a yellow LED indicator to indicate the start of the test, a blue LED indicator to indicate the running status, a green LED indicator to indicate the end of the test, and a red LED indicator to indicate an abnormal test status.
Citation Information
Cited By
RS232 interface function detection system and method and storage medium
CN121958007A
Function detection system, method and storage medium for rs232 interface
CN121958007B