Disclosure of Invention
The embodiment of the invention provides a cloud testing method, device, equipment and storage medium for intelligent household equipment. According to the cloud test method and the cloud test system, the intelligent household equipment can be automatically configured and the cloud test report can be automatically generated in the cloud test process, and the technical problem that the efficiency of the cloud test is low due to the fact that manual participation is needed in the current cloud test process is solved.
In a first aspect, an embodiment of the present invention provides a cloud testing method for an intelligent home device, including the following steps:
configuring intelligent household equipment to realize a function of communication between the intelligent household equipment and a cloud server;
the intelligent home equipment is controlled to send the feature data to the cloud server, so that the cloud server verifies the feature data according to a verification rule to obtain a verification result;
And controlling the cloud server to send a control instruction to the intelligent household equipment, acquiring an action execution result fed back by the intelligent household equipment, and generating a cloud test report according to the verification result and the action execution result, wherein the control instruction is used for controlling the intelligent household equipment to execute corresponding actions.
Preferably, the specific process of configuring the smart home device so that the smart home device realizes the function of communicating with the cloud server is as follows:
Transmitting equipment information of intelligent household equipment to a cloud server, so that the cloud server acquires configuration information corresponding to the equipment information, and transmitting the configuration information to a configuration control terminal;
And controlling the configuration control terminal to configure the intelligent household equipment according to the configuration information so as to realize the function of communication between the intelligent household equipment and the cloud server.
Preferably, the configuration information includes a login ID, a login password, and a device linkage rule of the smart home device, which are connected to the cloud server.
Preferably, a bar code containing information of the device ID is stuck on the intelligent home device;
Before the obtained characteristic data of the intelligent home equipment is sent to the cloud server, the method further comprises the following steps:
Scanning the bar code through a code scanning gun to obtain the equipment ID;
And sending the equipment ID to the cloud server.
Preferably, the specific process for the cloud server to verify the feature data according to the verification rule is as follows:
and the cloud server acquires a verification rule corresponding to the equipment ID, and verifies the feature data according to the verification rule to obtain a verification result.
Preferably, the control instruction is used for controlling the intelligent home equipment to execute actions corresponding to the equipment linkage rules.
Preferably, the method further comprises the following steps:
And storing the cloud test report into a database.
In a second aspect, an embodiment of the present invention further provides an apparatus for cloud testing on an intelligent home device, including:
The device configuration module is used for configuring the intelligent household device so that the intelligent household device can realize the function of communicating with the cloud server;
The verification module is used for controlling the intelligent home equipment to send the feature data to the cloud server so that the cloud server verifies the feature data according to a verification rule to obtain a verification result;
The report generation module is used for enabling the cloud server to send a control instruction to the intelligent household equipment, acquiring an action execution result fed back by the intelligent household equipment, and generating a cloud test report according to the verification result and the action execution result, wherein the control instruction is used for controlling the intelligent household equipment to execute corresponding actions.
In a third aspect, an embodiment of the present invention further provides a cloud testing device on an intelligent home device, where the device includes one or more processors, and a storage device configured to store one or more programs, where the one or more programs are executed by the one or more processors, so that the one or more processors implement the cloud testing method on an intelligent home device according to the first aspect.
In a fourth aspect, embodiments of the present invention further provide a storage medium storing computer-executable instructions, which when executed by a computer processor are configured to perform the smart home device cloud testing method according to the first aspect.
In the embodiment of the invention, the intelligent household equipment is firstly configured to realize the function of communication between the intelligent household equipment and the cloud server, then the characteristic data of the intelligent household equipment is sent to the cloud server to enable the cloud server to verify the characteristic data according to the verification rule to obtain a verification result, then the cloud server is controlled to send a control instruction to the intelligent household equipment to acquire an action execution result fed back by the intelligent household equipment, and finally an up-cloud test report is generated according to the verification result and the action execution result, wherein the control instruction is used for controlling the intelligent household equipment to execute corresponding actions. According to the cloud test method and the cloud test system, the intelligent household equipment can be automatically configured in the cloud test process, the cloud test report can be automatically generated according to the verification result and the action execution result, human participation is not needed in the cloud test process, the cloud test efficiency is improved, and the technical problem that the cloud test efficiency is low due to the fact that human participation is needed in the current cloud test process is solved.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the application to enable those skilled in the art to practice them. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. The scope of embodiments of the application encompasses the full ambit of the claims, as well as all available equivalents of the claims. Embodiments may be referred to herein, individually or collectively, by the term "application" merely for convenience and without intending to voluntarily limit the scope of this application to any single application or inventive concept if more than one is in fact disclosed. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed. Various embodiments are described herein in a progressive manner, each embodiment focusing on differences from other embodiments, and identical and similar parts between the various embodiments are sufficient to be seen with each other. The structures, products and the like disclosed in the embodiments correspond to the parts disclosed in the embodiments, so that the description is relatively simple, and the relevant parts refer to the description of the method parts.
The cloud testing method on the device provided by the embodiment of the application can be executed by the cloud testing device on the device, the cloud testing device on the device can be realized in a software and/or hardware mode, and the cloud testing device on the device can be composed of two or more physical entities or one physical entity.
Example 1
Fig. 1 is a flowchart of a cloud testing method for an intelligent home device, which is provided by the embodiment of the present invention, and the embodiment may be suitable for performing a cloud testing on an intelligent home device, and specifically includes the following steps:
Step 101, configuring the intelligent home equipment to realize the function of communication between the intelligent home equipment and the cloud server.
In this embodiment, since the smart home device of the smart home system needs to be automatically controlled by the cloud server, various parameters in the smart home device are not yet set before the smart home device performs the cloud test, and the smart home device cannot communicate with the cloud server, the smart home device needs to be configured first, so that a function of communicating between the smart home device and the cloud server is achieved. The process of carrying out intelligent household equipment on the parameters of the intelligent household equipment can be set according to actual needs. The intelligent home equipment of the intelligent home system comprises a sensor and a controller, the intelligent home equipment is configured by setting sensor parameters, controller parameters, network connection parameters and equipment linkage rules in the intelligent home equipment, and a communication function between the intelligent home equipment and a cloud server is realized, so that the cloud server can acquire data uploaded by the sensor of the intelligent home equipment, and the intelligent home equipment is controlled to execute actions corresponding to the equipment linkage rules through the controller of the intelligent home equipment.
And 102, controlling the intelligent home equipment to send the feature data to the cloud server so that the cloud server verifies the feature data according to the verification rule to obtain a verification result.
In this embodiment, after configuring the smart home device so that the smart home device and the cloud server can communicate, it needs to first determine whether the smart home device can send data to the cloud server, so that the smart home device is controlled to send the feature data to the cloud server, so that the cloud server verifies the feature data according to a verification rule, and generates a verification result. In this embodiment, the characteristic data and the verification rule may be set according to actual needs, for example, in one embodiment, the characteristic data of the smart home device is temperature data collected by a sensor of the smart home device, the verification rule is that the temperature is less than 50 °, after the smart home device is controlled to send the temperature data to the cloud server, the cloud server determines whether the temperature in the temperature data is less than 50 °, because the environment of the smart home device of the smart home system is an indoor environment, the indoor temperature generally does not exceed 50 °, if so, the sensor of the smart home device can work normally, and a verification report including "the temperature data sent by the smart home device is received, the temperature data of the smart home device is normal" is generated, if not, the sensor of the smart home device fails, and the generated content includes a verification report including "the temperature data sent by the smart home device is received, and the temperature data of the smart home device is abnormal". The intelligent household equipment can communicate with the cloud server, and whether the temperature sensor of the intelligent household equipment is normal or not can be known by a worker. If the cloud server does not receive the characteristic data sent by the intelligent home equipment, a verification report is directly generated, and the verification report contains the content of the characteristic data which is not received by the intelligent home equipment, so that a worker can know that the intelligent home equipment cannot send the characteristic data to the cloud server, and troubleshooting is carried out on the fault of the intelligent home equipment.
Step 103, the control cloud server sends a control instruction to the intelligent household equipment, an action execution result fed back by the intelligent household equipment is obtained, a cloud test report is generated according to the verification result and the action execution result, and the control instruction is used for controlling the intelligent household equipment to execute corresponding actions.
After the verification result is generated, whether the intelligent home equipment can execute corresponding actions according to the control instruction of the cloud server is further judged. The control cloud server sends a control instruction to the intelligent household equipment, and the intelligent household equipment executes actions corresponding to the control instruction after receiving the control instruction. In an embodiment, the smart home device is an intelligent air conditioner, and the cloud server sends a control instruction for starting a refrigeration mode to the intelligent air conditioner, and the intelligent air conditioner starts the refrigeration mode after receiving the control instruction. And then, the cloud server acquires an action execution result fed back by the intelligent household equipment, for example, after the intelligent air conditioner starts a refrigeration mode according to a control instruction, the action execution result comprising the intelligent mode which is started successfully is fed back to the cloud server, and if the intelligent air conditioner does not start the refrigeration mode after receiving the control instruction, the action execution result comprising the refrigeration mode which is not started is fed back to the cloud server. And after receiving the action execution result fed back by the intelligent household equipment, the cloud server generates a cloud test report according to the verification result and the action execution result. In one embodiment, if the verification report generated by the cloud server includes content that the feature data sent by the smart home device is received, the feature data of the smart home device is normal, and the received action execution result fed back by the smart home device is that the smart home device can execute the action in the control instruction, then an up-cloud test report including content that "the feature data sent by the smart home device is received, the feature data of the smart home device is normal, and the smart home device can execute the corresponding action according to the control instruction" is generated. It can be understood that the content in the cloud test report may be set according to actual needs, and in this embodiment, the specific content of the cloud test report is not limited.
Above-mentioned, can dispose intelligent house equipment automatically in the in-process of cloud testing, and cloud server can verify the characteristic data that intelligent house equipment was uploaded according to verification rule and obtain the verification result, finally, cloud server is according to action execution result and the verification result that intelligent house equipment fed back to generate cloud test report, do not need the human participation in the in-process of cloud testing, improve cloud test's efficiency, reduce the cost of labor, the in-process of cloud testing needs artifical the participation in the prior art has been solved, lead to the technical problem that cloud test's inefficiency.
Example two
Fig. 2 is a flowchart of another cloud testing method for smart home devices, which is provided by the embodiment of the present invention, and the method may be implemented by cloud testing smart home devices on smart home devices, and specifically includes the following steps:
Step 201, sending the device information of the smart home device to a cloud server, so that the cloud server obtains configuration information corresponding to the device information, and sending the configuration information to a configuration control terminal.
Because the intelligent home equipment of the intelligent home system is numerous, before the intelligent home equipment is configured, equipment information of the intelligent home equipment needs to be sent to the cloud server, so that the cloud server can correctly configure the intelligent home equipment according to the acquired configuration information corresponding to the equipment information. In an embodiment, the device information includes model information of the smart home device and firmware version information of the smart home device, the cloud server obtains configuration information corresponding to signal information and firmware version information of the smart home device, and a process of obtaining the configuration information by the cloud server may be set according to actual needs, which may be exemplified by obtaining the configuration information in the internet or obtaining the configuration information in a database, and the embodiment is not limited to a specific process of obtaining the configuration information. After the configuration information is obtained, the configuration information is sent to a configuration control terminal, and the intelligent household equipment is configured through the configuration control terminal. In this embodiment, the configuration control terminal is an intelligent home device capable of processing data, such as a computer, a mobile phone, a tablet computer, and other intelligent home devices.
In one embodiment, the configuration information includes a login ID (login identification) connected to the cloud server, a login password, and a device linkage rule of the smart home device.
In this embodiment, since the purpose of configuring the smart home device is to implement a function of communication between the smart home device and the cloud server, the configuration information includes a login ID and a login password connected to the cloud server, so that the smart home device can login into the cloud according to the login ID and the login password, and establish a connection with the cloud server. In addition, since the intelligent home equipment is required to be linked in the intelligent home system, the intelligent home equipment is required to be configured by acquiring a linkage rule corresponding to the intelligent home equipment, so that the follow-up intelligent home equipment can realize the linkage function of the intelligent home equipment. In one embodiment, the configuration information includes, in addition to the login ID and the login password of the cloud server and the device linkage rule of the smart home device, an ID of a sensor of the smart home device, an ID of a controller of the smart home device, and an ID of a bus, where the cloud server configures the IDs for the sensor, the controller, and the bus of the smart home device, so that different smart home devices can be identified according to the bus ID in the following process, and different sensors and controllers in the same smart home device can be identified according to the sensor ID and the controller ID.
Step 202, controlling the configuration control terminal to configure the intelligent home equipment according to the configuration information so as to realize the function of communication between the intelligent home equipment and the cloud server.
After the configuration information is sent to the configuration control terminal, the configuration control terminal is controlled to configure the intelligent home equipment according to the configuration information, and an exemplary process of configuring the intelligent home equipment can be to configure the intelligent home equipment according to the login ID and the login password of the cloud server, so that the intelligent home equipment can communicate with the cloud server according to the login ID and the login password, or configure the intelligent home equipment according to the equipment linkage rule, and the intelligent home equipment can realize the linkage function of the intelligent home equipment according to the equipment linkage rule.
In one embodiment, a schematic diagram of configuring smart home devices is shown in fig. 3. In fig. 3, the smart home device is connected to the cloud server through a network cable port, the configuration control terminal is connected to the smart home device through a 485 interface, and the configuration control terminal is connected to the cloud server through an ethernet. After the intelligent household equipment is electrified, the intelligent household equipment is controlled to upload model information and firmware version information into the cloud server through the network cable port, and the cloud server acquires configuration information corresponding to the intelligent household equipment from the database according to the model information and the firmware version information of the intelligent household equipment, wherein the configuration information comprises a login ID (identification) of the cloud server, a login password and equipment linkage rules of the intelligent household equipment. And then, the cloud server sends the configuration information to a configuration control terminal, and the configuration control terminal burns the configuration information into the intelligent household equipment through a 485 protocol to complete the configuration process of the intelligent household equipment, so that the intelligent household equipment can log in the cloud through a login ID and a login password, and the function of communicating with the cloud server is realized.
And 203, sending the obtained characteristic data of the intelligent home equipment to a cloud server, so that the cloud server verifies the characteristic data according to a verification rule to obtain a verification result.
In one embodiment, the smart home device has a bar code affixed to it that contains information of the device ID;
It can be understood that the device ID is a unique identifier of each smart home device, and the corresponding smart home device can be found through the device ID.
Before the intelligent household equipment is controlled to send the characteristic data to the cloud server, the method further comprises the following steps:
step 2031, scanning the bar code by a code scanner to obtain the device ID.
The bar codes of all intelligent household devices are scanned through a code scanning gun, so that the device ID corresponding to each intelligent household device is obtained. By way of example, the device ID of the intelligent air conditioner is 014, the device ID of the intelligent sound box is 025, bar codes containing the device ID are stuck on the intelligent air conditioner and the intelligent sound box, and the bar codes of each intelligent home device are scanned by the code scanning gun, so that the device ID of the intelligent air conditioner is 014, and the device ID of the intelligent sound box is 025.
Step 2032, sending the device ID to the cloud server.
After the device ID of each intelligent household device is obtained through the code scanning gun, the device ID of each intelligent household device is sent to the cloud server, so that the cloud server binds the device ID corresponding to each intelligent household device with each intelligent household device, and the intelligent household devices can be identified later. In one embodiment, the cloud testing intelligent home device on the intelligent home device is a testing control terminal, a code scanning gun is connected to the testing control terminal, and after the bar code on the intelligent air conditioner is scanned through the code scanning gun to obtain the device ID 014 of the intelligent air conditioner, the device ID 014 of the intelligent air conditioner is sent to the cloud server, so that the cloud server binds the intelligent air conditioner with the device ID 014.
In one embodiment, the specific process of enabling the cloud server to verify the feature data according to the verification rule is as follows:
and the cloud server acquires the verification rule corresponding to the equipment ID, and verifies the feature data according to the verification rule to obtain a verification result.
After the cloud server receives the feature data sent by the intelligent home devices, the cloud server can acquire verification rules corresponding to the intelligent home devices according to the device IDs because the cloud server has the device IDs of the intelligent home devices, and verify the feature data uploaded by the intelligent home devices according to the verification rules to obtain verification results. Illustratively, in one embodiment, the characteristic data is environmental data, including temperature data, humidity data, and illumination intensity data, among others. The verification rule corresponding to each equipment ID is preset, for example, for an intelligent air conditioner with the equipment ID of 032, the verification rule with the equipment ID of 032 is set to be that the temperature data is smaller than 50 degrees and the humidity data is smaller than 100 percent. After receiving the environmental data sent by the intelligent air conditioner with the equipment ID of 032, acquiring a verification rule with the equipment ID of 032 according to the equipment ID of the intelligent air conditioner, verifying the environmental data, judging whether the temperature data in the environmental data is smaller than 50 degrees and the humidity data is smaller than 100 percent, and obtaining a verification result after the judgment is finished. In one embodiment, after the cloud server obtains the verification result, the verification result is sent to the test control terminal for visual display, so that a worker can know the verification result.
Step 204, the control cloud server sends a control instruction to the intelligent home equipment, an action execution result fed back by the intelligent home equipment is obtained, a cloud test report is generated according to the verification result and the action execution result, and the control instruction is used for controlling the intelligent home equipment to execute corresponding actions.
In one embodiment, the control instructions are for controlling the smart home device to perform an action corresponding to the device linkage rule. Because the device linkage rule corresponding to the intelligent household device is configured when the intelligent household device is configured, the control instruction sent by the cloud server to the intelligent household device is set to control the intelligent household device to execute the action in the device linkage rule corresponding to the intelligent household device, so that whether the intelligent household device can realize the intelligent household device linkage function is judged. For example, one device linkage rule is to enable lights to be turned on and smart curtains to be turned on when the light is too low. When the intelligent switch is configured, the equipment linkage rule is burnt into the intelligent switch. And then, the cloud server is controlled to send a control instruction to the intelligent switch, so that the intelligent lamplight executes the action of opening the intelligent lamplight in the equipment linkage rule according to the control instruction.
Step 205, storing the cloud test report in a database.
After the cloud test report is generated, the cloud test report is stored in a database, and when a user needs the cloud test report of a certain intelligent household device, the cloud test report is called from the database, so that data loss is avoided, and the safety of the data is ensured.
In one embodiment, a schematic diagram of performing cloud testing on an intelligent home device is shown in fig. 4, the intelligent home device is connected with a cloud server, a test control terminal is connected with the cloud server, and a code scanning gun is connected to the test control terminal. When the cloud test is carried out, the bar code of each intelligent household device is scanned through the code scanning gun, so that the device ID corresponding to each intelligent household device is obtained, then the code scanning gun sends the device ID of each intelligent household device to the test control terminal, and the test control terminal sends the device ID of each intelligent household device to the cloud server, so that the cloud server binds the device ID corresponding to each intelligent household device with the device ID corresponding to each intelligent household device. And then, the intelligent home equipment is controlled to send the characteristic data to a cloud server, the cloud server acquires verification rules corresponding to each intelligent home equipment according to the equipment ID, verifies the characteristic data uploaded by each intelligent home equipment according to the verification rules to obtain verification results, and sends the verification results to a test control terminal for visual display. And then, the control cloud server sends a control instruction to the intelligent household equipment, an action execution result fed back by the intelligent household equipment is obtained, a cloud test report is generated according to the verification result and the action execution result, and the cloud test report is stored in a database to complete the cloud test process.
Above-mentioned, can dispose intelligent house equipment automatically in the in-process of cloud testing, and cloud server can verify the characteristic data that intelligent house equipment was uploaded according to verification rule and obtain the verification result, finally, cloud server is according to action execution result and the verification result that intelligent house equipment fed back to generate cloud test report, do not need the human participation in the in-process of cloud testing, improve cloud test's efficiency, reduce the cost of labor, the in-process of cloud testing needs artifical the participation in the prior art has been solved, lead to the technical problem that cloud test's inefficiency.
Example III
Fig. 5 is a schematic structural diagram of an on-cloud testing device for smart home devices according to an embodiment of the present invention, where in this embodiment, the on-cloud testing device for smart home devices includes:
the device configuration module 301 is configured to configure an intelligent home device, so that the intelligent home device can realize a function of communicating with a cloud server;
The verification module 302 is configured to control the smart home device to send the feature data to the cloud server, so that the cloud server verifies the feature data according to a verification rule to obtain a verification result;
The report generating module 303 is configured to enable the cloud server to send a control instruction to the smart home device, obtain an action execution result fed back by the smart home device, generate a cloud test report according to the verification result and the action execution result, and control the smart home device to execute a corresponding action.
On the basis of the above embodiment, the device configuration module 301 includes a configuration information obtaining sub-module, configured to send device information of the smart home device to the cloud server, so that the cloud server obtains configuration information corresponding to the device information and sends the configuration information to the configuration control terminal, and a configuration sub-module, configured to control the configuration control terminal to configure the smart home device according to the configuration information, so as to implement a function of communication between the smart home device and the cloud server.
On the basis of the embodiment, the configuration information includes a login ID, a login password and a device linkage rule of the smart home device, which are connected to the cloud server.
On the basis of the embodiment, a bar code containing information of the device ID is stuck on the intelligent home device;
the cloud testing device for the intelligent household equipment further comprises an equipment ID acquisition module for scanning the bar code through the code scanning gun to acquire the equipment ID, and an equipment ID sending module for sending the equipment ID to the cloud server.
On the basis of the above embodiment, the verification module 302 is specifically configured to enable the cloud server to obtain a verification rule corresponding to the device ID, and verify the feature data according to the verification rule to obtain a verification result.
On the basis of the embodiment, the control instruction is used for controlling the intelligent household equipment to execute the action corresponding to the equipment linkage rule.
On the basis of the embodiment, the cloud testing device for the intelligent home equipment further comprises a storage module, wherein the storage module is used for storing the cloud testing report into a database.
Fig. 6 is a schematic structural diagram of a cloud testing device on an intelligent home device according to an embodiment of the present invention, where, as shown in fig. 6, the device includes a processor 401, a memory 402, an input device 403 and an output device 404, where the number of the processors 401 in the device may be one or more, in fig. 6, one processor 401 is taken as an example, and the processor 401, the memory 402, the input device 403 and the output device 404 in the device may be connected by a bus or other manners, in fig. 6, the connection is taken as an example by a bus. The memory 402 is used as a computer readable storage medium, and can be used to store a software program, a computer executable program, and a module, such as a program instruction/module corresponding to a cloud testing method on an intelligent home device in an embodiment of the present invention. The processor 401 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 402, that is, implements the above-mentioned cloud testing method for smart home devices. The input means 403 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output 404 may include a display device such as a display screen.
The embodiment of the invention also provides a storage medium containing computer executable instructions, which when executed by a computer processor are used for executing a cloud testing method on intelligent household equipment, and the method comprises the following steps:
Configuring intelligent household equipment to realize the function of communication between the intelligent household equipment and a cloud server;
the intelligent home equipment is controlled to send the feature data to the cloud server, so that the cloud server verifies the feature data according to the verification rule to obtain a verification result;
The cloud control server sends a control instruction to the intelligent household equipment, an action execution result fed back by the intelligent household equipment is obtained, a cloud test report is generated according to the verification result and the action execution result, and the control instruction is used for controlling the intelligent household equipment to execute corresponding actions.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the embodiments of the present invention are not limited to the particular embodiments described herein, but are capable of numerous obvious changes, rearrangements and substitutions without departing from the scope of the embodiments of the present invention. Therefore, while the embodiments of the present invention have been described in connection with the above embodiments, the embodiments of the present invention are not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.