Automatic test method and system for intelligent on-off device, storage medium and computer program product

Through the intelligent on-offset automatic testing method, the panel image, temperature and sound data are used to identify the operating status of the on-offset device, which solves the problems of low automation testing level and insufficient reliability in the prior art, and achieves an efficient and reliable testing process.

CN119902068APending Publication Date: 2025-04-29SHENZHEN SONOFF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510105919.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The existing intelligent on-off test technology has low automation level and relies on manual detection, which has problems such as subjective judgment and response lag, insufficient reliability and accuracy, poor safety testing and lack of effective data recording.

Method used

An intelligent on-offset automatic testing method is proposed. By sending a preset test instruction set, acquiring panel images, temperature and sound data, identifying the operating status of the on-offset device, and comparing it with the test instructions to obtain the test results.

Benefits of technology

It realizes automated testing of intelligent on-breakers, improves testing level and efficiency, reduces dependence on labor, ensures the reliability and security of the test, and provides effective data recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902068A_ABST
    Figure CN119902068A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an automatic test method and system for an intelligent on-off device, a storage medium and a computer program product, and the method comprises the steps: transmitting a predetermined test instruction set to a to-be-tested on-off device according to a preset test rule, and testing the to-be-tested on-off device, a test instruction of the test instruction set comprises a test type and a corresponding test parameter; a panel image, temperature and sound in the testing process of the on-off device to be tested are collected, and the panel comprises an indicating lamp for indicating power-on and power-off of the on-off device; according to the panel image, the temperature and the audio of the on-off device to be tested, identifying the operation state of the on-off device to be tested; and comparing the running state of the on-off device to be tested with a corresponding test instruction to obtain a test result. According to the testing method, the on-off device can be automatically tested, the testing level and efficiency are improved, manpower is reduced, and the testing reliability and safety are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the technical field of switch testing, and in particular to an intelligent switch automatic testing method, system, storage medium and computer program product. Background Art

[0002] With the rapid development of smart homes, smart switches are increasingly used in smart homes; however, existing testing technologies for smart switches face many problems, including low levels of automated testing, reliance on manual testing, subjective judgment and delayed response, insufficient reliability and accuracy, poor safety testing, and lack of effective data records.

[0003] Now, various probes, current, voltage, overload, open circuit, short circuit probes, etc. are configured for the switch. When a single probe detects an abnormality in the switch, an alarm is output or the switch is controlled to execute corresponding instructions.

[0004] However, they are all triggered by a single probe, and it is impossible to use the switch to assist in fault judgment. For example, after an overload is detected, it is impossible to determine the cause of the overload. Summary of the invention

[0005] The purpose of the embodiments of the present disclosure is to provide a method, system, storage medium and computer program product for automatic testing of intelligent switches, so as to solve the above-mentioned problems existing in the prior art.

[0006] In order to achieve the above objectives, the technical solutions adopted by the embodiments of the present disclosure are as follows:

[0007] The present disclosure provides an automatic testing method for an intelligent switch, the method comprising:

[0008] Sending a predetermined test instruction set to the switch to be tested according to a preset test rule to test the switch to be tested, wherein the test instructions of the test instruction set include: a test type and corresponding test parameters;

[0009] Collecting panel images, temperatures and sounds during the testing process of the switch to be tested, wherein the panel includes an indicator light indicating whether the switch is powered on or off;

[0010] Identify the operating status of the switch to be tested according to the panel image, temperature and audio of the switch to be tested;

[0011] The operating state of the switch to be tested is compared with the corresponding test instruction to obtain the test result.

[0012] Exemplarily, comparing the operating state of the switch to be tested with the corresponding test instruction to obtain the test result includes:

[0013] If, according to the operating state of the switch to be tested, the operating state is consistent with the corresponding test instruction, then the switch to be tested is normal;

[0014] If the operating states of the switch to be tested are inconsistent with the corresponding test instructions, the switch to be tested is abnormal.

[0015] Exemplarily, the test types include: opening, closing, timer, upgrading, restarting, off-grid reconnection, fluctuating current and overload current; the test parameters include: current value and corresponding duration;

[0016] The test rules include: test times and test intervals.

[0017] Exemplarily, the identifying the operating state of the switch to be tested according to the panel image, temperature and audio of the switch to be tested includes:

[0018] If it is identified that the indicator light in the panel image of the switch to be tested is on, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, then the switch to be tested is in the power-on state;

[0019] If it is identified that the indicator light in the panel image of the switch to be tested is off, the temperature is less than the first threshold, and the audio is less than the first preset value, then the switch to be tested is in the disconnected state;

[0020] If it is identified that the indicator light in the panel image of the switch to be tested is periodically flashing, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and there is a regular pattern, then the switch to be tested is in the timer state;

[0021] If it is identified that the indicator light in the panel image of the switch to be tested is flashing rapidly, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, and it lasts for a first preset time, then the switch to be tested is in an upgraded state;

[0022] If it is identified that the indicator light in the panel image of the switch to be tested is off first and then on, the temperature drops to less than or equal to the first threshold, and then rises to greater than the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, and lasts for a second preset time, then the switch to be tested is in the restart state;

[0023] If it is identified that the indicator light in the panel image of the switch to be tested is flashing slowly, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and has irregular intermittent, then the switch to be tested is in the off-grid reconnection state;

[0024] If it is identified that the indicator light in the panel image of the switch to be tested is on, the temperature fluctuates between the first threshold and the second threshold, the audio varies between the first preset value and the second preset value irregularly, or there is a protection alarm, then the switch to be tested is in a current fluctuation state;

[0025] If it is identified that the indicator light in the panel image of the switch to be tested is the color of the alarm light or the alarm light is on, the temperature is greater than the second threshold, the audio is greater than the first preset value, and the alarm sound continues, and / or the alarm sound is interrupted for a preset delay time, then the switch to be tested is in a current overload state.

[0026] Exemplarily, when the operating state of the switch to be tested is inconsistent with the corresponding test instruction result, the switch to be tested is abnormal, including:

[0027] If the switch to be tested is in a current fluctuation state, the time to respond to triggering the protection mechanism is greater than the preset time, or the switch fails to respond to triggering the protection mechanism, the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal;

[0028] If the switch to be tested is in an overload current state, after the current reaches a preset threshold, the switch to be tested fails to issue a pre-alarm on time, or the pre-alarm appears too early or too late, and / or the switch to be tested fails to disconnect the circuit within a preset delay time, or disconnects immediately without delay, then the operating state of the switch to be tested is inconsistent with the operating state of the corresponding test instruction, and the switch to be tested is abnormal.

[0029] Exemplarily, when the switch to be tested is in an overload current state, the overload current state includes a first overload state and a second overload state. If the switch to be tested is in the first overload state, the switch to be tested does not alarm within a first preset alarm time, or alarms earlier than the first preset alarm time or later than the first preset alarm time, and / or the switch to be tested fails to disconnect the circuit within a first preset delay time, interrupts the alarm, or disconnects immediately without a first preset delay time, then the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal;

[0030] If the switch to be tested shows a second overload state, the switch to be tested does not alarm within the second preset alarm time, or alarms earlier than the second preset alarm time or later than the second preset alarm time, and the switch to be tested fails to disconnect the circuit within the second preset time and interrupt the alarm, then the operating state of the switch to be tested is inconsistent with the operating state of the corresponding test instruction, and the switch to be tested is abnormal.

[0031] Exemplarily, after the switch to be tested is abnormal, the method further includes:

[0032] Trigger an alarm and send an email or SMS to the terminal.

[0033] Another aspect of the present disclosure provides an intelligent switch automatic testing system, the system comprising:

[0034] A sending module, used for sending a predetermined test instruction set to the switch to be tested according to a preset test rule, to test the switch to be tested, wherein the test instruction of the test instruction set includes: a test type and corresponding test parameters;

[0035] A collection module, used for collecting panel images, temperature and sound during the test process of the switch to be tested, wherein the panel includes an indicator light indicating whether the switch is powered on or off;

[0036] An identification module, used to identify the operating state of the switch to be tested according to the panel image, temperature and audio of the switch to be tested;

[0037] The comparison module is used to compare the operating state of the switch to be tested with the corresponding test instruction to obtain the test result.

[0038] On the other hand, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above-mentioned method when executed by a processor.

[0039] Another aspect of the embodiments of the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described above when executed by a processor.

[0040] The beneficial effects of the embodiments of the present disclosure are:

[0041] The intelligent switch automation testing method of the disclosed embodiment can automatically test the switch, improve the testing level and efficiency, reduce the dependence on manual work, and ensure the reliability and safety of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flowchart of an automatic testing method for an intelligent switch and breaker proposed in an embodiment of the present disclosure;

[0043] Figure 2 It is a structural schematic diagram of an intelligent switch automatic testing system proposed in an embodiment of the present disclosure;

[0044] Figure 3 This is a display diagram of a user interface of an intelligent switch automatic testing system proposed in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiment of the present disclosure more clear, the embodiment of the present disclosure is further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation methods described here are only used to explain the embodiment of the present disclosure and are not used to limit the embodiment of the present disclosure.

[0046] Embodiment 1:

[0047] like Figure 1 As shown, the present disclosure provides an automatic testing method for an intelligent switch, the method comprising:

[0048] Step S100: sending a predetermined test instruction set to the switch to be tested according to a preset test rule to test the switch to be tested, wherein the test instructions of the test instruction set include: a test type and corresponding test parameters.

[0049] The test method of the disclosed embodiment has a customized automated test mechanism. Users can independently set the automated test instructions, test times and test time according to the test requirements to achieve automated stress testing and long-term stable reliability testing. This mechanism can optimize human resource allocation, improve test efficiency, and comprehensively evaluate the performance and stability of the equipment. The stress test is not described in detail here. The automated test mechanism is implemented by an automated monitoring system. The ID of the switch to be tested is bound in the automated monitoring system, and the test instructions, automated test times and interval time of the automated device to be tested are set. Figure 2 As shown, the test instruction set includes multiple test instructions, and the test instructions include a test type and corresponding test parameters.

[0050] The test types include: open, close, timer, upgrade, restart, off-grid reconnection, fluctuating current and overload current; the test parameters include: current value and corresponding duration; the test rules include: number of tests and interval time.

[0051] Start the monitoring system, the automation module runs and the hardware module starts. The automation module sends test instructions to the intelligent switch device to be tested according to the pre-set test times and interval time; the intelligent switch device runs according to the instructions of the automation module, and there will be various operating states, such as the device is powered on and the light is on; the device is powered off and the light is off; the old device is disconnected from the grid and reconnected, and the light flashes; the device is overloaded and an alarm sounds, etc.

[0052] The hardware module includes: a temperature sensor, a sound sensor and an image collector, which respectively collect the temperature, sound and image of the intelligent switch to be tested when the switch is running, and are respectively connected to the monitoring system.

[0053] Step S200: collecting panel images, temperatures and sounds during the testing process of the switch to be tested, wherein the panel includes an indicator light indicating whether the switch is powered on or off.

[0054] The microcontroller board in the monitoring system, such as Raspberry Pi: As the core control unit of the system, it is responsible for directly receiving data from the image collector, sound sensor and temperature sensor, and performing real-time data processing and status analysis.

[0055] Image collector: Capture images of the switch status in real time and process them through Raspberry Pi.

[0056] Sound sensor: collects sound signals when the device is running and processes them through Raspberry Pi.

[0057] Temperature sensor: monitors the temperature around the device, reads and analyzes the temperature data, and processes it through RaspberryPi.

[0058] Data collection: Raspberry Pi uses Python libraries, such as picamera, pyaudio, and Adafruit_DHT, to obtain real-time signal and data information from cameras, microphones, and temperature sensors, such as collected images, sounds, and temperature data, and conducts comprehensive analysis and preprocessing, and then uses multimodal fusion technology for judgment. Here, the panel image of the switch to be tested is mainly collected. The panel has various indicator lights. When the switch runs the corresponding command, the indicator lights will respond accordingly. The operating status of the switch can be judged by the changes in the indicator lights, and then combined with temperature and sound, the accuracy of judging the operating status of the switch can be improved.

[0059] Step S300: Identify the operating status of the switch to be tested according to the panel image, temperature and audio of the switch to be tested.

[0060] In step S300, multimodal data fusion analysis and decision-making are performed, that is, the collected image, combined with temperature data and sound signals are analyzed, and a decision is made to determine the operating status of the intelligent switch device. After collecting the image of the switch panel to be tested, the image recognition module of the monitoring system processes the image in real time. Specifically, the collected image is preprocessed, such as scaling, normalization, denoising, color adjustment, etc., and then the preprocessed image is input into the pre-trained convolutional neural network CNN model for feature extraction and state classification to identify the state of the equipment, such as on, off, smoking, fire, etc. The process of training the convolutional neural network CNN model is not repeated here. Here, the frequency of collecting images can also be set according to actual conditions to collect the dynamic changes of the indicator light when the switch runs the test instruction.

[0061] Acoustic signal processing: The signal from the acoustic sensor is processed through an acoustic feature extraction and analysis algorithm to detect specific audio patterns, such as overvoltage or equipment failure sounds.

[0062] Temperature data analysis: Temperature data collected by the temperature sensor is analyzed and combined with image and sound data to improve the accuracy of judgment.

[0063] The automated monitoring system uses deep learning image recognition technology and uses a convolutional neural network (CNN) to determine the status of switches in real time. The algorithm can maintain high accuracy in a changing environment and overcome the influence of factors such as lighting changes and background interference. At the same time, multimodal data fusion technology is introduced to combine image data with temperature and humidity sensors, sound sensors, etc. to further improve the accuracy of fault identification.

[0064] Intelligent monitoring, real-time judgment, higher reliability and accuracy: Real-time monitoring and image recognition technology are used to judge the switch test equipment in real time and automatically save the equipment on-site pictures, which is faster, more reliable and more accurate. It solves the problems of traditional testing that cannot make real-time judgments, cannot collect evidence at the fault site, and cannot locate software and hardware failures.

[0065] Specifically, the step of identifying the operating state of the switch to be tested according to the panel image, temperature and audio of the switch to be tested includes:

[0066] If it is identified that the indicator light in the panel image of the switch to be tested is on, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, then the switch to be tested is in the power-on state.

[0067] For the input test instruction 1, the operating state of the switch to be tested is that the image recognition is that the light is on, the temperature is 23°C, and the audio is 200HZ, and the response result is that the switch device is closed. Test instruction 1 is open.

[0068] If it is identified that the indicator light in the panel image of the switch to be tested is off, the temperature is less than a first threshold, and the audio is less than a first preset value, the switch to be tested is in a disconnected state.

[0069] For the input test instruction 2, the operating state of the switch to be tested is that the image recognition is that the light is off, the temperature is 18°C, and the audio is 198HZ, and the response result is that the switch device is disconnected. Test instruction 2 is closed.

[0070] If it is identified that the indicator light in the panel image of the switch to be tested flashes periodically, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and there is a regularity, then the switch to be tested is in the timer state.

[0071] For the input test instruction 3, the operating state of the switch to be tested is that the image recognition is that the light flashes periodically, the temperature is 22°C, the temperature changes little, the audio is 205HZ, there is a slight prompt sound, and the response result is a timer. Test instruction 3 is a timer.

[0072] If the indicator light in the panel image of the switch to be tested is identified as flashing quickly, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and it lasts for the first preset time, then the switch to be tested is in the upgrade state; the first preset time can be 0.5 seconds.

[0073] For the input test instruction 4, the operating state of the switch to be tested is that the image recognition is that the light flashes quickly, the temperature is 25°C, slightly rising, the audio is 200HZ, silent or prompting, and the response result is upgrade. Test instruction 4 is upgrade.

[0074] If it is identified that the indicator light in the panel image of the switch to be tested is first off and then on, the temperature drops to less than or equal to the first threshold and then rises back to greater than the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, and lasts for the second preset time, then the switch to be tested is in the restart state.

[0075] For the input test instruction 5, the operating state of the switch to be tested is that the image recognition is that the light is briefly turned off and then re-lit, the temperature drops from 24°C to 18°C ​​and then rises again, a sound of about 200Hz, a restart sound, the response result is restart, and the second preset time can be a few seconds. Test instruction 5 is restart.

[0076] If it is identified that the indicator light in the panel image of the switch to be tested is flashing slowly, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and it has irregular intermittence, then the switch to be tested is in the off-grid reconnection state, which occurs every few seconds.

[0077] For input test instruction 6, the operating state of the switch to be tested is that the image recognition is that the light flashes slowly, enters a state of waiting for connection, the temperature is about 23°C, there is an intermittent connection attempt sound, the audio is about 205HZ, and the response result is off-grid reconnection. Test instruction 6 is off-grid reconnection.

[0078] If the indicator light in the panel image of the switch to be tested is on, the temperature fluctuates between the first threshold and the second threshold, the audio varies between the first preset value and the second preset value irregularly, or there is a protection alarm, then the switch to be tested is in a current fluctuation state.

[0079] For input test instruction 7, the operating state of the switch to be tested is that the image recognition shows that the light may remain unchanged, the temperature may fluctuate, fluctuate between 20 and 40°C, there are irregular humming or other abnormal sounds, 170 to 210Hz fluctuations, and the response result is triggering the protection mechanism, alarm, etc. Test instruction 7 is fluctuating current. The protection mechanism will be triggered only when the fluctuating current exceeds the preset current threshold.

[0080] If it is identified that the indicator light in the panel image of the switch to be tested is the color of the alarm light or the alarm light is on, the temperature is greater than the second threshold, the audio is greater than the first preset value, and the alarm sound continues, and / or the alarm sound is interrupted for a preset delay time, then the switch to be tested is in a current overload state.

[0081] For input test instruction 8, the operating state of the switch to be tested is that the image recognition shows that the light may turn red, the temperature exceeds 40°C and rises significantly, the audio is higher than 250Hz, and the high-frequency sound is continuous, and the response result is to issue an alarm, and / or the switch disconnects the circuit, the light goes out, and the alarm sound is interrupted. Test instruction 8 is overload current.

[0082] In the embodiment of the present disclosure, the first threshold, the second threshold, the first preset value, the second preset value, the first preset time, and the second preset time can be set according to experience or actual conditions, and are not limited here. The above are all normal operating states and responses of the intelligent switch to the corresponding test instructions.

[0083] The operating status of the switch to be tested may also include: if it is identified that there is smoke in the panel image of the switch to be tested, the temperature is greater than the second threshold and less than or equal to the third threshold, and the audio is greater than the second preset value and less than or equal to the third preset value, then the switch to be tested is in an alarm state.

[0084] If it is identified that there is an open flame in the panel image of the switch to be tested, the temperature is greater than a third threshold, and the audio is greater than a third preset value, the switch to be tested is in a fire state.

[0085] Regardless of the test instruction, the alarm state and fire state are relatively serious fault states and corresponding processing measures should be taken immediately. These two situations are relatively rare.

[0086] Step S400: Compare the operating status of the switch to be tested with the corresponding test instruction to obtain a test result.

[0087] In step S400, the operating state of the switch to be tested is compared with the corresponding test instruction to further determine whether the switch to be tested is normal.

[0088] When the switch to be tested receives the corresponding test instruction and runs, and the identified running state is inconsistent with the running state that should be obtained after receiving the test instruction, it can be considered that the switch to be tested is abnormal.

[0089] When the switch to be tested receives the corresponding test instruction and does not make a corresponding response or makes an erroneous response during operation, it can be considered that the operating state of the switch to be tested is inconsistent with the test instruction and the switch to be tested is abnormal.

[0090] The monitoring system can also monitor the operating status of the switch to be tested and record it.

[0091] Exemplarily, comparing the operating state of the switch to be tested with the corresponding test instruction to obtain the test result includes:

[0092] If, according to the operating state of the switch to be tested, the operating state is consistent with the corresponding test instruction, then the switch to be tested is normal;

[0093] If the operating states of the switch to be tested are inconsistent with the corresponding test instructions, the switch to be tested is abnormal.

[0094] It should be noted that the operating state of the switch to be tested can be comprehensively judged by the three indicators of indicator light, temperature and audio in the image, or the indicator light can be used as the main basis for judgment. Specifically, it can be set according to the actual situation. The indicator light, temperature and audio are used to judge respectively. When the switch to be tested receives the corresponding test instruction, when the switch to be tested is running, if any one of the indicator light, temperature and audio is not in the corresponding normal operating state, it can be considered that the switch to be tested is abnormal.

[0095] For example, for test instruction 1, when the intelligent switch to be tested is turned on, if the indicator light is off or flickers, and / or the temperature does not change or is significantly lower than / higher than the normal range, that is, the temperature is not between the first threshold and the second threshold, and / or there is no audio feedback or the audio frequency is abnormal, not between the first preset value and the second preset value, such as silence or unexpected noise. It can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction, and the switch to be tested is abnormal.

[0096] For test instruction 2, the intelligent switch to be tested is turned off. If the indicator light is still on or flashing continuously, and / or the temperature does not drop or rises abnormally, which is greater than or equal to the first threshold, and / or the audio does not change or an unexpected sound appears, which is greater than or equal to the first preset value, it can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction and the switch to be tested is abnormal.

[0097] For test instruction 3, start the timer, if the indicator light does not change or flashes randomly, and / or the temperature fluctuates abnormally and is not between the first threshold and the second threshold, and / or there is no timing reminder sound or the audio is chaotic, and the audio is not between the first preset value and the second preset value. It can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction, and the switch to be tested is abnormal.

[0098] For test instruction 4, upgrading the switch, if the indicator light does not change or remains on / off for a long time, and / or the temperature is too high or too low and is not between the first threshold and the second threshold, it indicates that the device may be stuck or the upgrade cannot be completed, and / or an unexpected audio signal or no sound appears, and the audio is not between the first preset value and the second preset value. It can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction, and the switch to be tested is abnormal.

[0099] For test instruction 5, restart the switch, if the indicator light does not change or restarts repeatedly, it is manifested as frequent on and off cycles, and / or the temperature is abnormal, which may be too high or too low, and there is no trend of falling and rising, and / or there is no restart sound or an erroneous audio signal, and the audio is not between the first preset value and the second preset value. It can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction, and the switch to be tested is abnormal.

[0100] For test instruction 6, off-grid reconnection, if the indicator light does not change or flashes irregularly, and / or the temperature is abnormal and is not between the first threshold and the second threshold, and / or there is no sound of attempted connection or the audio is chaotic and the audio is not between the first preset value and the second preset value, it can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction and the switch to be tested is abnormal.

[0101] For test instruction 7, input fluctuating current, if the indicator light flashes abnormally or changes color, and / or the temperature fluctuates violently or does not change, and does not fluctuate between the first threshold and the second threshold, and / or the audio is abnormally quiet or emits continuous abnormal noise, and the audio is not between the first preset value and the second preset value. It can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction, and the switch to be tested is abnormal.

[0102] For test instruction 8, input overload current, if the indicator light does not change or displays an error, and / or the temperature does not rise significantly or is abnormally low, less than the second threshold, and / or the alarm sound is missing or the audio is abnormal, and the audio is less than the first preset value, it can be considered that the operating state of the switch to be tested is inconsistent with the corresponding test instruction, and the switch to be tested is abnormal.

[0103] Whether the operating status of test instructions 7 and 8 is consistent with the test instructions, the following judgment methods can be used respectively: if the test instruction is a fluctuating current, if the switch to be tested is in a current fluctuating state, the time to respond to the triggering protection mechanism is greater than the preset time, or the switch fails to respond to the triggering protection mechanism, then the operating status of the switch is inconsistent with the operating status of the corresponding test instruction, and the switch is abnormal.

[0104] The test instruction is current overload. If the switch to be tested is in an overload current state, after the current reaches a preset threshold, the switch to be tested fails to issue a pre-alarm on time, or the pre-alarm appears too early or too late, and / or the switch to be tested fails to disconnect the circuit within a preset delay time, or disconnects immediately without appropriate delay, then the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal.

[0105] After the switch to be tested is abnormal, the method further includes: triggering an alarm and sending an email or text message to the terminal. Recording and saving various abnormal test data and corresponding collected data, the collected data including: images, sounds, and temperature.

[0106] The adaptive abnormal alarm mechanism is safer and has the ability to identify abnormal conditions. During stress testing or long-term reliability and stability testing, if potential dangers such as equipment failure, abnormal temperature rise, smoke, and fire danger are detected, an alarm message can be issued immediately, and an email or message can be automatically sent to the user to notify the user in time to take measures to deal with potential failures and dangers.

[0107] Record every operation and its results during the test in real time, conduct in-depth analysis of the test data, generate detailed data records, support subsequent optimization, and improve the intelligence level of the entire test process.

[0108] The method of the disclosed embodiment is based on the output image classification of CNN, the sound signal processing result and the temperature data, comprehensively judges the various states of the device, and responds quickly when an abnormal state is detected (for example, smoke in the image, the alarm sound of the sound sensor and the high temperature state of the temperature sensor).

[0109] Intelligent alarm mechanism: In response to different conditions, the system can quickly issue alarm notifications, provide real-time information to users, and optionally automatically take emergency measures, such as cutting off power supply.

[0110] The automated test instructions can be customized to execute, which can realize efficient, safe and reliable automated testing of intelligent switches. Multimodal data fusion technology is used to judge the status of intelligent switches in real time based on convolutional neural network (CNN) image algorithm, fusion temperature sensor data, and sound sensor data, providing safety protection, improving the test efficiency, reliability and safety of switches.

[0111] like Figure 2 As shown, another aspect of the present disclosure discloses an intelligent switch automatic testing system, the system comprising:

[0112] The sending module 100 is used to send a predetermined test instruction set to the switch to be tested according to a preset test rule to test the switch to be tested, wherein the test instructions of the test instruction set include: a test type and corresponding test parameters.

[0113] The acquisition module 200 is used to acquire panel images, temperatures and sounds during the testing process of the switch to be tested, wherein the panel includes an indicator light indicating whether the switch is powered on or off.

[0114] The identification module 300 is used to identify the operating state of the switch to be tested according to the panel image, temperature and audio of the switch to be tested.

[0115] The comparison module 400 is used to compare the operating state of the switch to be tested with the corresponding test instruction to obtain a test result.

[0116] The automated monitoring system also includes: a determination module, which determines the test parameters and test rules of the switch to be tested; the acquisition module of the automated monitoring system is connected to each image acquisition module, sound sensor and temperature sensor. The automated monitoring system also includes: an alarm module, a recording module, a database and a user display module. The alarm module is used to send an email or text message to the terminal, i.e. the user end, when an alarm is triggered. The recording module is used to record and save various abnormal test data and corresponding acquisition data.

[0117] like Figure 3 As shown, the user display interface realizes the user interface and feedback mechanism. Specifically, the real-time monitoring and feedback system transmits the real-time monitoring results to the user interface of the automated test system to display the equipment status, historical records and timely alarm information.

