CN112180248A - Method and device for testing intelligent switch - Google Patents

Method and device for testing intelligent switch Download PDF

Info

Publication number
CN112180248A
CN112180248A CN202010953616.6A CN202010953616A CN112180248A CN 112180248 A CN112180248 A CN 112180248A CN 202010953616 A CN202010953616 A CN 202010953616A CN 112180248 A CN112180248 A CN 112180248A
Authority
CN
China
Prior art keywords
intelligent switch
attribute information
control instruction
network
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010953616.6A
Other languages
Chinese (zh)
Other versions
CN112180248B (en
Inventor
雷贵州
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yingzhi Technology Co ltd
Original Assignee
Beijing Ruying Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruying Intelligent Technology Co ltd filed Critical Beijing Ruying Intelligent Technology Co ltd
Priority to CN202010953616.6A priority Critical patent/CN112180248B/en
Publication of CN112180248A publication Critical patent/CN112180248A/en
Application granted granted Critical
Publication of CN112180248B publication Critical patent/CN112180248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for testing an intelligent switch, which is used for automatically testing the intelligent switch and comprises the following steps: acquiring attribute information of an intelligent switch accessed to a network, wherein the attribute information is sent by the intelligent switch; determining whether the attribute information is consistent with preset information; and sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.

Description

Method and device for testing intelligent switch
Technical Field
The invention relates to the technical field of intelligent home furnishing, in particular to a method and a device for testing an intelligent switch.
Background
In recent years, the smart home market has emerged, and the smart switch plays a very important role as a whole-house smart home essential product. The user can control the household appliance by controlling the intelligent switch through the screen gateway or the mobile phone application. The intelligent switch is strange in shape, a panel of the intelligent switch is provided with a display screen or is not provided with the display screen, a knob or a key is arranged on the panel of the intelligent switch, the intelligent switch comprises a single-key intelligent switch, a double-key intelligent switch or a triple-key intelligent switch, and the intelligent switch further comprises a single-fire intelligent switch, a zero-fire intelligent switch and the like.
The intelligent switch needs to be connected to a network, so that the wireless function of the intelligent switch needs to be tested during production. And because the intelligent switch's kind is various, and the order is big in batches, during switch production, easy compounding, for example zero fire three key white switch mainboard has been adorned in zero fire three key black switch. Since the form of the corresponding panel is displayed on the gateway or the mobile phone, the appearance and each attribute of the main board of the intelligent switch and the intelligent switch need to be consistent, and therefore, during production, the attribute information such as the model of the intelligent switch needs to be checked.
However, the models are compared by naked eyes in the current production stage, the efficiency is extremely low, and misjudgment is easy to occur.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for testing an intelligent switch, which can automatically test the intelligent switch.
According to an aspect of an embodiment of the present invention, there is provided a method of testing an intelligent switch, the method including:
acquiring attribute information of an intelligent switch accessed to a network, wherein the attribute information is sent by the intelligent switch;
determining whether the attribute information is consistent with preset information;
and sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: in this embodiment, the gateway obtains attribute information of the intelligent switch sent by the intelligent switch accessing the network, compares whether the obtained attribute information is consistent with preset information, and sends a control instruction to the intelligent switch according to a determined result, so that the intelligent switch executes the control instruction, and a load connected with the intelligent switch shows a corresponding state, and a tester can obtain whether the tested intelligent switch is qualified or not by observing the state of the load.
In one embodiment, preferably, the load includes a light bulb, and the sending of the control instruction to the intelligent switch according to the determination result includes: when the attribute information is determined to be consistent with preset information, sending a first control instruction to the intelligent switch, wherein the first control instruction comprises: controlling a relay of the intelligent switch to be closed and opened for a preset number of times; when the attribute information is determined to be inconsistent with the preset model, sending a second control instruction to the intelligent switch, wherein the second control instruction comprises: and the relay controlling the intelligent switch is normally closed.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: in this embodiment, according to the comparison result of difference, send different control command to intelligence switch to make the load that intelligence switch connects show different states, when intelligence switch's attribute information was unanimous with the information of predetermineeing, the bulb that intelligence switch connects will the stroboscopic preset number of times, when intelligence switch's attribute information was inconsistent with the information of predetermineeing, the bulb that intelligence switch connects will be lighted always, and is convenient directly perceived, and the testing personnel of being convenient for know the test result.
In one embodiment, preferably, the method further comprises: and after the preset time length after the first control instruction is sent to the intelligent switch, the intelligent switch accessed to the network is subjected to network quitting processing.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: in this embodiment, when the attribute information of the intelligent switch is consistent with the preset information, that is, the intelligent switch passes the test, the tested intelligent switch automatically quits the network according to the preset time, so that each factory-delivered qualified prototype can be ensured to be in a non-network-accessing state.
In one embodiment, preferably, the acquiring the attribute information of the intelligent switch sent by the intelligent switch accessing the network includes: and simultaneously acquiring attribute information sent by more than two intelligent switches accessed to the network.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: in this embodiment, the gateway may be connected to more than two intelligent switches at the same time, and obtain the attribute information sent by more than two intelligent switches accessing the network at the same time, thereby implementing a test of multiple intelligent switches at one time.
According to another aspect of the embodiments of the present invention, there is provided a method for testing an intelligent switch, which is applied to the intelligent switch, and includes:
after being electrified, the power supply communicates with a gateway to access a network;
the access network sends attribute information to the gateway;
receiving a control instruction sent by the gateway, wherein the control instruction is sent by the gateway according to a result of determining whether the attribute information is consistent with preset information;
and executing the control command to enable the load connected with the intelligent switch to show a corresponding state.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: in this embodiment, the intelligent switch is automatically connected to the network after being powered on and sends the attribute information to the gateway, so that the gateway can compare whether the obtained attribute information is consistent with the preset information, and send a control instruction to the intelligent switch according to the determined result, the intelligent switch executes the received control instruction, so that the load connected with the intelligent switch shows a corresponding state, and a tester can obtain whether the tested intelligent switch is qualified or not by observing the state of the load.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for testing an intelligent switch, which is applied to a gateway, and includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring attribute information of an intelligent switch, which is sent by the intelligent switch accessed to a network;
the determining module is used for determining whether the attribute information is consistent with preset information;
and the first sending module is used for sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
In one embodiment, preferably, the load includes a light bulb, and the first transmitting module includes:
the first sending submodule is used for sending a first control instruction to the intelligent switch when the attribute information is determined to be consistent with preset information, and the first control instruction comprises: controlling a relay of the intelligent switch to be closed and opened for a preset number of times;
the second sending submodule is used for sending a second control instruction to the intelligent switch when the attribute information is determined to be inconsistent with the preset model, and the second control instruction comprises: and the relay controlling the intelligent switch is normally closed.
In one embodiment, preferably, the apparatus further comprises:
and the network quitting module is used for carrying out network quitting processing on the intelligent switch accessed to the network after the preset time length after the first sending sub-module sends the first control instruction to the intelligent switch.
In one embodiment, preferably, the obtaining module is configured to: and simultaneously acquiring attribute information sent by more than two intelligent switches accessed to the network.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for testing an intelligent switch, which is applied to the intelligent switch, including:
the network access module is used for communicating with the gateway after being electrified so as to access the network;
the second sending module is used for sending the attribute information to the gateway after accessing the network;
the receiving module is used for receiving a control instruction sent by the gateway, wherein the control instruction is sent by the gateway according to a result of determining whether the attribute information is consistent with preset information;
and the processing module executes the control command to enable the load connected with the intelligent switch to show a corresponding state.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for testing an intelligent switch, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring attribute information of an intelligent switch accessed to a network, wherein the attribute information is sent by the intelligent switch;
determining whether the attribute information is consistent with preset information;
and sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
According to another aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the above-described method.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for testing an intelligent switch according to an embodiment of the present invention.
FIG. 2 is a flow chart of a method for testing the intelligent switch according to an embodiment of the invention.
Fig. 3 is a schematic view of an application scenario of the method for testing the intelligent switch according to an embodiment of the present invention.
FIG. 4 is a flow chart of a method for testing the intelligent switch according to an embodiment of the invention.
Fig. 5 is a block diagram of an apparatus for testing an intelligent switch according to an embodiment of the present invention.
Fig. 6 is a structural diagram of a first sending module in an embodiment of the present invention.
Fig. 7 is a block diagram of an apparatus for testing an intelligent switch according to an embodiment of the present invention.
Fig. 8 is a block diagram of an apparatus for testing an intelligent switch according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related technology, the intelligent switch is tested by comparing models with naked eyes, so that the efficiency is low and misjudgment is easy. In order to solve the above problems, the present invention provides a method for testing an intelligent switch, which can implement automatic testing of the intelligent switch.
The method for testing the intelligent switch can be applied to the gateway. The gateway is used to provide a network to which the intelligent switch can access. Fig. 1 is a flowchart of a method for testing an intelligent switch according to an embodiment of the present invention, and as shown in fig. 1, the method for testing an intelligent switch includes:
step S101, acquiring attribute information of the intelligent switch sent by the intelligent switch accessed to the network.
Step S102, determining whether the attribute information is consistent with preset information.
And step S103, sending a control instruction to the intelligent switch according to the determined result so that the intelligent switch executes the control instruction and the load connected with the intelligent switch shows a corresponding state.
In this embodiment, the gateway obtains attribute information of the intelligent switch sent by the intelligent switch accessing the network, compares whether the obtained attribute information is consistent with preset information, and sends a control instruction to the intelligent switch according to a determined result, so that the intelligent switch executes the control instruction, and a load connected with the intelligent switch shows a corresponding state, and a tester can obtain whether the tested intelligent switch is qualified or not by observing the state of the load.
In an embodiment of the present invention, optionally, the load may include a light bulb, and the step S103 may include: steps a1 and a 2:
step A1: when the attribute information is determined to be consistent with preset information, sending a first control instruction to the intelligent switch, wherein the first control instruction comprises: and controlling the relay of the intelligent switch to be closed and disconnected for preset times.
Step A2: when the attribute information is determined to be inconsistent with the preset model, sending a second control instruction to the intelligent switch, wherein the second control instruction comprises: and the relay controlling the intelligent switch is normally closed.
In this embodiment, according to the comparison result of difference, send different control command to intelligence switch to make the load that intelligence switch connects show different states, when intelligence switch's attribute information was unanimous with the information of predetermineeing, the bulb that intelligence switch connects will the stroboscopic preset number of times, when intelligence switch's attribute information was inconsistent with the information of predetermineeing, the bulb that intelligence switch connects will be lighted always.
In an embodiment of the present invention, optionally, the method further includes step B:
and B, after the preset time length after the first control instruction is sent to the intelligent switch, performing network quitting processing on the intelligent switch accessed to the network.
In this embodiment, when the attribute information of the intelligent switch is consistent with the preset information, that is, the intelligent switch passes the test, the tested intelligent switch automatically quits the network according to the preset time, so that each factory-delivered qualified prototype can be ensured to be in a non-network-accessing state.
In an embodiment of the present invention, optionally, the obtaining the attribute information of the intelligent switch sent by the intelligent switch accessing to the network includes: and simultaneously acquiring attribute information sent by more than two intelligent switches accessed to the network.
In this embodiment, the gateway may be connected to more than two intelligent switches at the same time, and obtain the attribute information sent by more than two intelligent switches accessing the network at the same time, thereby implementing a test of multiple intelligent switches at one time.
The method for testing the intelligent switch provided by the invention can be applied to the intelligent switch. Fig. 2 is a flowchart of a method for testing an intelligent switch according to an embodiment of the present invention, and as shown in fig. 2, the method for testing an intelligent switch includes:
step S201, after being electrified, the power supply communicates with the gateway to access the network.
Step S202, the access network sends the attribute information to the gateway.
Step S203, receiving a control instruction sent by the gateway, where the control instruction is sent by the gateway according to a result of determining whether the attribute information is consistent with preset information.
And step S204, executing the control command to enable the load connected with the intelligent switch to show a corresponding state.
In this embodiment, the intelligent switch is automatically connected to the network after being powered on and sends the attribute information to the gateway, so that whether the attribute information obtained by comparing the gateway is consistent with the preset information or not is determined, a control instruction is sent to the intelligent switch according to a determined result, the intelligent switch executes the received control instruction, so that a load connected with the intelligent switch shows a corresponding state, and a tester can obtain whether the tested intelligent switch is qualified or not only by observing the state of the load.
The implementation is described in detail below by way of several embodiments.
Referring to fig. 3, an application scenario of this embodiment is shown in fig. 3, where a gateway and a plurality of intelligent switches are in this application scenario, and in this embodiment, the plurality of intelligent switches are connected to the gateway through a Zigbee technology. The invention does not limit the network access mode of the intelligent switch and the connection mode with the gateway. In other embodiments of the present invention, the access of the intelligent switch can be realized through wireless technologies such as Wifi and bluetooth. As shown in fig. 4, each on-off key of each intelligent switch is connected with its own bulb as a load, and the connection of the intelligent switch with the bulb can be realized by a production jig. The method comprises the following steps:
step S401, the gateway presets attribute information and delay network exit time of the intelligent switch to be tested.
The attribute information may include, for example, motherboard information (also referred to as model information) of the intelligent switch, and the motherboard information may be a combination of a string of letters or numbers. The motherboard information may include, for example, display screen information (with or without a display screen), on-off key information (knob or key, single key, double or triple key, single fire or zero), and panel information (e.g., panel color). In the present embodiment, the smart switch to be tested is exemplified by a three-key zero-fire white switch, and the attribute information of the smart switch to be tested is KLPJ 03W.
Step S402, the intelligent switch is electrified and automatically communicates with the gateway to access the network.
After the intelligent switch is powered on, a message requesting connection is automatically sent to the gateway, and the connection mode of the intelligent switch and the gateway can be a Zigbee technology, a Wifi technology, a Bluetooth technology or other wireless communication technologies.
And step S403, the intelligent switch accesses the network and then sends attribute information to the gateway.
The attribute information of the intelligent switch is, for example, main board information (also referred to as model information) of the intelligent switch, and the main board information may be a string of letters or a combination of numbers. The motherboard information may include, for example, display screen information (with or without a display screen), on-off key information (knob or key, single key, double or triple key, single fire or zero), and panel information (e.g., panel color). In the present embodiment, for example, the attribute information of the smart switch 1 is KLPJ03W, and the attribute information of the smart switch 2 is KLPJ 03B.
Step S404, the gateway obtains the attribute information of the intelligent switch sent by the intelligent switch of the access network.
In this embodiment, respective attribute information sent by N intelligent switches is simultaneously obtained, where N is an integer greater than or equal to 2.
For each intelligent switch, the following steps are performed:
step S405, the gateway determines whether the attribute information sent by the intelligent switch is consistent with the preset attribute information of the intelligent switch to be tested; if yes, go to step S406; if not, go to step S409.
The gateway judges the attribute information sent by each intelligent switch, for example, it is determined that the attribute information sent by the intelligent switch 1 is consistent with the preset attribute information of the intelligent switch to be tested, which is 'KLPJ 03W'; and determining that the attribute information sent by the intelligent switch 2 is inconsistent with the preset attribute information of the intelligent switch to be tested.
Step S406, the gateway sends a first control instruction to the intelligent switch, wherein the first control instruction comprises: and controlling the relay of the intelligent switch to be closed and disconnected for preset times.
When the attribute information sent by the intelligent switch 1 is determined to be consistent with the preset attribute information of the intelligent switch to be tested, a first control instruction is sent to the intelligent switch 1, so that a bulb connected with the intelligent switch 1 flickers, and a tester can judge that the intelligent switch 1 is qualified after seeing that the bulb flickers. In other embodiments of the present invention, the first control instruction and the second control instruction may be other instructions as long as the load connected to the intelligent switch can exhibit two states respectively corresponding to "the attribute information sent by the intelligent switch is consistent with the preset attribute information of the intelligent switch to be tested" and "the attribute information sent by the intelligent switch is inconsistent with the preset attribute information of the intelligent switch to be tested".
In step S407, the intelligent switch executes the first control instruction.
The intelligent switch 1 executes a first control instruction, namely, the relay of the intelligent switch is closed and disconnected for a preset number of times. Thus, the bulb connected with the intelligent switch 1 will flash for a preset number of times and then extinguish.
And step S408, after the gateway waits for the preset delay network quitting time, the gateway carries out network quitting processing on the intelligent switch.
When the intelligent switch 1 is a qualified product, after the first control instruction is sent to the intelligent switch 1, the preset delay network quitting time is waited, for example, in this embodiment, the preset delay network quitting time is 3 seconds. Then, the network quitting processing is carried out on the intelligent switch 1 3 seconds after the first control instruction is sent to the intelligent switch 1, and it is ensured that each delivery prototype is in a non-network-accessing state.
Step S409, the gateway sends a second control instruction to the intelligent switch, wherein the second control instruction comprises: and the relay controlling the intelligent switch is normally closed.
And step S410, the intelligent switch executes a second control instruction.
In this embodiment, when it is determined that the attribute information sent by the intelligent switch 2 is inconsistent with the preset attribute information of the intelligent switch to be tested, a second control instruction is sent to the intelligent switch 2, so that the relay of the intelligent switch 2 is normally closed, so that the bulb connected to the intelligent switch 2 is normally on, and the tester can judge that the intelligent switch 2 is unqualified by seeing that the bulb is always on. The intelligent switch 2 can be powered on again to automatically access the network and upload the attribute information after being maintained.
The embodiment supports simultaneous testing of a large amount of intelligent switches, and production efficiency is high, and the test degree of automation is high, staff easy operation, and the erroneous judgement rate is extremely low.
The above embodiments can be freely combined according to actual needs.
The implementation of the method for testing the intelligent switch is described above, and the implementation process can be implemented by a device, and the internal structure and function of the device are described below.
Referring to fig. 5, the apparatus for testing the intelligent switch in the present embodiment includes: an obtaining module 501, a determining module 502 and a first sending module 503.
An obtaining module 501, configured to obtain attribute information of an intelligent switch that is sent by the intelligent switch accessing a network.
A determining module 502, configured to determine whether the attribute information is consistent with preset information.
A first sending module 503, configured to send a control instruction to the intelligent switch according to the determination result, so that the intelligent switch executes the control instruction, and a load connected to the intelligent switch shows a corresponding state.
Optionally, the load includes a light bulb, and as shown in fig. 6, the first sending module 503 includes:
the first sending sub-module 601 is configured to send a first control instruction to the intelligent switch when it is determined that the attribute information is consistent with preset information, where the first control instruction includes: controlling a relay of the intelligent switch to be closed and opened for a preset number of times;
a second sending submodule 602, configured to send a second control instruction to the intelligent switch when it is determined that the attribute information is inconsistent with a preset model, where the second control instruction includes: and the relay controlling the intelligent switch is normally closed.
Optionally, as shown in fig. 7, the apparatus further includes:
and the network quitting module 701 is configured to perform network quitting processing on the intelligent switch of the access network after the preset time length after the first sending sub-module 601 sends the first control instruction to the intelligent switch.
Optionally, the obtaining module 501 is configured to: and simultaneously acquiring attribute information sent by more than two intelligent switches accessed to the network.
Referring to fig. 8, the apparatus for testing the intelligent switch in the present embodiment includes: a network accessing module 801, a second sending module 802, a receiving module 803 and a processing module 804;
a network access module 801, configured to communicate with a gateway after being powered on to access a network;
a second sending module 802, configured to send attribute information to the gateway after accessing the network;
a receiving module 803, configured to receive a control instruction sent by the gateway, where the control instruction is sent by the gateway according to a result of determining whether the attribute information is consistent with preset information;
and the processing module 804 executes the control command to enable the load connected with the intelligent switch to show a corresponding state.
An apparatus for testing a smart switch, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring attribute information of an intelligent switch accessed to a network, wherein the attribute information is sent by the intelligent switch;
determining whether the attribute information is consistent with preset information;
and sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the above-described method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. A method for testing an intelligent switch is applied to a gateway and comprises the following steps:
acquiring attribute information of an intelligent switch accessed to a network, wherein the attribute information is sent by the intelligent switch;
determining whether the attribute information is consistent with preset information;
and sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
2. The method of claim 1, wherein the load comprises a light bulb, and wherein sending control instructions to the smart switch based on the determination comprises:
when the attribute information is determined to be consistent with preset information, sending a first control instruction to the intelligent switch, wherein the first control instruction comprises: controlling a relay of the intelligent switch to be closed and opened for a preset number of times;
when the attribute information is determined to be inconsistent with the preset model, sending a second control instruction to the intelligent switch, wherein the second control instruction comprises: and the relay controlling the intelligent switch is normally closed.
3. The method of claim 2, further comprising:
and after the preset time length after the first control instruction is sent to the intelligent switch, the intelligent switch accessed to the network is subjected to network quitting processing.
4. The method of claim 1, wherein the obtaining the attribute information of the intelligent switch sent by the intelligent switch accessing the network comprises:
and simultaneously acquiring attribute information sent by more than two intelligent switches accessed to the network.
5. A method for testing an intelligent switch is applied to the intelligent switch and comprises the following steps:
after being electrified, the power supply communicates with a gateway to access a network;
the access network sends attribute information to the gateway;
receiving a control instruction sent by the gateway, wherein the control instruction is sent by the gateway according to a result of determining whether the attribute information is consistent with preset information;
and executing the control command to enable the load connected with the intelligent switch to show a corresponding state.
6. The utility model provides a test intelligence switch's device which characterized in that is applied to the gateway, includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring attribute information of an intelligent switch, which is sent by the intelligent switch accessed to a network;
the determining module is used for determining whether the attribute information is consistent with preset information;
and the first sending module is used for sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
7. The apparatus of claim 6, wherein the load comprises a light bulb, and wherein the first transmitting module comprises:
the first sending submodule is used for sending a first control instruction to the intelligent switch when the attribute information is determined to be consistent with preset information, and the first control instruction comprises: controlling a relay of the intelligent switch to be closed and opened for a preset number of times;
the second sending submodule is used for sending a second control instruction to the intelligent switch when the attribute information is determined to be inconsistent with the preset model, and the second control instruction comprises: and the relay controlling the intelligent switch is normally closed.
8. The apparatus of claim 7, further comprising:
and the network quitting module is used for carrying out network quitting processing on the intelligent switch accessed to the network after the preset time length after the first sending sub-module sends the first control instruction to the intelligent switch.
9. The apparatus of claim 6, wherein the obtaining module is configured to: and simultaneously acquiring attribute information sent by more than two intelligent switches accessed to the network.
10. The utility model provides a test intelligence switch's device which characterized in that is applied to intelligence switch, includes:
the network access module is used for communicating with the gateway after being electrified so as to access the network;
the second sending module is used for sending the attribute information to the gateway after accessing the network;
the receiving module is used for receiving a control instruction sent by the gateway, wherein the control instruction is sent by the gateway according to a result of determining whether the attribute information is consistent with preset information;
and the processing module executes the control command to enable the load connected with the intelligent switch to show a corresponding state.
11. An apparatus for testing a smart switch, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring attribute information of an intelligent switch accessed to a network, wherein the attribute information is sent by the intelligent switch;
determining whether the attribute information is consistent with preset information;
and sending a control instruction to the intelligent switch according to the determined result so as to enable the intelligent switch to execute the control instruction and enable the load connected with the intelligent switch to show a corresponding state.
12. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.
CN202010953616.6A 2020-09-11 2020-09-11 Method and device for testing intelligent switch Active CN112180248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010953616.6A CN112180248B (en) 2020-09-11 2020-09-11 Method and device for testing intelligent switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010953616.6A CN112180248B (en) 2020-09-11 2020-09-11 Method and device for testing intelligent switch

Publications (2)

Publication Number Publication Date
CN112180248A true CN112180248A (en) 2021-01-05
CN112180248B CN112180248B (en) 2024-04-26

Family

ID=73921927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010953616.6A Active CN112180248B (en) 2020-09-11 2020-09-11 Method and device for testing intelligent switch

Country Status (1)

Country Link
CN (1) CN112180248B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113589160A (en) * 2021-08-02 2021-11-02 淮北祥泰科技有限责任公司 State adjustment system for intelligent switch
CN114899024A (en) * 2022-04-13 2022-08-12 中山亿联智能科技有限公司 Environment-friendly intelligent panel identification equipment capable of automatically identifying multi-way switch and method thereof
CN115267572A (en) * 2022-09-26 2022-11-01 卧安科技(深圳)有限公司 Switch control device and non-rechargeable battery detection method and device of intelligent equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106249138A (en) * 2016-08-29 2016-12-21 杭州鸿雁智能科技有限公司 The automatic checkout system of a kind of intelligent switch and detection method
CN108809690A (en) * 2018-04-08 2018-11-13 广州市海升信息科技有限责任公司 The method and its system of device software version information automatic checking
WO2019027580A1 (en) * 2017-08-01 2019-02-07 Kleverness Incorporated Intelligent switch device and central control system thereof
CN109542499A (en) * 2018-10-11 2019-03-29 珠海许继芝电网自动化有限公司 A kind of distribution terminal software version management method and device
CN110262468A (en) * 2019-07-26 2019-09-20 泰华智慧产业集团股份有限公司 Smart lock test equipment and test method
CN110332757A (en) * 2019-06-25 2019-10-15 合肥美的电冰箱有限公司 For the control method of refrigerator, display control unit and refrigerator
CN110633202A (en) * 2018-06-21 2019-12-31 深圳市鸿合创新信息技术有限责任公司 Automatic detection method for version information of touch screen all-in-one machine
CN111308944A (en) * 2020-04-02 2020-06-19 深圳创维-Rgb电子有限公司 Equipment control method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106249138A (en) * 2016-08-29 2016-12-21 杭州鸿雁智能科技有限公司 The automatic checkout system of a kind of intelligent switch and detection method
WO2019027580A1 (en) * 2017-08-01 2019-02-07 Kleverness Incorporated Intelligent switch device and central control system thereof
CN108809690A (en) * 2018-04-08 2018-11-13 广州市海升信息科技有限责任公司 The method and its system of device software version information automatic checking
CN110633202A (en) * 2018-06-21 2019-12-31 深圳市鸿合创新信息技术有限责任公司 Automatic detection method for version information of touch screen all-in-one machine
CN109542499A (en) * 2018-10-11 2019-03-29 珠海许继芝电网自动化有限公司 A kind of distribution terminal software version management method and device
CN110332757A (en) * 2019-06-25 2019-10-15 合肥美的电冰箱有限公司 For the control method of refrigerator, display control unit and refrigerator
CN110262468A (en) * 2019-07-26 2019-09-20 泰华智慧产业集团股份有限公司 Smart lock test equipment and test method
CN111308944A (en) * 2020-04-02 2020-06-19 深圳创维-Rgb电子有限公司 Equipment control method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113589160A (en) * 2021-08-02 2021-11-02 淮北祥泰科技有限责任公司 State adjustment system for intelligent switch
CN113589160B (en) * 2021-08-02 2022-02-11 淮北祥泰科技有限责任公司 State adjustment system for intelligent switch
CN114899024A (en) * 2022-04-13 2022-08-12 中山亿联智能科技有限公司 Environment-friendly intelligent panel identification equipment capable of automatically identifying multi-way switch and method thereof
CN114899024B (en) * 2022-04-13 2023-10-27 中山亿联智能科技有限公司 Environment-friendly intelligent panel identification equipment capable of automatically identifying multiple switches and method thereof
CN115267572A (en) * 2022-09-26 2022-11-01 卧安科技(深圳)有限公司 Switch control device and non-rechargeable battery detection method and device of intelligent equipment
CN115267572B (en) * 2022-09-26 2022-12-13 卧安科技(深圳)有限公司 Switch control device and non-rechargeable battery detection method and device of intelligent equipment

Also Published As

Publication number Publication date
CN112180248B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN112180248A (en) Method and device for testing intelligent switch
CN112098924B (en) Interactive function testing method and device based on double-core intelligent electric meter
CN104730932B (en) Intelligent appliance control system and method based on mobile interchange
CN108366006A (en) A kind of intelligent appliance distribution method, apparatus and system
CN106443421B (en) A kind of measurement of automation clock frequency and calibration system and method
CN107579884A (en) Intelligent electric appliance state synchronization method, equipment, storage medium and intelligent refrigerator
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN102810076A (en) Storage medium switching control system and method
CN111861221A (en) Equipment fault information pushing method and device, storage medium and electronic device
CN107390394B (en) Liquid crystal module testing system based on SOPC
CN205563123U (en) Control panel and control system
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN107360295A (en) A kind of test main frame and method
CN107509161A (en) Smart bluetooth control system and method
CN112859637A (en) Wind turbine generator system simulation system
CN110442059A (en) Controlled device expanding method, device and control equipment
CN114064485A (en) Software testing method, system, computer equipment and readable storage medium
CN109600781A (en) A kind of test macro and method of WiFi module
CN202649337U (en) Testing system capable of automatically measuring batch micro-control crystal oscillator characteristic
CN105514924B (en) A kind of leakage protection method and device of terminal device
CN103428745A (en) Test system and test method of Cu interface between UICC (Universal Integrated Circuit Card) and WCDMA (Wideband Code Division Multiple Access) mobile terminal
CN209343079U (en) A kind of LCD panel test system and LCD panel test device
CN111737136A (en) Object testing method and device based on Internet of things platform
CN207067281U (en) A kind of battery simulator
CN109596167A (en) A kind of equipment production test method, system and test terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20240226

Address after: Room 032, 1st Floor, Building 6, No. 8 Beiyuan Street, Laiguangying Township, Chaoyang District, Beijing, 100012

Applicant after: Beijing Yingzhi Technology Co.,Ltd.

Country or region after: China

Address before: No.7, 1st floor, building 5, No.108, Beiyuan Road, Chaoyang District, Beijing

Applicant before: Beijing Ruying Intelligent Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant