Equipment automatic power-on and power-off test system supporting multi-mode control
By designing an automatic power-on-off test system for equipment that supports multi-mode control, the problems of inefficiency and insufficient intelligent management in traditional device testing and program upgrade methods are solved, and efficient and intelligent multi-device collaboration and multi-path transmission and diffusion upgrades in complex environments are achieved.
Patent Information
- Application Number
- CN202411838203.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional equipment testing and program upgrade methods have inefficient efficiency, cumbersome operations, lack of intelligent management, single upgrade methods, and the inability to meet the needs of multi-path transmission and diffusion upgrades in complex environments.
Design an automatic power-on-off test system for equipment that supports multi-mode control, including manual, fixed, random and interrupt modes, adopts wireless communication, automatic feedback, diffusion program upgrade and intelligent classification display functions to optimize the test process and achieve efficient collaboration of multiple devices.
It improves the efficiency and intelligence of equipment testing and upgrading, simplifies operational steps, realizes efficient collaboration among multiple devices, and meets the efficiency and diversified needs of modern electronic equipment testing.
Smart Images

Figure CN119717762A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of electronic equipment, and more specifically, to an automatic power-on and power-off testing system for equipment supporting multi-mode control. Background Art
[0002] With the widespread application of electronic devices and technological iteration, device testing plays a vital role in product development and quality control. Among them, software program upgrades and performance verification tests are the core links to ensure device stability and functional integrity. However, traditional testing and program upgrade methods have the following main problems:
[0003] 1. Inefficiency and cumbersome operation: Traditional program upgrades and device testing usually rely on manual operations. Testers need to connect devices one by one to complete upgrades or tests, which is cumbersome and repetitive. This not only wastes human resources, but also increases the risk of operational errors, affecting the efficiency and accuracy of device testing and upgrades.
[0004] 2. Lack of intelligent management: Traditional test equipment is mostly stand-alone, making it difficult to achieve collaborative management and information synchronization between devices. For a test environment consisting of multiple devices, it is impossible to effectively achieve data sharing, classified display, and centralized management, which is particularly evident in large-scale equipment testing.
[0005] 3. Single program upgrade method: Multiple devices are usually upgraded one by one, which cannot meet the multi-path transmission and diffusion upgrade requirements in complex environments. When the number of test devices is large, the upgrade time increases exponentially, significantly reducing the test efficiency.
[0006] 4. Complex and diverse test scenarios: The testing requirements for modern electronic equipment are becoming increasingly diverse, and traditional methods are difficult to cope with. For example, it is necessary to simulate complex communication networks, dynamically distribute data packets, or dynamically classify and display device status through feedback mechanisms. These requirements pose a high challenge to traditional technologies.
[0007] In order to solve the above problems and improve the efficiency and intelligence of electronic equipment testing and upgrading, this patent proposes a multi-device intelligent testing system with wireless communication, automatic feedback, diffusion program upgrading, and intelligent classification display functions. The system can optimize the test process, simplify the operation steps, realize efficient collaboration of multiple devices, and meet the efficiency and diversification needs of modern electronic equipment testing. Summary of the invention
[0008] In view of the problems of low manual operation efficiency, low automation, single mode, etc. in the prior art, the purpose of this application is to propose an automatic power-on and power-off test system for equipment that supports multi-mode control, including:
[0009] A multi-mode control system that supports manual, fixed, random and interrupt modes, can be flexibly switched according to different test requirements and has strong adaptability.
[0010] A test process for an automatic power-on and power-off test system for equipment that supports multi-mode control. The automatic mode system automatically performs tests according to a preset power-on and power-off sequence, which is suitable for batch testing; the random mode can simulate a power fluctuation test scenario that is closer to actual working conditions; the interrupt mode effectively detects the startup status of the device under test to ensure the reliability of the test process.
[0011] The specific plan is as follows:
[0012] The invention discloses an automatic power-on and power-off test system for equipment supporting multi-mode control, which can be flexibly switched according to different test requirements and has strong adaptability.
[0013] A test process for an automatic power-on and power-off test system for equipment that supports multi-mode control. The manual mode retains traditional operations; the fixed mode system automatically performs tests according to a preset power-on and power-off sequence, which is suitable for batch testing; the random mode can simulate a power fluctuation test scenario that is closer to actual working conditions; the interrupt mode effectively detects the startup status of the device under test to ensure the reliability of the test process.
[0014] A multi-mode control system supporting manual, fixed, random and interruption modes includes a hardware part and a software part.
[0015] The hardware part includes power management module, main control module, integrated display and control screen, sensor module, relay module, hub module, tested equipment, alarm module, WiFi module, and communication module;
[0016] The power management module includes a 220V to 24V transformer, a voltage-stabilized power supply circuit, and a backup power supply switching module; the main control module includes a microcontroller circuit and a CAN transceiver;
[0017] Furthermore, the integrated display and control screen includes a touch screen circuit; the relay module includes a relay drive circuit; the alarm module includes a buzzer circuit; the WiFi module includes a router; the communication module includes a mobile terminal and a PC terminal;
[0018] Furthermore, in the power management module, the 220V to 24V transformer converts the 220V mains electricity to provide a 24V DC power supply connected to the voltage-stabilized power supply circuit; the voltage-stabilized power supply circuit uses a linear regulator to provide a stable voltage for the microcontroller circuit, relay module and other circuits; when the main power supply is cut off, the backup power supply switching module automatically switches to the built-in backup power supply to ensure that the tested equipment can continue to operate;
[0019] Furthermore, in the main control module, the GPIO pin of the microcontroller is connected to the input end of the relay drive circuit through a resistor to control the closing and opening of the relay; the CAN_TX and CAN_RX pins of the microcontroller are connected to the CAN transceiver to receive and parse CAN data; the microcontroller communicates with the touch screen through UART, I2C or SPI to receive user input; the GPIO pin of the microcontroller is connected to the buzzer circuit control end to trigger an alarm; the CAN_H and CAN_L contacts of the CAN transceiver are connected to the external CAN bus, and the TXD and RXD pins of the CAN transceiver are respectively connected to the CAN_RX and CAN_TX pins of the microcontroller;
[0020] Furthermore, the integrated display and control screen can set the mode for equipment testing, and can display test data such as the current time, total power-on and power-off times, and test operation status;
[0021] Furthermore, the relay module includes a relay drive circuit and a voltage detection circuit; the relay drive circuit uses MOSFET to drive the relay coil, the GPIO pin of the microcontroller is connected to the gate of the MOSFET through a current limiting resistor, the drain of the MOSFET is connected to one end of the relay coil, the other end of the relay is connected to the power supply, and the normally open contact of the relay is used to control the power supply output; the voltage detection circuit adds an ADC module to the output end of the relay to detect whether the power supply is output normally, and at the same time converts the detected voltage signal into a digital signal, and then transmits it to the control circuit through optical coupling isolation to protect the main control module from high voltage interference;
[0022] Furthermore, in the alarm module, a passive buzzer is used, and a MOSFET driving the buzzer is controlled by a microcontroller; the input end of the passive buzzer is connected to a PWM output pin of the microcontroller;
[0023] Furthermore, the WiFi module is based on the ESP8266 with a single-core CPU and uses the ASUS RT-AX86U router as the central communication node, which supports stable connection of more than 50 devices, can be remotely managed through the App, and supports Mesh network expansion;
[0024] Furthermore, the device under test is equipped with a wireless communication module compatible with the system, and also provides power supply and control interface for receiving control signals or sending data;
[0025] Furthermore, the software part includes a signal and control system, which includes an automatic control program and a CAN external bus; the automatic control program presets the operation steps of various test modes and can be programmed according to user needs to automatically perform complex power-on and power-off tests;
[0026] Furthermore, the software part includes a data acquisition and monitoring system, which monitors the power status and equipment operation status in real time, and records the test data for subsequent analysis and optimization; the data acquisition and monitoring system includes an intelligent algorithm and a cloud server, and the intelligent algorithm is used by the cloud server to analyze and organize the data uploaded to the cloud server and feed it back to the communication module.
[0027] Furthermore, the cloud server transmits information to the communication module, the main control module, and the tested device through the wireless module; the tested device feeds back the status of each device to the cloud server, and the device status includes the number of tests, the test status, the progress of the test steps, and fault information; the status information fed back to the cloud server can be updated and displayed in real time on the communication module or the integrated display and control screen.
[0028] Furthermore, a multi-mode control system supporting manual, fixed, random and interruption modes can automatically identify and classify different types of tested equipment;
[0029] Furthermore, a product type identification field is added to the data packet transmitted between the tested device and the main control module in the system. The data packet header contains product type information, and the display main control can automatically classify and display it on the display screen accordingly, thereby helping the operator to quickly understand the working status of the device.
[0030] Furthermore, the system designs a diffusion program upgrade method that supports the push and distribution of program versions through wireless or wired networks;
[0031] Furthermore, the specific implementation steps of the method are:
[0032] S1: Program Distribution
[0033] The master device sends the complete upgrade program or fragmented data to device No. 1 through the wireless module. After receiving the data, each device uses a verification algorithm to verify the integrity of the data. If the verification is successful, the data is stored and passed to the next device to ensure step-by-step distribution; if the verification fails, the data is discarded and requested to be resent to ensure accurate data transmission.
[0034] S2: Feedback mechanism and troubleshooting
[0035] After successfully receiving data, each device will send a feedback signal to the upper-level device or the master device to confirm the reception status. If data reception fails or the link is interrupted, the device will generate a fault feedback signal and upload it to the cloud server. The server or master device will take resending or remote control measures based on the feedback information to ensure a smooth upgrade process.
[0036] S3: Parallel diffusion mode
[0037] The system supports multi-path parallel transmission to improve upgrade efficiency. When the network supports it, device 1 can transmit data to device 4 and device 2 at the same time, reducing upgrade time. Each device will feedback status information separately after receiving data, and the master device or cloud server will summarize the feedback to ensure transmission integrity.
[0038] S4: Fault status monitoring and information feedback
[0039] The system monitors the status of devices in parallel paths in real time to ensure that upgrades can continue through normal paths when a fault occurs. Fault information is fed back to the cloud server through the original path and displayed in real time on the communication device and integrated screen, helping technicians to quickly identify and handle problems, ensuring efficient and stable operation of the upgrade process.
[0040] Furthermore, the master control device process in the method is: broadcast the upgrade command to notify device No. 1 to enter the upgrade mode; send the program in slices and wait for the confirmation signal of each slice; record the completed devices and handle the failed retransmission;
[0041] Furthermore, the process of the device under test in the method is: after entering the upgrade mode, prepare to receive data; receive and store program fragments, and forward them to the next device after verification; after receiving the upgrade completion signal, restart and load the new program;
[0042] Furthermore, the method has the following optimization mechanisms: it can resume downloading from breakpoints, record the current upgrade progress, and avoid repeated downloading of completed parts; it can be multi-threaded concurrently, and in the topology, multiple links can concurrently perform program diffusion; it has a rollback mechanism, and when the upgrade fails, the device can automatically restore to the previous version.
[0043] A test process of an automatic power-on and power-off test system for equipment supporting multi-mode control, including a manual mode, a fixed mode, a random mode and an interrupt mode.
[0044] Furthermore, the manual mode allows the user to manually control the power on and off by touching a button, and the process is as follows:
[0045] In manual mode, users make selections and operations through the cloud server and the integrated display and control screen.
[0046] Start: Select manual mode on the integrated control screen, and the system initializes the communication module through the cloud server.
[0047] Waiting for user input: The system waits for the user to operate by touching the button, and the cloud server records the current standby state.
[0048] The user presses the "power on" button: the main control module receives the user's command through the communication module, the GPIO outputs a high level, the control relay closes, and the power is turned on; at the same time, the cloud server synchronously updates the status to the PC and mobile terminals.
[0049] The user presses the "power off" button: the main control module receives the power off command, the GPIO outputs a low level, the control relay is disconnected, and the power is disconnected; the status changes are fed back to the cloud server in real time for remote monitoring.
[0050] End or Continue: The system can choose to end the mode or continue to wait for the next input, and the cloud server synchronizes the status update.
[0051] Furthermore, the fixed mode automatically performs power-on and power-off operations at preset fixed time intervals, and the process is as follows:
[0052] Start: The user selects a fixed mode through the integrated screen, and the system sends a mode switching notification to the cloud server.
[0053] Set fixed time parameters: Users set fixed time and upload configuration parameters to the cloud server for backup.
[0054] Start loop: The system enters loop mode and the cloud server synchronizes execution information.
[0055] Power on: GPIO pin outputs high level, relay closes, power is turned on; status is updated to the cloud server and displayed in real time.
[0056] Waiting time for power-on: The system remains powered on for the set time, and the cloud server records the current process.
[0057] Power off: GPIO pin outputs low level, relay is disconnected, power is disconnected; cloud server updates power off status.
[0058] Determine whether to continue the cycle: If so, return to the "power on" step, otherwise end the mode and the cloud notifies all terminal devices of the completion status.
[0059] Furthermore, the random mode randomly selects the duration of power on and off within a set time interval, and each power on and off duration is randomly generated within the set interval. The process is as follows:
[0060] Start: The display and control integrated screen selects the random mode, and the cloud server receives the mode switching command.
[0061] Set random time interval: The user enters the minimum and maximum time values, and the parameters are synchronized to the cloud through the communication module.
[0062] Generate random time: The system generates random power-on duration, and the cloud server records the generated data.
[0063] Power on: The main control module outputs a high level through GPIO, and the relay is closed; the status is synchronized with the cloud and displayed in real time.
[0064] Waiting for a random time: The system waits for a random time for the power-on status and the cloud server to synchronize the process information.
[0065] Power off: The GPIO pin outputs a low level, the relay is disconnected, and the cloud updates the power off status.
[0066] Determine whether to continue the loop: If so, return to the "Generate Random Time" step; otherwise, end the mode and the cloud will synchronize the termination information.
[0067] Furthermore, the interrupt mode monitors the specified protocol data on the CAN bus after power-on, and performs power-off only after receiving it; if not received, the power-on state is maintained and a warning is issued through a buzzer to remind the technician to perform analysis; the process is as follows:
[0068] Start: The display and control integrated screen selects the interrupt mode, and the cloud server and communication module start synchronization.
[0069] Power on: The GPIO pin outputs a high level and the relay closes; the status is fed back to the cloud and updated to the terminal device in real time.
[0070] Start CAN monitoring and timeout timing: The system starts CAN bus monitoring, and the cloud server receives device status in real time.
[0071] Receiving CAN data: The cloud server and the main control device cooperate to verify the data protocol, and power off if it meets the requirements.
[0072] Power off: GPIO pin outputs low level, the relay is disconnected; the cloud records and feeds back to all terminal devices.
[0073] Data does not conform or time out: If the data is not received or does not conform to the protocol, the cloud remains powered on and the main control module controls the buzzer to issue a warning. The technician receives a reminder from the cloud and analyzes and intervenes in the fault.
[0074] End or wait for intervention: The system maintains the current state, waiting for user operation or technical intervention, and the cloud server updates feedback in real time.
[0075] Compared with the prior art, the present invention has the following beneficial effects:
[0076] (1) Remote monitoring and remote decision-making: Through the wireless network, the cloud server can remotely send commands to the tested equipment and receive feedback data to achieve efficient monitoring and decision-making. The feedback data package contains key information such as product type. The cloud server automatically classifies and processes it, and transmits the equipment status to the communication module and the integrated display and control screen in real time, so that the operator can intuitively understand the equipment operation status. This wireless connection method simplifies wiring and improves system flexibility and ease of operation.
[0077] (2) Improve efficiency and have strong scalability: Through wireless communication modules and parallel diffusion program upgrade technology, the system can distribute upgrade programs to multiple devices at the same time, significantly shortening the time for multi-device testing and upgrades and improving work efficiency. It supports multi-device collaborative program upgrades, has flexible expansion capabilities, can adapt to testing needs of different scales and scenarios, and provides good compatibility for future technological development.
[0078] (3) Automated testing and performance evaluation: The present invention supports power-on and power-off operations in preset and random modes, and can automatically test and display the results in real time. The fixed mode runs according to preset parameters to reduce manual intervention; the random mode simulates unstable conditions to identify potential problems; the interrupt mode detects the startup status of the device, alarms and feedbacks problems when abnormal, to prevent damage or danger. The system can record key parameters such as the number of power-on and power-off times and power-on duration and automatically generate reports to improve test efficiency, which is suitable for large-scale equipment testing scenarios.
[0079] (4) Abnormal detection and fault reproduction: For equipment that has experienced abnormal power-on during production or use, the present invention can reproduce the problem through automatic cycle of power-on and power-off operations. When the problem occurs again, the system can automatically stop the power-off operation and retain the fault scene. This function can effectively help technicians analyze the fault phenomenon and find the root cause of the problem, thereby improving the reliability and stability of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 The present invention is an overall schematic diagram of an automatic power-on and power-off testing system for equipment supporting multi-mode control.
[0081] Figure 2 The present invention is a schematic diagram of software and hardware of an automatic power-on and power-off test system for equipment supporting multi-mode control.
[0082] Figure 3 This is a diffusion program upgrade method of the present invention.
[0083] Figure 4 This is a manual mode flow chart of a device automatic power on and off test system supporting multi-mode control according to the present invention.
[0084] Figure 5The present invention is a fixed mode flow chart of a device automatic power on and off test system supporting multi-mode control.
[0085] Figure 6 The present invention is a random mode flow chart of a device automatic power on and off test system supporting multi-mode control.
[0086] Figure 7 This is an interrupt mode flow chart of an automatic power-on and power-off test system for equipment supporting multi-mode control according to the present invention. DETAILED DESCRIPTION
[0087] The present invention will be further described in detail below in conjunction with embodiments and figures, but the embodiments of the present invention are not limited thereto.
[0088] like Figure 1 The present invention is an overall schematic diagram of an automatic power-on and power-off testing system for equipment supporting multi-mode control.
[0089] A test system for automatic power on and off of equipment that supports multi-mode control uses a relay control method: the test product is connected to a relay, and the relay's opening and closing time is controlled according to a preset program. For example, when performing an overvoltage test, this method can be used to simulate abnormal conditions such as power supply voltage, and repeat the test. In the rigorous testing process, it is necessary to ensure that the number of tests reaches thousands or even tens of thousands to confirm the stability and reliability of electronic products.
[0090] The 220V mains electricity is converted through a 220V to 24V transformer to provide a 24V DC power supply. This part of the circuit is responsible for providing the operating voltage for the entire system. In order to ensure that the equipment can continue to operate in the event of a power outage, the present invention improves the 220V to 24V transformer and designs a function that automatically switches to a backup power supply. Specifically, when the main power supply is cut off, the system automatically switches to the backup power supply to ensure that the equipment continues to operate uninterruptedly and avoid power outages during the test. The integrated display and control screen is powered by a 24V power supply and integrates the display and control functions.
[0091] The present invention proposes a solution for connecting a display-control integrated screen with a tested device through a wireless connection, wherein the display-control integrated screen performs data transmission and control signal interaction with the tested device through Wi-Fi or Bluetooth wireless communication technology, thereby avoiding the limitations of traditional wired connections and improving the flexibility and convenience of the system.
[0092] The present invention sets a relay module between the display and control integrated screen and the device under test to monitor the power output status of the device. The relay module transmits normal or abnormal power information to the display and control integrated screen through feedback signals, so that the operator can grasp the power status of the device in real time and take measures to troubleshoot the fault in time. At the same time, the relay is responsible for the actual power on and off operation. When the control screen outputs a high-level signal, the relay is closed, thereby connecting the power supply of the device under test; when a low-level signal is output, the relay is disconnected, cutting off the power supply of the device under test. The control input of the relay comes from the high-level output of the display and control integrated screen. The hub can connect multiple devices under test and can realize synchronous power on and off operations on multiple devices. After receiving the control signal of the relay, the hub distributes power to each connected test device. After the device under test is connected to the hub, it receives power through the hub. Each power on and off operation will affect these devices, and the system can simulate the power change scenario in actual use through these operations.
[0093] The present invention designs a diffusion program upgrade method in the tested device, which supports the push and distribution of program versions through wireless or wired networks. After the master device receives the new program version, the system will automatically distribute the program to each submodule, ensuring that the device's program update is efficient and seamless, and supports parallel upgrades of multiple devices.
[0094] like Figure 2 The present invention is a schematic diagram of software and hardware of an automatic power-on and power-off test system for equipment supporting multi-mode control.
[0095] The hardware part includes power management module, main control module, integrated display and control screen, sensor module, relay module, hub module, tested equipment, alarm module, WiFi module and communication module.
[0096] The power management module includes a 220V to 24V transformer, a voltage-stabilized power supply circuit, and a backup power supply switching module; the main control module includes a microcontroller circuit and a CAN transceiver.
[0097] The integrated display and control screen includes a touch screen circuit; the relay module includes a relay drive circuit; the alarm module includes a buzzer circuit; the WiFi module includes a router; and the communication module includes a mobile terminal and a PC terminal.
[0098] In the power management module, the 220V to 24V transformer converts the 220V mains power to provide a 24V DC power supply connected to the voltage-stabilized power supply circuit; the voltage-stabilized power supply circuit uses a linear regulator to provide a stable voltage for the microcontroller circuit, relay module and other circuits; when the main power supply is cut off, the backup power supply switching module automatically switches to the built-in backup power supply to ensure that the tested equipment can continue to operate.
[0099] In the main control module, the GPIO pin of the microcontroller is connected to the input end of the relay driving circuit through a resistor to control the closing and opening of the relay; the CAN_TX and CAN_RX pins of the microcontroller are connected to the CAN transceiver to receive and parse CAN data; the microcontroller communicates with the touch screen through UART, I2C or SPI to receive user input; the GPIO pin of the microcontroller is connected to the buzzer circuit control end to trigger an alarm; the CAN_H and CAN_L contact pins of the CAN transceiver are connected to the external CAN bus, and the TXD and RXD pins of the CAN transceiver are respectively connected to the CAN_RX and CAN_TX pins of the microcontroller.
[0100] The integrated display and control screen can set the mode for equipment testing and can display test data such as current time, total power on and off times, and test operation status.
[0101] The relay module includes a relay drive circuit and a voltage detection circuit; the relay drive circuit uses MOSFET to drive the relay coil, the GPIO pin of the microcontroller is connected to the gate of the MOSFET through a current limiting resistor, the drain of the MOSFET is connected to one end of the relay coil, the other end of the relay is connected to the power supply, and the normally open contact of the relay is used to control the power supply output; the voltage detection circuit adds an ADC module to the output end of the relay to detect whether the power supply is output normally, and at the same time converts the detected voltage signal into a digital signal, which is then transmitted to the control circuit through optical coupling isolation to protect the main control module from high voltage interference.
[0102] In the alarm module, a passive buzzer is used to drive the MOSFET of the buzzer, which is controlled by a microcontroller; the input end of the passive buzzer is connected to the PWM output pin of the microcontroller.
[0103] The WiFi module is based on the single-core CPU ESP8266 and uses the ASUS RT-AX86U router as the central communication node. It supports stable connection of more than 50 devices, can be remotely managed through the App, and supports Mesh network expansion.
[0104] The device under test is equipped with a wireless communication module that is compatible with the system and provides power supply and control interface for receiving control signals or sending data.
[0105] The software part includes a signal and control system, which includes an automatic control program and a CAN external bus; the automatic control program presets the operating steps of various test modes and can be programmed according to user needs to automatically perform complex power-on and power-off tests.
[0106] The software part includes a data acquisition and monitoring system, which monitors the power status and equipment operation status in real time, and records the test data for subsequent analysis and optimization; the data acquisition and monitoring system includes an intelligent algorithm and a cloud server, and the intelligent algorithm is used by the cloud server to analyze and organize the data uploaded to the cloud server and feed it back to the communication module.
[0107] The cloud server establishes a stable two-way data transmission channel with the communication module, the main control module, and the tested device through the wireless communication module. The tested device transmits the operating status data to the cloud server in real time in a predefined data packet format through the wireless module to ensure the reliability and timeliness of information interaction.
[0108] The tested device will actively feed back key information during the test to the cloud server each time an operation is completed or the status changes. The feedback includes but is not limited to:
[0109] Number of tests: record the total number of tests the equipment has completed for easy statistics and traceability.
[0110] Test status: Real-time update of whether the current test is running normally, such as "in progress", "completed" or "interrupted".
[0111] Test step progress: Detailed record of the specific steps in the current test process to help technicians accurately locate the test progress.
[0112] Fault information: When the device detects an abnormal situation, it automatically generates a fault report, including the fault type, occurrence time, impact range, etc., to provide a basis for subsequent analysis and maintenance.
[0113] The system of the present invention can automatically identify and classify different types of tested devices. A product type identification field is added to the data packet transmitted between the tested device and the main control module in the system. The data packet header contains product type information, and the display main control can automatically classify according to the information and display it accordingly on the display screen, thereby helping the operator to quickly understand the working status of the device.
[0114] like Figure 3 This is a diffusion program upgrade method of the present invention. The system of the present invention designs a diffusion program upgrade method, which supports the push and distribution of program versions through wireless or wired networks;
[0115] The specific implementation steps of the method are:
[0116] S1: Program Distribution
[0117] The master device pushes the complete upgrade program or fragmented data to the first device (such as device No. 1) in the device chain under test through the wireless module. The specific process is as follows:
[0118] Data transmission from the master device: The master device encapsulates the upgrade program or fragmented data in a specific format and sends it to device No. 1 according to the set transmission protocol.
[0119] Data reception and verification: After receiving the data, device 1 uses the verification algorithm preset by the cloud server to verify the data integrity.
[0120] Verification successful: Device 1 stores the data and passes it on to the next device (such as device 2).
[0121] Verification failed: Device 1 discards the data and requests the master device to resend it to ensure data accuracy.
[0122] Circular transmission: This process is passed step by step in the link until all devices receive the complete program data.
[0123] S2: Feedback mechanism and troubleshooting
[0124] After successfully receiving and storing the data, the device sends a feedback signal to the upper-level device or the master device to confirm the data reception.
[0125] Success feedback: After completing data reception, each device promptly transmits a "successful reception" signal to the upper level to ensure the integrity of the link.
[0126] Failure feedback and link interruption processing: If a device fails to receive data or the link is interrupted, the system will generate a fault feedback signal and upload it to the cloud server. The cloud server determines the fault location based on the feedback information, and remotely controls through related communication equipment, or notifies the main control device to resend the upgrade data to ensure the continuity and reliability of the program upgrade.
[0127] S3: Parallel diffusion mode
[0128] To improve the upgrade efficiency, the system supports multi-path transmission, that is, multiple devices can receive data at the same time if the network topology allows. The specific process is as follows:
[0129] Multipath identification: Device 1 identifies its parallel connection channels with devices 4 and 2, and determines whether the network supports multipath transmission.
[0130] Parallel data transmission: When conditions are met, device 1 pushes data to device 4 and device 2 at the same time, achieving parallel diffusion and reducing upgrade time.
[0131] Parallel feedback aggregation: After receiving data, each device will feedback the success or failure status. The master device or cloud server will aggregate and process the feedback information to ensure the integrity of each path.
[0132] S4: Fault status monitoring and information feedback
[0133] The system is designed with real-time status monitoring and fault handling mechanisms to ensure the stability of program upgrades and the safety of equipment operation:
[0134] Multipath fault handling: When device 4 or device 2 fails during parallel transmission, device 1 can continue to spread the upgrade data to other devices through the normal path, avoiding upgrade interruption caused by a single point of failure.
[0135] Feedback signal transmission: The status information of the faulty device is returned to the cloud server through the original path of device No. 1. The cloud records the fault information in real time and pushes it to the communication device.
[0136] Real-time information display and identification and processing: Equipment status information is displayed in real time on the communication equipment and integrated screen, including reception status, fault location and processing suggestions, for technicians or the system to automatically identify and make processing decisions quickly to ensure efficient operation of the upgrade process.
[0137] The process of the master device in the method is: broadcast the upgrade command to notify device No. 1 to enter the upgrade mode; send the program in pieces and wait for the confirmation signal of each piece; record the completed devices and handle the failed retransmission.
[0138] The process of the tested device in the method is as follows: after entering the upgrade mode, prepare to receive data; receive and store program fragments, and forward them to the next device after verification; after receiving the upgrade completion signal, restart and load the new program.
[0139] The method has the following optimization mechanisms: it can resume downloading at breakpoints, record the current upgrade progress, and avoid repeated downloading of completed parts; it can be multi-threaded concurrently, and in the topology, multiple links can concurrently perform program diffusion; it has a rollback mechanism, and when the upgrade fails, the device can automatically restore to the previous version.
[0140] like Figure 4 This is a manual mode flow chart of a device automatic power on and off test system supporting multi-mode control according to the present invention.
[0141] Manual mode allows the user to manually control the power on and off by touching a button. The process is as follows:
[0142] In manual mode, users make selections and operations through the cloud server and the integrated display and control screen.
[0143] Start: Select manual mode on the integrated control screen, and the system initializes the communication module through the cloud server.
[0144] Waiting for user input: The system waits for the user to operate by touching the button, and the cloud server records the current standby state.
[0145] The user presses the "power on" button: the main control module receives the user's command through the communication module, the GPIO outputs a high level, the control relay closes, and the power is turned on; at the same time, the cloud server synchronously updates the status to the PC and mobile terminals.
[0146] The user presses the "power off" button: the main control module receives the power off command, the GPIO outputs a low level, the control relay is disconnected, and the power is disconnected; the status changes are fed back to the cloud server in real time for remote monitoring.
[0147] End or Continue: The system can choose to end the mode or continue to wait for the next input, and the cloud server synchronizes the status update.
[0148] like Figure 5 The present invention is a fixed mode flow chart of a device automatic power on and off test system supporting multi-mode control.
[0149] Fixed mode automatically performs power on and off operations at preset fixed time intervals. The process is as follows:
[0150] Start: The user selects a fixed mode through the integrated screen, and the system sends a mode switching notification to the cloud server.
[0151] Set fixed time parameters: Users set fixed time and upload configuration parameters to the cloud server for backup.
[0152] Start loop: The system enters loop mode and the cloud server synchronizes execution information.
[0153] Power on: GPIO pin outputs high level, relay closes, power is turned on; status is updated to the cloud server and displayed in real time.
[0154] Waiting time for power-on: The system remains powered on for the set time, and the cloud server records the current process.
[0155] Power off: GPIO pin outputs low level, relay is disconnected, power is disconnected; cloud server updates power off status.
[0156] Determine whether to continue the cycle: If so, return to the "power on" step, otherwise end the mode and the cloud notifies all terminal devices of the completion status.
[0157] like Figure 6 The present invention is a random mode flow chart of a device automatic power on and off test system supporting multi-mode control.
[0158] The random mode automatically performs power-on and power-off operations at preset fixed time intervals. The process is as follows:
[0159] Start: The display and control integrated screen selects the random mode, and the cloud server receives the mode switching command.
[0160] Set random time interval: The user enters the minimum and maximum time values, and the parameters are synchronized to the cloud through the communication module.
[0161] Generate random time: The system generates random power-on duration, and the cloud server records the generated data.
[0162] Power on: The main control module outputs a high level through GPIO, and the relay is closed; the status is synchronized with the cloud and displayed in real time.
[0163] Waiting for a random time: The system waits for a random time for the power-on status and the cloud server to synchronize the process information.
[0164] Power off: The GPIO pin outputs a low level, the relay is disconnected, and the cloud updates the power off status.
[0165] Determine whether to continue the loop: If so, return to the "Generate Random Time" step; otherwise, end the mode and the cloud will synchronize the termination information.
[0166] like Figure 7 This is an interrupt mode flow chart of an automatic power-on and power-off test system for equipment supporting multi-mode control according to the present invention.
[0167] The interrupt mode monitors the specified protocol data on the CAN bus after power-on, and powers off only after receiving it; if not received, it remains powered on and issues a warning through a buzzer to remind technicians to perform analysis; the process is as follows:
[0168] Start: The display and control integrated screen selects the interrupt mode, and the cloud server and communication module start synchronization.
[0169] Power on: The GPIO pin outputs a high level and the relay closes; the status is fed back to the cloud and updated to the terminal device in real time.
[0170] Start CAN monitoring and timeout timing: The system starts CAN bus monitoring, and the cloud server receives device status in real time.
[0171] Receiving CAN data: The cloud server and the main control device cooperate to verify the data protocol, and power off if it meets the requirements.
[0172] Power off: GPIO pin outputs low level, the relay is disconnected; the cloud records and feeds back to all terminal devices.
[0173] Data does not conform or time out: If the data is not received or does not conform to the protocol, the cloud remains powered on and the main control module controls the buzzer to issue a warning. The technician receives a reminder from the cloud and analyzes and intervenes in the fault.
[0174] End or wait for intervention: The system maintains the current state, waiting for user operation or technical intervention, and the cloud server updates feedback in real time.
[0175] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A device automatic power-on and power-off test system supporting multi-mode control, characterized in that: include: A device automatic power-on and power-off test control system that supports multi-mode control, which can be flexibly switched according to different test requirements and has strong adaptability; The system can perform data transmission and control signal interaction via a wireless network; The system contains relay feedback to grasp the power supply status of the equipment in real time and take timely measures to eliminate the fault; The system can automatically identify and classify different types of tested equipment; The system designs a diffusion program upgrade method, which supports the push and distribution of program versions through wireless or wired networks; A test process for an automatic power-on and power-off test system for equipment that supports multi-mode control. The manual mode retains traditional operations; the fixed mode system automatically performs tests according to a preset power-on and power-off sequence, which is suitable for batch testing; the random mode can simulate a power fluctuation test scenario that is closer to actual working conditions; the interrupt mode effectively detects the startup status of the device under test to ensure the reliability of the test process.
2. According to claim 1, a device automatic power on and off test system supporting multi-mode control is characterized in that: An automatic power-on and power-off test system for equipment supporting multi-mode control includes a hardware part and a software part; The hardware part includes a power management module, a main control module, a display and control integrated screen, a sensor module, a relay module, a hub module, a tested device, an alarm module, a WiFi module, and a communication module; The power management module includes a 220V to 24V transformer, a voltage-stabilized power supply circuit, and a backup power supply switching module; the main control module includes a microcontroller circuit and a CAN transceiver; the display and control integrated screen includes a touch screen circuit; the relay module includes a relay drive circuit; the alarm module includes a buzzer circuit; the WiFi module includes a router; and the communication module includes a mobile terminal and a PC terminal; In the power management module, the 220V to 24V transformer converts the 220V mains electricity to provide a 24V DC power supply connected to the voltage-stabilized power supply circuit; the voltage-stabilized power supply circuit uses a linear regulator to provide a stable voltage for the microcontroller circuit, relay module and other circuits; when the main power supply is cut off, the backup power supply switching module automatically switches to the built-in backup power supply to ensure that the tested equipment can continue to operate; In the main control module, the GPIO pin of the microcontroller is connected to the input end of the relay drive circuit through a resistor to control the closing and opening of the relay; the CAN_TX and CAN_RX pins of the microcontroller are connected to the CAN transceiver to receive and parse CAN data; the microcontroller communicates with the touch screen through UART, I2C or SPI to receive user input; the GPIO pin of the microcontroller is connected to the buzzer circuit control end to trigger an alarm; the CAN_H and CAN_L contact pins of the CAN transceiver are connected to the external CAN bus, and the TXD and RXD pins of the CAN transceiver are respectively connected to the CAN_RX and CAN_TX pins of the microcontroller; The integrated display and control screen can set the mode for equipment testing and can display test data such as current time, total power-on and power-off times, and test operation status; The relay module includes a relay drive circuit and a voltage detection circuit; the relay drive circuit uses MOSFET to drive the relay coil, the GPIO pin of the microcontroller is connected to the gate of the MOSFET through a current limiting resistor, the drain of the MOSFET is connected to one end of the relay coil, the other end of the relay is connected to the power supply, and the normally open contact of the relay is used to control the power supply output; the voltage detection circuit adds an ADC module to the output end of the relay to detect whether the power supply is output normally, and at the same time converts the detected voltage signal into a digital signal, and then transmits it to the control circuit through optical coupling isolation to protect the main control module from high voltage interference; In the alarm module, a passive buzzer is used, and the MOSFET driving the buzzer is controlled by a microcontroller; the input end of the passive buzzer is connected to the PWM output pin of the microcontroller; The WiFi module is based on the single-core CPU ESP8266 and uses the ASUS RT-AX86U router as the central communication node. It supports stable connection of more than 50 devices, can be remotely managed through the App, and supports Mesh network expansion. The device under test is configured with a wireless communication module that is compatible with the system and provides power supply and control interface for receiving control signals or sending data; The software part includes a signal and control system, which includes an automatic control program and a CAN external bus; the automatic control program presets the operation steps of various test modes and can be programmed according to user needs to automatically perform complex power-on and power-off tests; The software part includes a data acquisition and monitoring system, which monitors the power supply status and equipment operation in real time and records the test data for subsequent analysis and optimization; the data acquisition and monitoring system includes an intelligent algorithm and a cloud server, and the intelligent algorithm is used by the cloud server to analyze and organize the data uploaded to the cloud server and feed it back to the communication module; The cloud server establishes a stable two-way data transmission channel with the communication module, the main control module, and the tested device through the wireless communication module. The tested device transmits the operating status data to the cloud server in real time in a predefined data packet format through the wireless module to ensure the reliability and timeliness of information interaction; The device under test will actively feed back key information during the test to the cloud server each time an operation is completed or the status changes. The feedback includes but is not limited to: Test times: record the total number of tests completed by the equipment for easy statistics and traceability; Test status: Real-time update of whether the current test is running normally, such as "in progress", "completed" or "interrupted"; Test step progress: Detailed record of the specific steps in the current test process to help technicians accurately locate the test progress; Fault information: When the device detects an abnormal situation, it automatically generates a fault report, including the fault type, occurrence time, impact range, etc., to provide a basis for subsequent analysis and maintenance.
3. The automatic power-on and power-off test system for equipment supporting multi-mode control according to claim 1, characterized in that: The system can automatically identify and classify different types of tested equipment; In the system, a product type identification field is added to the data packet transmitted between the tested device and the main control module. The data packet header contains product type information, and the display main control can automatically classify according to the information and display it accordingly on the display screen, thereby helping the operator to quickly understand the working status of the device.
4. The automatic power-on and power-off test system for equipment supporting multi-mode control according to claim 1, characterized in that: The system designs a diffusion program upgrade method, which supports the push and distribution of program versions through wireless or wired networks; The specific implementation steps of the method are: S1: Program Distribution The master device pushes the complete upgrade program or slice data to the first device (such as device No. 1) in the device chain under test through the wireless module. The specific process is as follows: Data transmission of the master device: the master module encapsulates the upgrade program or the fragmented data in a specific format and sends it to device No. 1 according to the set transmission protocol; Data reception and verification: After receiving the data, device 1 uses the verification algorithm preset by the cloud server to verify the data integrity; Verification successful: Device 1 stores the data and passes it on to the next device (such as device 2); Verification failed: Device 1 discards the data and requests the master device to resend it to ensure data accuracy; Circular transmission: This process is passed step by step in the link until all devices receive the complete program data; S2: Feedback mechanism and troubleshooting After successfully receiving and storing the data, the device sends a feedback signal to the upper-level device or the master device to confirm the data reception; Success feedback: After completing data reception, each device promptly transmits a "successful reception" signal to the upper level to ensure the integrity of the link; Failure feedback and link interruption processing: If a device fails to receive data or the link is interrupted, the system will generate a fault feedback signal and upload it to the cloud server. The cloud server determines the fault location based on the feedback information, and remotely controls through relevant communication equipment, or notifies the main control device to resend the upgrade data to ensure the continuity and reliability of the program upgrade; S3: Parallel diffusion mode To improve the upgrade efficiency, the system supports multi-path transmission, that is, multiple devices can receive data at the same time if the network topology allows. The specific process is as follows: Multipath identification: Device 1 identifies its parallel connection channels with devices 4 and 2, and determines whether the network supports multipath transmission; Parallel data transmission: When conditions are met, device 1 pushes data to device 4 and device 2 at the same time, achieving parallel diffusion and reducing upgrade time; Parallel feedback aggregation: After receiving data, each device will feedback the success or failure status. The master device or cloud server will aggregate and process the feedback information to ensure the integrity of each path. S4: Fault status monitoring and information feedback The system is designed with real-time status monitoring and fault handling mechanisms to ensure the stability of program upgrades and the safety of equipment operation: Multi-path fault handling: When device 4 or device 2 fails during parallel transmission, device 1 can continue to spread the upgrade data to other devices through the normal path, avoiding upgrade interruption caused by single point failure; Feedback signal transmission: The status information of the faulty device is returned to the cloud server through the original path of device No.
1. The cloud records the fault information in real time and pushes it to the communication device; Real-time information display and identification and processing: The device status information is displayed in real time on the communication device and the integrated screen, including the receiving status, fault location and processing suggestions, so that the technicians or the system can automatically identify and make processing decisions quickly to ensure the efficient operation of the upgrade process; The process of the master control device in the method is: broadcast an upgrade command to notify device No. 1 to enter the upgrade mode; Send the program in pieces and wait for the confirmation signal of each piece; record the completed devices and handle failed retransmission; The process of the device under test in the method is as follows: after entering the upgrade mode, prepare to receive data; receive and store program segments, and forward them to the next device after verification; after receiving the upgrade completion signal, restart and load the new program; The method has the following optimization mechanisms: it can resume downloading from breakpoints, record the current upgrade progress, and avoid repeated downloading of completed parts; it can be multi-threaded concurrently, and in the topology, multiple links can concurrently perform program diffusion; With a rollback mechanism, the device can automatically restore to the previous version when the upgrade fails.
5. The automatic power-on and power-off test system for equipment supporting multi-mode control according to claim 1, characterized in that: A test process of an automatic power-on and power-off test system for equipment supporting multi-mode control, including manual mode, fixed mode, random mode and interrupt mode; The manual mode allows the user to manually control the power on and off by touching a button. The process is as follows: Start: Select manual mode on the integrated control screen, and the system initializes the communication module through the cloud server; Waiting for user input: The system waits for the user to operate by touching the button, and the cloud server records the current standby state; The user presses the "power on" button: the main control module receives the user's command through the communication module, the GPIO outputs a high level, the control relay closes, and the power is turned on; at the same time, the cloud server synchronously updates the status to the PC and mobile terminals; The user presses the "power off" button: the main control module receives the power off command, the GPIO outputs a low level, the control relay is disconnected, and the power is disconnected; the status change is fed back to the cloud server in real time for remote monitoring; End or Continue: The system can choose to end the mode or continue to wait for the next input, and the cloud server synchronizes the status update.
6. The automatic power-on and power-off test system for equipment supporting multi-mode control according to claim 1, characterized in that: A test process of an automatic power-on and power-off test system for equipment supporting multi-mode control, including manual mode, fixed mode, random mode and interrupt mode; The fixed mode automatically performs power on and off operations at preset fixed time intervals. The process is as follows: Start: The user selects a fixed mode through the integrated screen, and the system sends a mode switching notification to the cloud server; Set fixed time parameters: Users set fixed time and upload configuration parameters to the cloud server for backup. Start loop: The system enters loop mode and the cloud server synchronizes execution information; Power on: GPIO pin outputs high level, relay closes, power is turned on; status is updated to the cloud server and displayed in real time; Waiting time for power-on: The system remains powered on for the set time, and the cloud server records the current process. Power off: GPIO pin outputs low level, relay is disconnected, power is disconnected; cloud server updates power off status; Determine whether to continue the cycle: If so, return to the "power on" step, otherwise end the mode and the cloud notifies all terminal devices of the completion status.
7. The automatic power-on and power-off test system for equipment supporting multi-mode control according to claim 1, characterized in that: A test process of an automatic power-on and power-off test system for equipment supporting multi-mode control, including manual mode, fixed mode, random mode and interrupt mode; The random mode randomly selects the duration of power on and off within a set time interval. The duration of each power on and off is randomly generated within the set interval. The process is as follows: Start: The display and control integrated screen selects the random mode, and the cloud server receives the mode switching command. Set random time interval: the user inputs the minimum and maximum time values, and the parameters are synchronized to the cloud through the communication module; Generate random time: The system generates random power-on duration, and the cloud server records the generated data; Power on: The main control module outputs a high level through GPIO, and the relay is closed; the cloud synchronizes the status and displays it in real time; Waiting for random time: The system waits for the power-on status within a random time, and the cloud server synchronizes the process information; Power off: GPIO pin outputs low level, the relay is disconnected, and the cloud updates the power off status; Determine whether to continue the loop: If so, return to the "Generate Random Time" step; otherwise, end the mode and the cloud synchronization terminates the information.
8. The automatic power-on and power-off test system for equipment supporting multi-mode control according to claim 1, characterized in that: A test process of an automatic power-on and power-off test system for equipment supporting multi-mode control, including manual mode, fixed mode, random mode and interrupt mode; The interrupt mode monitors the specified protocol data on the CAN bus after power-on, and performs power-off only after receiving it; if not received, it remains powered on and issues a warning through a buzzer to remind the technician to perform analysis; the process is as follows: Start: The display and control integrated screen selects the interrupt mode, and the cloud server and communication module start synchronization; Power on: GPIO pin outputs high level, relay closes; status is fed back to the cloud and updated to the terminal device in real time; Start CAN monitoring and timeout timing: The system starts CAN bus monitoring, and the cloud server receives device status in real time; Receiving CAN data: The cloud server and the main control device cooperate to verify the data protocol, and if it meets the requirements, the power will be cut off; Power off: GPIO pin outputs low level, the relay is disconnected; the cloud records and feeds back to all terminal devices; Data does not conform or timeout: If data is not received or does not conform to the protocol, the cloud remains powered on and the main control module controls the buzzer to issue a warning. The technician receives a reminder from the cloud, analyzes and intervenes in the fault; End or wait for intervention: The system maintains the current state, waiting for user operation or technical intervention, and the cloud server updates feedback in real time.
Citation Information
Patent Citations
Firmware upgrade method and system
CN107402795A
Power-on and power-off automatic testing system for Internet of Things communication equipment
CN110988540A
Intelligent testing method and system based on cloud computing
CN112904144A
Automatic detection method and system
CN113295944A
Terminal equipment remote test method and system and electronic equipment
CN114816882A
Cited By
Equipment management system and management method
CN120353328A
MCU-based multi-station parallel automatic test system and method
CN121522412A