[0118] The database realizes data storage. Data storage, all sensor data, image records and sound analysis results will be stored for subsequent performance evaluation and system optimization.

[0119] The system uses the data analysis module to record every operation and its results during the test in real time, conduct in-depth analysis of the test data, generate detailed data records, support subsequent optimization, and improve the intelligence level of the entire test process.

[0120] The disclosed embodiments combine the powerful processing capabilities of Raspberry Pi, image recognition technology of convolutional neural networks (CNNs), audio analysis of sound sensors, and real-time monitoring of temperature sensors to build a comprehensive, intelligent, and reliable automated testing and monitoring system that can efficiently identify device status, quickly respond to potential safety hazards, ensure user safety, and promote the comprehensive upgrade of smart home devices.

[0121] On the other hand, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above-mentioned method when executed by a processor.

[0122] Another aspect of the embodiments of the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described above when executed by a processor.

[0123] Embodiment 2:

[0124] In the first embodiment, the test instruction simulates an overload current, including a first overload current and a second overload current. When the switch to be tested is in an overload current state, the overload current state includes a first overload state and a second overload state. If the switch to be tested shows a first overload state, the switch to be tested does not alarm within a first preset alarm time, or alarms earlier than the first preset alarm time or later than the first preset alarm time, and / or the switch to be tested fails to disconnect the circuit within a first preset delay time, interrupts the alarm, or disconnects immediately without a first preset delay time, then the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal.

[0125] The first overload current simulates the current overload caused by the overload on the user side. The current overload generally does not increase suddenly. The first overload current is less than or equal to the preset overload current. After the switch to be tested receives the first overload current, it shows a first overload state. The switch to be tested alarms within the first preset alarm time, and / or the switch to be tested disconnects the circuit within the first preset delay time to interrupt the alarm. The temperature of the switch to be tested can be heated to a preset temperature within the first preset heating time.

[0126] If the switch to be tested shows a second overload state, the switch to be tested does not alarm within the second preset alarm time, and the switch to be tested fails to disconnect the circuit within the second preset time and interrupt the alarm, then the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal.

[0127] The second overload current simulates a short circuit in the power supply system and other currents are too large for a short time. The second overload current is greater than the preset overload current, which is manifested as a second overload state. The switch to be tested alarms within the second preset alarm time, and the switch to be tested disconnects the circuit within the second preset time, interrupting the alarm. The temperature of the switch to be tested can be heated to the preset temperature within the second preset heating time. The temperature rises rapidly and high.

[0128] The first preset alarm time, the second preset alarm time, the first preset delay time, the second preset time, etc. can be set according to actual conditions. After the test of Example 2, in actual use, the switch can also use the alarm time to assist in determining the cause of the current overload of the switch, whether it is a current overload problem caused by the power supply system or the user end. For example, if the operating state of the switch meets the first current overload state, then the alarm time and the disconnection delay time both meet the corresponding preset values, and it can be determined that the current overload is on the user end of the switch; if the operating state of the switch meets the second current overload state, then the alarm time and the disconnection delay time both meet the corresponding preset values, and it can be determined that the current overload is on the power supply system side of the switch.

[0129] That is to say, in the actual use of the smart switch, the alarm time can be used to assist in determining whether the abnormal current occurs in the power supply system or on the user side, providing more accurate judgment for maintenance, saving time and improving prediction results.

[0130] In some of the processes described in the specification of the embodiments of the present disclosure and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different values, messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0131] The above is only a preferred implementation of the embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the embodiment of the present disclosure. These improvements and modifications should also be considered as the protection scope of the embodiment of the present disclosure.

Claims

1. An automatic testing method for intelligent switch, characterized in that: The method comprises: Sending a predetermined test instruction set to the switch to be tested according to a preset test rule to test the switch to be tested, wherein the test instructions of the test instruction set include: a test type and corresponding test parameters; Collecting panel images, temperatures and sounds during the testing process of the switch to be tested, wherein the panel includes an indicator light indicating whether the switch is powered on or off; Identify the operating status of the switch to be tested according to the panel image, temperature and audio of the switch to be tested; The operating state of the switch to be tested is compared with the corresponding test instruction to obtain the test result.

2. The method according to claim 1, characterized in that The step of comparing the operating state of the switch to be tested with the corresponding test instruction to obtain the test result includes: If, according to the operating state of the switch to be tested, the operating state is consistent with the corresponding test instruction, then the switch to be tested is normal; If the operating states of the switch to be tested are inconsistent with the corresponding test instructions, the switch to be tested is abnormal.

3. The method according to claim 1, characterized in that The test types include: opening, closing, timer, upgrading, restarting, off-grid reconnection, fluctuating current and overload current; the test parameters include: current value and corresponding duration; The test rules include: test times and test intervals.

4. The method according to any one of claims 1 to 3, characterized in that: The step of identifying the operating state of the switch to be tested according to the panel image, temperature and audio of the switch to be tested comprises: If it is identified that the indicator light in the panel image of the switch to be tested is on, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, then the switch to be tested is in the power-on state; If it is identified that the indicator light in the panel image of the switch to be tested is off, the temperature is less than the first threshold, and the audio is less than the first preset value, then the switch to be tested is in the disconnected state; If it is identified that the indicator light in the panel image of the switch to be tested is periodically flashing, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and there is a regular pattern, then the switch to be tested is in the timer state; If it is identified that the indicator light in the panel image of the switch to be tested is flashing rapidly, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, and it lasts for a first preset time, then the switch to be tested is in an upgraded state; If it is identified that the indicator light in the panel image of the switch to be tested is off first and then on, the temperature drops to less than or equal to the first threshold, and then rises to greater than the first threshold and less than or equal to the second threshold, and the audio is greater than or equal to the first preset value and less than the second preset value, and lasts for a second preset time, then the switch to be tested is in the restart state; If it is identified that the indicator light in the panel image of the switch to be tested is flashing slowly, the temperature is greater than or equal to the first threshold and less than or equal to the second threshold, the audio is greater than or equal to the first preset value and less than the second preset value, and has irregular intermittent, then the switch to be tested is in the off-grid reconnection state; If it is identified that the indicator light in the panel image of the switch to be tested is on, the temperature fluctuates between the first threshold and the second threshold, the audio changes between the first preset value and the second preset value irregularly, or there is a protection alarm, then the switch to be tested is in a current fluctuation state; If it is identified that the indicator light in the panel image of the switch to be tested is the color of the alarm light or the alarm light is on, the temperature is greater than the second threshold, the audio is greater than the first preset value, and the alarm sound continues, and / or the alarm sound is interrupted for a preset delay time, then the switch to be tested is in a current overload state.

5. The method according to any one of claims 1 to 4, characterized in that: When the operating state of the switch to be tested is inconsistent with the corresponding test instruction result, the switch to be tested is abnormal, including: If the switch to be tested is in a current fluctuation state, the time to respond to triggering the protection mechanism is greater than the preset time, or the switch fails to respond to triggering the protection mechanism, the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal; If the switch to be tested is in an overload current state, after the current reaches a preset threshold, the switch to be tested fails to issue a pre-alarm on time, or the pre-alarm appears too early or too late, and / or the switch to be tested fails to disconnect the circuit within a preset delay time, or disconnects immediately without delay, then the operating state of the switch to be tested is inconsistent with the operating state of the corresponding test instruction, and the switch to be tested is abnormal.

6. The method according to claim 5, characterized in that When the switch to be tested is in an overload current state, the overload current state includes a first overload state and a second overload state. If the switch to be tested is in the first overload state, the switch to be tested does not alarm within the first preset alarm time, or alarms earlier than the first preset alarm time or later than the first preset alarm time, and / or the switch to be tested fails to disconnect the circuit within the first preset delay time, interrupts the alarm, or disconnects immediately without the first preset delay time, then the operating state of the switch is inconsistent with the operating state of the corresponding test instruction, and the switch is abnormal; If the switch to be tested shows a second overload state, the switch to be tested does not alarm within the second preset alarm time, or alarms earlier than the second preset alarm time or later than the second preset alarm time, and the switch to be tested fails to disconnect the circuit within the second preset time and interrupt the alarm, then the operating state of the switch to be tested is inconsistent with the operating state of the corresponding test instruction, and the switch to be tested is abnormal.

7. The method according to claim 2 or 5, characterized in that: After the switch to be tested is abnormal, the method further comprises: Trigger an alarm and send an email or SMS to the terminal.

8. An intelligent switch automatic test system, characterized in that: The system comprises: A sending module, used for sending a predetermined test instruction set to the switch to be tested according to a preset test rule, to test the switch to be tested, wherein the test instruction of the test instruction set includes: a test type and corresponding test parameters; A collection module, used for collecting panel images, temperature and sound during the test process of the switch to be tested, wherein the panel includes an indicator light indicating whether the switch is powered on or off; An identification module, used to identify the operating state of the switch to be tested according to the panel image, temperature and audio of the switch to be tested; The comparison module is used to compare the operating state of the switch to be tested with the corresponding test instruction to obtain the test result.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.